/*
Theme Name: Leadwood Solutions
Theme URI: https://leadwoodsolutions.co.za
Author: Leadwood Solutions
Description: Leadwood Solutions single-page WordPress theme.
Version: 1.7.2
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leadwood
*/

:root{
  --black: #050505;
  --panel: #0d0d0d;
  --panel-elevated: #141414;
  --line: rgba(255,255,255,0.16);
  --line-soft: rgba(255,255,255,0.08);
  --ink: #f4f4f2;
  --muted: #9a9a96;
  --muted-soft: #6f6f6b;
  --white: #ffffff;
  --accent: #ffffff;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; text-size-adjust:100%; -webkit-text-size-adjust:100%; }
body{
  background: var(--black);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight:300;
  line-height:1.65;
  overflow-x:hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}
h1,h2,h3,h4{
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight:500;
  letter-spacing:-0.02em;
  color: var(--white);
}
em{
  font-style: italic;
  font-weight:600;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

/* ---------- Ambient background overlay ---------- */
.bg-ambient-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.06), transparent 50%),
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.02), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(255, 255, 255, 0.03), transparent 45%);
  opacity: 0.85;
}
.ambient-particles{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle{
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, transparent 72%);
  filter: blur(28px);
  opacity: 0.55;
  animation: drift 24s ease-in-out infinite alternate;
}
.particle:nth-child(1){ width: 420px; height: 420px; top: -100px; left: -100px; animation-duration: 22s; }
.particle:nth-child(2){ width: 360px; height: 360px; top: 35%; right: -80px; animation-duration: 30s; animation-delay: -8s; }
.particle:nth-child(3){ width: 300px; height: 300px; bottom: 8%; left: 15%; animation-duration: 26s; animation-delay: -16s; }
.particle:nth-child(4){ width: 480px; height: 480px; bottom: -140px; right: 8%; animation-duration: 34s; animation-delay: -6s; }
.particle:nth-child(5){ width: 250px; height: 250px; top: 15%; left: 45%; animation-duration: 28s; animation-delay: -12s; }
@keyframes drift{
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -50px) scale(1.12); }
}
@media (prefers-reduced-motion: reduce){ .particle{ animation: none; } }
.ripple-bg{
  position:absolute; inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-image: linear-gradient(to right, rgba(5,5,5,0.85), rgba(5,5,5,0.6)), url('assets/images/chevron-stripes-geometric-lines_1409-8687.avif');
  opacity:0.38;
  mix-blend-mode:luminosity;
}
.ripple-bg.hero-img, .ripple-bg.tunnel-img, .ripple-bg.team-img{ 
  background-image: linear-gradient(to right, rgba(5,5,5,0.85), rgba(5,5,5,0.6)), url('assets/images/chevron-stripes-geometric-lines_1409-8687.avif');
  background-position:center; 
  background-size:cover;
  opacity:0.38;
}
.ripple-bg.hero-img{
  background-size: 100% 100%, auto 100%;
  background-repeat: no-repeat, repeat;
  animation: lineMove 28s linear infinite;
}
.ripple-bg.services-img{ 
  background-image: linear-gradient(to bottom, rgba(5,5,5,0.82), rgba(5,5,5,0.7)), url('assets/images/images.jpeg');
  background-position:center; 
  background-size:cover;
  opacity:0.4;
}
.ripple-bg.closing-img{ 
  background-image: linear-gradient(to top, rgba(5,5,5,0.85), rgba(5,5,5,0.65)), url('assets/images/abstract-black-white-gradient-backgroud-modern-design_677411-2941.avif');
  background-position:center; 
  background-size:cover;
  opacity:0.45;
}

/* ---------- Navigation Bar ---------- */
nav{
  position:fixed; top:0; left:0; right:0;
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px min(6vw, 64px);
  z-index:100;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand img{ height:38px; width:auto; }
.brand img.nav-icon{ height:44px; width:auto; object-fit:contain; }
.navlinks{ display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:10px; }
.navlinks a{ 
  font-weight: 600; 
  font-size: 13px; 
  letter-spacing: 0.06em; 
  text-transform: uppercase; 
  color: var(--white); 
  padding: 8px 16px; 
  border-radius: 20px; 
  background: rgba(255, 255, 255, 0.05); 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
  white-space: nowrap; 
}
.navlinks a:hover,
.navlinks a:focus{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  outline:none;
}

@media (max-width:768px){ 
  nav{ padding:12px 16px; gap:8px; }
  .brand{ gap:8px; }
  .brand img.nav-icon{ height:34px !important; width:auto !important; }
  .brand img:last-child{ height:26px !important; width:auto !important; max-width:none !important; }
  .navlinks{ gap:6px; } 
  .navlinks a{ padding: 6px 11px; font-size: 11px; letter-spacing:0.04em; }
}
@media (max-width:480px){
  nav{ padding:10px 12px; justify-content:space-between; }
  .brand{ gap:6px; }
  .brand img.nav-icon{ height:30px !important; width:auto !important; }
  .brand img:last-child{ height:22px !important; width:auto !important; max-width:none !important; }
  .navlinks{ gap:4px; }
  .navlinks a{ padding: 5px 8px; font-size: 9.5px; letter-spacing:0.02em; border-radius:14px; }
}
@media (max-width:384px){
  nav{ flex-wrap:wrap; row-gap:8px; }
  .navlinks{ width:100%; justify-content:center; gap:8px; }
}

/* ---------- Hero Section ---------- */
.hero{
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding: 120px min(5vw, 48px) 80px;
}
.hero h1{
  position:relative; z-index:2;
  font-size:clamp(28px, 4.8vw, 56px);
  line-height:1.18;
  max-width:900px;
  margin: 0 auto;
}
.hero p.sub{
  position:relative; z-index:2;
  margin:24px auto 0;
  color:var(--white);
  max-width:600px;
  font-size:clamp(15px, 2vw, 17px);
  line-height:1.7;
}
.cta-row{ 
  position:relative; z-index:2; 
  margin-top:40px; 
  display:flex; gap:16px; flex-wrap:wrap; justify-content:center; align-items:center;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 30px;
  border:1px solid var(--line);
  border-radius:4px;
  font-size:14px;
  letter-spacing:0.04em;
  transition: all .25s ease;
  cursor:pointer;
}
.btn.solid{ background:var(--white); color:var(--black); border-color:var(--white); font-weight:500; }
.btn.solid:hover{ background:transparent; color:var(--white); }
.btn.ghost:hover{ border-color:var(--white); background:rgba(255,255,255,0.05); }

.btn.whatsapp-btn{
  gap:12px;
  height:54px; padding:0 28px;
  border-radius:27px;
}
.btn.whatsapp-btn svg{ width:24px; height:24px; flex-shrink:0; }
.btn.whatsapp-btn svg path{ fill:var(--black); transition: fill .25s ease; }
.btn.whatsapp-btn:hover svg path{ fill:var(--white); }
.btn.whatsapp-btn span{ white-space:nowrap; font-weight:500; }

.eyebrow-foot{
  position:absolute; bottom:28px; left:min(6vw, 64px); right:min(6vw, 64px);
  display:flex; align-items:center; gap:20px;
  z-index:2;
}
.eyebrow-foot .tag{
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size:11px; letter-spacing:0.15em; color:var(--muted-soft);
  white-space:nowrap;
}
.eyebrow-foot .rule{ flex:1; height:1px; background:var(--line-soft); }
@media (max-width:768px){ 
  .hero{ padding-bottom: 70px; }
  .eyebrow-foot{ 
    position:absolute; 
    bottom:20px; left:16px; right:16px; 
    margin-top:0; padding:0; 
    width:auto; 
    display:flex; 
    flex-direction:row; 
    justify-content:space-between; 
    align-items:center; 
    gap:10px; 
  } 
  .eyebrow-foot .tag{ font-size:10.5px; letter-spacing:0.06em; }
  .eyebrow-foot .rule{ flex:1; }
}
@media (max-width:440px){
  .eyebrow-foot{
    bottom:16px; left:12px; right:12px;
    gap:6px;
  }
  .eyebrow-foot .tag{ font-size:9.5px; letter-spacing:0.04em; }
}

.section-rule{ height:1px; background:var(--line-soft); margin:24px 0 0; }

/* ---------- Section Layout Shell ---------- */
section{ position:relative; padding: clamp(60px, 10vh, 120px) min(6vw, 64px); }
.eyebrow{
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size:11px; letter-spacing:0.2em; color:var(--muted-soft);
  margin-bottom:16px; display:block; text-transform:uppercase;
}
.section-title{ font-size:clamp(26px, 3.8vw, 44px); margin-bottom:20px; max-width:800px; line-height:1.2; }
.section-lede{ color:var(--muted); max-width:640px; font-size:15.5px; line-height:1.75; }

/* ---------- Welcome Section ---------- */
.welcome{ 
  display:grid; 
  grid-template-columns: 0.85fr 1.15fr; 
  gap:clamp(32px, 5vw, 64px); 
  align-items:center; 
  background:var(--panel); 
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
}
.welcome-copy p{ color:var(--muted); font-size:15.5px; line-height:1.75; margin-top:20px; text-align:justify; text-align-last:left; hyphens:none; -webkit-hyphens:none; }
@media (max-width:640px){ .welcome-copy p{ text-align:left; } }
.welcome-copy p strong{ color:var(--ink); font-weight:500; }
.welcome-visual{
  position:relative;
  width:100%;
  aspect-ratio: 4/3;
  max-height: 420px;
  border-radius:6px;
  border:1px solid var(--line-soft);
  overflow:hidden;
  background:rgba(5,5,5,0.6); 
  backdrop-filter:blur(8px); 
  -webkit-backdrop-filter:blur(8px);
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:24px; 
  padding:32px;
}
.welcome-visual img{ height:auto; width:auto; object-fit:contain; }
.welcome-visual img.animated-glow-logo{ height:110px; width:110px; }
.welcome-visual img:last-child{ height:64px; max-width:55%; }
@media (max-width:960px){
  .welcome{ grid-template-columns:1fr; } 
  .welcome-visual{ aspect-ratio:auto; max-height:none; min-height:180px; padding:24px 16px !important; flex-wrap:wrap; } 
  .welcome-visual img.animated-glow-logo{ height:80px !important; width:80px !important; }
  .welcome-visual img:last-child{ height:48px !important; max-width:75%; }
}
@media (max-width:480px){
  .welcome-visual{ gap:16px !important; padding:20px 12px !important; }
  .welcome-visual img.animated-glow-logo{ height:64px !important; width:64px !important; }
  .welcome-visual img:last-child{ height:38px !important; max-width:80%; }
}

/* ---------- Gallery Grid ---------- */
.gallery-grid{
  margin-top:40px; 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); 
  gap:24px;
}
.gallery-card{
  display:flex; 
  flex-direction:column;
  border:1px solid var(--line-soft); 
  border-radius:6px; 
  overflow:hidden; 
  background:var(--panel);
  transition:border-color 0.25s ease;
}
.gallery-card:hover{ border-color:var(--line); }
.gallery-img-wrap{
  position:relative;
  aspect-ratio:16/9; 
  overflow:hidden; 
  background:var(--black);
}
.gallery-card img{
  width:100%; 
  height:100%; 
  object-fit:cover; 
  transition:transform 0.3s ease;
}
.gallery-card:hover img{ transform:scale(1.05); }
.gallery-label{
  display:block;
  padding:18px 16px;
  text-align:center;
  font-size:15px;
  font-weight:500;
  color:var(--white);
  border-top:1px solid var(--line-soft);
  letter-spacing:0.02em;
}
.media-note{
  margin-top:24px;
  text-align:center;
  font-size:14px;
  color:var(--muted-soft);
  line-height:1.6;
}

/* ---------- Services Grid ---------- */
.services-grid{
  margin-top:48px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap:24px;
}
.service-col{
  padding:32px;
  background:var(--panel);
  border:1px solid var(--line-soft);
  border-radius:6px;
  transition:transform 0.25s ease, border-color 0.25s ease;
  display:flex; flex-direction:column;
}
.service-col:hover{
  border-color:var(--line);
  transform:translateY(-3px);
}
.service-head h3{ font-size:20px; line-height:1.3; margin-bottom:16px; }
.service-col ul{ list-style:none; margin-top:0; }
.service-col li{
  position:relative;
  color:var(--muted); font-size:14.5px; line-height:1.6;
  padding:10px 0 10px 18px; border-top:1px solid var(--line-soft);
}
.service-col li::before{
  content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:5px; height:5px; border-radius:50%; background:var(--muted-soft);
}
.service-col li:first-child{ border-top:none; }

/* ---------- Dark Statement ---------- */
.statement{
  padding: clamp(80px, 12vh, 140px) min(6vw, 64px);
  display:flex; align-items:center; justify-content:center;
  text-align:center;
}
.statement h2{ font-size:clamp(28px, 4.5vw, 48px); max-width:860px; line-height:1.25; }

/* ---------- Team Section ---------- */
.objectives{ background:var(--panel); border-top:1px solid var(--line-soft); }
.team-grid{ margin-top:48px; display:flex; flex-direction:column; gap:28px; }
.team-member{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:36px;
  align-items:center;
  max-width: 900px;
  margin: 0 auto;
  padding: 36px;
  background:var(--black); 
  border:1px solid var(--line-soft); 
  border-radius:6px;
  text-align:left;
  transition:border-color 0.25s ease;
}
.team-member:hover{ border-color:var(--line); }
.avatar{
  position:relative;
  width:150px; height:150px; border-radius:50%;
  border:1px solid var(--line);
  overflow:hidden;
  flex:none;
  margin:0;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.12));
  animation: avatarGlow 4s ease-in-out infinite;
}
.avatar::before{
  content:'';
  position:absolute; inset:-6px;
  border-radius:50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.15), rgba(255,255,255,0.85), rgba(255,255,255,0.15));
  z-index:-1;
  animation: spinRing 6s linear infinite;
}
.avatar::after{
  content:'';
  position:absolute; inset:-3px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.12);
}
.avatar img{ width:100%; height:100%; object-fit:cover; object-position:50% 20%; border-radius:50%; }
@keyframes spinRing{ to{ transform: rotate(360deg); } }
@keyframes avatarGlow{
  0%, 100%{ filter: drop-shadow(0 0 14px rgba(255,255,255,0.10)); }
  50%{ filter: drop-shadow(0 0 32px rgba(255,255,255,0.22)); }
}
.team-name{ font-size:20px; margin-bottom:4px; }
.team-role{ color:var(--muted-soft); font-size:13px; letter-spacing:0.04em; margin-bottom:14px; font-family:'IBM Plex Mono', monospace; }
.team-bio{
  color:var(--muted);
  font-size:15px;
  line-height:1.85;
  text-align:justify;
  text-align-last:left;
  hyphens:none;
  -webkit-hyphens:none;
  padding-left:24px;
  border-left:2px solid var(--line);
}
.bio-bar{
  height:3px;
  background:var(--line-soft);
  border-radius:2px;
  margin-top:22px;
  overflow:hidden;
}
.bio-bar span{
  display:block;
  height:100%;
  width:0;
  background: linear-gradient(90deg, var(--muted-soft), var(--white));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.objectives.in .bio-bar span{ width:100%; }
.linkedin-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  font-size:14px;
  font-weight:500;
  color:var(--white);
  padding:10px 18px;
  border:1px solid var(--line);
  border-radius:4px;
  transition: all .25s ease;
}
.linkedin-link:hover{
  background:var(--white);
  color:var(--black);
  border-color:var(--white);
}
.linkedin-link svg{
  width:16px;
  height:16px;
  fill:currentColor;
  flex-shrink:0;
}
@media (max-width:768px){
  .team-member{ grid-template-columns:1fr; text-align:center; padding:28px 20px; }
  .avatar{ width:130px; height:130px; margin:0 auto; }
  .team-bio{ text-align:left; padding-left:0; border-left:none; }
}

/* ---------- Closing CTA & Footer ---------- */
.closing{
  padding: clamp(90px, 14vh, 160px) min(6vw, 64px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; 
  text-align:center;
}
.closing h2{ font-size:clamp(26px, 4vw, 46px); max-width:840px; line-height:1.3; margin-bottom:36px; }

footer{
  padding:28px min(6vw, 64px); 
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--line-soft);
  font-size:12.5px; color:var(--muted-soft); letter-spacing:0.05em;
}
.footer-main{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.footer-credit{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--muted-soft); text-decoration:none;
  transition: color .25s ease;
}
.footer-credit:hover{ color:var(--white); }
.footer-credit img{ height:28px; width:auto; display:block; }
.footer-credit span{ white-space:nowrap; }
@media (max-width:640px){ 
  footer{ 
    flex-direction:row; 
    justify-content:space-between; 
    align-items:center; 
    padding:20px 16px; 
    font-size:11.5px; 
    gap:12px; 
    text-align:left; 
  } 
  .cta-row{ flex-direction:column; width:100%; }
  .btn{ width:100%; }
}
@media (max-width:400px){
  footer{
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:6px;
    text-align:center;
  }
}

.reveal{ opacity:0; transform:translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

.js .service-col,
.js .gallery-card{
  opacity:0; transform:translateY(20px);
  transition: opacity .7s ease, transform .7s ease, border-color .25s ease;
}
.js .service-col.in,
.js .gallery-card.in{
  opacity:1; transform:translateY(0);
}
.js .service-col:hover{ transform:translateY(-3px); }

@keyframes logoPulseGlow {
  0% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 1));
    transform: scale(1.06);
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    transform: scale(1);
  }
}
@keyframes lineMove {
  0% { background-position: center, 0% 50%; }
  100% { background-position: center, -100% 50%; }
}
.animated-glow-logo {
  animation: logoPulseGlow 3s infinite ease-in-out;
}
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } .animated-glow-logo{ animation:none; } }
