/* ============================================================
   Ledger & Co — Chartered Accountants, Reading
   Static demo. Navy + deep teal + fresh mint accent.
   ============================================================ */

:root {
  --navy: #0d2137;
  --navy-2: #12304f;
  --teal: #0f5e63;
  --teal-2: #157a80;
  --mint: #34d6b0;
  --mint-ink: #0a3b32;
  --ink: #16222e;
  --slate: #51616f;
  --line: #dde6ec;
  --paper: #f6f9fb;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(13,33,55,.06), 0 8px 24px rgba(13,33,55,.07);
  --shadow-lg: 0 12px 40px rgba(13,33,55,.14);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.18; color: var(--navy); font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-2); margin: 0 0 .8rem; display: inline-block;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 600; font-size: .98rem; padding: .82rem 1.4rem; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--mint); color: var(--mint-ink); box-shadow: 0 6px 18px rgba(52,214,176,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(52,214,176,.42); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--navy); font-size: 1.18rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .96rem; padding: .55rem .8rem; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--paper); color: var(--teal-2); text-decoration: none; }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px; gap: .2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .9rem .8rem; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(52,214,176,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(21,122,128,.16), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: clamp(48px, 8vw, 92px) 0;
}
.hero-copy h1 span { color: var(--teal-2); }
.hero-lead { font-size: 1.12rem; color: var(--slate); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.4rem; }
.hero-badge { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--navy); font-weight: 600; }
.hero-badge svg { color: var(--teal-2); flex: none; }

/* Animated chart card */
.hero-visual {
  position: relative; background: var(--navy); border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow-lg); color: #fff; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0/ 100% 34px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0/ 46px 100%;
  pointer-events: none;
}
.hv-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.hv-head .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb3c8; }
.hv-head .figure { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.hv-head .delta { color: var(--mint); font-size: .82rem; font-weight: 700; }
.hv-chart { position: relative; margin-top: 14px; height: 168px; }
.hv-chart svg { width: 100%; height: 100%; overflow: visible; }
.spark-line { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease forwards .3s; }
.spark-area { fill: url(#mintFade); opacity: 0; animation: fadein 1.2s ease forwards 1.6s; }
.spark-dot { fill: #fff; opacity: 0; animation: fadein .6s ease forwards 2.3s; }
.hv-bars { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; align-items: end; margin-top: 18px; height: 70px; position: relative; }
.hv-bars i { display: block; background: linear-gradient(180deg, var(--teal-2), var(--teal)); border-radius: 5px 5px 0 0; transform: scaleY(0); transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.7,.3,1) forwards; }
.hv-bars i:nth-child(1){height:40%;animation-delay:.2s}
.hv-bars i:nth-child(2){height:62%;animation-delay:.3s}
.hv-bars i:nth-child(3){height:50%;animation-delay:.4s}
.hv-bars i:nth-child(4){height:78%;animation-delay:.5s}
.hv-bars i:nth-child(5){height:66%;animation-delay:.6s}
.hv-bars i:nth-child(6){height:90%;animation-delay:.7s;background:linear-gradient(180deg,var(--mint),#1faf8c)}
.hv-bars i:nth-child(7){height:74%;animation-delay:.8s}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
}

/* ============================================================
   Trust bar
   ============================================================ */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trustbar .container { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; padding: 22px 20px; }
.trust-item { display: flex; align-items: center; gap: .55rem; color: var(--slate); font-weight: 600; font-size: .9rem; }
.trust-item strong { color: var(--navy); font-size: 1.4rem; font-weight: 800; }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { scroll-margin-top: 86px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--paper); }
.section-head { max-width: 640px; margin: 0 auto clamp(34px, 5vw, 52px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--slate); font-size: 1.05rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Services cards
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--mint); }
.service-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(52,214,176,.18), rgba(15,94,99,.14)); color: var(--teal);
}
.service-card h3 { margin-bottom: .4rem; }
.service-card p { color: var(--slate); font-size: .96rem; flex: 1; }
.service-meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.service-meta .price { font-weight: 700; color: var(--navy); }
.service-meta .price span { font-weight: 500; color: var(--slate); font-size: .82rem; }
.service-card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.service-card li { font-size: .9rem; color: var(--slate); padding-left: 22px; position: relative; margin-bottom: 6px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; background: var(--mint); border-radius: 50%; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--mint); }

/* ============================================================
   Fee estimator
   ============================================================ */
.estimator { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.est-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field > label, .fieldset-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: .95rem; }
.field select, .field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,94,99,.12); outline: none; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  font-size: .92rem; transition: border-color .15s ease, background .15s ease;
}
.check:hover { border-color: var(--teal); }
.check input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.check input:checked + span { font-weight: 600; color: var(--navy); }

.est-result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; position: sticky; top: 90px; box-shadow: var(--shadow-lg); }
.est-result .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb3c8; }
.est-amount { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.est-amount span { font-size: 1.1rem; color: #9fb3c8; font-weight: 600; }
.est-range { color: #b9c8d6; font-size: .9rem; }
.est-breakdown { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.est-breakdown li { display: flex; justify-content: space-between; font-size: .92rem; padding: 5px 0; color: #cdd9e4; }
.est-breakdown li span:last-child { color: #fff; font-weight: 600; }
.est-note { font-size: .78rem; color: #8ea2b6; margin-top: 16px; }
.est-result .btn { margin-top: 18px; }

@media (max-width: 820px) {
  .estimator { grid-template-columns: 1fr; }
  .est-result { position: static; }
  .checks { grid-template-columns: 1fr; }
}

/* ============================================================
   Scheduler
   ============================================================ */
.scheduler { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.sched-info ul { list-style: none; padding: 0; margin: 20px 0 0; }
.sched-info li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 16px; }
.sched-info li svg { color: var(--teal-2); flex: none; margin-top: 3px; }
.sched-info li strong { color: var(--navy); display: block; }
.sched-info li span { color: var(--slate); font-size: .93rem; }

.day-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px,1fr)); gap: 8px; }
.day-grid button, .slot-grid button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: .6rem .3rem; cursor: pointer; font: inherit;
  text-align: center; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.day-grid button { display: flex; flex-direction: column; gap: 2px; }
.day-grid button .dow { font-size: .72rem; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; }
.day-grid button .dom { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.day-grid button:hover, .slot-grid button:hover { border-color: var(--teal); }
.day-grid button[aria-pressed="true"], .slot-grid button[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.day-grid button[aria-pressed="true"] .dow, .day-grid button[aria-pressed="true"] .dom { color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px,1fr)); gap: 8px; }
.slot-grid button { font-weight: 600; color: var(--navy); }

.form-err { color: #c0392b; font-size: .85rem; margin-top: 6px; min-height: 1em; }
.form-success {
  background: rgba(52,214,176,.12); border: 1.5px solid var(--mint); color: var(--mint-ink); border-radius: 12px;
  padding: 18px 20px; margin-top: 18px; display: none; gap: .7rem; align-items: flex-start;
}
.form-success.show { display: flex; }
.form-success svg { flex: none; color: #0d9b78; margin-top: 2px; }

@media (max-width: 820px) { .scheduler { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 20px; font: inherit; font-weight: 600;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { color: var(--teal-2); }
.faq-q .chev { flex: none; transition: transform .25s ease; color: var(--teal-2); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--slate); }

/* ============================================================
   Testimonials
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 22px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars svg { color: #f5b301; }
.testi-card blockquote { margin: 0 0 16px; font-size: 1rem; color: var(--ink); flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-who strong { display: block; color: var(--navy); font-size: .95rem; }
.testi-who span { font-size: .84rem; color: var(--slate); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 16px; }
.contact-list svg { color: var(--teal-2); flex: none; margin-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list span.muted { color: var(--slate); font-weight: 400; display: block; font-size: .9rem; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 6px; }
.map-frame iframe { width: 100%; height: 240px; border: 0; display: block; }

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 130%); color: #fff; border-radius: 20px; padding: clamp(36px,6vw,60px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c5d4e1; max-width: 52ch; margin: 0 auto 1.4rem; }
.cta-band .hero-cta { justify-content: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 90% -20%, rgba(52,214,176,.22), transparent 60%); pointer-events: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: #c0cedb; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #c0cedb; }
.site-footer a:hover { color: var(--mint); }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand small { color: #8ea2b6; }
.footer-brand p { font-size: .92rem; color: #93a6b8; max-width: 34ch; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; font-size: .94rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; display: grid; place-items: center; color: #c0cedb; }
.footer-socials a:hover { border-color: var(--mint); color: var(--mint); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .86rem; color: #8ea2b6; }
.footer-bottom a { color: var(--mint); font-weight: 600; }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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