/* =================================================================
   LMS FinTax — design system
   Display: Space Grotesk  |  Body: Hanken Grotesk  |  Figures: IBM Plex Mono
   Palette: emerald + gold on a soft near-white. Built to read as a
   startup-finance specialist, not a generic CA template.
   ================================================================= */

:root {
  --ink:        #0C1B16;
  --ink-soft:   #41534B;
  --ink-faint:  #5C6B64;

  --emerald:    #0E5C45;
  --emerald-700:#0B4836;
  --emerald-900:#072E22;
  --emerald-tint:#E7F0EC;

  --gold:       #B97E1F;
  --gold-deep:  #8C5E12;
  --gold-soft:  #E6B85C;
  --gold-tint:  #F7EFDD;

  --error:      #B3261E;

  --surface:    #F5F8F6;
  --surface-2:  #ECF1EE;
  --white:      #FFFFFF;
  --line:       #DBE4DF;

  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(7,46,34,.06), 0 2px 8px rgba(7,46,34,.05);
  --shadow-md: 0 8px 30px rgba(7,46,34,.10);
  --shadow-lg: 0 24px 60px rgba(7,46,34,.16);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1rem; }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1rem; padding-left: 1.1rem; }
li { margin-bottom: .4rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ---------- utility / structural ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-left: auto; margin-right: auto; }
.center .eyebrow { display: inline-flex; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg.btn-ico { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.btn--primary { background: var(--emerald); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--emerald-700); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--emerald); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--emerald); background: var(--white); }
.btn--light { background: var(--gold-soft); color: var(--emerald-900); }
.btn--light:hover { background: #f0c87a; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,248,246,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { height: 32px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-tagline { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; color: var(--gold-deep); display: block; }
.footer-brand .brand .logo { height: 30px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--emerald);
  color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.15);
}
.brand small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; color: var(--gold-deep); display: block; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-dropdown-btn { color: var(--ink-soft); font-weight: 500; font-size: .96rem; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.nav-links a:hover, .nav-dropdown-btn:hover, .nav-dropdown-btn[aria-expanded="true"] { color: var(--emerald); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown-menu { 
  position: absolute; top: 100%; left: -1rem; background: var(--white); border: 1px solid var(--line); 
  border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: .8rem 0; list-style: none; margin: .5rem 0 0; 
  min-width: 260px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s cubic-bezier(.2,.7,.3,1); 
  z-index: 100;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { margin: 0; }
.dropdown-menu a { display: block; padding: .6rem 1.2rem; font-size: .92rem; }
.dropdown-menu a:hover { background: var(--surface-2); color: var(--emerald); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); display: block; transition: transform .3s ease, opacity .3s ease; transform-origin: center; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem,6vw,5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { color: var(--emerald); }
.hero .underline { position: relative; white-space: nowrap; }
.hero .underline::after { content:""; position:absolute; left:0; right:0; bottom:.08em; height:.28em; background: var(--gold-tint); z-index:-1; border-radius: 3px; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint); letter-spacing: .03em; }

/* signature: compliance tracker card */
.tracker {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 1.4rem; position: relative; overflow: hidden;
  color: var(--ink);
}
.tracker::before { content:""; position:absolute; inset:0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--emerald), var(--gold-soft)); }
.tracker-head { display:flex; align-items:center; justify-content:space-between; margin: .4rem 0 1rem; }
.tracker-head h3 { margin:0; font-size: 1rem; }
.tracker-head .fy { font-family: var(--font-mono); font-size:.72rem; background: var(--emerald-tint); color: var(--emerald-700); padding:.25rem .55rem; border-radius:6px; letter-spacing:.06em; border: 1px solid rgba(11,72,54,.12); }
.track-row { display:flex; align-items:center; gap:.8rem; padding:.7rem 0; border-top:1px solid var(--surface-2); }
.track-row:first-of-type { border-top: none; }
.tick { width:22px; height:22px; border-radius:50%; flex:0 0 auto; display:grid; place-items:center; font-size:.7rem; font-weight:700; }
.tick--done { background: var(--emerald); color:#fff; }
.tick--due  { background: var(--gold-tint); color: var(--gold-deep); border:1.5px solid var(--gold-soft); }
.tick--wait { background: var(--surface-2); color: var(--ink-soft); }
.track-row .label { flex:1; font-weight:500; font-size:.95rem; color: var(--ink); }
.track-row .meta { font-family: var(--font-mono); font-size:.72rem; color: var(--ink-soft); }
.track-foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--surface-2); display:flex; align-items:center; justify-content:space-between; font-size:.85rem; }
.track-foot strong { font-family: var(--font-mono); color: var(--emerald); }

/* ---------- stat / trust bar ---------- */
.trustbar { background: var(--emerald-900); color: #eaf3ef; }
.trustbar .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding-top: 2.2rem; padding-bottom: 2.2rem; }
.stat .num { font-family: var(--font-mono); font-size: clamp(1.6rem,3vw,2.2rem); color: #fff; font-weight: 500; }
.stat .num b { color: var(--gold-soft); font-weight: 500; }
.stat .lbl { font-size: .82rem; color: #b9d2c8; letter-spacing: .02em; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.4rem; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--emerald-tint); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--emerald-tint); color: var(--emerald); display: grid; place-items: center; margin-bottom: .9rem; font-size: 1.1rem; }
.card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.card p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .9rem; }
.card .more { margin-top: auto; font-family: var(--font-display); font-weight: 500; font-size: .9rem; }
.card .more::after { content: " →"; }

.card--feature { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.card--feature h3, .card--feature p { color: #fff; }
.card--feature .ico { background: rgba(255,255,255,.12); color: var(--gold-soft); }
.card--feature .tagline { font-family: var(--font-mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color: var(--gold-soft); margin-bottom:.6rem; }
.card--feature a { color: #fff; }

/* niche / who-we-help pills */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { font-family: var(--font-mono); font-size: .8rem; padding: .45rem .85rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); }
.pill b { color: var(--emerald); }

/* split feature band */
.band { background: var(--emerald-900); color: #e9f2ee; border-radius: var(--r-lg); padding: clamp(2rem,4vw,3.2rem); }
.band h2 { color: #fff; }
.band .lead { color: #bcd4ca; }
.band .check { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.band .check li { position: relative; padding-left: 1.8rem; }
.band .check li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-soft); font-weight: 700; }

/* ---------- service-page layout ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-faint); padding: 1rem 0 0; letter-spacing: .03em; }
.breadcrumb a { color: var(--ink-faint); }
.svc-hero { padding: 1.5rem 0 0; }
.svc-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); background: var(--surface-2); }
.prose .price { font-family: var(--font-mono); color: var(--emerald); font-weight: 500; }
.aside { position: sticky; top: 90px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.aside h3 { font-size: 1.1rem; }
.aside .price-tag { font-family: var(--font-mono); font-size: 1.6rem; color: var(--emerald); margin: .2rem 0 .2rem; }
.aside .price-tag small { font-size: .8rem; color: var(--ink-faint); }
.aside ul { list-style: none; padding: 0; margin: 1rem 0; }
.aside ul li { padding-left: 1.5rem; position: relative; font-size: .9rem; margin-bottom: .5rem; }
.aside ul li::before { content:"✓"; position:absolute; left:0; color: var(--emerald); font-weight:700; }
.aside .btn { width: 100%; justify-content: center; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--emerald); font-size: 1.3rem; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.1rem; color: var(--ink-soft); }

/* ---------- testimonials ---------- */
.quote { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold-soft); border-radius: var(--r-md); padding: 1.5rem; }
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote .by { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--emerald) 0%, var(--emerald-900) 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(2.4rem,5vw,4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #c6ddd3; margin-bottom: 1.6rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- forms (contact) ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: var(--emerald); }
.field input.invalid, .field select.invalid { border-color: var(--error); }
.field-error { color: var(--error); font-size: .82rem; margin: .4rem 0 0; }
.phone-group { display: flex; gap: .5rem; }
.phone-group select { flex: 0 0 9.5rem; width: auto; }
.phone-group input { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .phone-group { flex-wrap: wrap; }
  .phone-group select { flex: 1 1 100%; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--emerald-900); color: #cfe0d8; padding: clamp(3rem,5vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); font-weight: 500; margin-bottom: 1rem; }
.site-footer a { color: #cfe0d8; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand p { color: #a9c4ba; font-size: .92rem; max-width: 34ch; }
.social-row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e9f2ee;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
}
.social-row a:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--emerald-900); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom a { color: inherit; }

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--emerald); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .18s ease, background .2s ease;
}
.wa-fab:hover { background: var(--emerald-700); transform: translateY(-3px) scale(1.04); text-decoration: none; }
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 560px) { .wa-fab { right: 1rem; bottom: 1rem; width: 50px; height: 50px; } .wa-fab svg { width: 25px; height: 25px; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: #9bb8ad; font-family: var(--font-mono); }
.footer-disclaimer { font-size: .76rem; color: #88a89c; margin-top: 1rem; max-width: 70ch; }

/* ---------- motion on load ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .svc-layout, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .trustbar .container { grid-template-columns: repeat(2,1fr); }
  .aside { position: static; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-header .nav-links { display: none; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--white); padding: 1.5rem var(--gap); gap: 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); animation: slideDown .3s ease forwards; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
  .has-dropdown { width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 1rem; margin-top: 1rem; min-width: auto; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-dropdown.active .dropdown-menu { display: block; animation: slideDown .3s ease forwards; }
  .has-dropdown:hover .dropdown-menu { transform: none; }
  .footer-grid { gap: 1.6rem; }
}
@media (max-width: 560px) {
  .grid-4, .grid-2, .trustbar .container { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .brand-tagline { display: none; }
  .brand .logo { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 4px; }

/* Hide mobile-only links on desktop */
@media (min-width: 921px) {
  .mobile-only {
    display: none !important;
  }
}

