/* ═══ SERVICES — STORYTELLING PAGE ═══ */

/* ── Base resets ── */
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: var(--control-radius);
}

/* ── Page ── */
html:has(body.services-page) {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body.services-page {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  line-height: 1.55;
  background: var(--page-bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --simple-wave-stroke: var(--ink-shadow);
  --simple-wave-glow: rgba(246, 250, 247, 0.14);
  --simple-wave-opacity: 0.58;
}
body.services-page .page {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.services-page .site-footer {
  margin-top: auto;
}
:root:not([data-mode="light"]) body.services-page {
  --simple-wave-stroke: rgba(220, 230, 225, 0.16);
  --simple-wave-glow: rgba(176, 196, 188, 0.12);
  --simple-wave-opacity: 0.5;
}

/* ── Wave SVG ── */
.sv-wave-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
  opacity: var(--simple-wave-opacity);
  mix-blend-mode: multiply;
  filter: saturate(104%);
  pointer-events: none;
}
:root:not([data-mode="light"]) .sv-wave-svg {
  mix-blend-mode: screen;
  filter: saturate(108%);
}
.sv-wave {
  fill: none;
  stroke: var(--simple-wave-stroke);
  stroke-width: 0.95;
  opacity: 0.58;
  stroke-linecap: round;
  filter: drop-shadow(0 0 0.16rem var(--simple-wave-glow));
}

/* ── Shared: eyebrow ── */
.sv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.sv-eyebrow--on-dark { color: var(--sv-accent-on-dark, var(--accent)); }

/* ── Shared: headings ── */
body.services-page h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 820px;
}
body.services-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}
body.services-page h1 em,
body.services-page h2 em {
  font-style: italic;
  color: var(--accent);
}

/* ── Shared: section container ── */
.sv-sec {
  padding: 96px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── Shared: body text ── */
.sv-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ── Shared: buttons ── */
.sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--control-radius, 12px);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.28s ease, transform 0.28s ease;
}
.sv-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.sv-btn:active {
  transform: none;
}
.sv-btn--lg {
  font-size: 16px;
  padding: 15px 32px;
}
.sv-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid currentColor;
  transition: color 0.28s ease;
}
.sv-btn-ghost:hover { color: var(--accent); }

/* ── Shared: divider ── */
.sv-divider {
  border: none;
  border-top: 1px solid var(--surface-border);
}

/* ═══ S1: HERO (clean editorial — no gradient, no image) ═══ */
.sv-hero {
  position: relative;
  padding-top: clamp(160px, 22vh, 240px);
  padding-bottom: 64px;
}
.sv-hero__bg,
.sv-hero__overlay {
  display: none;
}
.sv-hero__content {
  position: relative;
  z-index: var(--z-raised);
  padding: 0 48px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.sv-hero h1 { color: var(--ink); }
.sv-hero h1 em {
  color: var(--accent);
  position: relative;
}
.sv-hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 0.06em;
  left: -0.02em;
  right: -0.02em;
  height: 3px;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 2px;
}
.sv-hero__sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.65;
}
.sv-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ═══ S2: STATS STRIP (dark branded bar — distinct from freehold glass) ═══ */
.sv-stats {
  background: var(--dark);
  position: relative;
  z-index: var(--z-sticky);
}
.sv-stats__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.sv-stat {
  padding: 34px 28px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}
.sv-stat:last-child { border-inline-end: none; }
.sv-stat__number {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--white);
}
.sv-stat__number span { color: var(--accent-hover); }
.sv-stat__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

/* ═══ S3: MAINTENANCE ═══ */
.sv-maint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 52px;
}
.sv-maint-grid > * { min-width: 0; }
.sv-maint-points { border-top: 1px solid var(--surface-border); margin-top: 32px; }
.sv-maint-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--surface-border);
}
.sv-maint-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 1px;
}
.sv-maint-head {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.sv-maint-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  overflow-wrap: break-word;
}
.sv-maint-panel {
  border-radius: var(--control-radius, 12px);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sv-big-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.sv-big-num span { color: var(--accent); }
.sv-big-label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 5px;
}

/* ═══ S4: MANAGEMENT (DARK) ═══ */
.sv-mgmt,
.sv-cta {
  --sv-accent-on-dark: #7fbf9a;
}
.sv-mgmt {
  background: var(--dark);
  padding: 96px 48px;
  position: relative;
  z-index: var(--z-sticky);
}
.sv-mgmt__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.sv-mgmt__inner > * { min-width: 0; }
body.services-page .sv-mgmt__heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 22px;
}
body.services-page .sv-mgmt__heading em { font-style: italic; color: var(--sv-accent-on-dark); }
.sv-mgmt__body {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.78;
  margin-bottom: 30px;
}
.sv-mgmt__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.sv-mgmt__pt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--white-soft);
  overflow-wrap: break-word;
}
.sv-mgmt__pt::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--sv-accent-on-dark);
  border-radius: 50%;
  margin-top: 6px;
}
.sv-mgmt .sv-btn {
  background: var(--sv-accent-on-dark);
  color: var(--dark);
}
.sv-mgmt .sv-btn:hover {
  background: var(--accent-hover);
}
.sv-mgmt__panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sv-mgmt-panel {
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--control-radius, 12px);
}
.sv-mgmt-panel__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.sv-mgmt-panel__num span { color: var(--sv-accent-on-dark); }
.sv-mgmt-panel__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
}

/* ═══ S5: STEPS ═══ */
.sv-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--surface-border);
  margin-top: 52px;
}
.sv-step {
  padding: 46px 38px;
  border-inline-end: 1px solid var(--surface-border);
}
.sv-step:last-child { border-inline-end: none; }
.sv-step__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 84px;
  font-weight: 300;
  color: var(--surface-border);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.sv-step__head {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.sv-step__body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.72;
  margin: 0;
}

/* ═══ S6: FAQ ═══ */
.sv-faq-list {
  border-top: 1px solid var(--surface-border);
  margin-top: 44px;
}
.sv-faq-item { border-bottom: 1px solid var(--surface-border); }
.sv-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: start;
  gap: 24px;
  font-family: inherit;
  color: inherit;
}
.sv-faq-q:hover .sv-faq-qt { color: var(--accent); }
.sv-faq-qt {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.2s ease;
}
.sv-faq-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
.sv-faq-ico svg { fill: var(--ink-soft); transition: fill 0.28s ease; }
.sv-faq-item.open .sv-faq-ico {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}
.sv-faq-item.open .sv-faq-ico svg { fill: var(--white); }
.sv-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.38s ease; /* H20: layout transition removed — animate via transform instead */
}
.sv-faq-a__inner {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.78;
  max-width: 760px;
  font-weight: 300;
  overflow-wrap: break-word;
}

/* ═══ S7: FINAL CTA ═══ */
.sv-cta {
  background: var(--dark);
  padding: 108px 48px;
  text-align: center;
  position: relative;
  z-index: var(--z-sticky);
}
.sv-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}
body.services-page .sv-cta__heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  color: var(--white);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
body.services-page .sv-cta__heading em { font-style: italic; color: var(--sv-accent-on-dark); }
.sv-cta__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* ═══ REVEAL ANIMATION ═══ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .sv-stats__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sv-stat { min-width: 0; overflow-wrap: break-word; }
  .sv-stat:nth-child(2) { border-inline-end: none; }
  .sv-stat:nth-child(3),
  .sv-stat:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .sv-stat:nth-child(4) { border-inline-end: none; }
}

@media (max-width: 768px) {
  .sv-hero { padding-top: 120px; padding-bottom: 48px; }
  .sv-hero__content,
  .sv-sec { padding-inline: 20px; }
  .sv-stats__inner { padding: 0 20px; }
  .sv-stat { padding: 24px 16px; }
  .sv-maint-grid { grid-template-columns: 1fr; gap: 40px; }
  .sv-mgmt { padding: 64px 20px; }
  .sv-mgmt__inner { grid-template-columns: 1fr; gap: 48px; }
  .sv-steps { grid-template-columns: 1fr; }
  .sv-step { border-inline-end: none; border-bottom: 1px solid var(--surface-border); }
  .sv-step:last-child { border-bottom: none; }
  .sv-cta { padding: 72px 20px; }
}

/* Below 600px, the 48px serif stat numerals can't fit "Monthly" inside
   a 2-column tile and `overflow-wrap: break-word` snaps them mid-word
   ("Month / ly"). Scale the numeral down so words stay whole. */
@media (max-width: 600px) {
  .sv-stat { padding: 20px 14px; }
  .sv-stat__number { font-size: 32px; word-break: keep-all; overflow-wrap: normal; }
}

@media (max-width: 420px) {
  .sv-stat__number { font-size: 28px; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sv-faq-ico { transition: none; }
  .sv-faq-a { transition: none; }
  .sv-faq-qt { transition: none; }
  .sv-wave-svg { display: none; }
}
