/* =============================================================================
   LC Taxes and More - Replicate-styled rebuild
   - Pill-shaped geometry on EVERYTHING (9999px radius)
   - Massive display type via Archivo Black (rb-freigeist-neue stand-in)
   - Body in Inter (basier-square stand-in), code in JetBrains Mono
   - Orangeâ†’redâ†’magenta gradient hero, dark manifesto section
   ========================================================================== */

:root {
  /* Brand - LaTasha's pink + purple palette */
  --c-dark:          #1f1632;        /* deep plum-black */
  --c-red:           #c13ea0;        /* hot pink-magenta accent */
  --c-red-warm:      #a93f9f;        /* warm magenta hover */
  --c-magenta:       #d04bb0;
  --c-pink:          #f5b6dc;        /* soft pink */
  --c-orange:        #b272d4;        /* lavender (accent stop) */
  --c-purple:        #7a3fa8;        /* deep purple */
  --c-violet:        #5e2a90;        /* deeper violet */
  --c-status-green:  #248256; /* darkened from #2b9a66 for WCAG AA contrast with white text (4.76:1) */
  --c-code-dark:     #2a1f3d;

  /* Surface */
  --c-white:         #ffffff;
  --c-near-white:    #fcfcfc;
  --c-bg:            #ffffff;

  /* Text */
  --c-text:          #202020;
  --c-text-warm:     #4e4e4e;
  --c-text-secondary:#646464;
  --c-text-muted:    #8d8d8d;
  --c-decoration:    #bbbbbb;

  /* Type */
  --font-display: "Archivo Black", "Anton", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* The only radius */
  --r-pill: 9999px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: underline dotted var(--c-decoration); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--c-red); color: var(--c-red-warm); }

ul { padding-left: 1.25rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* -------------------------------------------------------------------------- */
/*  Type                                                                      */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;          /* Archivo Black is intrinsically heavy */
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0 0 16px;
  color: var(--c-text);
  text-transform: none;
}

h1 { font-size: clamp(56px, 9vw, 128px); letter-spacing: -0.035em; }
h2 { font-size: clamp(40px, 5.5vw, 72px); letter-spacing: -0.025em; }
h3 { font-size: clamp(28px, 3vw, 40px); }
h4 { font-size: 22px; line-height: 1.2; }
h5 { font-size: 18px; line-height: 1.3; }
h6 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: none;
  color: var(--c-text); margin-bottom: 12px;
}

p { margin: 0 0 16px; }

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--c-text-warm);
  max-width: 60ch;
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--c-text);
  background: var(--c-white);
  padding: 6px 14px;
  border: 1px solid var(--c-dark);
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* -------------------------------------------------------------------------- */
/*  Buttons                                                                   */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn, .btn:hover, .btn:focus, .btn:active { text-decoration: none !important; }

.btn-primary {
  background: var(--c-dark);
  color: var(--c-near-white);
  border-color: var(--c-dark);
}
.btn-primary:hover { background: #000; color: #fff; }

.btn-outline {
  background: var(--c-white);
  color: var(--c-dark);
  border-color: var(--c-dark);
}
.btn-outline:hover { background: var(--c-dark); color: var(--c-white); }

.btn-on-dark {
  background: var(--c-white);
  color: var(--c-dark);
  border-color: var(--c-white);
}
.btn-on-dark:hover { background: transparent; color: var(--c-white); }

.btn-ghost-on-dark {
  background: transparent;
  color: var(--c-near-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-on-dark:hover { background: rgba(255,255,255,0.08); border-color: var(--c-white); }

/* Legacy button names from previous markup (kept working) */
.btn-dark  { background: var(--c-dark); color: var(--c-near-white); border-color: var(--c-dark); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* -------------------------------------------------------------------------- */
/*  Nav                                                                       */
/* -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  text-decoration: none;
  color: var(--c-dark);
  letter-spacing: -0.005em;
  line-height: 1.0;
  text-transform: none;
}
.nav-brand img {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--c-dark);
  border: 1px solid var(--c-dark);
}
.nav-brand span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--c-text);
}
.nav-brand span strong {
  font-weight: 800;
  color: var(--c-dark);
}
.nav-brand:hover { color: var(--c-red); }

.nav-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 6px;
}
.nav-links li a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-text);
  padding: 10px 14px;
  border-radius: var(--r-pill);
}
.nav-links li a:hover { background: rgba(0,0,0,0.05); text-decoration: underline dotted var(--c-decoration); }
.nav-cta a { background: var(--c-dark); color: var(--c-near-white) !important; padding: 10px 20px !important; border-color: var(--c-dark) !important; }
.nav-cta a:hover { background: #000 !important; color: #fff !important; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--c-dark);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

.nav-links li.active a {
  background: var(--c-dark);
  color: var(--c-near-white);
}
.nav-links li.active a:hover { background: #000; text-decoration: none; }

/* -------------------------------------------------------------------------- */
/*  Hero (the BLAZE)                                                          */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 80% 25%, var(--c-pink) 0%, transparent 60%),
    radial-gradient(ellipse 75% 60% at 15% 85%, var(--c-violet) 0%, transparent 55%),
    linear-gradient(135deg, var(--c-purple) 0%, var(--c-magenta) 30%, var(--c-red) 60%, var(--c-pink) 100%);
  color: var(--c-near-white);
  padding: clamp(64px, 10vw, 160px) 0 clamp(80px, 12vw, 192px);
  overflow: hidden;
}

/* Accessibility scrim: the pink/violet highlights above drop below WCAG AA
   contrast for white text where they're lightest. This darkening overlay
   keeps the gradient look while guaranteeing readable text everywhere. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 34, 0.6);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { color: var(--c-white); }
.hero .lead { color: rgba(255,255,255,0.92); max-width: 56ch; }
.hero .kicker { background: rgba(255,255,255,0.15); color: var(--c-white); border-color: rgba(255,255,255,0.35); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.12);
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
}

/* Hero showcase card - pill-shaped, framed in dark */
.hero-card {
  background: var(--c-white);
  color: var(--c-dark);
  border: 1px solid var(--c-dark);
  border-radius: var(--r-pill);
  padding: 56px 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.hero-card-badge {
  background: var(--c-status-green);
  color: var(--c-white);
  font-size: 12px; font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  text-align: center;
}
.hero-card-rating {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
}
.hero-card-mark {
  width: 60%; aspect-ratio: 1; color: var(--c-red);
}

/* -------------------------------------------------------------------------- */
/*  Section spacing                                                           */
/* -------------------------------------------------------------------------- */
section { padding: clamp(64px, 9vw, 128px) 0; }

.section-intro { max-width: 720px; margin-bottom: 64px; }
.section-intro h2 { margin-bottom: 20px; }

/* -------------------------------------------------------------------------- */
/*  Category strip                                                            */
/* -------------------------------------------------------------------------- */
.category-strip {
  border-bottom: 1px solid var(--c-dark);
  background: var(--c-white);
  padding: 20px 0;
}
.category-row {
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none;
}
.category-row::-webkit-scrollbar { display: none; }
.category-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--c-dark);
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--c-white);
  transition: all 120ms ease;
}
.category-pill svg { width: 16px; height: 16px; }
.category-pill:hover { background: var(--c-dark); color: var(--c-white); text-decoration: none; }
.category-pill.active { background: var(--c-dark); color: var(--c-white); }

/* -------------------------------------------------------------------------- */
/*  About                                                                     */
/* -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-card {
  border: 1px solid var(--c-dark);
  border-radius: 48px;
  padding: 56px 48px;
  background: var(--c-white);
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px;
  padding-top: 28px; border-top: 1px solid var(--c-dark);
}
.about-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--c-red);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.about-stat-label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--c-text-secondary);
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/*  Listing grid (services + testimonials)                                    */
/* -------------------------------------------------------------------------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.listing-grid.four { grid-template-columns: repeat(4, 1fr); }

.listing {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 32px;        /* softened - pure pill on tall cards is too extreme */
  overflow: hidden;
  transition: transform 120ms ease, border-color 120ms ease;
  display: flex; flex-direction: column;
}
.listing:hover { transform: translateY(-3px); border-color: var(--c-red); }

.listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  border-bottom: 1px solid var(--c-dark);
  overflow: hidden;
}
.listing-photo svg { width: 56px; height: 56px; }
.listing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.theme-tax    { background: linear-gradient(135deg, #c13ea0 0%, #f5b6dc 100%); }
.theme-books  { background: linear-gradient(135deg, #1f1632 0%, #5e2a90 100%); }
.theme-notary { background: linear-gradient(135deg, #7a3fa8 0%, #c13ea0 100%); }
.theme-loan   { background: linear-gradient(135deg, #5e2a90 0%, #b272d4 100%); }

.listing-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--c-white); color: var(--c-dark);
  border: 1px solid var(--c-dark);
  font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--r-pill);
  text-transform: none; letter-spacing: 0.03em;
}
.listing-heart {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95);
  color: var(--c-red);
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 1px solid var(--c-dark);
}

.listing-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.listing-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 8px;
}
.listing-title h4 { margin: 0; }
.listing-rating {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--c-text); white-space: nowrap;
}
.listing-desc { color: var(--c-text-secondary); font-size: 14px; line-height: 1.5; flex: 1; }
.listing-price {
  margin: 16px 0 0; font-size: 13px;
  padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--c-text-secondary);
}
.listing-price strong { color: var(--c-text); }

/* Testimonial variants */
.testimonial-listing .listing-photo {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--c-white);
  letter-spacing: -0.04em;
}
.testimonial-listing.t1 .listing-photo { background: linear-gradient(135deg, #c13ea0 0%, #f5b6dc 100%); }
.testimonial-listing.t2 .listing-photo { background: linear-gradient(135deg, #7a3fa8 0%, #c13ea0 100%); }
.testimonial-listing.t3 .listing-photo { background: linear-gradient(135deg, #1f1632 0%, #5e2a90 100%); }
.testimonial-listing.t4 .listing-photo { background: linear-gradient(135deg, #5e2a90 0%, #b272d4 100%); }

.testimonial-quote { color: var(--c-text-warm); font-size: 14px; line-height: 1.55; }

/* -------------------------------------------------------------------------- */
/*  FAQ                                                                       */
/* -------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.faq-item {
  border: 1px solid var(--c-dark);
  border-radius: 28px;
  background: var(--c-white);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 20px 28px;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-red);
  width: 32px; height: 32px;
  border: 1px solid var(--c-dark);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 28px 24px; color: var(--c-text-secondary); font-size: 15px; }
.faq-content ul { margin: 8px 0 0; }
.faq-content li { margin-bottom: 4px; }

/* -------------------------------------------------------------------------- */
/*  Manifesto (the 128px shout)                                               */
/* -------------------------------------------------------------------------- */
.manifesto {
  background: var(--c-dark);
  color: var(--c-near-white);
  padding: clamp(96px, 14vw, 192px) 0;
  text-align: left;
}
.manifesto h2 {
  font-size: clamp(56px, 11vw, 128px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--c-white);
  max-width: 16ch;
  margin: 0 0 32px;
}
.manifesto h2 .accent { color: var(--c-red); }
.manifesto h2 .pill-img {
  display: inline-block;
  vertical-align: -0.1em;
  width: 0.85em; height: 0.85em;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #c13ea0, #f5b6dc);
  margin: 0 0.05em;
}
.manifesto-sub {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 22px);
  color: rgba(255,255,255,0.75);
  max-width: 60ch;
  margin-bottom: 40px;
}
.manifesto-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* -------------------------------------------------------------------------- */
/*  Contact                                                                   */
/* -------------------------------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 28px;
  padding: 24px;
}
.contact-card p { margin: 0; color: var(--c-text-secondary); }
.contact-map-card {
  background: linear-gradient(135deg, #7a3fa8 0%, #c13ea0 100%);
  color: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 28px;
  padding: 48px 40px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px;
}
.contact-map-card svg { width: 56px; height: 56px; }
.contact-map-card h4 { color: var(--c-white); margin: 0; }
.contact-map-card p { color: rgba(255,255,255,0.92); margin: 0; }

/* -------------------------------------------------------------------------- */
/*  Disclaimer + Footer                                                       */
/* -------------------------------------------------------------------------- */
.footer-badges {
  background: var(--c-near-white);
  border-top: 1px solid var(--c-dark);
  padding: 36px 0;
}
.footer-badges-row {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: 40px 56px;
  align-items: center;
  justify-content: center;
}
.footer-badges-row li { display: inline-flex; align-items: center; }
.footer-badges-row img {
  height: 84px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: none;
}
.footer-badges-row img[src*="badge-acap"] { height: 120px; max-width: 200px; }

.disclaimer {
  background: var(--c-near-white);
  border-top: 1px solid var(--c-dark);
  border-bottom: 1px solid var(--c-dark);
  padding: 24px 0;
  font-size: 13px;
  color: var(--c-text-secondary);
}

.footer {
  background: var(--c-dark);
  color: var(--c-near-white);
  padding: 80px 0 32px;
}
.footer .nav-brand { color: var(--c-white); }
.footer .nav-brand svg { color: var(--c-red); }
.footer p { color: rgba(255,255,255,0.7); }
.footer h6 { color: var(--c-white); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; font-size: 14px; }
.footer ul li a { color: rgba(255,255,255,0.75); text-decoration: underline dotted rgba(255,255,255,0.3); }
.footer ul li a:hover { color: var(--c-white); text-decoration-color: var(--c-red); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.6);
}
.footer-bottom .credit { color: rgba(255,255,255,0.6); }

/* -------------------------------------------------------------------------- */
/*  Page hero (sub-pages)                                                     */
/* -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, var(--c-pink) 0%, transparent 55%),
    radial-gradient(ellipse 65% 60% at 10% 80%, var(--c-violet) 0%, transparent 50%),
    linear-gradient(135deg, var(--c-purple) 0%, var(--c-magenta) 50%, var(--c-red) 100%);
  color: var(--c-near-white);
  padding: clamp(80px, 9vw, 140px) 0 clamp(80px, 9vw, 140px);
  border-bottom: 1px solid var(--c-dark);
  overflow: hidden;
}

/* Accessibility scrim: see .hero::before for rationale. */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 34, 0.6);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--c-white);
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.page-hero .lead { color: rgba(255,255,255,0.92); max-width: 60ch; }
.page-hero .kicker { background: rgba(255,255,255,0.15); color: var(--c-white); border-color: rgba(255,255,255,0.35); }
.page-hero .breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero .breadcrumbs a { color: var(--c-white); text-decoration: underline dotted rgba(255,255,255,0.5); }
.page-hero .breadcrumbs span.sep { margin: 0 10px; opacity: 0.6; }

/* -------------------------------------------------------------------------- */
/*  Image slot wrapper (drops styled around <image-slot> placeholder)         */
/* -------------------------------------------------------------------------- */
.img-frame {
  border: 1px solid var(--c-dark);
  border-radius: 32px;
  overflow: hidden;
  background: var(--c-near-white);
}
.img-frame image-slot { width: 100%; height: 100%; display: block; }

/* -------------------------------------------------------------------------- */
/*  About page                                                                */
/* -------------------------------------------------------------------------- */
.about-bio {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.about-bio-photo {
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--c-dark);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-magenta) 100%);
}
.about-bio-photo image-slot { width: 100%; height: 100%; display: block; }
.about-bio h3 { margin-top: 32px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 32px;
  padding: 32px 28px;
}
.value-card .value-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--c-red);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: block;
}
.value-card h4 { margin-bottom: 12px; }
.value-card p { color: var(--c-text-secondary); margin: 0; }

/* -------------------------------------------------------------------------- */
/*  Areas of practice - detail sections                                       */
/* -------------------------------------------------------------------------- */
.area-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.area-detail:last-child { border-bottom: 0; }
.area-detail.flip > :first-child { order: 2; }
.area-detail h2 { font-size: clamp(36px, 4.5vw, 56px); }
.area-detail .area-img {
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--c-dark);
  aspect-ratio: 4 / 3;
}
.area-detail .area-img image-slot { width: 100%; height: 100%; display: block; }
.area-detail ul.feature-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.area-detail ul.feature-list li {
  padding: 12px 18px 12px 44px;
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--r-pill);
  font-size: 14px;
  position: relative;
}
.area-detail ul.feature-list li::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-red);
  background-image: linear-gradient(135deg, var(--c-magenta), var(--c-red));
}
.area-detail ul.feature-list li::after {
  content: "âœ“";
  position: absolute;
  left: 22px; top: 50%; transform: translateY(-50%);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
}

.area-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.area-toc a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
  font-size: 14px;
  transition: all 120ms ease;
}
.area-toc a:hover { background: var(--c-dark); color: var(--c-white); transform: translateY(-2px); }
.area-toc a span.num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-red);
  letter-spacing: 0.05em;
}
.area-toc a:hover span.num { color: var(--c-pink); }

/* -------------------------------------------------------------------------- */
/*  New services - feature cards                                              */
/* -------------------------------------------------------------------------- */
.new-svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.new-svc {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 36px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.new-svc .new-svc-img {
  border-bottom: 1px solid var(--c-dark);
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-red) 100%);
}
.new-svc .new-svc-img image-slot { width: 100%; height: 100%; display: block; }
.new-svc .new-svc-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--c-white);
  color: var(--c-dark);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--c-dark);
}
.new-svc-body { padding: 32px; }
.new-svc-body h3 { margin-bottom: 12px; font-size: 26px; }
.new-svc-body .lead { font-size: 15px; line-height: 1.55; max-width: none; margin-bottom: 16px; }

/* -------------------------------------------------------------------------- */
/*  Appointment page                                                          */
/* -------------------------------------------------------------------------- */
.appt-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.appt-form {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 36px;
  padding: 40px;
}
.appt-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.appt-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.appt-form label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text);
}
.appt-form input,
.appt-form select,
.appt-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  border: 1px solid var(--c-dark);
  border-radius: 16px;
  background: var(--c-near-white);
  color: var(--c-text);
  transition: border-color 120ms ease, background 120ms ease;
}
.appt-form input:focus,
.appt-form select:focus,
.appt-form textarea:focus {
  outline: none;
  border-color: var(--c-red);
  background: var(--c-white);
}
.appt-form textarea { resize: vertical; min-height: 120px; }
.appt-form .field-help {
  font-size: 12px; color: var(--c-text-secondary);
}

.svc-radio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.svc-radio input { position: absolute; opacity: 0; pointer-events: none; }
.svc-radio label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 14px 12px;
  border: 1px solid var(--c-dark);
  border-radius: 16px;
  background: var(--c-white);
  cursor: pointer;
  transition: all 120ms ease;
}
.svc-radio input:checked + label {
  background: var(--c-dark);
  color: var(--c-white);
}

.appt-summary {
  background: var(--c-dark);
  color: var(--c-near-white);
  border-radius: 36px;
  padding: 40px;
  position: sticky;
  top: 100px;
}
.appt-summary h6 { color: var(--c-pink); }
.appt-summary h3 { color: var(--c-white); margin-bottom: 24px; font-size: 32px; }
.appt-summary ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 14px; }
.appt-summary ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.appt-summary ul li::before {
  content: "â†’";
  color: var(--c-pink);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.appt-summary .summary-callout {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 24px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* -------------------------------------------------------------------------- */
/*  Contact page                                                              */
/* -------------------------------------------------------------------------- */
.contact-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: 40px;
}
.contact-block {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 36px;
  padding: 40px;
}
.contact-block .icon-pill {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-magenta) 0%, var(--c-red) 100%);
  color: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.contact-block .icon-pill svg { width: 22px; height: 22px; }
.contact-block h3 { margin-bottom: 12px; font-size: 26px; }
.contact-block p { color: var(--c-text-secondary); margin: 0 0 8px; }
.contact-block a.big { display: block; font-size: 22px; font-weight: 700; margin-top: 8px; color: var(--c-text); text-decoration: none; }
.contact-block a.big:hover { color: var(--c-red); }

.hours-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hours-list li {
  display: flex; justify-content: space-between;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.hours-list li:last-child { border: 0; }
.hours-list li span:last-child { color: var(--c-text-secondary); font-family: var(--font-mono); font-size: 13px; }

.map-frame {
  margin-top: 48px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--c-dark);
  aspect-ratio: 16 / 7;
  background: var(--c-near-white);
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------------------- */
/*  Blog page                                                                 */
/* -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-grid.two-col { grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.blog-card {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 120ms ease, border-color 120ms ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--c-red); }
.blog-card-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-magenta) 100%);
  border-bottom: 1px solid var(--c-dark);
}
.blog-card-img image-slot { width: 100%; height: 100%; display: block; }
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-red);
  margin-bottom: 12px;
}
.blog-card-body h4 { margin-bottom: 12px; line-height: 1.15; font-size: 22px; }
.blog-card-body p { color: var(--c-text-secondary); font-size: 14px; line-height: 1.55; flex: 1; }
.blog-card-author {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  color: var(--c-text-secondary);
}
.blog-card-author .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-dark);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 14px;
}

.featured-post {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 36px;
  overflow: hidden;
}
.featured-post-img {
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-red) 100%);
  border-bottom: 1px solid var(--c-dark);
}
.featured-post-img image-slot { width: 100%; height: 100%; display: block; }
.featured-post-body { padding: 48px; }
.featured-post-body h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.featured-post-body .blog-card-meta { font-size: 12px; }

.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex; flex-direction: column; gap: 24px;
}
.sidebar-card {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 28px;
  padding: 28px;
}
.sidebar-card h6 { margin-bottom: 16px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
}
.sidebar-card ul li:last-child { border: 0; }
.sidebar-card ul li a { color: var(--c-text); text-decoration: none; }
.sidebar-card ul li a:hover { color: var(--c-red); }

/* -------------------------------------------------------------------------- */
/*  Real testimonial photo override                                           */
/* -------------------------------------------------------------------------- */
.testimonial-listing .listing-photo {
  position: relative;
  padding: 0;
  background: var(--c-near-white) !important;
}
.testimonial-listing .listing-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.testimonial-listing .listing-photo .quote-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  width: 40px; height: 40px;
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-red);
}

/* Footer brand override */
.footer-brand img { background: var(--c-white); }
.footer-brand span strong { color: var(--c-white); }
.footer-brand span { color: rgba(255,255,255,0.85); }

/* -------------------------------------------------------------------------- */
/*  Responsive                                                                */
/* -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { aspect-ratio: 5 / 3; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-bio { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; }
  .area-detail { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .area-detail.flip > :first-child { order: 0; }
  .area-toc { grid-template-columns: 1fr 1fr; }
  .new-svc-grid { grid-template-columns: 1fr; }
  .appt-grid { grid-template-columns: 1fr; }
  .appt-summary { position: static; }
  .contact-hero-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid.two-col { grid-template-columns: 1fr; gap: 32px; }
  .blog-sidebar { position: static; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid.four { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav nav { position: relative; }
  .nav-links {
    position: absolute;
    right: 0; top: calc(100% + 8px);
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-dark);
    border-radius: 28px;
    padding: 8px;
    min-width: 220px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .listing-grid, .listing-grid.four { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .about-stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .about-stat-num { font-size: 24px; }
  .hero-card { padding: 40px 32px; }
  .about-card { padding: 36px 28px; }
}

/* ---------- Google Reviews Gallery ---------- */
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin: 0 auto 32px;
  max-width: 720px;
  background: var(--c-near-white);
  border: 1px solid var(--c-dark);
  border-radius: var(--r-pill);
}
.reviews-summary-stars {
  color: #936e02; /* darkened from #FBBC05 for WCAG AA contrast on white (4.72:1) */
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
}
.reviews-summary-text { font-size: 15px; color: var(--c-text); }
.reviews-summary-text strong { font-size: 18px; color: var(--c-dark); }
.reviews-summary-cta { font-size: 13px; padding: 8px 16px; }

.reviews-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .reviews-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .reviews-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .reviews-gallery { grid-template-columns: 1fr; } }

.review-card {
  background: var(--c-white);
  border: 1px solid var(--c-dark);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.review-card-head {
  display: grid !important;
  grid-template-columns: 40px 1fr 22px;
  gap: 10px;
  align-items: center;
}
.review-avatar {
  width: 40px !important; height: 40px !important;
  min-width: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}
.review-meta { min-width: 0; overflow: hidden; }
.review-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-date {
  font-size: 12px;
  color: var(--c-text-secondary);
}
.review-google { width: 22px !important; height: 22px !important; flex: 0 0 22px; }
.review-stars {
  color: #936e02; /* darkened from #FBBC05 for WCAG AA contrast on white (4.72:1) */
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}
.review-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text);
  margin: 0;
}

/* ===== Service areas grid (about page Where We Work) ===== */
.service-areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ============================================================
   MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 720px) {
  /* 1. Hero text smaller on mobile */
  h1 { font-size: clamp(36px, 11vw, 48px) !important; letter-spacing: -0.02em; }
  h2 { font-size: clamp(28px, 8vw, 40px) !important; }
  .lead { font-size: 16px; }

  /* 2. Brand logo card less bloated */
  .hero-card {
    padding: 24px 20px !important;
    aspect-ratio: auto !important;
    border-radius: 32px;
    gap: 14px;
    min-height: 0;
  }
  .hero-card-mark { width: 38%; max-width: 140px; }

  /* 3. Category strip as vertical list */
  .category-row {
    flex-direction: column;
    gap: 8px;
    overflow-x: visible;
  }
  .category-pill {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 18px;
    font-size: 14px;
  }

  /* 4. Areas of practice (listing-grid) as horizontal scroller */
  .listing-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 16px 12px;
    margin: 0 -16px;
  }
  .listing-grid::-webkit-scrollbar { display: none; }
  .listing-grid > * {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: start;
  }

  /* 5. Reviews gallery as horizontal scroller */
  .reviews-gallery {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 16px 12px;
    margin: 0 -16px;
  }
  .reviews-gallery::-webkit-scrollbar { display: none; }
  .reviews-gallery > * {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: start;
  }

  /* 6. Service areas (Where We Work): vertical tiles */
  .service-areas-grid { grid-template-columns: 1fr; gap: 16px; }

  /* 7. Service area details: title -> image -> checklist (no body text) */
  .area-detail {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0 !important;
  }
  .area-detail > div:first-child { display: contents; }
  .area-detail .kicker { order: 0; }
  .area-detail h2 { order: 1; margin-bottom: 0; }
  .area-detail > div > p { display: none; }
  .area-detail .area-img { order: 2; }
  .area-detail .feature-list { order: 3; margin-top: 0; }

  /* 8. Contact page: fix overflow + tighten cards */
  .contact-hero-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .contact-block {
    padding: 28px 22px;
    border-radius: 28px;
    overflow: hidden;
  }
  .contact-block a.big {
    font-size: 18px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .contact-block h3 { font-size: 22px; }
  .contact-info { grid-template-columns: 1fr !important; }
}
