﻿/* ==========================================================================
   VAHAI TAX — Shared stylesheet (used by /index.html and /fr/index.html)
   Design language taken from the logo:
     - Serif "VT" monogram      -> serif display headings
     - Leaf-to-forest gradient  -> --grad, used for icons, avatars, accents
     - Circular ring            -> decorative rings in the hero
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Greens sampled from the logo, dark -> light */
  --g-950: #05200f;
  --g-900: #0a2e18;
  --g-800: #0d4222;
  --g-700: #11592c;
  --g-600: #1a7a34;  /* AA on white for text */
  --g-500: #3f9a2f;
  --g-400: #6cb52d;
  --g-300: #8dc63f;  /* logo highlight, used on dark backgrounds */
  --g-100: #e3f0d5;
  --g-50:  #f3f8ee;

  --ink:   #14211a;
  --ink-2: #4a5a50;
  --line:  #e3ebe0;
  --bg:    #fbfdf9;
  --white: #ffffff;

  --grad: linear-gradient(135deg, var(--g-700) 0%, var(--g-500) 55%, var(--g-300) 100%);

  --radius: 20px;
  --shadow: 0 1px 2px rgba(10, 46, 24, .06), 0 8px 24px rgba(10, 46, 24, .08);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .28);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --header-h: 72px;
  --tab-h: 66px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--g-600); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--g-900);
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--g-300); outline-offset: 3px; border-radius: 6px; }

/* Skip link (accessibility) */
.skip {
  position: absolute; left: 1rem; top: -120px; z-index: 100;
  background: var(--g-900); color: #fff; padding: .8rem 1.2rem; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 3. Layout helpers ---------- */
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--g-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Icon base: inline SVG sprite, stroke style */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.45rem; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn .ico { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--g-300); color: var(--g-950); box-shadow: 0 10px 28px rgba(141, 198, 63, .35); }
.btn-primary:hover { background: #a0d655; }
.btn-dark { background: var(--g-700); color: #fff; }
.btn-dark:hover { background: var(--g-800); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 253, 249, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; height: 100%; }

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; text-decoration: none; color: var(--g-900); }
.brand img { width: 44px; height: 44px; }
.brand-name { font: 700 1.2rem/1 var(--font-display); letter-spacing: .05em; }
.brand-tag { display: block; margin-top: 4px; font: 600 .66rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .55rem .9rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav a:hover { background: var(--g-50); color: var(--g-700); }

.lang {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .85rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .82rem; letter-spacing: .06em; color: var(--g-700); text-decoration: none;
}
.lang:hover { border-color: var(--g-300); background: var(--g-50); }
.header-call { min-height: 44px; padding: .6rem 1.1rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #e9f3e3;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(141, 198, 63, .26), transparent 60%),
    radial-gradient(700px 520px at 0% 100%, rgba(26, 122, 52, .55), transparent 60%),
    var(--g-900);
}
/* Rings echo the circle in the logo */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(141, 198, 63, .18);
}
.hero::before { width: 760px; height: 760px; right: -240px; top: -220px; }
.hero::after  { width: 480px; height: 480px; right: -100px; top: -80px; border-color: rgba(141, 198, 63, .1); }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 4rem; align-items: center;
}
.hero .eyebrow { color: var(--g-300); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.8vw, 4.4rem); margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--g-300), #cdeea0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: rgba(233, 243, 227, .85); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; list-style: none; padding: 0; margin: 2.2rem 0 0; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .45rem; color: rgba(233, 243, 227, .88); }
.hero-points .ico { width: 18px; height: 18px; color: var(--g-300); stroke-width: 2.4; }

/* Contact card in the hero */
.hero-card {
  position: relative; background: #fff; color: var(--ink);
  border-radius: 28px; padding: 2rem; box-shadow: var(--shadow-lg);
}
.hero-card .logo-badge {
  width: 92px; height: 92px; margin: -4.6rem auto .9rem; padding: 8px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.45rem; text-align: center; margin-bottom: .25rem; }
.hero-card .sub { text-align: center; color: var(--ink-2); font-size: .92rem; margin: 0; }

.rows { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.rows a, .rows .row {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem;
  border-radius: 14px; background: var(--g-50); color: var(--ink); text-decoration: none;
  transition: background-color .2s ease;
}
.rows a:hover { background: var(--g-100); }
.chip {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--grad); color: #fff;
}
.chip .ico { width: 20px; height: 20px; }
.rows strong { display: block; color: var(--g-900); font-size: 1rem; }
.rows small  { display: block; color: var(--ink-2); font-size: .8rem; }

/* ---------- 7. Stats strip ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats ul { list-style: none; margin: 0 auto; padding: 2.2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { text-align: center; padding: 0 1rem; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--font-display); color: var(--g-700); }
.stats span { font-size: .9rem; color: var(--ink-2); }

/* ---------- 8. About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.callout {
  display: flex; gap: 1rem; margin-top: 1.75rem; padding: 1.6rem;
  background: var(--g-50); border: 1px solid var(--g-100); border-radius: var(--radius);
}
.callout .ico { width: 28px; height: 28px; color: var(--g-600); }
.callout p { margin: 0; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quick a {
  display: block; padding: 1.5rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.quick a:hover { border-color: var(--g-300); transform: translateY(-3px); box-shadow: var(--shadow); }
.quick .chip { margin-bottom: 1rem; }
.quick h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.quick p { margin: 0; font-size: .93rem; color: var(--ink-2); }

/* ---------- 9. Services ---------- */
.services { background: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.svc {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 2.1rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: all .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative; overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.svc:hover { border-color: transparent; transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.svc:hover::before { transform: scaleX(1); }
.svc-cta {
  margin-top: auto; padding-top: 1.8rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--g-600); text-decoration: none;
}
.svc-cta .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.svc-cta:hover { color: var(--g-800); }
.svc-cta:hover .ico { transform: translateX(4px); }
.svc-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.25rem;
  border-radius: 16px; background: var(--grad); color: #fff;
  box-shadow: 0 10px 22px rgba(26, 122, 52, .25);
}
.svc-icon .ico { width: 28px; height: 28px; }
.svc > p { color: var(--ink-2); }

.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; }
.checks .ico { width: 20px; height: 20px; margin-top: .2rem; color: var(--g-500); stroke-width: 2.4; }

/* ---------- 10. Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.why { padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why .ico { width: 32px; height: 32px; margin-bottom: 1rem; color: var(--g-600); }
.why h3 { font-size: 1.15rem; }
.why p { margin: 0; font-size: .97rem; color: var(--ink-2); }

/* ---------- 11. Team ---------- */
.team { background: linear-gradient(180deg, #fff, var(--g-50)); }
.team-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: start; }
.person { padding: 2.25rem; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.person-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.25rem; }
.avatar {
  flex: none; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--grad); color: #fff; font: 700 1.6rem/1 var(--font-display);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--g-100);
}
.person h3 { margin: 0; font-size: 1.5rem; }
.role { margin: .2rem 0 0; color: var(--g-600); font-weight: 600; font-size: .92rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: var(--g-50); border: 1px solid var(--g-100); color: var(--g-700);
  font-size: .82rem; font-weight: 700;
}
.badge .ico { width: 16px; height: 16px; }
.person h4 { margin: 1.4rem 0 .6rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tags li { padding: .4rem .85rem; border-radius: 999px; background: var(--g-50); color: var(--g-800); font-size: .86rem; }
.person-cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-weight: 700; text-decoration: none; }
.person-cta .ico { width: 18px; height: 18px; }

/* ---------- 12. FAQ + resources ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.res { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; }
.res a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.res a:hover { border-color: var(--g-300); color: var(--g-700); }
.res .ico { width: 18px; height: 18px; color: var(--g-600); }
.reviewed { font-size: .85rem; color: var(--ink-2); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 0; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.08rem; color: var(--g-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--g-50); color: var(--g-700);
  font-size: 1.35rem; font-weight: 400; transition: transform .25s ease, background-color .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--g-300); color: var(--g-950); }
.faq details p { padding-right: 3rem; color: var(--ink-2); }
.source { font-size: .85rem; }

/* ---------- 13. Contact ---------- */
.contact {
  color: #e9f3e3;
  background:
    radial-gradient(800px 480px at 100% 0%, rgba(141, 198, 63, .2), transparent 60%),
    var(--g-900);
}
.contact .eyebrow { color: var(--g-300); }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(233, 243, 227, .82); }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.c-card { padding: 1.8rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.c-card > .ico { width: 30px; height: 30px; margin-bottom: 1rem; color: var(--g-300); }
.c-card h3 { font: 600 1.1rem/1.3 var(--font); color: #fff; }
.c-card a { color: #fff; font-weight: 600; text-decoration: none; }
.c-card a:hover { color: var(--g-300); text-decoration: underline; }
.c-card address { font-style: normal; }
.c-card p { margin: 0 0 .5rem; }
.c-label { display: block; margin-top: .9rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(233, 243, 227, .6); }
.c-card .btn { margin-top: 1rem; min-height: 44px; font-size: .92rem; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.hours dt { color: rgba(233, 243, 227, .7); }
.hours dd { margin: 0; color: #fff; font-weight: 600; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--g-950); color: rgba(233, 243, 227, .7); padding: 3.5rem 0 2rem; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer .brand { color: #fff; margin: 0 0 1rem; }
.site-footer .brand-tag { color: rgba(233, 243, 227, .6); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--g-300); text-decoration: underline; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- 15. Mobile app tab bar (hidden on desktop) ---------- */
.tabbar { display: none; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .faq-grid, .team-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-card { max-width: 480px; margin-top: 2rem; }
  .why-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .stats ul { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; }
  .stats li:nth-child(3) { border-left: 0; }
  .nav a { padding: .5rem .65rem; }
}

@media (max-width: 860px) {
  .nav { display: none; }          /* bottom tab bar takes over */
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }

  .brand img { width: 38px; height: 38px; }
  .brand-tag { display: none; }
  .header-call span { display: none; }               /* icon-only call button */
  .header-call { width: 44px; padding: 0; }

  .hero { padding-top: 3rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-card { padding: 1.6rem; margin-top: 3rem; }

  .svc-grid, .why-grid, .contact-grid, .quick { grid-template-columns: 1fr; }
  .svc, .person { padding: 1.6rem; }
  .faq details p { padding-right: 0; }

  /* App-style bottom navigation */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 48px; color: var(--ink-2); text-decoration: none; font-size: .7rem; font-weight: 600;
  }
  .tabbar a:active { color: var(--g-700); }
  .tabbar .fab {
    display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px;
    border-radius: 50%; border: 4px solid #fff; background: var(--grad); color: #fff;
    box-shadow: 0 10px 24px rgba(26, 122, 52, .4);
  }
}

