/* ============================================================
   Shafi Capital Consulting — Shared Stylesheet
   Design tokens: deep teal brand palette (from existing logo),
   Newsreader (display serif) + Inter (body) + IBM Plex Mono (labels/data),
   hexagon motif echoing the brand mark used as a restrained signature.
   ============================================================ */

:root{
  /* ---- Color ---- */
  --teal-900:#1F2F3E;   /* navy from logo wordmark — dark backgrounds + headings */
  --teal-700:#466D6F;   /* exact brand teal, sampled from the logo icon */
  --teal-600:#43686A;
  --teal-500:#699EA0;
  --teal-100:#EBEFF0;
  --teal-tint:#DCEAEA;  /* illustration background blobs */
  --coral:#EE6C4D;      /* primary CTA accent */
  --coral-dark:#D6502F;
  --ink:#1F2A30;
  --ink-soft:#535F60;
  --paper:#FBFAF6;
  --paper-dim:#F3F1E9;
  --line:#E1DED3;
  --gold:#AD8A4D;
  --white:#FFFFFF;

  /* ---- Type ---- */
  --font-display:"Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --font-body:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:"IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* ---- Layout ---- */
  --maxw:1180px;
  --radius:14px;
  --radius-pill:999px;
  --shadow-card:0 1px 2px rgba(31,47,62,0.06), 0 10px 28px rgba(31,47,62,0.08);
}

/* ---- Reset ---- */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:700;line-height:1.15;margin:0 0 0.5em;color:var(--teal-900);letter-spacing:-0.01em;}
p{margin:0 0 1em;}
:focus-visible{outline:2.5px solid var(--gold);outline-offset:3px;}

.container{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:14px;height:14px;
  background:var(--teal-700);
  clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0% 50%);
  display:inline-block;
}

/* ============== Header / Nav ============== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(251,250,246,0.94);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid var(--line);
}
.nav-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 24px;max-width:var(--maxw);margin:0 auto;
}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:600;font-size:19px;color:var(--teal-900);}
.brand img{height:38px;width:auto;}
.brand .fallback-mark{
  width:30px;height:30px;background:var(--teal-700);
  clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0% 50%);
  display:inline-block;
}
.nav-links{display:flex;align-items:center;gap:30px;}
.nav-links a{
  font-size:14.5px;font-weight:500;color:var(--ink-soft);
  padding:6px 0;border-bottom:2px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{color:var(--teal-700);border-color:var(--teal-700);}
.nav-cta{
  background:var(--coral);color:var(--white) !important;
  padding:10px 22px;border-radius:var(--radius-pill);font-weight:700;
  border:1px solid var(--coral);
}
.nav-cta:hover{background:var(--coral-dark);border-color:var(--coral-dark);}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:6px;}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--teal-900);margin:5px 0;}

@media (max-width:880px){
  .nav-links{
    position:absolute;top:100%;left:0;right:0;background:var(--paper);
    flex-direction:column;align-items:stretch;gap:0;
    border-bottom:1px solid var(--line);
    max-height:0;overflow:hidden;transition:max-height .25s ease;
  }
  .nav-links.open{max-height:420px;}
  .nav-links a{padding:14px 24px;border-bottom:1px solid var(--line);border-radius:0;}
  .nav-links a:hover{border-color:var(--line);background:var(--teal-100);}
  .nav-cta{margin:14px 24px;text-align:center;}
  .nav-toggle{display:block;}
}

/* ============== Buttons ============== */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-body);font-weight:700;font-size:15px;
  padding:14px 28px;border-radius:var(--radius-pill);
  border:1px solid transparent;cursor:pointer;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--coral);color:var(--white);border-color:var(--coral);}
.btn-primary:hover{background:var(--coral-dark);border-color:var(--coral-dark);}
.btn-ghost{background:transparent;color:var(--teal-700);border-color:var(--teal-700);}
.btn-ghost:hover{background:var(--teal-100);}
.btn-on-dark{border-color:var(--white);color:var(--white);}
.btn-on-dark:hover{background:var(--white);color:var(--teal-900);}

/* ============== Hero ============== */
.hero{position:relative;overflow:hidden;background:var(--teal-900);color:var(--white);}
.hero-bg{position:absolute;inset:0;}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:0.34;}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,74,69,0.55),rgba(11,74,69,0.92));}
.hero-inner{position:relative;padding:120px 24px 96px;max-width:var(--maxw);margin:0 auto;}
.hero h1{color:var(--white);font-size:clamp(32px,4.4vw,54px);max-width:780px;margin-bottom:22px;}
.hero p.lede{font-size:18px;max-width:600px;color:rgba(255,255,255,0.86);margin-bottom:34px;}
.hero-cta-row{display:flex;gap:14px;flex-wrap:wrap;}
.hero-note{
  margin-top:34px;font-size:13px;color:rgba(255,255,255,0.7);
  max-width:620px;line-height:1.6;border-left:2px solid var(--gold);padding-left:14px;
}
.hex-mark{
  position:absolute;right:-60px;top:-60px;width:340px;height:340px;
  border:1.5px solid rgba(255,255,255,0.12);
  clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0% 50%);
}

/* light split hero (text + illustration), matches reference site */
.hero-split{background:var(--paper);padding:64px 0 76px;}
.hero-split .container{display:grid;grid-template-columns:1.05fr 0.95fr;gap:40px;align-items:center;}
.hero-split h1{font-size:clamp(30px,4vw,46px);max-width:560px;color:var(--teal-900);}
.hero-split p.lede{font-size:17.5px;max-width:520px;color:var(--ink-soft);margin-bottom:30px;}
.hero-split .hero-note{
  margin-top:30px;font-size:13px;color:var(--ink-soft);
  max-width:560px;line-height:1.6;border-left:2px solid var(--coral);padding-left:14px;
}
.hero-split .art-wrap img{width:100%;height:auto;display:block;}
@media (max-width:880px){
  .hero-split .container{grid-template-columns:1fr;}
  .hero-split .art-wrap{order:-1;max-width:380px;margin:0 auto 12px;}
}

/* simpler page header for non-home pages */
.page-header{background:var(--teal-900);color:var(--white);position:relative;overflow:hidden;}
.page-header-inner{position:relative;padding:74px 24px 64px;max-width:var(--maxw);margin:0 auto;}
.page-header h1{color:var(--white);font-size:clamp(28px,3.6vw,42px);margin-bottom:10px;}
.page-header p{color:rgba(255,255,255,0.82);max-width:600px;font-size:16.5px;margin:0;}

/* ============== Sections ============== */
section{padding:80px 0;}
.section-tight{padding:56px 0;}
.section-alt{background:var(--paper-dim);}
.section-head{max-width:680px;margin:0 0 48px;}
.section-head h2{font-size:clamp(26px,3vw,36px);}
.divider{height:1px;background:var(--line);border:none;margin:0;}

/* ============== Cards / grids ============== */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;}
@media (max-width:880px){.grid-3{grid-template-columns:1fr;} .grid-2{grid-template-columns:1fr;gap:32px;}}

.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:32px 28px;box-shadow:var(--shadow-card);
}
.card .hex-bullet{
  width:34px;height:34px;background:var(--teal-100);color:var(--teal-700);
  clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0% 50%);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);font-weight:600;font-size:13px;margin-bottom:18px;
}
.card h3{font-size:19px;margin-bottom:10px;}
.card p{color:var(--ink-soft);font-size:15px;margin-bottom:0;}

.program-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-card);
}
.program-card .img-wrap{height:190px;overflow:hidden;}
.program-card .img-wrap img{width:100%;height:100%;object-fit:cover;}
.program-card .body{padding:26px 26px 28px;}
.program-card h3{font-size:21px;margin-bottom:10px;}
.program-card p{color:var(--ink-soft);font-size:15px;}
.feature-list{margin:18px 0 22px;}
.feature-list li{
  list-style:none;font-size:14.5px;color:var(--ink-soft);
  padding-left:20px;position:relative;margin-bottom:9px;
}
.feature-list li::before{
  content:"";position:absolute;left:0;top:7px;width:8px;height:8px;
  background:var(--teal-500);
  clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0% 50%);
}

/* ============== Disclosure / disclaimer boxes ============== */
.disclosure{
  background:var(--teal-100);border-left:3px solid var(--teal-700);
  padding:16px 20px;font-size:13.5px;color:var(--teal-900);line-height:1.6;border-radius:0 var(--radius) var(--radius) 0;
}
.disclosure strong{color:var(--teal-900);}

/* ============== Process steps (Get Started) ============== */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--white);}
.step{padding:30px 26px;border-right:1px solid var(--line);}
.step:last-child{border-right:none;}
.step .num{font-family:var(--font-mono);font-size:13px;color:var(--gold);letter-spacing:.1em;margin-bottom:10px;display:block;}
.step h3{font-size:17px;margin-bottom:8px;}
.step p{font-size:14px;color:var(--ink-soft);margin:0;}
@media (max-width:880px){.steps{grid-template-columns:1fr;} .step{border-right:none;border-bottom:1px solid var(--line);} .step:last-child{border-bottom:none;}}

.embed-block{
  border:1px solid var(--line);border-radius:var(--radius);background:var(--white);
  padding:28px;margin-top:18px;
}
.embed-placeholder{
  border:1.5px dashed var(--line);border-radius:var(--radius);
  padding:40px 24px;text-align:center;color:var(--ink-soft);font-size:14px;background:var(--paper-dim);
}
.embed-placeholder code{font-family:var(--font-mono);font-size:12.5px;background:var(--white);padding:3px 7px;border:1px solid var(--line);}

/* ============== Forms ============== */
.field{margin-bottom:18px;}
.field label{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px;color:var(--teal-900);}
.field input,.field textarea,.field select{
  width:100%;font-family:var(--font-body);font-size:15px;padding:11px 13px;
  border:1px solid var(--line);border-radius:var(--radius);background:var(--white);color:var(--ink);
}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--teal-500);}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:600px){.field-row{grid-template-columns:1fr;}}

/* ============== Footer ============== */
.site-footer{background:var(--teal-900);color:rgba(255,255,255,0.78);padding:64px 0 28px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;margin-bottom:40px;}
@media (max-width:880px){.footer-grid{grid-template-columns:1fr;gap:30px;}}
.footer-grid h4{color:var(--white);font-family:var(--font-mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:14px;font-weight:600;}
.footer-grid p, .footer-grid a{font-size:14px;line-height:1.7;color:rgba(255,255,255,0.78);}
.footer-grid a:hover{color:var(--white);}
.footer-brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-size:18px;color:var(--white);margin-bottom:14px;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.14);padding-top:24px;font-size:12.5px;color:rgba(255,255,255,0.55);line-height:1.7;}
.footer-bottom p{margin-bottom:10px;}

/* ============== Utility ============== */
.text-center{text-align:center;}
.mt-0{margin-top:0;}
.small{font-size:13.5px;color:var(--ink-soft);}

/* ============== Motion ============== */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease, transform .6s ease;}
.reveal.is-visible{opacity:1;transform:translateY(0);}
.reveal-stagger.is-visible .reveal-child:nth-child(1){transition-delay:.05s;}
.reveal-stagger.is-visible .reveal-child:nth-child(2){transition-delay:.15s;}
.reveal-stagger.is-visible .reveal-child:nth-child(3){transition-delay:.25s;}

@keyframes floaty{
  0%,100%{transform:translateY(0px);}
  50%{transform:translateY(-12px);}
}
.float-art{animation:floaty 5s ease-in-out infinite;}

@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  .float-art{animation:none;}
}
