/* Yap & Nadira — calm domestic warmth. Plum ink / warm cream / sage / terracotta. */
:root {
  --plum: #3a2140;
  --plum-soft: #573461;
  --ink: #2b1e31;
  --cream: #faf5ee;
  --card: #fffdf9;
  --sand: #efe3d3;
  --sand-line: #e2d2bc;
  --sage: #7d8b6f;
  --sage-dark: #5c6b4f;
  --sage-tint: #eef0e7;
  --terra: #c2603e;
  --terra-dark: #a84e30;
  --blush: #e9d5c9;
  --muted: #6f6376;
  --shadow: 0 18px 40px -18px rgba(58, 33, 64, 0.18);
  --r: 14px;
  --font-d: "EB Garamond", Georgia, serif;
  --font-b: "Figtree", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3, .foot-logo { font-family: var(--font-d); font-weight: 520; line-height: 1.16; color: var(--plum); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.18rem; font-weight: 560; }
h1 i, h2 i, .sec-h i { font-style: italic; font-weight: 420; color: var(--terra); }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--plum); color: #fff; padding: 0.6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }
section { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-dark); font-weight: 700; margin-bottom: 0.9rem;
}
.lead { font-size: 1.13rem; color: var(--muted); max-width: 46rem; }
.sec-h { margin-bottom: 0.6rem; }
.sec-sub { color: var(--muted); max-width: 44rem; margin-bottom: 2.2rem; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.98rem; text-decoration: none;
  padding: 0.78rem 1.5rem; border-radius: 999px; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-b);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--terra); color: #fff; }
.btn-solid:hover { background: var(--terra-dark); color: #fff; }
.btn-line { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-line:hover { background: var(--plum); color: #fff; }
.btn-soft { background: var(--sand); color: var(--plum); }
.btn-soft:hover { background: var(--blush); color: var(--plum); }

/* Topbar */
.topbar { background: var(--plum); color: #ecdff0; font-size: 0.82rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-in { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  /* one line only on mobile: phone + WhatsApp */
  .topbar-note, .topbar-hours { display: none; }
  .topbar-in { justify-content: center; }
  .topbar-links { flex-wrap: nowrap; white-space: nowrap; }
}

/* Header */
.site-head {
  /* no backdrop-filter here: it would become the containing block for the
     fixed-position mobile nav panel, collapsing it to header height */
  background: rgba(250, 245, 238, 0.97);
  position: sticky; top: 0; z-index: 90; border-bottom: 1px solid var(--sand-line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  font-family: var(--font-d); font-weight: 620; font-size: 0.95rem; color: var(--cream);
  background: var(--plum); border-radius: 10px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; letter-spacing: 0.01em; white-space: nowrap; flex: 0 0 auto;
}
.brand-mark i { color: var(--blush); font-style: italic; }
.brand-word { font-family: var(--font-d); font-weight: 560; font-size: 1.3rem; color: var(--plum); line-height: 1.05; }
.brand-word i { font-style: italic; color: var(--terra); }
.brand-word small { display: block; font-family: var(--font-b); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-top: 0.22rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.3rem; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.site-nav li.active > a, .site-nav a:hover { color: var(--terra-dark); }
.site-nav li.active > a { border-bottom: 2px solid var(--terra); padding-bottom: 3px; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.nav-cta { padding: 0.55rem 1.15rem; font-size: 0.88rem; }
/* specificity guard: .site-nav a rules must not repaint the solid CTA */
.site-nav a.nav-cta { color: #fff; }
.site-nav a.nav-cta:hover { color: #fff; background: var(--terra-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 40px; cursor: pointer; position: relative; z-index: 130; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--plum); margin: 5px auto; transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 960px) {
  .site-nav ul { gap: 0.9rem; }
  .nav-cta { display: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(21rem, 86vw); background: var(--card);
    flex-direction: column; align-items: flex-start; padding: 5.4rem 1.8rem 2rem;
    box-shadow: var(--shadow); z-index: 120; visibility: hidden; opacity: 0;
    transform: translateX(12px); transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; }
  .site-nav ul { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .site-nav a { font-size: 1.08rem; }
  .nav-cta { display: inline-block; margin-top: 0.6rem; }
  /* overlay must sit BELOW the header's stacking context (z 90), or it paints over the menu panel */
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(43, 30, 49, 0.45); z-index: 80; }
  body.nav-open .wa-float, body.nav-open .sl-drawer, body.nav-open .mobile-bar { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* HERO */
.hero { position: relative; padding: 0; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(43, 25, 48, 0.82) 0%, rgba(43, 25, 48, 0.55) 42%, rgba(43, 25, 48, 0.18) 75%, rgba(43, 25, 48, 0.3) 100%);
}
.hero-in {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 4rem); align-items: center; padding: clamp(3.4rem, 7vw, 5.8rem) 0 clamp(3.2rem, 6vw, 5rem);
}
/* grid blowout guard: scrollable children (sched-days) must not inflate 1fr tracks */
.hero-in > *, .split > * { min-width: 0; }
.hero h1 { color: #fdf8f0; font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 13ch; }
.hero h1 i { color: var(--blush); }
.hero .eyebrow { color: #d9c9a8; }
.hero-sub { color: rgba(253, 248, 240, 0.88); font-size: 1.1rem; max-width: 34rem; margin-top: 1rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.hero-chips a {
  color: #fdf8f0; text-decoration: none; border: 1px solid rgba(253, 248, 240, 0.45);
  padding: 0.42rem 0.95rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  background: rgba(43, 25, 48, 0.28); backdrop-filter: blur(4px); transition: background 0.15s ease;
}
.hero-chips a:hover { background: rgba(194, 96, 62, 0.85); border-color: transparent; }

/* Scheduler card */
.sched-card {
  background: var(--card); border-radius: 18px; box-shadow: 0 28px 60px -20px rgba(30, 15, 35, 0.45);
  padding: 1.5rem 1.5rem 1.3rem; max-width: 24.5rem; justify-self: end; width: 100%;
}
.sched-card h2 { font-size: 1.28rem; margin-bottom: 0.2rem; }
.sched-card > p { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.9rem; }
.sched-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-dark); margin: 0.8rem 0 0.4rem; }
.sched-days { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: thin; }
.sched-days button {
  border: 1px solid var(--sand-line); background: var(--cream); border-radius: 10px;
  padding: 0.38rem 0.6rem; font-family: var(--font-b); font-size: 0.8rem; cursor: pointer;
  min-width: 3.4rem; color: var(--ink); flex: 0 0 auto;
}
.sched-days button strong { display: block; font-size: 0.95rem; }
.sched-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.sched-times button {
  border: 1px solid var(--sand-line); background: var(--cream); border-radius: 8px;
  padding: 0.4rem 0.2rem; font-family: var(--font-b); font-size: 0.82rem; cursor: pointer; color: var(--ink);
}
.sched-days button.sel, .sched-times button.sel { background: var(--plum); color: #fff; border-color: var(--plum); }
.sched-times button:disabled { opacity: 0.35; cursor: not-allowed; }
.sched-card input {
  width: 100%; border: 1px solid var(--sand-line); border-radius: 8px; padding: 0.55rem 0.7rem;
  font-family: var(--font-b); font-size: 0.9rem; background: var(--cream); color: var(--ink);
}
.sched-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.sched-card .btn { width: 100%; text-align: center; margin-top: 0.9rem; }
.sched-note { font-size: 0.76rem; color: var(--muted); margin-top: 0.55rem; text-align: center; }
.sched-confirm { font-size: 0.85rem; color: var(--sage-dark); font-weight: 600; margin-top: 0.5rem; min-height: 1.2em; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .sched-card { justify-self: stretch; max-width: 32rem; }
  .hero-media img { object-position: 70% 35%; }
}

/* Doors — what brings you here */
.doors { background: var(--cream); }
.doors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.door {
  background: var(--card); border: 1px solid var(--sand-line); border-radius: var(--r);
  padding: 1.5rem 1.4rem; text-decoration: none; color: var(--ink); position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease; display: block;
}
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.door h3 { font-family: var(--font-d); font-size: 1.22rem; margin-bottom: 0.4rem; }
.door p { font-size: 0.92rem; color: var(--muted); }
.door .door-go { display: inline-block; margin-top: 0.85rem; font-weight: 600; font-size: 0.88rem; color: var(--terra-dark); }
.door.door-safe { background: var(--plum); border-color: var(--plum); }
.door.door-safe h3, .door.door-safe .door-go { color: #fdf8f0; }
.door.door-safe p { color: #d8c6dd; }
@media (max-width: 900px) { .doors-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .doors-grid { grid-template-columns: 1fr; } }

/* Steps band */
.steps-band {
  background: linear-gradient(rgba(238, 240, 231, 0.82), rgba(238, 240, 231, 0.9)),
    url("/demos/legal/yap-nadira/assets/img/bg-sage.webp") center / cover no-repeat;
}
.step-img { width: 100%; height: 130px; object-fit: cover; border-radius: 9px; margin-bottom: 1rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; counter-reset: step; }
.step { background: var(--card); border-radius: var(--r); padding: 1.6rem 1.5rem; border: 1px solid #dfe3d3; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-d); font-style: italic; font-size: 2rem; color: var(--sage);
  display: block; margin-bottom: 0.5rem;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: 0.94rem; color: var(--muted); }
.step em { display: block; margin-top: 0.7rem; font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--sage-dark); letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.svc-card {
  background: var(--card); border: 1px solid var(--sand-line); border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.svc-card img { height: 150px; width: 100%; object-fit: cover; }
.svc-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.svc-body h3 { font-size: 1.12rem; }
.svc-body p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.svc-body span { font-weight: 600; font-size: 0.86rem; color: var(--terra-dark); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* Route band (civil vs syariah) */
.route-band {
  background: linear-gradient(rgba(52, 28, 58, 0.88), rgba(58, 33, 64, 0.93)),
    url("/demos/legal/yap-nadira/assets/img/bg-plum.webp") center / cover no-repeat;
  color: #e9ddec;
}
.route-band .sec-h, .route-band h3 { color: #fdf8f0; }
.route-band .sec-sub { color: #cbb8d1; }
.route-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.route-col { border: 1px solid rgba(233, 221, 236, 0.25); border-radius: var(--r); padding: 1.6rem 1.5rem; background: rgba(255, 253, 249, 0.04); }
.route-col h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.route-col .route-court { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blush); font-weight: 700; }
.route-col ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.55rem; }
.route-col li { padding-left: 1.3rem; position: relative; font-size: 0.95rem; }
.route-col li::before { content: "—"; position: absolute; left: 0; color: var(--terra); }
.route-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.route-cta p { font-size: 0.9rem; color: #cbb8d1; }
@media (max-width: 780px) { .route-cols { grid-template-columns: 1fr; } }

/* Fees teaser + tables */
.fees-table { width: 100%; border-collapse: collapse; margin-top: 1.6rem; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--sand-line); }
.fees-table th, .fees-table td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--sand); font-size: 0.95rem; }
.fees-table th { background: var(--sand); font-family: var(--font-b); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); }
.fees-table td:nth-child(2), .fees-table td:nth-child(3) { white-space: nowrap; }
.fees-table tr:last-child td { border-bottom: 0; }
.fees-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.table-scroll { overflow-x: auto; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.person-card { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--sand-line); border-radius: var(--r); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.person-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.person-meta { display: block; padding: 1rem 1.2rem 1.2rem; }
.person-meta strong { font-family: var(--font-d); font-size: 1.12rem; font-weight: 560; color: var(--plum); display: block; }
.person-meta span { color: var(--muted); font-size: 0.88rem; display: block; margin-top: 0.15rem; }
.person-meta em { color: var(--sage-dark); font-style: normal; font-size: 0.78rem; font-weight: 600; display: block; margin-top: 0.4rem; }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }

/* Recognition strip */
.recog {
  background: linear-gradient(rgba(239, 227, 211, 0.78), rgba(239, 227, 211, 0.86)),
    url("/demos/legal/yap-nadira/assets/img/bg-linen.webp") center / cover no-repeat;
}
.recog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.8rem; }
.recog-item { background: var(--card); border-radius: var(--r); padding: 1.4rem 1.4rem; border: 1px solid var(--sand-line); }
.recog-item h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.recog-item p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 780px) { .recog-grid { grid-template-columns: 1fr; } }

/* Paths taken (scenarios) */
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.path-card { background: var(--card); border-left: 4px solid var(--sage); border-radius: 0 var(--r) var(--r) 0; padding: 1.5rem 1.4rem; box-shadow: 0 1px 0 var(--sand-line); }
.path-card .path-img { width: calc(100% + 2.8rem); margin: -1.5rem -1.4rem 1.1rem; height: 150px; object-fit: cover; border-radius: 0 var(--r) 0 0; }
.path-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.path-card p { font-size: 0.92rem; color: var(--muted); }
.path-card .path-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 0.6rem; }
.paths-note { font-size: 0.8rem; color: var(--muted); margin-top: 1.4rem; font-style: italic; }
@media (max-width: 860px) { .paths-grid { grid-template-columns: 1fr; } }

/* Guides */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.guide-card { background: var(--card); border: 1px solid var(--sand-line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; display: flex; flex-direction: column; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.guide-card img { height: 160px; object-fit: cover; width: 100%; }
.guide-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.guide-body time { font-size: 0.78rem; color: var(--sage-dark); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.guide-body h3 { font-size: 1.1rem; margin: 0.4rem 0 0.5rem; }
.guide-body p { font-size: 0.9rem; color: var(--muted); flex: 1; }
@media (max-width: 900px) { .guides-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 50rem; margin-top: 1.8rem; }
.faq { border-bottom: 1px solid var(--sand-line); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-d); font-weight: 560; font-size: 1.08rem;
  color: var(--plum); padding: 1.1rem 2.2rem 1.1rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-family: var(--font-b); font-size: 1.4rem; color: var(--terra); transition: transform 0.2s ease; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 1.2rem; color: var(--muted); max-width: 46rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, rgba(52, 28, 58, 0.92) 0%, rgba(76, 42, 85, 0.88) 100%),
    url("/demos/legal/yap-nadira/assets/img/bg-plum.webp") center / cover no-repeat;
  color: #e9ddec;
}
.cta-band h2 { color: #fdf8f0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-in p { max-width: 34rem; color: #cbb8d1; margin-top: 0.5rem; }
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.cta-band .btn-line { border-color: #e9ddec; color: #fdf8f0; }
.cta-band .btn-line:hover { background: #fdf8f0; color: var(--plum); }
.cta-safety { font-size: 0.82rem; color: #b79fbd; margin-top: 1.6rem; }
.cta-safety a { color: #fdf8f0; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(rgba(239, 227, 211, 0.62), rgba(239, 227, 211, 0.78)),
    url("/demos/legal/yap-nadira/assets/img/bg-curtain.webp") center 30% / cover no-repeat;
  position: relative; padding: clamp(2.6rem, 5vw, 4rem) 0; overflow: hidden;
}
.page-hero.has-img { background: var(--plum); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.page-hero.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(43, 25, 48, 0.88) 0%, rgba(43, 25, 48, 0.62) 55%, rgba(43, 25, 48, 0.3) 100%);
}
.page-hero-in { position: relative; z-index: 2; max-width: 54rem; }
.page-hero.has-img h1, .page-hero.has-img .lead { color: #fdf8f0; }
.page-hero.has-img .lead { color: #ddcfe1; }
.page-hero.has-img .eyebrow { color: var(--blush); }
.crumbs { font-size: 0.8rem; margin-bottom: 1rem; color: var(--muted); }
.page-hero.has-img .crumbs, .page-hero.has-img .crumbs a { color: #cbb8d1; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { margin: 0 0.45rem; }

/* Article / prose */
.prose { max-width: 46.5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 0.8rem; }
.prose p { margin-bottom: 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.05rem 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--plum); }
.article-meta { display: flex; gap: 0.8rem; align-items: center; font-size: 0.86rem; color: var(--muted); margin-bottom: 1.6rem; flex-wrap: wrap; }
.article-meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.article-hero { border-radius: var(--r); margin: 1.6rem 0 2rem; max-height: 420px; object-fit: cover; width: 100%; }

/* Two-col layout with aside */
.split { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.aside-card { background: var(--card); border: 1px solid var(--sand-line); border-radius: var(--r); padding: 1.5rem 1.4rem; position: sticky; top: 90px; }
.aside-card h3 { margin-bottom: 0.7rem; }
.aside-card ul { list-style: none; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.aside-card .btn { width: 100%; text-align: center; margin-top: 1rem; }
.aside-card .aside-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.7rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* Process rows on service pages */
.proc-list { counter-reset: proc; display: grid; gap: 0; margin-top: 1.6rem; }
.proc-row { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--sand-line); }
.proc-row::before { counter-increment: proc; content: counter(proc, decimal-leading-zero); font-family: var(--font-d); font-style: italic; font-size: 1.6rem; color: var(--sage); }
.proc-row h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.proc-row p { font-size: 0.93rem; color: var(--muted); }

/* Tool — planner wizard */
.tool-shell { background: var(--card); border: 1px solid var(--sand-line); border-radius: 18px; padding: clamp(1.4rem, 3.5vw, 2.4rem); box-shadow: var(--shadow); }
.tool-q { margin-bottom: 1.6rem; }
.tool-q h3 { margin-bottom: 0.8rem; font-size: 1.15rem; }
.tool-opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tool-opts button {
  border: 1.5px solid var(--sand-line); background: var(--cream); color: var(--ink); border-radius: 999px;
  padding: 0.55rem 1.15rem; font-family: var(--font-b); font-size: 0.93rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tool-opts button:hover { border-color: var(--sage-dark); }
.tool-opts button.sel { background: var(--plum); color: #fff; border-color: var(--plum); }
.tool-actions { display: flex; gap: 0.8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.tool-hidden { display: none; }

/* Roadmap output */
.roadmap { margin-top: 1rem; }
.roadmap-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 1.4rem; }
.roadmap-head h3 { font-size: 1.4rem; }
.roadmap-head .rm-total { font-size: 0.9rem; font-weight: 700; color: var(--sage-dark); letter-spacing: 0.06em; text-transform: uppercase; }
.rm-steps { list-style: none; border-left: 2px solid var(--sand-line); margin-left: 0.6rem; display: grid; gap: 0; }
.rm-steps li { position: relative; padding: 0 0 1.5rem 1.6rem; }
.rm-steps li::before { content: ""; position: absolute; left: -7px; top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); border: 2.5px solid var(--card); }
.rm-steps h4 { font-family: var(--font-d); font-size: 1.06rem; font-weight: 560; color: var(--plum); }
.rm-steps .rm-when { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sage-dark); }
.rm-steps p { font-size: 0.92rem; color: var(--muted); margin-top: 0.25rem; }
.rm-docs { background: var(--sage-tint); border-radius: var(--r); padding: 1.3rem 1.4rem; margin-top: 1.2rem; }
.rm-docs h4 { font-family: var(--font-d); color: var(--plum); margin-bottom: 0.5rem; }
.rm-docs ul { margin-left: 1.2rem; font-size: 0.92rem; color: var(--ink); }
.rm-note { font-size: 0.82rem; color: var(--muted); margin-top: 1.2rem; }

/* Estimator */
.est-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--sand-line); font-size: 0.95rem; }
.est-row strong { white-space: nowrap; }
.est-total { display: flex; justify-content: space-between; padding: 0.9rem 0 0.2rem; font-family: var(--font-d); font-size: 1.25rem; color: var(--plum); font-weight: 560; }
.est-opts { display: grid; gap: 0.55rem; margin: 1rem 0 1.4rem; }
.est-opts label { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.est-opts input { margin-top: 0.3rem; accent-color: var(--terra); }
select.est-select {
  width: 100%; border: 1px solid var(--sand-line); border-radius: 8px; padding: 0.6rem 0.7rem;
  font-family: var(--font-b); font-size: 0.95rem; background: var(--cream); color: var(--ink); margin-bottom: 0.4rem;
}

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--plum); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--sand-line); border-radius: 8px; padding: 0.65rem 0.8rem;
  font-family: var(--font-b); font-size: 0.95rem; background: var(--card); color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: #a33b2a; font-size: 0.8rem; margin-top: 0.25rem; min-height: 1em; display: block; }
.field input.bad, .field textarea.bad, .field select.bad { border-color: #a33b2a; }
.form-ok { background: var(--sage-tint); border: 1px solid #cdd6bd; color: var(--sage-dark); border-radius: var(--r); padding: 1.1rem 1.3rem; font-weight: 600; margin-top: 1rem; display: none; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Office band (full-bleed photo strip) */
.office-band { position: relative; padding: 0; overflow: hidden; }
.office-band img.office-bg { width: 100%; height: clamp(320px, 42vw, 460px); object-fit: cover; display: block; }
.office-band .office-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(43, 25, 48, 0.78));
  color: #fdf8f0; padding: 3.2rem 0 1.4rem;
}
.office-band .office-caption p { max-width: 40rem; font-size: 0.95rem; color: #e9ddec; }
.office-band .office-caption h2 { color: #fdf8f0; font-size: 1.5rem; margin-bottom: 0.2rem; }

/* Prose figures */
.prose figure { margin: 1.8rem 0; }
.prose figure img { border-radius: var(--r); width: 100%; }
.prose figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; font-style: italic; }

/* Footer */
.site-foot {
  background: linear-gradient(rgba(46, 24, 51, 0.95), rgba(43, 22, 48, 0.97)),
    url("/demos/legal/yap-nadira/assets/img/bg-plum.webp") center / cover no-repeat;
  color: #d8c6dd; font-size: 0.92rem; padding: 3.5rem 0 1rem;
}
.site-foot a { color: #f2e6f2; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2rem; padding-bottom: 2.4rem; }
.foot-logo { font-size: 1.5rem; color: #fdf8f0; }
.foot-logo i { color: var(--blush); }
.foot-tag { font-style: italic; color: var(--blush); margin: 0.3rem 0 1rem; }
.site-foot address { font-style: normal; margin-bottom: 0.9rem; }
.site-foot h3 { color: #fdf8f0; font-family: var(--font-b); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-foot ul { list-style: none; display: grid; gap: 0.45rem; }
.foot-safety p { margin-bottom: 0.9rem; }
.foot-hours span { font-size: 0.8rem; color: #b79fbd; }
.foot-legal { border-top: 1px solid rgba(233, 221, 236, 0.18); padding-top: 1.4rem; }
.foot-legal p { font-size: 0.78rem; color: #ab93b1; margin-bottom: 0.6rem; max-width: 72rem; }
.foot-legal .foot-mockup { border-top: 1px dashed rgba(233, 221, 236, 0.22); padding-top: 0.9rem; margin-top: 0.9rem; }
.foot-legal .foot-mockup a { color: #8ceab0; }
.foot-legal .foot-mockup a:hover { color: #b8f5cf; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 3.6rem; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--card); border-top: 1px solid var(--sand-line); z-index: 95;
  }
  .mobile-bar a { text-align: center; padding: 0.85rem 0.4rem; text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--plum); }
  .mobile-bar .mb-book { background: var(--terra); color: #fff; }
}

/* Quick exit (DV page) */
.quick-exit {
  position: fixed; top: 110px; right: 0; z-index: 96; background: var(--ink); color: #fff;
  border: 0; border-radius: 8px 0 0 8px; padding: 0.7rem 0.9rem; font-family: var(--font-b);
  font-weight: 700; font-size: 0.8rem; cursor: pointer; box-shadow: var(--shadow);
}
.quick-exit small { display: block; font-weight: 400; font-size: 0.66rem; opacity: 0.75; }

/* WhatsApp float (desktop/tablet; the mobile action bar already carries WhatsApp) */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 93;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(18, 74, 40, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; display: block; }
.wa-float:hover { transform: scale(1.07); box-shadow: 0 14px 30px rgba(18, 74, 40, 0.45); }
@media (max-width: 700px) {
  /* keep the float on mobile, lifted above the sticky action bar */
  .wa-float { right: 14px; bottom: calc(3.6rem + 14px); width: 50px; height: 50px; }
  .wa-float svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float:hover { transform: none; transition: none; } }
@media print { .wa-float { display: none !important; } }

/* Seed Light promo drawer (mockup credit — deliberately off-brand: graphite + electric green) */
.sl-drawer {
  position: fixed; right: 0; top: 58%; transform: translateY(-50%);
  display: flex; align-items: center; z-index: 94;
}
.sl-tab {
  writing-mode: vertical-rl; border: 0; cursor: pointer;
  background: #171a21; color: #dfe8e3; font-family: var(--font-b);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1rem 0.55rem; border-radius: 9px 0 0 9px;
  box-shadow: -6px 0 18px rgba(10, 12, 16, 0.25);
}
.sl-tab strong { color: #35e07f; font-weight: 700; }
.sl-panel {
  width: 272px; margin-right: -272px; opacity: 0; pointer-events: none; visibility: hidden;
  background: #171a21; color: #b9c4bd; border-radius: 12px 0 0 12px;
  padding: 1.3rem 1.3rem 1.2rem; box-shadow: -10px 0 30px rgba(10, 12, 16, 0.35);
  transition: margin-right 0.25s ease, opacity 0.2s ease, visibility 0.25s;
}
.sl-drawer:hover .sl-panel, .sl-drawer:focus-within .sl-panel, .sl-drawer.open .sl-panel {
  margin-right: 0; opacity: 1; pointer-events: auto; visibility: visible;
}
.sl-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #35e07f; margin-bottom: 0.4rem; }
.sl-panel h3 { color: #f4faf6; font-family: var(--font-b); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.45rem; }
.sl-panel p { font-size: 0.84rem; line-height: 1.55; margin-bottom: 0.9rem; }
.sl-btn {
  display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: 0.86rem;
  border-radius: 8px; padding: 0.6rem 0.8rem; margin-bottom: 0.5rem; font-family: var(--font-b);
}
.sl-btn-wa { background: #35e07f; color: #10130f; }
.sl-btn-wa:hover { background: #2bc96e; color: #10130f; }
.sl-btn-site { border: 1px solid #3a4250; color: #dfe8e3; }
.sl-btn-site:hover { border-color: #35e07f; color: #35e07f; }
@media (prefers-reduced-motion: reduce) { .sl-panel { transition: none; } }
@media print { .sl-drawer { display: none !important; } }
@media (max-width: 700px) { .sl-drawer { top: 46%; } }

/* Reveals */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .door:hover, .svc-card:hover, .person-card:hover, .guide-card:hover { transform: none; }
}

/* Print — roadmap */
@media print {
  .topbar, .site-head, .site-foot, .mobile-bar, .cta-band, .tool-actions, .quick-exit { display: none !important; }
  body { background: #fff; }
  .tool-shell { box-shadow: none; border: 0; padding: 0; }
}
