/* =====================================================================
   CAI — public site
   Palette and typefaces carried over from the existing cainda.in brand:
   deep maroon, controlled gold, warm cream. Playfair Display for
   headings, Plus Jakarta Sans for everything else.
   ===================================================================== */

:root {
  /* Brand */
  --maroon:        #5E1418;
  --maroon-deep:   #3F0D11;
  --maroon-light:  #7C1D26;
  --gold:          #C8A23A;
  --gold-bright:   #EBC766;
  --gold-deep:     #9C7A1E;

  /* Surfaces */
  --cream:         #FBF7EF;
  --cream-2:       #F5EEDF;
  --white:         #FFFFFF;
  --line:          #EDE3D2;
  --line-strong:   #DFD0B8;

  /* Text — body values meet WCAG AA on their intended background */
  --ink:           #2A1A12;
  --ink-2:         #5A4636;
  --muted:         #6E5F51;

  --danger:        #A4161A;
  --success:       #1F6B45;

  /* Shape and depth */
  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     22px;
  --shadow-sm:     0 6px 18px -12px rgba(63, 13, 17, .35);
  --shadow:        0 20px 44px -28px rgba(63, 13, 17, .40);
  --shadow-lg:     0 32px 70px -38px rgba(63, 13, 17, .48);

  /* Rhythm */
  --wrap:          1180px;
  --section-y:     clamp(3.5rem, 8vw, 6.5rem);

  --font-display:  "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:     "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;   /* clears the sticky header on anchor jumps */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;         /* belt and braces against sideways scroll */
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-light); }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }

strong { color: var(--ink); font-weight: 700; }

/* Focus is never removed — only restyled. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--maroon);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 .75rem;
}

.lead { font-size: 1.075rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--maroon);
  --btn-fg: #fff;
  --btn-bd: var(--maroon);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: .935rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--maroon); --btn-fg: #fff; --btn-bd: var(--maroon); }
.btn-primary:hover { --btn-bg: var(--maroon-light); --btn-bd: var(--maroon-light); }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--maroon); --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--white); --btn-bd: var(--maroon); }

.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--maroon-deep); --btn-bd: var(--gold); }
.btn-gold:hover { --btn-bg: var(--gold-bright); --btn-bd: var(--gold-bright); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--maroon); --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--cream-2); --btn-bd: var(--line); }

.btn-quiet { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn-quiet:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }

.btn-lg { padding: .92rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .48rem .95rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn-block + .btn-block { margin-top: .6rem; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brand-mark {
  width: clamp(190px, 15vw, 230px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-text { display: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: .02em;
}
.brand-sub {
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 1.75rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li > a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .945rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
  display: inline-block;
}
.nav-list > li > a:hover,
.nav-list > li > a[aria-current="page"] {
  color: var(--maroon);
  border-bottom-color: var(--gold);
}

.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Services mega-menu (pointer devices only) */
.has-menu { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(90vw, 760px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu:hover .mega,
.has-menu:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1.5rem; }
.mega-title {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 0 .5rem;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li + li { margin-top: .3rem; }
.mega-col a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: .845rem;
  line-height: 1.4;
  display: block;
}
.mega-col a:hover { color: var(--maroon); }
.mega-all {
  display: inline-block;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  width: 100%;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}

/* ------------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(235, 199, 102, .26), transparent 62%),
    radial-gradient(700px 420px at 92% 18%, rgba(94, 20, 24, .08), transparent 68%),
    linear-gradient(145deg, #fffaf1 0%, var(--cream) 48%, var(--cream-2) 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  margin-bottom: 1rem;
  max-width: 16ch;
  font-size: clamp(2.35rem, 5vw, 4rem);
  color: var(--maroon-deep);
  text-wrap: balance;
}
.hero-copy {
  position: relative;
  padding-left: clamp(1rem, 2.2vw, 1.75rem);
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: .2rem auto .2rem 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(var(--gold-bright), var(--maroon));
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 1.85rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.25rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line-strong);
  font-size: .875rem;
  color: var(--muted);
}
.hero-facts strong { color: var(--maroon); }

.hero-card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(200, 162, 58, .34);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: 0 28px 70px -42px rgba(63, 13, 17, .65);
  backdrop-filter: blur(10px);
}
.hero-card-title {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: .9rem;
}
.hero-card-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.hero-card-list li + li { border-top: 1px solid var(--line); }
.hero-card-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .78rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  transition: color .16s ease;
}
.hero-card-list a:hover { color: var(--maroon); }
.hero-card-list .chev { color: var(--gold-deep); transition: transform .16s ease; }
.hero-card-list a:hover .chev { transform: translateX(3px); }
.hero-card-all { font-weight: 600; font-size: .9rem; }

/* --------------------------------------------------------------- sections */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* Service category cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
  gap: 1.25rem;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--maroon-light));
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.svc-card h3 { margin-bottom: .5rem; font-size: 1.16rem; }
.svc-card h3 a { text-decoration: none; color: var(--ink); }
.svc-card h3 a:hover { color: var(--maroon); }
.svc-card-desc { font-size: .885rem; color: var(--muted); margin-bottom: .9rem; }
.svc-card-list { list-style: none; margin: 0; padding: 0; }
.svc-card-list li { padding: .28rem 0 .28rem 1.05rem; position: relative; }
.svc-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.svc-card-list a { font-size: .88rem; text-decoration: none; color: var(--ink-2); }
.svc-card-list a:hover { color: var(--maroon); text-decoration: underline; }
.svc-card-more { margin: .8rem 0 0; font-size: .85rem; font-weight: 600; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.steps li { position: relative; padding-top: .35rem; }
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .9rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.steps p { font-size: .9rem; color: var(--muted); }
.steps-note {
  font-size: .9rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  max-width: 68ch;
}

/* Why CAI */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.why-copy .btn { margin-top: 1.25rem; }
.why-list { display: grid; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.why-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
}
.why-list h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.why-list p { font-size: .9rem; color: var(--muted); }

/* Client categories */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
  gap: 1.25rem;
}
.client-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem;
}
.client-card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.client-card p { font-size: .885rem; color: var(--muted); margin-bottom: .8rem; }
.client-card a { font-size: .865rem; font-weight: 600; text-decoration: none; }
.client-card a:hover { text-decoration: underline; }

/* CTA band */
.cta-band {
  background: linear-gradient(150deg, var(--maroon-light) 0%, var(--maroon) 50%, var(--maroon-deep) 100%);
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Contact block on the homepage */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid .btn { margin-top: 1.25rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  padding-top: .18rem;
}
.contact-value { color: var(--ink); }
.contact-value a { font-weight: 600; }

/* ------------------------------------------------------------- page heads */
.page-head {
  background:
    radial-gradient(800px 320px at 8% -30%, rgba(200, 162, 58, .15), transparent 60%),
    var(--cream-2);
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-head-tight { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.page-head h1 { margin-bottom: .65rem; }
.page-head-sub { max-width: 66ch; color: var(--ink-2); font-size: 1.02rem; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.crumbs {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------- services listing */
.svc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: var(--section-y) 0;
  align-items: start;
}
.svc-toc { position: sticky; top: 100px; }
.svc-toc-title {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: .8rem;
}
.svc-toc ul { list-style: none; margin: 0; padding: 0; }
.svc-toc li + li { margin-top: .15rem; }
.svc-toc a {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-2);
  font-size: .885rem;
  font-weight: 500;
  transition: background-color .16s ease, color .16s ease;
}
.svc-toc a:hover { background: var(--white); color: var(--maroon); }
/* Applied by site.js as the reader scrolls past each category. */
.svc-toc a.is-current { color: var(--maroon); background: var(--white); font-weight: 700; }
.svc-toc .count {
  font-size: .74rem;
  color: var(--muted);
  background: var(--cream-2);
  border-radius: 999px;
  padding: .05rem .45rem;
}

.svc-section + .svc-section { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.svc-section-head { margin-bottom: 1.35rem; padding-bottom: .9rem; border-bottom: 2px solid var(--gold); }
.svc-section-head h2 { margin-bottom: .3rem; }
.svc-section-head p { color: var(--muted); font-size: .95rem; }

.svc-list { display: grid; gap: .85rem; }
.svc-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.svc-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.svc-item-main { flex: 1 1 300px; min-width: 0; }
.svc-item h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.svc-item h3 a { text-decoration: none; color: var(--ink); }
.svc-item h3 a:hover { color: var(--maroon); }
.svc-item p { font-size: .885rem; color: var(--muted); margin: 0; }
.svc-item-side { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }

.price-tag {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(200, 162, 58, .12);
  border: 1px solid rgba(200, 162, 58, .3);
  border-radius: 999px;
  padding: .3rem .7rem;
  white-space: nowrap;
}

.empty { color: var(--muted); font-style: italic; }

/* --------------------------------------------------------- detail layouts */
.detail-layout,
.about-layout,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: var(--section-y) 0;
  align-items: start;
}
.legal-layout { grid-template-columns: minmax(0, 1fr) 240px; }

.detail-block + .detail-block { margin-top: clamp(2rem, 4vw, 2.75rem); }
.detail-block h2 {
  font-size: 1.4rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.detail-note { font-size: .875rem; color: var(--muted); margin-top: .9rem; }

.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 1.05rem; }
.prose ul { margin-bottom: 1.05rem; }
.prose li { margin-bottom: .35rem; }

.check-list, .doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.check-list li, .doc-list li { position: relative; padding-left: 1.85rem; font-size: .945rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 15px;
  height: 8px;
  border-left: 2.5px solid var(--gold-deep);
  border-bottom: 2.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.doc-list li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--maroon);
  opacity: .55;
}

.related { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.related a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}
.related a:hover { border-color: var(--gold); transform: translateX(2px); }
.related strong { display: block; color: var(--ink); margin-bottom: .15rem; }
.related span { font-size: .855rem; color: var(--muted); }

/* Sidebar cards */
.detail-side, .form-side { position: sticky; top: 100px; display: grid; gap: 1rem; }
.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.side-card-quiet { background: var(--cream-2); box-shadow: none; }
.side-card-label {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: .6rem;
}
.side-card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: .6rem;
}
.side-card-note { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; line-height: 1.55; }
.side-card p { font-size: .92rem; }

.mini-steps { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: .885rem; color: var(--muted); }

/* About */
.founder { display: block; }
.founder-photo img { border-radius: var(--radius); border: 1px solid var(--line); object-fit: cover; aspect-ratio: 6 / 7; }
.founder-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, #fff 0%, #fffaf1 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.founder-copy h3 { margin-bottom: .2rem; color: var(--maroon-deep); }
.founder-role { font-size: .875rem; color: var(--muted); margin-bottom: .9rem; }
.founder-note { font-size: .875rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.chips li {
  font-size: .76rem;
  font-weight: 600;
  color: var(--maroon);
  background: var(--cream-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .22rem .7rem;
}
.address { white-space: pre-line; }

/* Legal */
.legal-prose h2:first-child { margin-top: 0; }
.legal-side { position: sticky; top: 100px; }
.legal-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.legal-nav a {
  display: block;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 500;
}
.legal-nav a:hover { background: var(--white); color: var(--maroon); }

/* ------------------------------------------------------------------ forms */
.form-layout,
.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3rem);
  padding: var(--section-y) 0;
  align-items: start;
}
.contact-page { grid-template-columns: 320px minmax(0, 1fr); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
}
.form-card-title { font-size: 1.35rem; margin-bottom: 1.35rem; }

.form-card fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; }
.form-card > fieldset:last-of-type { margin-bottom: 1.25rem; }
.form-card > fieldset > legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0 0 .85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.field { margin-bottom: 1.2rem; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.field label,
.radio-set > legend {
  display: block;
  font-weight: 600;
  font-size: .885rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.req { color: var(--danger); margin-left: .1rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="password"], input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  padding: .68rem .85rem;
  font: inherit;
  font-size: .945rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235A4636' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 11px;
  padding-right: 2.4rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(94, 20, 24, .14);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #FFF8F8;
}
::placeholder { color: #9A8A7D; }

.help { font-size: .805rem; color: var(--muted); margin: .38rem 0 0; }
.err {
  font-size: .82rem;
  color: var(--danger);
  font-weight: 600;
  margin: .38rem 0 0;
  display: flex;
  gap: .35rem;
}
.err::before { content: "!"; font-weight: 800; }

.radio-set { border: 0; padding: 0; margin-bottom: 1.2rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: .885rem;
  font-weight: 500;
  margin-bottom: 0;
  transition: border-color .16s ease, background-color .16s ease;
}
.radio input { accent-color: var(--maroon); margin: 0; }
.radio:has(input:checked) { border-color: var(--maroon); background: rgba(94, 20, 24, .05); }
.radio:hover { border-color: var(--maroon); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-weight: 400;
  font-size: .885rem;
  color: var(--ink-2);
  line-height: 1.55;
  cursor: pointer;
}
.checkbox input { accent-color: var(--maroon); margin-top: .22rem; flex-shrink: 0; width: 17px; height: 17px; }
.consent {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: .805rem; color: var(--muted); margin: 0; }

.form-alert {
  background: #FDF2F2;
  border: 1px solid #F0C8C8;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  color: #7A1418;
  font-size: .9rem;
}
.form-alert p { margin: 0; }

/* Honeypot: taken out of the layout and out of the accessibility tree.
   Not display:none — some bots specifically skip inputs hidden that way. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact page detail column */
.contact-block + .contact-block { margin-top: 1.75rem; }
.contact-block h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.plain-list a { font-weight: 600; }

/* --------------------------------------------------------------- messages */
.flash-wrap { padding-top: 1.25rem; display: grid; gap: .6rem; }
.flash {
  padding: .85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid;
}
.flash-error   { background: #FDF2F2; border-color: #F0C8C8; color: #7A1418; }
.flash-success { background: #F1F8F4; border-color: #C4E2D2; color: #14563A; }
.flash-info    { background: var(--cream-2); border-color: var(--line-strong); color: var(--ink-2); }

/* ------------------------------------------------------- thank you / 404 */
.thanks { padding: clamp(3rem, 8vw, 6rem) 0; }
.thanks-inner { max-width: 620px; margin-inline: auto; text-align: center; }
.thanks-mark { color: var(--success); display: flex; justify-content: center; margin-bottom: 1.5rem; }
.thanks-lead { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 2rem; }

.ref-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}
.ref-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: .4rem;
}
.ref-no {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.15rem);
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: .04em;
  margin-bottom: .5rem;
  word-break: break-all;
}
.ref-note { font-size: .84rem; color: var(--muted); margin: 0; }

.thanks-summary { display: grid; gap: .5rem; margin: 0 0 1.5rem; text-align: left; }
.thanks-summary > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}
.thanks-summary dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.thanks-summary dd { margin: 0; color: var(--ink); font-weight: 500; }

.thanks-note { font-size: .875rem; color: var(--muted); margin-bottom: 1.75rem; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 1.5rem; }
.thanks-contact { font-size: .9rem; color: var(--muted); }

.notfound-links { margin-top: 2.5rem; text-align: left; }
.notfound-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: .4rem;
}
.notfound-links a {
  display: block;
  padding: .55rem .85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: .875rem;
  color: var(--ink-2);
}
.notfound-links a:hover { border-color: var(--gold); color: var(--maroon); }

/* ----------------------------------------------------------------- footer */
.site-footer {
  background:
    radial-gradient(700px 300px at 8% 8%, rgba(200, 162, 58, .12), transparent 70%),
    linear-gradient(145deg, #3b0b0f 0%, var(--maroon-deep) 55%, #561218 100%);
  color: rgba(255, 255, 255, .78);
  padding: clamp(2.75rem, 6vw, 4.25rem) 0 1.75rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.footer-brand img {
  width: 220px;
  height: auto;
  margin-bottom: 1.1rem;
  padding: .65rem .8rem;
  background: rgba(255, 250, 241, .96);
  border: 1px solid rgba(235, 199, 102, .42);
  border-radius: 12px;
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .7);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: .45rem;
}
.footer-blurb { max-width: 34ch; font-size: .865rem; }

.footer-head {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer-contact li { line-height: 1.55; white-space: pre-line; }

.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.social a {
  display: inline-block;
  padding: .3rem .8rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.social a:hover { border-color: var(--gold-bright); text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: .825rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ------------------------------------------------------ floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 90;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1FA855;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ------------------------------------------------------------ breakpoints */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-toc { position: static; }
  .svc-toc ul { display: flex; flex-wrap: wrap; gap: .4rem; }
  .svc-toc li + li { margin-top: 0; }
  .svc-toc a { background: var(--white); border: 1px solid var(--line); }
  .detail-layout, .about-layout, .legal-layout,
  .form-layout, .contact-page { grid-template-columns: 1fr; }
  .contact-page .form-card { order: -1; }
  .detail-side, .form-side, .legal-side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem 1.5rem;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    /* Hidden by default; toggled by the button, never by hover. */
    display: none;
  }
  .primary-nav.is-open { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a {
    display: block;
    padding: .85rem .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  /* The mega-menu is a hover affordance; on touch the plain link is enough. */
  .mega { display: none; }

  .nav-actions { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: 1.15rem; }
  .nav-actions .btn { width: 100%; }

  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 220px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 1.75rem, var(--wrap)); }
  .brand-mark { width: 168px; }
  .brand-sub { display: none; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .thanks-summary > div { grid-template-columns: 1fr; gap: .15rem; }
  .svc-item-side { width: 100%; }
  .svc-item-side .btn { flex: 1 1 auto; }
  .wa-float { width: 50px; height: 50px; right: .9rem; bottom: .9rem; }
}

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

@media print {
  .site-header, .site-footer, .wa-float, .page-head-actions, .form-side, .detail-side { display: none; }
  body { background: #fff; color: #000; }
}
