/* ==========================================================================
   YMH LLC — design tokens
   ========================================================================== */
:root{
  --bg:#f6f8f9;
  --surface:#ffffff;
  --surface-2:#eef2f3;
  --border:#dce3e6;
  --text:#142a33;
  --text-muted:#4e6069;
  --text-faint:#7c8b92;

  --navy:#0f2a3d;
  --navy-2:#16394f;
  --on-navy:#eaf1f3;
  --on-navy-muted:#aec3cc;

  --teal:#0e7c86;
  --teal-strong:#0b646c;
  --teal-soft:#e3f1f1;
  --amber:#c96a1d;
  --amber-soft:#faedde;

  --shadow: 0 1px 2px rgba(15,42,61,.06), 0 10px 30px rgba(15,42,61,.07);
  --radius: 12px;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0a1520;
    --surface:#10202b;
    --surface-2:#162934;
    --border:#223642;
    --text:#e7eef1;
    --text-muted:#a9b8bf;
    --text-faint:#76868d;

    --navy:#081722;
    --navy-2:#0e2431;
    --on-navy:#eaf1f3;
    --on-navy-muted:#9fb4bd;

    --teal:#55c6cf;
    --teal-strong:#7ad8df;
    --teal-soft:#123338;
    --amber:#eaa15c;
    --amber-soft:#2c2013;

    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"]{
  --bg:#0a1520;
  --surface:#10202b;
  --surface-2:#16293d;
  --border:#223642;
  --text:#e7eef1;
  --text-muted:#a9b8bf;
  --text-faint:#76868d;

  --navy:#081722;
  --navy-2:#0e2431;
  --on-navy:#eaf1f3;
  --on-navy-muted:#9fb4bd;

  --teal:#55c6cf;
  --teal-strong:#7ad8df;
  --teal-soft:#123338;
  --amber:#eaa15c;
  --amber-soft:#2c2013;

  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.4);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Source Sans 3', system-ui, -apple-system, sans-serif;
  font-size:16.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--teal-strong); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4{
  font-family:'Libre Franklin', system-ui, sans-serif;
  font-weight:700;
  line-height:1.18;
  color:var(--text);
  text-wrap:balance;
  margin:0 0 .5em;
}
p{ margin:0 0 1em; color:var(--text-muted); max-width:68ch; }
.mono{ font-family:'IBM Plex Mono', ui-monospace, monospace; }
.container{ max-width:1120px; margin:0 auto; padding:0 24px; }
section{ padding:72px 0; }
:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration:.01ms !important; transition-duration:.01ms !important; } }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--navy);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; max-width:1120px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:'Libre Franklin', sans-serif; font-weight:700; font-size:19px;
  color:var(--on-navy);
}
.brand:hover{ text-decoration:none; }
.brand-mark{ width:30px; height:30px; flex:none; }
.brand small{
  display:block; font-family:'Source Sans 3', sans-serif; font-weight:400;
  font-size:11px; letter-spacing:.03em; color:var(--on-navy-muted);
}
nav.primary ul{ list-style:none; display:flex; gap:4px; margin:0; padding:0; }
nav.primary a{
  color:var(--on-navy-muted); font-size:14.5px; font-weight:600;
  padding:9px 14px; border-radius:8px; display:block;
}
nav.primary a:hover{ color:var(--on-navy); background:rgba(255,255,255,.06); text-decoration:none; }
nav.primary a[aria-current="page"]{ color:var(--on-navy); background:rgba(255,255,255,.1); }
.nav-toggle{
  display:none; background:none; border:1px solid rgba(255,255,255,.25);
  border-radius:8px; color:var(--on-navy); width:40px; height:36px; cursor:pointer;
}
@media (max-width:760px){
  .nav-toggle{ display:block; }
  nav.primary{
    position:absolute; top:100%; left:0; right:0; background:var(--navy);
    border-bottom:1px solid rgba(255,255,255,.08);
    max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  nav.primary.open{ max-height:400px; }
  nav.primary ul{ flex-direction:column; padding:8px 24px 16px; gap:2px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  background:linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color:var(--on-navy);
  padding:76px 0 96px;
  position:relative;
  overflow:hidden;
}
.hero .container{
  display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;
}
@media (max-width:860px){ .hero .container{ grid-template-columns:1fr; } }
.kicker{
  font-family:'IBM Plex Mono', monospace; font-size:12.5px; letter-spacing:.09em;
  text-transform:uppercase; color:var(--teal-strong); margin:0 0 14px; font-weight:600;
}
.hero h1{ color:#fff; font-size:clamp(30px, 4.4vw, 46px); }
.hero p.lede{ color:var(--on-navy-muted); font-size:18px; max-width:52ch; }
.hero-actions{ display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.hero-art{ width:100%; height:auto; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; font-size:15px; padding:12px 22px; border-radius:9px;
  border:1px solid transparent; cursor:pointer;
}
.btn-primary{ background:var(--teal); color:#04211f; }
.btn-primary:hover{ background:var(--teal-strong); text-decoration:none; }
.btn-ghost{ background:transparent; color:var(--on-navy); border-color:rgba(255,255,255,.3); }
.btn-ghost:hover{ background:rgba(255,255,255,.08); text-decoration:none; }
.btn-solid{ background:var(--navy); color:#fff; }
.btn-solid:hover{ background:var(--navy-2); text-decoration:none; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats{
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
.stats .container{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--border); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transform:translateY(-40px);
  box-shadow:var(--shadow);
}
@media (max-width:700px){ .stats .container{ grid-template-columns:repeat(2,1fr); } }
.stat-cell{ background:var(--surface); padding:22px 18px; text-align:center; }
.stat-num{ font-family:'Libre Franklin', sans-serif; font-weight:700; font-size:30px; color:var(--teal-strong); }
.stat-label{ font-size:13px; color:var(--text-faint); margin-top:4px; }

/* ==========================================================================
   Section titles
   ========================================================================== */
.section-head{ max-width:64ch; margin-bottom:40px; }
.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--teal-strong); font-weight:600; margin:0 0 10px;
}
.section-head h2{ font-size:clamp(24px,3vw,32px); }
.section-head p{ font-size:16.5px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .card-grid{ grid-template-columns:1fr; } }
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px 24px; box-shadow:var(--shadow);
}
.card h3{ font-size:18px; margin-bottom:10px; }
.card p{ font-size:14.5px; margin-bottom:0; }
.card-icon{
  width:40px; height:40px; border-radius:9px; background:var(--teal-soft); color:var(--teal-strong);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px; flex:none;
}

.product-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:760px){ .product-grid{ grid-template-columns:1fr; } }
.product-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 28px; box-shadow:var(--shadow);
}
.product-card .tag{
  display:inline-block; font-family:'IBM Plex Mono', monospace; font-size:11.5px;
  letter-spacing:.04em; color:var(--amber); background:var(--amber-soft);
  padding:4px 10px; border-radius:99px; margin-bottom:14px;
}
.product-card h3{ font-size:22px; }
.product-card .name{ font-family:'Libre Franklin', sans-serif; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  background:var(--navy); color:var(--on-navy);
  border-radius:var(--radius); padding:44px 40px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; font-size:24px; margin-bottom:6px; }
.cta-band p{ color:var(--on-navy-muted); margin-bottom:0; }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-hero{
  background:var(--surface-2); border-bottom:1px solid var(--border);
  padding:56px 0 40px;
}
.page-hero h1{ font-size:clamp(26px,3.6vw,36px); }
.page-hero p{ font-size:16.5px; max-width:60ch; }

/* ==========================================================================
   Services page
   ========================================================================== */
.service-block{
  border:1px solid var(--border); border-radius:var(--radius); background:var(--surface);
  box-shadow:var(--shadow); padding:30px 30px 8px; margin-bottom:22px;
}
.service-block h3{ font-size:20px; }
.service-block .lede{ font-size:15px; }
.service-block ul{ margin:0 0 22px; padding-left:1.15em; columns:2; column-gap:32px; }
@media (max-width:700px){ .service-block ul{ columns:1; } }
.service-block li{ font-size:14.5px; color:var(--text-muted); margin-bottom:9px; break-inside:avoid; }

.pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 0; }
.pill{
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--teal-strong);
  background:var(--teal-soft); border-radius:99px; padding:5px 12px;
}

.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:760px){ .two-col{ grid-template-columns:1fr; } }
.info-block{
  border:1px solid var(--border); border-radius:var(--radius); background:var(--surface);
  padding:26px 26px; box-shadow:var(--shadow);
}
.info-block h3{ font-size:17px; }
.info-block p, .info-block ul{ font-size:14.5px; }
.info-block ul{ padding-left:1.15em; margin:0; }
.info-block li{ margin-bottom:8px; color:var(--text-muted); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:760px){ .team-grid{ grid-template-columns:1fr; } }
.member{
  border:1px solid var(--border); border-radius:var(--radius); background:var(--surface);
  padding:26px 26px; box-shadow:var(--shadow);
}
.member-top{ display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.avatar{
  width:52px; height:52px; border-radius:50%; flex:none;
  background:linear-gradient(135deg, var(--teal) 0%, var(--navy-2) 100%);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:'Libre Franklin', sans-serif; font-weight:700; font-size:17px;
}
.member h3{ font-size:17px; margin-bottom:2px; }
.member .role{ font-size:13px; color:var(--teal-strong); font-weight:600; }
.member p{ font-size:14.5px; margin-bottom:0; }

/* ==========================================================================
   Vision
   ========================================================================== */
.statement{
  font-family:'Libre Franklin', sans-serif; font-weight:600; font-size:clamp(20px,2.6vw,26px);
  line-height:1.4; color:var(--text); max-width:44ch; margin-bottom:8px;
  border-left:3px solid var(--teal); padding-left:22px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-frame-wrap{
  border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  background:var(--surface); box-shadow:var(--shadow);
}
.contact-frame-wrap iframe{ width:100%; height:900px; border:0; display:block; background:#fff; }
.contact-fallback{ font-size:14px; padding:16px 20px; color:var(--text-muted); }

/* ==========================================================================
   Privacy
   ========================================================================== */
.legal p{ max-width:74ch; font-size:15px; }
.legal .meta{ font-size:13px; color:var(--text-faint); margin-bottom:26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background:var(--navy); color:var(--on-navy-muted); padding:44px 0 28px; margin-top:80px; }
.footer-top{ display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:24px; }
.footer-brand{ color:var(--on-navy); font-family:'Libre Franklin', sans-serif; font-weight:700; font-size:16px; }
.footer-nav{ display:flex; gap:18px; flex-wrap:wrap; }
.footer-nav a{ color:var(--on-navy-muted); font-size:13.5px; }
.footer-nav a:hover{ color:var(--on-navy); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1); padding-top:18px;
  font-size:12.5px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
