/*
Theme Name: Henderson Capital
Theme URI: https://hendersoncapital.co.za
Author: Focal Technologies
Author URI: https://focal-tech.net
Description: Premium investment and insurance theme for Henderson Capital
Version: 1.0.0
License: Private
Text Domain: henderson-capital
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal:       #141414;
  --charcoal-mid:   #1e1e1e;
  --charcoal-light: #2a2a2a;
  --charcoal-card:  #222222;
  --gold:           #C9A84C;
  --gold-light:     #E5C87A;
  --gold-dim:       #7a6228;
  --gold-pale:      rgba(201,168,76,0.12);
  --white:          #F5F0E8;
  --muted:          #888;
  --border:         rgba(201,168,76,0.2);
}

html { scroll-behavior: smooth; }
body { background: var(--charcoal); color: var(--white); font-family: 'Jost', sans-serif; font-weight: 300; overflow-x: hidden; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* NAV */
nav.site-nav { position: fixed; top: 0; width: 100%; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 5%; background: rgba(20,20,20,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text span:first-child { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; letter-spacing: .18em; color: var(--gold); }
.logo-text span:last-child { font-size: .55rem; font-weight: 400; letter-spacing: .35em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .25s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width .3s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--charcoal); background: var(--gold); padding: .6rem 1.5rem; text-decoration: none; transition: background .25s; font-weight: 500; }
.nav-cta:hover { background: var(--gold-light); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 24px; height: 1px; background: var(--gold); display: block; }

/* HERO */
#hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 0 5%; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 50%), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,20,20,0.97) 45%, rgba(20,20,20,0.6) 100%); }
.hero-line { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: 2px; height: 0; background: var(--gold); animation: lineGrow 1.2s ease forwards .4s; }
@keyframes lineGrow { to { height: 220px; } }
.hero-content { position: relative; z-index: 1; max-width: 680px; padding-left: 32px; animation: fadeUp .9s ease forwards; opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; font-weight: 400; display: block; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 300; line-height: 1.08; color: var(--white); margin-bottom: 1.8rem; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: .95rem; line-height: 1.8; color: #a0a0a0; max-width: 480px; margin-bottom: 2.8rem; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { position: absolute; right: 5%; bottom: 8%; display: flex; gap: 3rem; z-index: 1; animation: fadeUp .9s ease forwards .3s; opacity: 0; }
.stat { text-align: center; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-label { font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

/* BUTTONS */
.btn-primary { display: inline-block; background: var(--gold); color: var(--charcoal); padding: .9rem 2.4rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; font-weight: 600; transition: background .25s, transform .2s; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--charcoal); }
.btn-ghost { display: inline-block; border: 1px solid var(--border); color: var(--gold); padding: .9rem 2.4rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; font-weight: 400; transition: border-color .25s, background .25s; }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-pale); }

/* SECTIONS */
section { padding: 7rem 5%; }
.section-label { font-size: .62rem; letter-spacing: .45em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.15; color: var(--white); margin-bottom: 1rem; }
.section-subtitle { font-size: .9rem; color: var(--muted); line-height: 1.8; max-width: 540px; }
.gold-rule { width: 48px; height: 1px; background: var(--gold); margin: 2rem 0; }

/* DEPARTMENTS */
#departments { background: var(--charcoal-mid); }
.dept-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; flex-wrap: wrap; gap: 2rem; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5px; }
.dept-card { background: var(--charcoal-card); padding: 3rem 2.5rem; border: 1px solid transparent; position: relative; overflow: hidden; transition: border-color .3s, transform .3s; }
.dept-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.dept-card:hover { border-color: var(--border); transform: translateY(-4px); }
.dept-card:hover::before { transform: scaleX(1); }
.dept-icon { width: 44px; height: 44px; margin-bottom: 1.8rem; color: var(--gold); opacity: .85; }
.dept-num { position: absolute; top: 2rem; right: 2rem; font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300; color: rgba(201,168,76,0.06); line-height: 1; }
.dept-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: var(--white); margin-bottom: .8rem; }
.dept-desc { font-size: .85rem; line-height: 1.75; color: var(--muted); }
.dept-link { display: inline-block; margin-top: 1.6rem; font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px; transition: border-color .25s; }
.dept-link:hover { color: var(--gold-light); }

/* NEWS */
#news { background: var(--charcoal); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.news-card { background: var(--charcoal-card); border: 1px solid var(--border); overflow: hidden; transition: transform .3s, border-color .3s; }
.news-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.news-card-img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--charcoal-light); }
.news-card-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--charcoal-light), var(--charcoal-mid)); display: flex; align-items: center; justify-content: center; color: var(--gold-dim); font-size: 2rem; }
.news-card-body { padding: 1.8rem; }
.news-card-date { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; display: block; }
.news-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--white); margin-bottom: .8rem; line-height: 1.3; }
.news-card-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.news-card-link { display: inline-block; margin-top: 1.2rem; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px; }
.news-empty { color: var(--muted); font-size: .9rem; padding: 2rem 0; }

/* CASE STUDIES */
#case-studies { background: var(--charcoal-mid); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.case-card { background: var(--charcoal-card); border: 1px solid var(--border); overflow: hidden; transition: transform .3s, border-color .3s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.case-card-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.case-card-img-placeholder { width: 100%; height: 220px; background: linear-gradient(135deg, var(--charcoal-light), var(--charcoal)); display: flex; align-items: center; justify-content: center; color: var(--gold-dim); }
.case-card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.case-tag { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; display: block; }
.case-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--white); margin-bottom: .8rem; line-height: 1.3; }
.case-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.7; flex: 1; }
.case-link { display: inline-block; margin-top: 1.4rem; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px; }
.case-empty { color: var(--muted); font-size: .9rem; padding: 2rem 0; }

/* INSURANCE LEAD GEN */
#insurance { background: var(--charcoal); position: relative; overflow: hidden; }
#insurance::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%); pointer-events: none; }
.insurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.insurance-features { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.ins-feature { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem; border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.ins-feature:hover { border-color: var(--gold); background: var(--gold-pale); }
.ins-feature-icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--gold); }
.ins-feature-text h4 { font-size: .85rem; font-weight: 500; color: var(--white); margin-bottom: .3rem; }
.ins-feature-text p { font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* LEAD FORM */
.lead-form-wrap { background: var(--charcoal-card); border: 1px solid var(--border); }
.form-header { background: var(--gold); padding: 1.8rem 2.5rem; }
.form-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--charcoal); margin-bottom: .3rem; }
.form-header p { font-size: .78rem; color: rgba(20,20,20,0.65); }
.progress-wrap { padding: 1.5rem 2.5rem 0; }
.progress-steps { display: flex; gap: 0; margin-bottom: .6rem; }
.progress-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.progress-step:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: 50%; width: 100%; height: 1px; background: var(--charcoal-light); z-index: 0; }
.progress-step.active:not(:last-child)::after, .progress-step.done:not(:last-child)::after { background: var(--gold); }
.step-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--charcoal-light); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .6rem; color: var(--muted); z-index: 1; position: relative; transition: all .3s; }
.progress-step.active .step-dot { background: var(--gold); border-color: var(--gold); color: var(--charcoal); font-weight: 700; }
.progress-step.done .step-dot { background: var(--gold-dim); border-color: var(--gold-dim); color: var(--white); }
.step-label { font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; text-align: center; }
.progress-step.active .step-label { color: var(--gold); }
.form-body { padding: 2rem 2.5rem 2.5rem; }
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.step-question { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--white); margin-bottom: 1.4rem; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.5rem; }
.option-btn { border: 1px solid var(--border); background: transparent; color: var(--muted); padding: .9rem .8rem; font-family: 'Jost', sans-serif; font-size: .78rem; letter-spacing: .05em; cursor: pointer; text-align: left; transition: all .25s; display: flex; align-items: center; gap: .6rem; }
.option-btn:hover { border-color: var(--gold); color: var(--white); background: var(--gold-pale); }
.option-btn.selected { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.option-btn svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.form-group input, .form-group select { width: 100%; background: var(--charcoal-light); border: 1px solid var(--border); color: var(--white); padding: .85rem 1rem; font-family: 'Jost', sans-serif; font-size: .88rem; font-weight: 300; outline: none; transition: border-color .25s; appearance: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--gold); }
.form-group select option { background: var(--charcoal-mid); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.btn-next, .btn-submit { background: var(--gold); color: var(--charcoal); border: none; padding: .85rem 2rem; font-family: 'Jost', sans-serif; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: background .25s; margin-left: auto; }
.btn-next:hover, .btn-submit:hover { background: var(--gold-light); }
.btn-back { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: .85rem 1.5rem; font-family: 'Jost', sans-serif; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: all .25s; }
.btn-back:hover { border-color: var(--gold); color: var(--gold); }
.form-success { display: none; text-align: center; padding: 3rem 2rem; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 1.5rem; border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.form-success h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 400; color: var(--white); margin-bottom: .8rem; }
.form-success p { font-size: .85rem; color: var(--muted); line-height: 1.75; }

/* PARTNERS */
#partners { background: var(--charcoal-mid); }
.partners-header { text-align: center; margin-bottom: 4rem; }
.partners-header .gold-rule { margin: 1rem auto; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5px; }
.partner-card { background: var(--charcoal-card); padding: 2.2rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid transparent; transition: border-color .3s, background .3s; min-height: 130px; }
.partner-card:hover { border-color: var(--border); background: var(--charcoal-light); }
.partner-initial { width: 50px; height: 50px; border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 1rem; transition: background .3s; }
.partner-card:hover .partner-initial { background: var(--gold-pale); }
.partner-name { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.partners-note { text-align: center; margin-top: 3rem; font-size: .75rem; color: var(--gold-dim); letter-spacing: .1em; }

/* ABOUT STRIP */
#about { background: var(--gold); padding: 5rem 5%; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.about-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; color: var(--charcoal); line-height: 1.2; }
.about-text p { font-size: .88rem; color: rgba(20,20,20,0.65); line-height: 1.8; max-width: 500px; margin-top: .8rem; }
.about-cta { display: inline-block; flex-shrink: 0; background: var(--charcoal); color: var(--gold); padding: 1rem 2.5rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; font-weight: 500; transition: background .25s; }
.about-cta:hover { background: #2a2a2a; }

/* FOOTER */
footer.site-footer { background: #0d0d0d; padding: 4rem 5% 2rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(201,168,76,0.1); }
.footer-brand p { font-size: .8rem; color: var(--muted); line-height: 1.8; margin-top: 1rem; max-width: 280px; }
.footer-col h5 { font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { font-size: .8rem; color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .7rem; color: #555; letter-spacing: .05em; }
.fsca-note { font-size: .65rem; color: #555; text-align: right; line-height: 1.6; }
.fsca-note strong { color: var(--gold); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .insurance-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { position: static; margin-top: 3rem; justify-content: flex-start; }
  #hero { flex-direction: column; justify-content: center; padding-top: 6rem; }
  .hero-content { padding-left: 20px; }
  #about { flex-direction: column; }
}
@media (max-width: 600px) {
  .option-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .cases-grid { grid-template-columns: 1fr; }
}

/* TEAM GRID */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.team-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.partner-logo-svg { width: 150px; height: 56px; opacity: .85; transition: opacity .3s; }
.partner-card:hover .partner-logo-svg { opacity: 1; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; gap: 3rem; } }