/* ==========================================================
   Accounting Consultancy — main stylesheet
   1. Design tokens (edit colours & fonts here)
   2. Base
   3. Layout helpers & buttons
   4. Header & navigation
   5. Sections (hero, services, steps, about, values, FAQ, CTA)
   6. Footer & floating button
   7. Motion & responsive
   ========================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy-900: #071528;
  --navy-800: #0B1F3A;
  --navy-700: #143056;
  --navy-100: #E8EEF6;
  --green-700: #17784E;   /* buttons: 5.5:1 contrast with white */
  --green-800: #115E3D;
  --green-300: #6FD6A4;   /* accent on navy backgrounds */
  --green-50:  #EAF6F0;

  --text: #0B1F3A;
  --text-muted: #4A5A70;
  --bg: #FFFFFF;
  --bg-tint: #F5F8FB;
  --border: #DCE3EC;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06);
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .18);
  --container: 1160px;
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-800); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; border-radius: 4px; }
.section-navy :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--green-300); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Placeholder highlight — disappears once you replace the [[...]] text */
.ph {
  background: #FFF6CC; color: #5C4600;
  outline: 1.5px dashed #C9A100; outline-offset: 1px;
  border-radius: 3px; padding: 0 .2em;
}

/* ---------- 3. Layout helpers & buttons ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--green-700); color: #fff; box-shadow: 0 6px 16px -8px rgba(23, 120, 78, .7); }
.btn-wa:hover { background: var(--green-800); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-800); min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px; background: var(--navy-800); color: #fff;
  font: 700 1.25rem/1 var(--font-serif);
  box-shadow: inset 0 -3px 0 var(--green-700);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 1.0625rem/1.2 var(--font-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: .75rem; color: var(--text-muted); letter-spacing: .02em; }
.brand-light { color: #fff; }
.brand-light .brand-tag { color: #A9B8CC; }
.brand-light .brand-mark { background: #fff; color: var(--navy-800); }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--navy-800); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--navy-800); text-decoration: none; font-weight: 500; font-size: .9688rem;
}
.site-nav ul a:hover, .site-nav ul a.is-active { background: var(--navy-100); }

/* ---------- 5. Sections ---------- */
/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(111, 214, 164, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(255, 255, 255, .06), transparent 60%),
    var(--navy-800);
  padding: clamp(64px, 9vw, 120px) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--green-300); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-lead { font-size: 1.1875rem; color: #C9D5E4; max-width: 54ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .9375rem; color: #C9D5E4; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--green-300); }

.hero-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.hero-card-title { font: 600 1.25rem/1.3 var(--font-serif); margin-bottom: 20px; }
.hero-card ul { display: grid; gap: 14px; margin-bottom: 24px; }
.hero-card li { display: flex; align-items: center; gap: 12px; color: #DCE5F0; }
.hero-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 4px rgba(111, 214, 164, .18); flex-shrink: 0; }
.hero-card-foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9375rem; color: #A9B8CC;
}

/* Cards & services */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); border-color: #C8D3E0; transform: translateY(-3px); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; padding: 28px; }
.service-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 12px; background: var(--green-50); color: var(--green-700);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card > p { color: var(--text-muted); font-size: 1rem; }
.includes { display: grid; gap: 8px; margin: 4px 0 24px; font-size: .9375rem; }
.includes li { position: relative; padding-left: 26px; }
.includes li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700);
  transform: rotate(-45deg);
}
.price {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 20px;
}
.price-from { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.price-amount { font: 700 1.375rem/1.2 var(--font-serif); color: var(--navy-800); }
.price-unit { font-size: .9375rem; color: var(--text-muted); }
.pricing-note { text-align: center; color: var(--text-muted); font-size: .9375rem; margin: 32px auto 0; max-width: 680px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; margin-bottom: 48px; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--navy-800); color: #fff;
  font: 700 1.125rem/1 var(--font-serif);
}
.step h3 { font-size: 1.125rem; }
.step p { color: var(--text-muted); font-size: .9688rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo img, .photo-placeholder { border-radius: 20px; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(160deg, var(--navy-100), #fff); border: 1px solid var(--border);
  color: var(--navy-700); padding: 24px; text-align: center;
}
.photo-placeholder .icon { width: 72px; height: 72px; stroke-width: 1.25; opacity: .6; }
.about-copy .lead { font-size: 1.1875rem; color: var(--navy-700); }
.about-copy > p { color: var(--text-muted); }
.about-sub { font-family: var(--font-sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-800); margin-top: 32px; }
.creds { display: grid; gap: 12px; }
.creds li { display: flex; gap: 12px; align-items: flex-start; }
.creds .icon { color: var(--green-700); margin-top: .2em; }

/* Values (navy) */
.section-navy { background: var(--navy-800); color: #fff; }
.section-navy .eyebrow { color: var(--green-300); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value .icon { width: 32px; height: 32px; color: var(--green-300); margin-bottom: 16px; }
.value h3 { color: #fff; font-size: 1.1875rem; }
.value p { color: #B8C6D8; font-size: .9688rem; margin: 0; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: #C8D3E0; box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.0625rem; border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--green-800); }
.faq-body { padding: 0 24px 20px; color: var(--text-muted); }
.faq-body p { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #C9D5E4; margin: 0; }

/* ---------- 6. Footer & floating button ---------- */
.site-footer { background: var(--navy-900); color: #B8C6D8; padding: 72px 0 0; font-size: .9688rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 20px; max-width: 40ch; }
.footer-title { font: 600 .875rem/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 20px; }
.contact-list, .footer-links { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--green-300); margin-top: .15em; }
.site-footer a { color: #DCE5F0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; padding-bottom: 28px; font-size: .875rem;
}
@media (min-width: 641px) { .footer-bottom { padding-right: 104px; } } /* keep clear of the floating button */
.footer-bottom p { margin: 0; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  box-shadow: 0 10px 25px -6px rgba(7, 21, 40, .45), 0 0 0 4px rgba(255, 255, 255, .9);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--green-800); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- 7. Motion & responsive ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .wa-float:hover { transform: none; }
}

/* Tablet & below: collapsible menu */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 14px 12px; font-size: 1.0625rem; }
  .site-nav .btn { min-height: 50px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  /* an odd last card sits centred on its own row */
  .services-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: calc(50% - 12px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-tag { display: none; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-actions .btn { width: 100%; }
  .hero-card { display: none; }
  .services-grid, .steps, .values-grid, .footer-grid { grid-template-columns: 1fr; }
  .services-grid > :last-child:nth-child(odd) { max-width: none; }
  .section-head { margin-bottom: 36px; }
  .service-card { padding: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .cta-inner .btn { width: 100%; }
  .faq summary { padding: 18px 48px 18px 18px; font-size: 1rem; }
  .faq summary::after { right: 20px; }
  .faq-body { padding: 0 18px 18px; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .footer-bottom { padding-bottom: 96px; } /* keep clear of the floating button */
}

@media print {
  .site-header, .wa-float, .cta-band, .btn { display: none !important; }
  .hero, .section-navy { background: none; color: #000; }
}
