/* ==========================================================================
   Cary Accounting — design system
   Tokens ported from the original app's index.css. Colours are stored as bare
   HSL triplets so `hsl(var(--token) / <alpha>)` works throughout.
   ========================================================================== */

:root {
  --background: 40 33% 98%;
  --foreground: 215 42% 14%;
  --card: 0 0% 100%;
  --primary: 215 48% 17%;
  --primary-foreground: 0 0% 100%;
  --secondary: 204 24% 94%;
  --secondary-foreground: 215 48% 17%;
  --muted: 210 20% 94%;
  --muted-foreground: 214 16% 42%;
  --accent: 168 45% 38%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --success: 152 45% 32%;
  --border: 210 20% 87%;
  --radius: 1rem;

  /* Hero overlay. Two layers: a light brand wash so the photo stays visible,
     plus a soft centre scrim that guarantees the headline stays legible
     regardless of what is behind it. Measured 10.4:1 mean / 4.59:1 worst-case
     against white — AA at every text size. */
  --hero-scrim: radial-gradient(ellipse 68% 56% at 50% 46%, hsl(210 24% 12% / .66), transparent 74%);
  --hero-wash:  linear-gradient(135deg, hsl(210 22% 20% / .62), hsl(210 22% 26% / .48) 50%, hsl(210 22% 22% / .58));
  --gradient-gold: linear-gradient(135deg, hsl(168 45% 38%), hsl(174 49% 45%));
  --shadow-elegant: 0 24px 64px -24px hsl(215 48% 12% / .32);
  --shadow-glow: 0 16px 48px -16px hsl(168 45% 38% / .55);
  --shadow-card: 0 1px 2px hsl(215 48% 17% / .04), 0 14px 40px hsl(215 48% 17% / .07);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

/* An explicit `display` in CSS beats the UA stylesheet's [hidden]{display:none},
   so anything toggled via el.hidden needs this to actually hide. */
[hidden] { display: none !important; }

html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
a { color: hsl(var(--primary)); }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 3rem); } }

.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4.5rem 0; } }
.section-alt { background: hsl(var(--secondary) / .3); }
.section-head { text-align: center; max-width: 52rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-head p { color: hsl(var(--muted-foreground)); font-size: 1.0625rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 4rem; } .section-head p { font-size: 1.125rem; } }

.skip {
  position: absolute; left: -9999px; z-index: 200;
  background: hsl(var(--primary)); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius);
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .9375rem;
  padding: .625rem 1.25rem; border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.btn-primary:hover:not(:disabled) { background: hsl(var(--primary) / .9); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); border-color: hsl(var(--secondary)); }
.btn-secondary:hover:not(:disabled) { background: hsl(var(--secondary) / .7); }
.btn-outline { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.btn-outline:hover:not(:disabled) { background: hsl(var(--secondary) / .6); }
.btn-ghost-light { background: hsl(0 0% 100% / .1); color: #fff; border-color: hsl(0 0% 100% / .3); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: hsl(0 0% 100% / .2); }
.btn-lg { font-size: 1rem; padding: .9375rem 1.75rem; }
@media (min-width: 768px) { .btn-lg { font-size: 1.0625rem; padding: 1.125rem 2rem; } }
.btn-elegant { box-shadow: var(--shadow-elegant); }
.btn-elegant:hover { box-shadow: var(--shadow-glow); }
.btn-block { width: 100%; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8125rem; font-weight: 600; padding: .25rem .625rem;
  border-radius: 999px; background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  border: 1px solid transparent;
}
.badge-outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--muted-foreground)); font-weight: 500; }
.badge-lg { padding: .45rem .9rem; font-size: .875rem; }

/* ---------- cards ---------- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card-feature { border-width: 2px; border-color: hsl(var(--primary) / .2); transition: border-color .3s, box-shadow .3s; }
.card-feature:hover { border-color: hsl(var(--primary) / .5); box-shadow: 0 12px 32px hsl(210 22% 29% / .14); }
.card-body { padding: 1.5rem; }
@media (min-width: 768px) { .card-body { padding: 2.5rem; } }

.icon-circle {
  width: 5rem; height: 5rem; border-radius: 50%; margin: 0 auto 1.5rem;
  display: grid; place-items: center; color: #fff;
  background: var(--gradient-gold); box-shadow: 0 8px 20px hsl(32 42% 59% / .35);
}
.icon-circle svg { width: 2.25rem; height: 2.25rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--background) / .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; gap: 1rem; }
@media (min-width: 768px) { .head-inner { height: 4rem; } }
.brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; color: inherit; min-width: 0; }
.brand img { height: 2rem; width: auto; flex: none; }
.brand span { font-weight: 700; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .brand img { height: 2.5rem; } .brand span { font-size: 1.25rem; } }
.head-nav { display: none; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .head-nav { display: flex; } }
.head-nav a { font-size: .875rem; font-weight: 500; color: hsl(var(--foreground)); text-decoration: none; transition: color .18s; }
.head-nav a:hover { color: hsl(var(--primary)); }
.nav-services { position: relative; }
.nav-services summary { color: hsl(var(--muted-foreground)); font-size: .875rem; font-weight: 650; cursor: pointer; list-style: none; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after { content: "⌄"; margin-left: .35rem; }
.nav-services-menu { position: absolute; top: calc(100% + .8rem); left: 50%; display: grid; width: 16.5rem; padding: .55rem; transform: translateX(-50%); border: 1px solid hsl(var(--border)); border-radius: .8rem; background: #fff; box-shadow: var(--shadow-elegant); }
.nav-services-menu a { position: relative; padding: .7rem .75rem .7rem 1.55rem; border-radius: .5rem; font-size: .92rem; font-weight: 750; }
.nav-services-menu a::before { content: ""; position: absolute; left: .72rem; top: 50%; width: .4rem; height: .4rem; transform: translateY(-50%); border-radius: 50%; background: hsl(var(--accent)); }
.nav-services-menu a:hover { background: hsl(var(--secondary)); }

/* The header CTA competes with the brand on narrow screens — shorten it there
   (the hero has a full-width quote button immediately below anyway). */
.head-cta .cta-short { display: none; }
@media (max-width: 640px) {
  .head-cta .cta-long { display: none; }
  .head-cta .cta-short { display: inline; }
  .head-cta { padding-inline: .9rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 26rem; overflow: hidden; }
@media (min-width: 640px) { .hero { min-height: 31rem; } }
@media (min-width: 768px) { .hero { min-height: 44rem; } }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim), var(--hero-wash); }
/* On narrower screens the hero is much shorter, so a proportional ellipse no
   longer covers the text block — widen it to keep the subtitle (17px here, not
   "large text" by WCAG) above 4.5:1. */
@media (max-width: 1100px) {
  :root { --hero-scrim: radial-gradient(ellipse 95% 70% at 50% 48%, hsl(210 24% 12% / .74), transparent 84%); }
}
.hero-inner { position: relative; z-index: 1; text-align: center; color: #fff; max-width: 56rem; margin-inline: auto; padding: 3rem 0; }
.hero h1 {
  font-size: clamp(1.875rem, 6vw, 4.25rem); margin-bottom: 1rem;
  text-shadow: 0 2px 12px hsl(210 22% 15% / .4);
}
.hero-sub {
  font-size: clamp(1.0625rem, 2.6vw, 1.875rem); font-weight: 300; letter-spacing: .01em;
  color: hsl(0 0% 100% / .9); margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; justify-content: center; gap: 1rem; } .hero-actions .btn { width: auto; } }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 4rem; z-index: 1;
  background: linear-gradient(to top, hsl(var(--background)), transparent); }
@media (min-width: 768px) { .hero-fade { height: 6rem; } }

/* ---------- local ---------- */
.local-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 56rem; margin-inline: auto; text-align: center; }
@media (min-width: 768px) { .local-inner { flex-direction: row; gap: 2rem; text-align: left; } }
.local-inner img { width: 12rem; flex: none; }
@media (min-width: 768px) { .local-inner img { width: 20rem; } }
.local-inner h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.local-inner p { color: hsl(var(--muted-foreground)); font-size: 1.0625rem; }

/* ---------- services ---------- */
.svc-stack { max-width: 56rem; margin: 0 auto 2.5rem; }
@media (min-width: 768px) { .svc-stack { margin-bottom: 4rem; } }
.svc-head { text-align: center; padding-bottom: 0; }
.svc-head h3 { font-size: clamp(1.5rem, 3.5vw, 1.875rem); margin-bottom: 1rem; }
.svc-head > p { color: hsl(var(--muted-foreground)); font-size: 1.0625rem; margin: 0; }
.svc-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.svc-col { text-align: center; }
.svc-col h4 { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: 1.0625rem; margin-bottom: .75rem; }
.svc-col h4 svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--accent)); flex: none; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.svc-foot { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.svc-foot strong { color: hsl(var(--foreground)); }
.svc-foot-row { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
@media (min-width: 640px) { .svc-foot-row { flex-direction: row; justify-content: center; gap: 1rem; text-align: left; } }
.svc-foot-row img { height: 3rem; width: auto; flex: none; }
.split { display: grid; gap: 1.5rem; align-items: center; max-width: 64rem; margin-inline: auto; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.split img { border-radius: 1rem; box-shadow: var(--shadow-elegant); width: 100%; object-fit: cover; }
.split h3 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.split p { color: hsl(var(--muted-foreground)); font-size: 1.0625rem; }

/* ---------- about ---------- */
.team-head { text-align: center; margin-bottom: 2rem; }
.team-head svg { width: 2.75rem; height: 2.75rem; color: hsl(var(--primary)); margin-bottom: 1rem; }
.team-head h3 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.team-head p { color: hsl(var(--muted-foreground)); }
.team-card { max-width: 64rem; margin: 0 auto 3rem; }
.team-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 768px) { .team-grid { grid-template-columns: 1fr 2fr; gap: 2rem; } }
.team-photo { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-elegant); margin-inline: auto; display: block; }
@media (min-width: 768px) { .team-photo { width: 12rem; height: 12rem; } }
.team-bio h4 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: .5rem; }
.team-bio p { color: hsl(var(--muted-foreground)); font-size: .9375rem; }
@media (min-width: 768px) { .team-bio p { font-size: 1rem; } }
.team-tags { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .75rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; max-width: 64rem; margin-inline: auto; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.contact-detail { display: flex; gap: .875rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-detail svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--accent)); flex: none; margin-top: .2rem; }
.contact-detail-label { font-weight: 600; font-size: .9375rem; display: block; }
.contact-detail a, .contact-detail span.val { color: hsl(var(--muted-foreground)); font-size: .9375rem; text-decoration: none; }
.contact-detail a:hover { color: hsl(var(--primary)); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .375rem; }
.field .req { color: hsl(var(--destructive)); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .9375rem; padding: .625rem .75rem; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--background));
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid hsl(var(--primary) / .4); outline-offset: 0; border-color: hsl(var(--primary));
}
.field [aria-invalid="true"] { border-color: hsl(var(--destructive)); }
.field textarea { resize: vertical; min-height: 7rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hint { font-size: .8125rem; color: hsl(var(--muted-foreground)); margin: .375rem 0 0; }
.err { font-size: .8125rem; color: hsl(var(--destructive)); margin: .25rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: .75rem; font-size: .9375rem; }
.form-status.ok  { color: hsl(var(--success)); font-weight: 600; }
.form-status.bad { color: hsl(var(--destructive)); }

/* ---------- footer ---------- */
.site-foot { background: hsl(var(--primary)); color: hsl(0 0% 100% / .75); padding: 3rem 0 2rem; font-size: .9375rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-foot h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-foot a { color: hsl(0 0% 100% / .75); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: .625rem; margin-bottom: .75rem; }
.foot-brand img { height: 2.25rem; width: auto; }
.foot-brand strong { color: #fff; font-size: 1.0625rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(0 0% 100% / .15); font-size: .8125rem; color: hsl(0 0% 100% / .6); }
.foot-bottom p { margin: 0 0 .35rem; }

/* ---------- animations ---------- */
@keyframes fadeIn   { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: none } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(.95) } to { opacity: 1; transform: none } }
@keyframes float    { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.animate-fade-in    { animation: fadeIn .8s ease-out both; }
.animate-fade-in-up { animation: fadeInUp .8s ease-out both; }
.animate-scale-in   { animation: scaleIn .6s ease-out both; }

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

@media (max-width: 700px) {
  .home-service-grid { grid-template-columns: 1fr; }
  .home-service-card:last-child { grid-column: auto; }
  .home-more-services { margin-top: 2.25rem; }
}

/* ==========================================================================
   2026 visual refresh
   ========================================================================== */

body {
  background:
    radial-gradient(circle at 8% 18%, hsl(var(--accent) / .035), transparent 22rem),
    hsl(var(--background));
}

h1, h2, h3, h4 { letter-spacing: -.035em; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-alt { background: linear-gradient(180deg, hsl(204 25% 96%), hsl(40 33% 98%)); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 15ch; margin-inline: auto; }
.section-head p:not(.eyebrow) { max-width: 42rem; margin-inline: auto; }
.eyebrow {
  margin: 0 0 1rem;
  color: hsl(var(--accent));
  font-size: .75rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.btn {
  min-height: 2.75rem;
  border-radius: .75rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary { box-shadow: 0 8px 24px hsl(var(--primary) / .16); }
.btn-accent { background: hsl(var(--accent)); color: #fff; border-color: hsl(var(--accent)); }
.btn-accent:hover:not(:disabled) { background: hsl(168 48% 32%); box-shadow: var(--shadow-glow); }
.btn-outline { background: hsl(var(--card) / .7); }

.card { border-color: hsl(var(--border) / .8); box-shadow: var(--shadow-card); }
.card-feature { border-width: 1px; border-color: hsl(var(--border) / .9); }
.card-feature:hover { border-color: hsl(var(--accent) / .45); box-shadow: 0 24px 54px hsl(var(--primary) / .12); }
.icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 1.1rem;
  background: hsl(var(--accent) / .12);
  color: hsl(var(--accent));
  box-shadow: none;
}
.icon-circle svg { width: 1.8rem; height: 1.8rem; }

/* header */
.site-head {
  background: hsl(40 33% 98% / .88);
  border-bottom-color: hsl(var(--border) / .7);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 4px 18px hsl(215 38% 12% / .06);
}
.head-inner { height: 4.75rem; }
.brand { gap: .75rem; }
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: .7rem;
  background: hsl(var(--primary));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.05em;
  box-shadow: 0 8px 22px hsl(var(--primary) / .2);
}
.brand span:last-child { font-size: 1.05rem; letter-spacing: -.025em; }
.head-nav { gap: 2rem; }
.head-nav a { font-weight: 650; color: hsl(var(--muted-foreground)); }
.head-nav a:hover { color: hsl(var(--foreground)); }
@media (max-width: 1050px) { .head-phone { display: none !important; } }

/* hero */
.hero {
  min-height: auto;
  isolation: isolate;
  background: hsl(var(--primary));
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .16;
  background-image: linear-gradient(hsl(0 0% 100% / .12) 1px, transparent 1px), linear-gradient(90deg, hsl(0 0% 100% / .12) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; pointer-events: none; }
.hero-orb-one { width: 30rem; height: 30rem; right: -10rem; top: -14rem; background: hsl(var(--accent) / .26); }
.hero-orb-two { width: 20rem; height: 20rem; left: 34%; bottom: -14rem; background: hsl(188 68% 49% / .12); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-inner { min-width: 0; padding: 0; margin: 0; max-width: 42rem; text-align: left; }
.hero .eyebrow { color: hsl(168 58% 68%); }
.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 15ch;
  font-size: clamp(2.65rem, 6.2vw, 5.1rem);
  line-height: 1;
  text-shadow: none;
}
.hero-sub { max-width: 38rem; margin-bottom: 2rem; color: hsl(210 30% 88%); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 400; }
.hero-actions { align-items: flex-start; }
.hero .quote-primary { display: grid; gap: .4rem; }
.hero .quote-speed { color: hsl(168 58% 72%); font-size: .75rem; font-weight: 800; text-align: center; }
.hero-actions .btn-ghost-light { background: transparent; border-color: hsl(0 0% 100% / .28); }
.hero-actions .btn-ghost-light:hover { background: hsl(0 0% 100% / .1); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .75rem 1.35rem; margin-top: 2rem; color: hsl(210 25% 80%); font-size: .8rem; font-weight: 650; }
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof span::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: hsl(168 58% 60%); box-shadow: 0 0 0 4px hsl(168 58% 60% / .12); }
.fold-review { max-width: 39rem; margin-top: 1.25rem; padding: .8rem .9rem; display: flex; align-items: center; gap: .75rem; border: 1px solid hsl(0 0% 100% / .18); border-radius: .85rem; background: hsl(0 0% 100% / .07); color: #fff; text-decoration: none; }
.fold-review-stars { flex: none; color: hsl(39 90% 60%); font-size: .78rem; letter-spacing: .06em; }
.fold-review > span:nth-child(2) { display: grid; min-width: 0; }
.fold-review strong { font-size: .76rem; }
.fold-review small { overflow: hidden; color: hsl(210 25% 78%); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.fold-review-link { margin-left: auto; flex: none; color: hsl(168 58% 68%); font-size: .68rem; font-weight: 750; }
.fold-review:hover { border-color: hsl(168 58% 68% / .5); }
.review-ribbon { display: flex; align-items: center; justify-content: center; gap: .85rem 1.6rem; min-height: 4.5rem; padding: 1rem 1.25rem; background: hsl(215 44% 12%); color: #fff; text-align: center; text-decoration: none; }
.review-ribbon-stars { color: hsl(39 90% 60%); font-size: 1.05rem; letter-spacing: .1em; }
.review-ribbon strong, .review-ribbon b { font-size: .95rem; }
.review-ribbon span:not(.review-ribbon-stars) { padding-left: 1.6rem; border-left: 1px solid hsl(0 0% 100% / .2); color: hsl(210 25% 82%); font-size: .88rem; }
.review-ribbon b { color: hsl(168 58% 68%); }
.hero-visual { position: relative; min-width: 0; width: min(100%, 35rem); justify-self: end; }
.hero-visual::before { content: ""; position: absolute; inset: -1.1rem 1.1rem 1.1rem -1.1rem; border: 1px solid hsl(0 0% 100% / .18); border-radius: 1.6rem; }
.hero-visual img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% center; border-radius: 1.4rem; box-shadow: 0 30px 80px hsl(215 65% 5% / .45); }
.hero-note { position: absolute; left: -2rem; bottom: 1.5rem; width: min(18rem, 80%); display: grid; gap: .15rem; padding: 1rem 1.1rem; border: 1px solid hsl(0 0% 100% / .3); border-radius: .9rem; background: hsl(40 33% 98% / .94); color: hsl(var(--foreground)); box-shadow: var(--shadow-elegant); backdrop-filter: blur(12px); }
.hero-note strong { font-size: .9rem; }
.hero-note span { color: hsl(var(--muted-foreground)); font-size: .76rem; line-height: 1.45; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 4rem; }
}
@media (max-width: 899px) {
  .hero-visual { justify-self: center; width: min(88%, 32rem); }
  .hero-visual img { aspect-ratio: 5 / 4; }
}
@media (max-width: 639px) {
  .hero { padding-top: 3.5rem; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-actions { align-items: stretch; }
  .hero-note { left: -1rem; bottom: -1rem; }
}

@media (max-width: 700px) {
  .review-ribbon { flex-wrap: wrap; gap: .4rem .85rem; min-height: 5.25rem; padding: 1rem .85rem; }
  .review-ribbon span:not(.review-ribbon-stars) { padding-left: .85rem; }
  .review-ribbon b { width: 100%; }
  .home-service-grid { grid-template-columns: 1fr; }
  .home-service-card:last-child { grid-column: auto; }
}

/* value proposition */
.value-section { padding-block: clamp(2.25rem, 4vw, 3.5rem); background: hsl(var(--background)); }
.value-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 1.25rem; background: hsl(var(--border)); box-shadow: var(--shadow-card); }
.value-grid article { position: relative; padding: 2rem; background: #fff; }
.value-grid article::before { content: ""; display: block; width: 2.5rem; height: .22rem; margin-bottom: 1.4rem; border-radius: 999px; background: hsl(var(--accent)); }
.value-grid h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.value-grid p { margin: 0; color: hsl(var(--muted-foreground)); font-size: .92rem; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); } .value-grid article { padding: 2.4rem; } }

.home-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 72rem; margin: 2rem auto 0; }
.home-service-card { --card-accent: hsl(171 48% 34%); --card-tint: hsl(168 45% 94%); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem 1rem; min-height: 12rem; padding: 1.4rem; border: 1px solid color-mix(in srgb, var(--card-accent) 24%, white); border-radius: 1rem; background: linear-gradient(145deg, var(--card-tint), #fff 72%); color: hsl(var(--foreground)); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.home-service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.home-service-card > span:nth-child(2) { display: grid; align-content: start; }
.home-service-card small { color: var(--card-accent); font-size: .84rem; font-weight: 900; line-height: 1.3; letter-spacing: .015em; }
.home-service-card strong { margin-top: .25rem; font-size: 1.1rem; }
.home-service-card p { margin: .4rem 0 0; color: hsl(var(--muted-foreground)); font-size: .82rem; line-height: 1.5; }
.home-service-card b { grid-column: 2; color: var(--card-accent); font-size: .75rem; }
.home-more-services { max-width: 72rem; margin: 3rem auto 0; }
.home-more-services .section-head { margin-bottom: 1rem; }
.home-more-services .section-head h3 { font-size: clamp(1.45rem, 3vw, 2rem); }

/* services */
#services { background: linear-gradient(180deg, hsl(var(--background)), #fff 54%, hsl(var(--background))); }
.service-showcase { display: grid; gap: 1.25rem; max-width: 72rem; margin-inline: auto; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid hsl(var(--border));
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.service-card::after { content: ""; position: absolute; width: 18rem; height: 18rem; top: -10rem; right: -10rem; border-radius: 50%; background: hsl(var(--accent) / .08); pointer-events: none; }
.service-card-tax { border-color: hsl(215 38% 27%); background: hsl(var(--primary)); color: #fff; box-shadow: 0 28px 65px -30px hsl(var(--primary) / .7); }
.service-card-tax::after { background: hsl(var(--accent) / .2); }
.service-topline { position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.service-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .8rem; background: hsl(var(--accent) / .12); color: hsl(var(--accent)); }
.service-icon svg { width: 1.35rem; height: 1.35rem; }
.service-card-tax .service-icon { background: hsl(0 0% 100% / .1); color: hsl(168 58% 68%); }
.service-type { font-size: .9rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.service-card-tax .service-type { color: hsl(210 28% 82%); }
.service-copy { position: relative; z-index: 1; }
.service-for { min-height: 2.5em; margin-bottom: .75rem; color: hsl(var(--accent)); font-size: .75rem; line-height: 1.45; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.service-card-tax .service-for { color: hsl(168 58% 68%); }
.service-copy h3 { max-width: 12ch; margin-bottom: 1rem; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.02; }
.service-copy > p:last-child { color: hsl(var(--muted-foreground)); font-size: 1rem; }
.service-card-tax .service-copy > p:last-child { color: hsl(210 30% 84%); }
.service-benefits { display: grid; gap: .75rem; margin: 1.4rem 0 1.5rem; padding: 1.4rem 0 0; border-top: 1px solid hsl(var(--border)); list-style: none; }
.service-card-tax .service-benefits { border-color: hsl(0 0% 100% / .14); }
.service-benefits li { position: relative; padding-left: 1.65rem; font-size: .9rem; font-weight: 650; }
.service-benefits li::before { content: "✓"; position: absolute; left: 0; top: -.05rem; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--accent) / .12); color: hsl(var(--accent)); font-size: .7rem; font-weight: 900; }
.service-card-tax .service-benefits li::before { background: hsl(168 58% 60% / .15); color: hsl(168 58% 68%); }
.service-audience { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.75rem; }
.service-audience span { padding: .3rem .6rem; border: 1px solid hsl(0 0% 100% / .16); border-radius: 999px; color: hsl(210 25% 82%); font-size: .72rem; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: auto; }
.service-actions .btn { flex: 1 1 13rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: hsl(var(--foreground)); font-size: .85rem; font-weight: 750; text-decoration: none; }
.text-link:hover { color: hsl(var(--accent)); }
.service-card-tax .text-link { color: hsl(var(--primary)); }
.service-card-tax .text-link:hover { color: hsl(var(--primary)); }
.service-info-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: auto; padding-top: .45rem; }
.service-info-links .text-link {
  min-height: 2.85rem;
  padding: .7rem 1rem;
  border: 1px solid hsl(var(--primary));
  border-radius: .65rem;
  background: hsl(var(--primary));
  color: #fff;
  box-shadow: 0 8px 20px -12px hsl(var(--primary) / .8);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.2;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.service-info-links .text-link:hover {
  background: hsl(215 38% 21%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px hsl(var(--primary) / .9);
}
.service-info-links .text-link:focus-visible { outline: 3px solid hsl(var(--accent) / .42); outline-offset: 3px; }
.service-card-tax .service-info-links .text-link { border-color: #fff; background: #fff; color: hsl(var(--primary)); }
.service-card-tax .service-info-links .text-link:hover { background: hsl(168 45% 94%); color: hsl(var(--primary)); }
#services .service-topline { margin-bottom: 2rem; }
@media (min-width: 900px) { .service-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.service-paths { max-width: 72rem; margin: 1.25rem auto 0; padding: 1rem 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: #fff; }
.service-paths > span { margin-right: .25rem; color: hsl(var(--muted-foreground)); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-paths a { padding: .45rem .7rem; border-radius: 999px; background: hsl(var(--secondary)); color: hsl(var(--foreground)); font-size: .78rem; font-weight: 750; text-decoration: none; }
.service-paths a:hover { background: hsl(var(--accent) / .14); color: hsl(var(--accent)); }

.quote-banner { max-width: 72rem; margin: 1.5rem auto 0; padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; align-items: center; gap: 1.5rem; overflow: hidden; border-radius: 1.25rem; background: hsl(206 27% 93%); }
.quote-banner-copy { display: flex; align-items: flex-start; gap: 1.25rem; }
.quote-time { flex: none; padding: .42rem .65rem; border-radius: 999px; background: #fff; color: hsl(var(--accent)); font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 6px 18px hsl(var(--primary) / .07); }
.quote-banner h3 { margin-bottom: .35rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.quote-banner p { margin: 0; color: hsl(var(--muted-foreground)); font-size: .88rem; }
.quote-banner-actions { justify-self: stretch; }
.quote-banner-actions .btn { width: 100%; }
.direct-inline { margin-top: .65rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .65rem; color: hsl(var(--muted-foreground)); font-size: .78rem; }
.direct-inline a { color: hsl(var(--foreground)); font-weight: 750; }
@media (min-width: 900px) { .quote-banner { grid-template-columns: minmax(0, 1fr) auto; } .quote-banner-actions { justify-self: end; } }
@media (max-width: 600px) { .quote-banner-copy { display: grid; } }

.svc-stack { max-width: 68rem; margin-bottom: 2rem; }
.svc-stack .card-body { padding: clamp(2rem, 5vw, 3.5rem); }
.svc-head { max-width: 48rem; margin-inline: auto; }
.svc-head h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.svc-grid { margin-top: 2.5rem; gap: 1px; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: .9rem; background: hsl(var(--border)); }
.svc-col { padding: 1.5rem; background: hsl(var(--secondary) / .42); }
.badge { background: hsl(var(--accent) / .09); color: hsl(168 48% 27%); }
.badge-outline { background: #fff; border-color: hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.split { max-width: 68rem; margin-top: 4rem; gap: clamp(2rem, 6vw, 5rem); }
.split img { aspect-ratio: 4 / 3; border-radius: 1.25rem; }
.split h3 { font-size: clamp(2rem, 4vw, 3.25rem); }
.service-story { max-width: 72rem; margin-top: clamp(4rem, 8vw, 7rem); }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.5rem; }

/* process and reviews */
.process-section { background: hsl(206 27% 95%); }
.process-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.process-grid li { padding: 1.5rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: #fff; }
.process-grid li > span { display: block; margin-bottom: 1.25rem; color: hsl(var(--accent)); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.process-grid h3 { margin-bottom: .55rem; font-size: 1.15rem; }
.process-grid p { margin: 0; color: hsl(var(--muted-foreground)); font-size: .88rem; }
.process-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.reviews-section { background: #fff; }
.review-grid { display: grid; gap: 1rem; }
.review-card { margin: 0; padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--background)); }
.review-stars { margin-bottom: 1rem; color: hsl(39 88% 47%); letter-spacing: .12em; }
.review-card blockquote { margin: 0 0 1.25rem; color: hsl(var(--foreground)); font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.55; font-weight: 650; }
.review-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: hsl(var(--muted-foreground)); font-size: .78rem; }
.review-card a { color: hsl(var(--accent)); font-weight: 750; }
.review-note { margin: 1rem auto 0; max-width: 50rem; color: hsl(var(--muted-foreground)); font-size: .75rem; text-align: center; }
@media (min-width: 760px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1050px) { .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* about */
.team-head { margin-bottom: 2.5rem; }
.team-head svg { width: 2.25rem; height: 2.25rem; color: hsl(var(--accent)); }
.team-card { max-width: 68rem; border: 0; }
.team-card .card-body { padding: clamp(2rem, 5vw, 3.5rem); }
.team-grid { align-items: center; }
.team-photo { width: min(100%, 16rem); height: auto; aspect-ratio: 4 / 5; border-radius: 1.1rem; box-shadow: none; }

/* news and articles */
.insights-section { overflow: hidden; background: hsl(var(--primary)); color: #fff; }
.insights-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.insights-heading > div:first-child { max-width: 46rem; }
.insights-heading h2 { max-width: 14ch; margin-bottom: 1rem; font-size: clamp(2.3rem, 5vw, 4.25rem); }
.insights-heading p:not(.eyebrow) { margin: 0; color: hsl(210 27% 80%); font-size: 1.05rem; }
.insights-section .eyebrow { color: hsl(168 58% 68%); }
.insights-controls { display: flex; gap: .6rem; flex: none; }
.carousel-btn { width: 2.8rem; height: 2.8rem; border: 1px solid hsl(0 0% 100% / .22); border-radius: 50%; background: transparent; color: #fff; font: inherit; font-size: 1.1rem; cursor: pointer; transition: background-color .18s, transform .18s; }
.carousel-btn:hover { background: hsl(0 0% 100% / .1); transform: translateY(-2px); }
.article-carousel { display: flex; gap: 1.25rem; overflow-x: auto; padding: .5rem .15rem 1.5rem; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.article-carousel::-webkit-scrollbar { display: none; }
.article-carousel:focus-visible { outline: 2px solid hsl(168 58% 68%); outline-offset: .4rem; border-radius: 1rem; }
.article-card { flex: 0 0 min(85vw, 23rem); overflow: hidden; scroll-snap-align: start; border: 1px solid hsl(0 0% 100% / .12); border-radius: 1.15rem; background: hsl(0 0% 100% / .07); transition: transform .22s, border-color .22s; }
.article-card:hover { transform: translateY(-5px); border-color: hsl(168 58% 68% / .45); }
.article-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: hsl(215 40% 12%); }
.article-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-image img { transform: scale(1.025); }
.article-card-body { padding: 1.35rem; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; color: hsl(210 25% 72%); font-size: .66rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.article-meta span { color: hsl(168 58% 68%); }
.article-card h3 { margin-bottom: .75rem; font-size: 1.35rem; }
.article-card h3 a { color: #fff; text-decoration: none; }
.article-card p { color: hsl(210 25% 78%); font-size: .86rem; }
.article-read { display: inline-flex; gap: .35rem; color: #fff; font-size: .8rem; font-weight: 750; text-decoration: none; }
.article-read:hover { color: hsl(168 58% 68%); }
.insights-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: .5rem; }
.insights-footer .btn-outline { border-color: hsl(0 0% 100% / .24); background: transparent; color: #fff; }
.insights-footer .btn-outline:hover { background: hsl(0 0% 100% / .1); }
.insights-convert { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; color: hsl(210 25% 78%); font-size: .82rem; }
.insights-convert .text-link { color: hsl(168 58% 68%); }
button.text-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
@media (min-width: 780px) { .article-card { flex-basis: min(29rem, calc((100% - 1.25rem) / 2)); } }
@media (max-width: 620px) { .insights-heading { align-items: flex-end; } .insights-controls { display: none; } .insights-footer { align-items: stretch; } .insights-footer > .btn { width: 100%; } }

/* contact */
#contact { background: #fff; }
.contact-grid { max-width: 68rem; gap: clamp(2rem, 6vw, 5rem); }
.contact-intro h3 { max-width: 14ch; font-size: clamp(1.75rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.contact-intro > p:not(.contact-kicker) { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.contact-kicker { color: hsl(var(--accent)); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-channels { display: grid; gap: .65rem; margin-bottom: 2rem; }
.contact-channel { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border: 1px solid hsl(var(--border)); border-radius: .8rem; background: hsl(var(--background)); color: hsl(var(--foreground)); text-decoration: none; transition: border-color .18s, transform .18s; }
.contact-channel:hover { border-color: hsl(var(--accent) / .6); transform: translateY(-1px); }
.contact-channel svg { width: 1.2rem; height: 1.2rem; color: hsl(var(--accent)); }
.contact-channel span { display: grid; }
.contact-channel small { color: hsl(var(--muted-foreground)); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-channel strong { font-size: .86rem; }
.contact-detail { margin-bottom: 1.5rem; }
.contact-detail svg { width: 1.35rem; height: 1.35rem; color: hsl(var(--accent)); }
.contact-detail-label { font-size: .9rem; }
.contact-detail span.val { display: block; max-width: 24rem; line-height: 1.5; }
.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); }
.field input, .field textarea, .field select { padding: .78rem .9rem; border-radius: .65rem; background: hsl(var(--background)); }

/* footer */
.site-foot { padding-top: 4rem; background: hsl(215 52% 11%); }
.brand-mark-light { width: 2.15rem; height: 2.15rem; background: hsl(var(--accent)); box-shadow: none; }
.foot-brand strong { font-size: 1.15rem; }
.site-foot p { max-width: 34rem; }

/* persistent, thumb-friendly conversion choices for paid-social traffic */
.head-phone { margin-left: auto; color: hsl(var(--foreground)); font-size: .82rem; font-weight: 750; text-decoration: none; }
.mobile-conversion { display: none; }
@media (max-width: 760px) {
  .has-mobile-conversion { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-conversion {
    position: fixed;
    z-index: 80;
    left: .7rem;
    right: .7rem;
    bottom: max(.7rem, env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: .5rem;
    padding: .55rem;
    border: 1px solid hsl(var(--border) / .8);
    border-radius: .95rem;
    background: hsl(40 33% 98% / .94);
    box-shadow: 0 16px 45px hsl(var(--primary) / .24);
    backdrop-filter: blur(16px);
  }
  .mobile-conversion .btn { min-width: 0; min-height: 2.8rem; padding-inline: .7rem; font-size: .78rem; }
  .site-foot { padding-bottom: 5.5rem; }
}

/* ==========================================================================
   Instant quote wizard
   ========================================================================== */

.wiz {
  width: min(38rem, calc(100vw - 2rem));
  max-height: min(85vh, 52rem);
  padding: 0; border: none; border-radius: var(--radius);
  background: hsl(var(--card)); color: hsl(var(--foreground));
  box-shadow: 0 24px 60px hsl(210 22% 15% / .35);
  overflow: hidden;
}
.wiz::backdrop { background: hsl(210 22% 12% / .55); backdrop-filter: blur(3px); }
.wiz[open] { display: flex; flex-direction: column; animation: scaleIn .2s ease-out; }

.wiz-head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.wiz-head h2 { font-size: 1.25rem; margin: 0 0 .25rem; }
.wiz-head p { margin: 0; font-size: .8125rem; color: hsl(var(--muted-foreground)); }
.wiz-close {
  margin-left: auto; flex: none; background: none; border: none; cursor: pointer;
  font-size: 1.75rem; line-height: 1; color: hsl(var(--muted-foreground)); padding: 0 .25rem;
}
.wiz-close:hover { color: hsl(var(--foreground)); }

.wiz-progress { padding: .875rem 1.5rem 0; }
.progress-text { font-size: .8125rem; color: hsl(var(--muted-foreground)); margin-bottom: .375rem; }
.progress-bar { height: .375rem; border-radius: 999px; background: hsl(var(--secondary)); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--gradient-gold); transition: width .25s ease-out; }

.wiz-body { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; }
.wiz-body h3 { font-size: 1.0625rem; margin: 0 0 .75rem; }
.wiz-body h4 { font-size: 1rem; margin: 0 0 .25rem; }
.step-note { font-size: .8125rem; color: hsl(var(--muted-foreground)); margin: 0 0 .75rem; }

.wiz-nav { display: flex; gap: .75rem; justify-content: space-between; padding: 1rem 1.5rem; border-top: 1px solid hsl(var(--border)); background: hsl(var(--secondary) / .3); }
.wiz-nav .btn { min-width: 6.5rem; }
.wiz-nav [data-nav="next"] { margin-left: auto; }

/* options */
.opt-grid { display: grid; gap: .5rem; }
.opt-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .opt-grid-2 { grid-template-columns: 1fr; } }

.opt-btn, .opt-check {
  display: block; width: 100%; text-align: left; font: inherit;
  padding: .875rem 1rem; border: 2px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px); background: hsl(var(--card));
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.opt-btn:hover, .opt-check:hover { border-color: hsl(var(--accent) / .5); }
.opt-btn.is-selected, .opt-check.is-selected { border-color: hsl(var(--accent)); background: hsl(var(--accent) / .1); }
.opt-check { display: flex; align-items: flex-start; gap: .75rem; }
.opt-check input { margin-top: .15rem; width: 1.05rem; height: 1.05rem; accent-color: hsl(var(--accent)); flex: none; }
.opt-btn-label { display: block; font-weight: 750; font-size: .95rem; color: hsl(var(--foreground)); }
.opt-btn-desc { display: block; font-size: .75rem; color: hsl(var(--muted-foreground)); margin-top: .125rem; line-height: 1.45; }

.opt-count { display: flex; align-items: center; gap: .625rem; margin: -.125rem 0 .25rem 2.5rem; }
.opt-count label { font-size: .8125rem; color: hsl(var(--muted-foreground)); }
.opt-count input { width: 5rem; font: inherit; font-size: .875rem; padding: .3rem .5rem; text-align: center;
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 4px); background: hsl(var(--card)); color: inherit; }

.opt-nested { margin: .25rem 0 .25rem 2.5rem; display: grid; gap: .625rem; }
.opt-nested > label { font-size: .8125rem; color: hsl(var(--muted-foreground)); font-weight: 500; }
.opt-nested select { width: 100%; font: inherit; font-size: .875rem; padding: .45rem .6rem;
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 4px); background: hsl(var(--card)); color: inherit; }
.opt-nested .opt-count { margin-left: 0; }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.stepper { display: inline-flex; align-items: center; gap: .25rem; }
.stepper button {
  width: 1.75rem; height: 1.75rem; font-size: 1rem; line-height: 1; cursor: pointer;
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 4px);
  background: hsl(var(--card)); color: inherit;
}
.stepper button:hover { border-color: hsl(var(--accent)); }
.stepper-val { width: 2rem; text-align: center; font-weight: 600; font-size: .875rem; }

.notice { padding: .875rem 1rem; border-radius: calc(var(--radius) - 2px); font-size: .8125rem;
  background: hsl(var(--accent) / .12); border: 1px solid hsl(var(--accent) / .35); margin-top: .75rem; }
.notice p { margin: 0 0 .5rem; }
.notice p:last-of-type { margin-bottom: .75rem; }
.notice-bad { background: hsl(var(--destructive) / .08); border-color: hsl(var(--destructive) / .3); }
.notice-bad strong { color: hsl(var(--destructive)); }

/* result */
.result-total { text-align: center; padding: 1.25rem; margin-bottom: .75rem;
  background: hsl(var(--secondary) / .5); border-radius: var(--radius); }
.result-label { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600; color: hsl(var(--muted-foreground)); margin-bottom: .25rem; }
.result-figure { display: block; font-size: clamp(1.55rem, 7vw, 2.5rem); font-weight: 700; color: hsl(var(--primary)); line-height: 1.12; overflow-wrap: anywhere; }

.result-forms { margin: 1rem 0; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); }
.result-forms summary { cursor: pointer; padding: .75rem 1rem; font-weight: 600; font-size: .875rem; }
.result-forms ul { list-style: none; margin: 0; padding: 0 1rem 1rem; display: grid; gap: .625rem; }
.result-forms li { display: grid; font-size: .8125rem; padding-left: 1rem; position: relative; }
.result-forms li::before { content: "•"; position: absolute; left: 0; color: hsl(var(--accent)); font-weight: 700; }
.result-forms li strong { font-weight: 600; }
.result-forms li span { color: hsl(var(--muted-foreground)); }

.quote-cross-sell {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: start;
  margin: 1rem 0; padding: 1rem; border: 1px solid hsl(var(--accent) / .38);
  border-radius: calc(var(--radius) - 2px); background: linear-gradient(135deg, hsl(var(--accent) / .14), hsl(var(--secondary) / .55));
}
.quote-cross-sell-icon {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: hsl(var(--accent)); color: white; font-weight: 800;
}
.quote-cross-sell h4 { margin: 0 0 .3rem; color: hsl(var(--primary)); }
.quote-cross-sell p { margin: 0 0 .75rem; color: hsl(var(--muted-foreground)); font-size: .8125rem; line-height: 1.55; }
.quote-cross-sell .btn { width: 100%; min-height: 2.75rem; }
.quote-cross-sell-note { display: block; margin-top: .45rem; color: hsl(var(--muted-foreground)); font-size: .7rem; text-align: center; }
.quote-bookkeeping-added { margin-bottom: 1rem; }
.quote-disclaimer { margin: .75rem 0; padding: .7rem .8rem; border-left: 3px solid hsl(var(--accent)); background: hsl(42 88% 95%); color: hsl(39 52% 27%); font-size: .72rem; line-height: 1.5; }

.result-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); }
.result-done { text-align: center; padding: 2rem 1rem; }
.result-done h3 { color: hsl(var(--success)); }
.result-done p { color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }

.turnstile-slot { margin: 1rem 0; min-height: 65px; }
.turnstile-slot:empty { min-height: 0; margin: 0; }

/* ==========================================================================
   Mobile-first conversion refinements
   ========================================================================== */

@media (max-width: 760px) {
  .section { padding-block: 3.75rem; }
  .section-head { margin-bottom: 2.25rem; }
  .section-head h2 { font-size: clamp(2.05rem, 10vw, 3rem); }

  .head-inner { height: 4.25rem; }
  .head-phone { display: none !important; }
  .brand-mark { width: 2.15rem; height: 2.15rem; border-radius: .62rem; }
  .brand span:last-child { font-size: .96rem; }
  .head-cta { min-height: 2.75rem; }

  .hero { padding: 2.75rem 0 3.5rem; }
  .hero-grid { gap: 2.25rem; }
  .hero h1 { margin-bottom: 1.1rem; font-size: clamp(2.5rem, 12.2vw, 3.35rem); line-height: 1; }
  .hero-sub { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.6; }
  .hero-actions { gap: .6rem; }
  .hero-actions .btn { min-height: 3.15rem; }
  .fold-review { margin-top: 1rem; }
  .hero-proof { gap: .65rem 1rem; margin-top: 1.4rem; font-size: .72rem; }
  .hero-visual { width: 100%; }
  .hero-visual::before { inset: -.65rem .65rem .65rem -.65rem; }
  .hero-visual img { aspect-ratio: 16 / 9; border-radius: 1.05rem; }
  .hero-note { left: .75rem; bottom: -.8rem; width: min(17rem, calc(100% - 1.5rem)); padding: .8rem .9rem; }

  .value-section { padding-block: 3rem; }
  .value-grid article::before { margin-bottom: 1rem; }
  .value-grid article { padding: 1.5rem; }

  .service-card { padding: 1.4rem; border-radius: 1.1rem; }
  .service-info-links .text-link { flex: 1 1 100%; width: 100%; min-height: 3rem; }
  .service-topline { margin-bottom: 2.25rem; }
  .service-for { min-height: 0; font-size: .68rem; }
  .service-copy h3 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .service-copy > p:last-child { font-size: .92rem; }
  .service-benefits { margin-top: 1.1rem; }
  .service-benefits li { font-size: .82rem; }
  .service-actions { display: grid; gap: .35rem; }
  .service-actions .btn { width: 100%; min-height: 3rem; }
  .service-actions .text-link { min-height: 2.75rem; justify-content: center; }
  .quote-banner { padding: 1.3rem; }
  .quote-banner-actions .btn { min-height: 3rem; }
  .service-story { margin-top: 4rem; }
  .story-actions { display: grid; }
  .story-actions .btn, .story-actions .text-link { min-height: 2.9rem; width: 100%; justify-content: center; }

  .team-card .card-body { padding: 1.4rem; }
  .team-photo { width: min(75%, 14rem); }
  .team-tags { gap: .4rem; }

  .article-card-body { padding: 1.2rem; }
  .article-card h3 { font-size: 1.25rem; }
  .article-read { min-height: 2.75rem; align-items: center; }

  .contact-form { padding: 1.35rem; }
  .field { margin-bottom: 1.1rem; }
  .field input, .field textarea, .field select { min-height: 3rem; font-size: 1rem; }
  .field textarea { min-height: 8rem; }
  #submit-btn { min-height: 3.15rem; }
}

@media (max-width: 640px) {
  .wiz {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - .4rem);
    margin: auto 0 0;
    border-radius: 1.2rem 1.2rem 0 0;
    overscroll-behavior: contain;
  }
  .wiz-head { align-items: center; padding: 1rem 1rem .85rem; }
  .wiz-head h2 { font-size: 1.12rem; }
  .wiz-close { width: 3rem; height: 3rem; display: grid; place-items: center; padding: 0; border-radius: 50%; }
  .wiz-progress { padding: .75rem 1rem 0; }
  .wiz-body { padding: 1rem; overscroll-behavior: contain; }
  .wiz-nav { padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px)); }
  .wiz-nav .btn { min-width: 5.5rem; min-height: 2.9rem; }
  .opt-btn, .opt-check { min-height: 3rem; padding: .8rem .85rem; }
  .stepper button { width: 2.5rem; height: 2.5rem; }
  .turnstile-slot { width: 100% !important; display: flex; justify-content: center; overflow: hidden; }
}

@media (max-width: 340px) {
  .container { width: calc(100% - 1.25rem); }
  .brand { gap: .5rem; }
  .brand span:last-child { font-size: .88rem; }
  .head-cta { padding-inline: .75rem; }
  .hero h1 { font-size: 2.45rem; }
  .hero-proof { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-proof span:last-child { grid-column: 1 / -1; }
  .service-card { padding: 1.2rem; }
  .mobile-conversion { left: .45rem; right: .45rem; bottom: max(.45rem, env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 420px) {
  .fold-review { align-items: flex-start; }
  .fold-review-stars { padding-top: .08rem; }
  .fold-review-link { display: none; }
}

/* WordPress integration */
body.admin-bar .site-head { top: 32px; }
.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: inline-grid; min-width: 2.5rem; min-height: 2.5rem; padding: .5rem; place-items: center; border: 1px solid hsl(var(--border)); border-radius: .5rem; background: #fff; color: hsl(var(--foreground)); text-decoration: none; }
.page-numbers.current { border-color: hsl(var(--primary)); background: hsl(var(--primary)); color: #fff; }
@media (max-width: 782px) { body.admin-bar .site-head { top: 46px; } }

/* thank-you conversion page */
.thank-you-page { min-height: 100vh; background: hsl(var(--primary)); }
.thank-you-main { min-height: calc(100vh - 4.75rem); display: grid; place-items: center; padding: 3rem 0; }
.thank-you-card { max-width: 48rem; padding: clamp(2rem, 7vw, 4.5rem); border-radius: 1.4rem; background: #fff; box-shadow: 0 24px 70px hsl(215 60% 6% / .3); }
.thank-you-card h1 { margin-bottom: 1.25rem; font-size: clamp(2.25rem, 7vw, 4.25rem); line-height: 1.04; }
.thank-you-card > p:not(.eyebrow) { color: hsl(var(--muted-foreground)); font-size: 1.05rem; }
.thank-you-card p[data-quote-validity] { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); font-size: .75rem; line-height: 1.5; }
.thank-you-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 600px) { .thank-you-actions { display: grid; } }

@media (max-width: 700px) {
  .home-service-grid { grid-template-columns: 1fr; }
  .home-more-services { margin-top: 2.25rem; }
}
