/* ==========================================================================
   ערן מהסרי — רואה חשבון | Boutique CPA site
   styles.css — design system, layout, components (RTL, dark-luxury)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Dark luxury palette (default) */
  --bg:            #0E1A2B;   /* deep navy */
  --bg-2:          #0A0F16;   /* charcoal  */
  --surface:       #16263B;   /* cards */
  --surface-2:     #1E3148;   /* raised cards */
  --line:          rgba(201,162,75,.16);
  --line-strong:   rgba(201,162,75,.34);

  --text:          #E8EDF4;
  --text-muted:    #A9B7C9;
  --text-faint:    #74859B;

  --gold:          #C9A24B;
  --gold-2:        #E4C778;
  --gold-grad:     linear-gradient(135deg,#C9A24B 0%,#E4C778 55%,#B98F3C 100%);
  --teal:          #3E8E8A;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.25);
  --shadow:    0 14px 40px -12px rgba(0,0,0,.55);
  --shadow-gold: 0 18px 48px -18px rgba(201,162,75,.45);

  --radius:   18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --font-head: "Rubik", system-ui, "Segoe UI", Arial, sans-serif;
  --font-body: "Assistant", system-ui, "Segoe UI", Arial, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* Light theme */
:root[data-theme="light"] {
  --bg:            #F7F5F0;
  --bg-2:          #EFEBE2;
  --surface:       #FFFFFF;
  --surface-2:     #FBF8F1;
  --line:          rgba(20,38,59,.12);
  --line-strong:   rgba(176,138,52,.45);

  --text:          #16263B;
  --text-muted:    #4A5A6E;
  --text-faint:    #7A8798;

  --gold:          #A9832E;
  --gold-2:        #C9A24B;
  --gold-grad:     linear-gradient(135deg,#A9832E 0%,#C9A24B 55%,#8C6A23 100%);

  --shadow-sm: 0 2px 10px rgba(20,38,59,.08);
  --shadow:    0 16px 40px -16px rgba(20,38,59,.22);
  --shadow-gold: 0 18px 48px -20px rgba(169,131,46,.4);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: clamp(1rem, .96rem + .25vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; color: var(--text); }
h1 { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.9rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }

::selection { background: var(--gold); color: #0A0F16; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem,5vw,4rem); }
.narrow { max-width: 760px; }

.grad-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--gold-grad); border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem,5vw,3.2rem); }
.section-head p { color: var(--text-muted); margin-top: .9rem; font-size: 1.08rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display:none; }

.lede { font-size: clamp(1.1rem,1rem + .6vw,1.32rem); color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--gold-grad);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92em 1.7em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--gold-grad); color: #0A0F16; box-shadow: var(--shadow-gold); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 56px -18px rgba(201,162,75,.6); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-3px); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--lg { padding: 1.05em 2.1em; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; }
.brand-text span { font-size: .72rem; color: var(--text-faint); letter-spacing: .08em; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem; border-radius: 10px; font-weight: 500;
  color: var(--text-muted); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links button:hover, .nav-links a.is-active { color: var(--text); background: var(--line); }
.nav-links a.is-active { color: var(--gold-2); }

/* dropdown */
.has-menu { position: relative; }
.menu-toggle svg { width: .8em; transition: transform .25s; }
.has-menu:hover .menu-toggle svg, .has-menu:focus-within .menu-toggle svg, .has-menu.is-open .menu-toggle svg { transform: rotate(180deg); }
.submenu {
  position: absolute; inset-inline-start: 0; top: calc(100% + 8px);
  min-width: 290px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .6rem; box-shadow: var(--shadow);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: flex; flex-direction: column; gap: 2px;
  padding: .6rem .75rem; border-radius: 9px; color: var(--text); font-size: .94rem;
}
.submenu a small { color: var(--text-faint); font-size: .78rem; font-weight: 400; }
.submenu a:hover { background: var(--line); color: var(--gold-2); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--gold-2); border-color: var(--line-strong); transform: rotate(20deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-cta { display: inline-flex; }
.hamburger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); place-items: center; }
.hamburger span { display:block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: .3s; }
.hamburger span::before, .hamburger span::after { content:""; position:absolute; inset-inline:0; height:2px; background: var(--text); border-radius:2px; transition:.3s; }
.hamburger span::before { top: -7px; } .hamburger span::after { top: 7px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { top:0; transform: rotate(45deg); }
body.menu-open .hamburger span::after { top:0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem,9vw,7rem) clamp(3rem,7vw,5.5rem); overflow: hidden; }
.hero::before {
  content:""; position:absolute; inset:0; z-index:-2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201,162,75,.16), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(62,142,138,.12), transparent 55%);
}
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
          mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero h1 { margin: 1rem 0 1.2rem; }
.hero .lede { max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-2); }
.hero-trust span { font-size: .85rem; color: var(--text-muted); }

.hero-portrait { position: relative; }
.hero-portrait img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: cover; }
.hero-portrait .badge {
  position: absolute; inset-block-end: -18px; inset-inline-start: -18px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem;
}
.hero-portrait .badge svg { width: 30px; height: 30px; color: var(--gold-2); flex-shrink:0; }
.hero-portrait .badge b { display:block; font-family: var(--font-head); }
.hero-portrait .badge small { color: var(--text-muted); font-size: .8rem; }

/* ---------- Logo / trust strip ---------- */
.trust-strip { border-block: 1px solid var(--line); }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; padding-block: 1.4rem; }
.trust-strip span { display: inline-flex; align-items: center; gap: .55rem; color: var(--text-muted); font-weight: 500; font-size: .95rem; }
.trust-strip svg { width: 20px; height: 20px; color: var(--gold-2); }

/* ---------- Cards / service grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::after { content:""; position:absolute; inset-block-start:0; inset-inline:0; height:3px; background: var(--gold-grad); transform: scaleX(0); transform-origin: inline-start; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(201,162,75,.18), rgba(201,162,75,.05));
  border: 1px solid var(--line-strong); color: var(--gold-2); margin-bottom: 1.1rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--gold-2); font-weight: 600; font-size: .92rem; }
.card .more svg { width: 1em; transition: transform .25s; }
.card:hover .more svg { transform: translateX(-5px); }
a.card { color: inherit; }

/* feature row (alternating image/text) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.feature--rev .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature ul.checks { margin-top: 1.4rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; color: var(--text-muted); }
.checks li svg { width: 22px; height: 22px; color: var(--gold-2); flex-shrink: 0; margin-top: .15rem; }
.checks li b { color: var(--text); }

/* audience cards */
.audience-card { background: linear-gradient(160deg, var(--surface), var(--surface-2)); border:1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; display:flex; flex-direction:column; }
.audience-card .icon { margin-bottom: 1.2rem; }
.audience-card ul { margin: 1rem 0 1.4rem; display:grid; gap:.5rem; }
.audience-card ul li { position: relative; padding-inline-start: 1.3rem; color: var(--text-muted); font-size:.95rem; }
.audience-card ul li::before { content:""; position:absolute; inset-inline-start:0; top:.65em; width:7px; height:7px; border-radius:50%; background: var(--gold-grad); }
.audience-card .more { margin-top: auto; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat b { display:block; font-family: var(--font-head); font-size: clamp(2rem,1.5rem+1.5vw,2.8rem); color: var(--gold-2); }
.stat span { color: var(--text-muted); font-size: .92rem; }

/* ---------- Quote / testimonial ---------- */
.quote { background: linear-gradient(160deg,var(--surface),var(--surface-2)); border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.2rem); position: relative; }
.quote::before { content:"”"; position:absolute; inset-block-start: -.1em; inset-inline-end: .3em; font-family: var(--font-head); font-size: 7rem; color: var(--line-strong); line-height: 1; }
.quote p { font-family: var(--font-head); font-size: clamp(1.2rem,1rem+1vw,1.6rem); line-height: 1.5; }
.quote footer { margin-top: 1.4rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding: 1.7rem; border:1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 2rem; color: transparent; -webkit-text-stroke: 1px var(--line-strong); display:block; margin-bottom: .7rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .inner {
  background: var(--gold-grad); color: #0A0F16; border-radius: var(--radius-lg);
  padding: clamp(2.2rem,5vw,3.6rem); text-align: center; box-shadow: var(--shadow-gold);
}
.cta-band h2 { color: #0A0F16; }
.cta-band p { color: #2a2208; max-width: 620px; margin: .8rem auto 1.8rem; font-weight: 500; }
.cta-band .btn--primary { background: #0E1A2B; color: #fff; box-shadow: none; }
.cta-band .btn--primary:hover { background:#0A0F16; }
.cta-band .btn--ghost { border-color: rgba(10,15,22,.35); color:#0A0F16; }
.cta-band .btn--ghost:hover { border-color:#0A0F16; color:#0A0F16; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.breadcrumb ol { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; font-size:.86rem; color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb li:not(:last-child)::after { content:"‹"; margin-inline-start:.5rem; color: var(--text-faint); }
.breadcrumb [aria-current] { color: var(--gold-2); }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding-block: clamp(2.5rem,6vw,4.5rem); overflow:hidden; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(800px 400px at 90% 0%, rgba(201,162,75,.12), transparent 60%); }
.page-hero h1 { margin: .8rem 0 1rem; }
.page-hero .lede { max-width: 64ch; }

/* ---------- Prose (articles / legal) ---------- */
.prose { color: var(--text-muted); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { color: var(--text); margin-top: 2.4rem; }
.prose h3 { color: var(--text); margin-top: 1.8rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { display: grid; gap: .6rem; padding-inline-start: 1.2rem; list-style: disc; }
.prose ul li::marker { color: var(--gold); }
.prose blockquote { border-inline-start: 3px solid var(--gold); padding-inline-start: 1.2rem; color: var(--text); font-family: var(--font-head); font-size: 1.2rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 1rem; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: 1.2rem 1.4rem; text-align: start; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.faq-q .chev { width: 24px; height: 24px; flex-shrink:0; color: var(--gold-2); transition: transform .3s var(--ease); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }

/* ---------- Blog ---------- */
.post-card { display:flex; flex-direction:column; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-card .ph { aspect-ratio: 16/9; background: linear-gradient(135deg,var(--surface-2),var(--surface)); display:grid; place-items:center; color: var(--line-strong); border-bottom:1px solid var(--line); }
.post-card .ph svg { width: 48px; height:48px; }
.post-card .body { padding: 1.5rem; display:flex; flex-direction:column; flex:1; }
.post-card .tag { font-size:.76rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--gold-2); }
.post-card h3 { margin:.5rem 0 .6rem; font-size:1.25rem; }
.post-card p { color: var(--text-muted); font-size:.95rem; flex:1; }
.post-card .meta { margin-top:1rem; font-size:.82rem; color: var(--text-faint); }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,3.5rem); align-items:start; }
.field { display:grid; gap:.45rem; margin-bottom: 1.1rem; }
.field label { font-weight:600; font-size:.92rem; }
.field label .req { color: var(--gold-2); }
.field input, .field select, .field textarea {
  width:100%; padding:.85rem 1rem; background: var(--bg-2); color: var(--text);
  border:1px solid var(--line); border-radius: var(--radius-sm); font:inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.18); }
.field .err { color:#ff9b8a; font-size:.82rem; min-height: 1em; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color:#c5564a; }

.contact-aside { display:grid; gap:1rem; }
.contact-line { display:flex; gap:.9rem; padding:1.1rem; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm); }
.contact-line svg { width:24px; height:24px; color: var(--gold-2); flex-shrink:0; }
.contact-line b { display:block; }
.contact-line a, .contact-line span { color: var(--text-muted); }
.contact-line a:hover { color: var(--gold-2); }
.map-embed { border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
.map-embed iframe { display:block; width:100%; height: 280px; border:0; filter: grayscale(.3) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(2.5rem,5vw,3.5rem) 1.5rem; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
.footer-grid h4 { font-size: .82rem; letter-spacing:.1em; text-transform:uppercase; color: var(--text-faint); margin-bottom: 1.1rem; font-family: var(--font-body); }
.footer-grid a { color: var(--text-muted); display:inline-block; padding:.22rem 0; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-grid li { line-height: 1.4; }
.footer-about p { color: var(--text-muted); font-size:.95rem; margin:1rem 0; max-width: 34ch; }
.footer-about .brand b { font-size: 1.2rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; color: var(--text-faint); font-size:.85rem; }
.footer-bottom a { color: var(--text-faint); } .footer-bottom a:hover { color: var(--gold-2); }

/* ---------- Floating actions ---------- */
.floats { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 90; display:grid; gap:.7rem; }
.float-btn { width: 56px; height:56px; border-radius:50%; display:grid; place-items:center; box-shadow: var(--shadow); transition: transform .25s var(--ease); position: relative; }
.float-btn svg { width: 28px; height:28px; }
.float-btn:hover { transform: scale(1.08) translateY(-2px); }
.float-wa { background:#25D366; color:#fff; }
.float-tel { background: var(--gold-grad); color:#0A0F16; }
.float-btn::after { content: attr(data-label); position:absolute; inset-inline-end: calc(100% + 12px); top:50%; transform: translateY(-50%); background: var(--surface); color: var(--text); padding:.4rem .7rem; border-radius: 8px; font-size:.8rem; white-space:nowrap; border:1px solid var(--line); opacity:0; pointer-events:none; transition: opacity .2s; }
.float-btn:hover::after { opacity:1; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s } .reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { width: 100%; max-width: 440px; justify-self: center; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats, .steps { grid-template-columns: repeat(2,1fr); }
  .feature, .feature--rev .feature-media { grid-template-columns: 1fr; order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: grid; }
  /* mobile drawer */
  .nav-links.is-drawer {
    display: grid; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--bg); padding: 1.4rem var(--gutter); gap:.2rem; align-content: start;
    transform: translateX(100%); transition: transform .35s var(--ease); overflow-y:auto;
  }
  /* When the drawer is open, drop the header's backdrop-filter: a filtered
     ancestor becomes the containing block for position:fixed children, which
     would trap the drawer inside the 76px header instead of the viewport. */
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  body.menu-open .nav-links.is-drawer { transform: none; }
  .nav-links.is-drawer > li > a, .nav-links.is-drawer > li > button { padding:.9rem .5rem; font-size:1.1rem; width:100%; border-bottom:1px solid var(--line); border-radius:0; }
  .menu-toggle { display:flex; align-items:center; justify-content:space-between; gap:.5rem; background:none; color:var(--text); }
  /* mobile: submenu is a tap-to-expand accordion (collapsed by default) */
  .submenu {
    position: static; box-shadow:none; border:0; background:transparent;
    transform:none; min-width:0; display:block; padding:0 1rem;
    max-height:0; overflow:hidden; opacity:0; visibility:hidden;
    transition: max-height .35s var(--ease), opacity .25s var(--ease), visibility .35s, padding .35s var(--ease);
  }
  .has-menu.is-open .submenu { max-height:34rem; opacity:1; visibility:visible; padding:.2rem 1rem .6rem; }
  .nav-links.is-drawer .submenu a { font-size:1rem; }
  .grid-2, .grid-3, .grid-4, .stats, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap:1.5rem; }
  h1 { font-size: clamp(1.9rem,1.4rem+4vw,2.6rem); }
}
