/* Styles of the page (one design system; change the tokens, not individual rules). */
:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --bg-card: #ffffff;
  --text: #14212b;
  --text-muted: #55636e;
  --accent: #0f6b5c;
  --accent-strong: #0b5347;
  --accent-soft: rgba(15, 107, 92, 0.1);
  --border: rgba(20, 33, 43, 0.12);
  --shadow: 0 10px 30px rgba(20, 33, 43, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-head: "Outfit", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 780px;
}

section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 88px 0 72px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  max-width: 14ch;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lede {
  max-width: 620px;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta--center {
  justify-content: center;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.trust-row strong {
  color: var(--text);
}

/* Grids and cards */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3,
.promise h3,
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p,
.promise p,
.step p {
  color: var(--text-muted);
}

.promise,
.step {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.promise-num,
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Package card */
.package-card {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 36px;
  padding: 34px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.package-card:hover {
  border-color: var(--accent);
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.package-card h3 {
  font-size: 1.7rem;
}

.card-desc {
  margin-bottom: 22px;
}

.package-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 18px 0 10px;
}

.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.scope-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.scope-list svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}

.scope-list.extra svg,
.scope-list.extra span {
  color: var(--text-muted);
}

.package-side {
  align-self: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.package-side .price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text);
  line-height: 1.1;
}

.package-side .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.package-side .price-setup {
  margin-top: 6px;
  font-weight: 600;
  color: var(--text);
}

.price-note {
  margin-top: 14px;
  font-size: 0.95rem;
}

.package-side .card-book-cta {
  margin-top: 20px;
  font-weight: 600;
  color: var(--accent);
}

/* Service area */
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
}

.faq details p {
  margin-top: 10px;
  color: var(--text-muted);
}

/* Bottom call to action */
.cta-band {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 12px;
}

.cta-band p {
  margin: 0 auto 24px;
  max-width: 480px;
  color: var(--text-muted);
}

/* Booking modal */
.booking-modal[hidden],
.booking-thanks-overlay[hidden],
.booking-fallback[hidden],
#booking-calendly-widget[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.booking-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  background: rgba(20, 33, 43, 0.55);
  backdrop-filter: blur(4px);
}

.booking-modal__panel {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: min(760px, 100%);
  max-height: calc(100dvh - 40px);
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 26px 80px rgba(20, 33, 43, 0.3);
  padding: 24px;
}

.booking-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.booking-modal h2 {
  margin: 0 48px 8px 0;
  font-size: 1.5rem;
}

.booking-modal__intro {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.booking-calendly #booking-calendly-widget {
  width: 100%;
  min-height: 630px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  color-scheme: light;
}

.booking-calendly #booking-calendly-widget iframe {
  display: block;
  width: 100%;
  min-height: 630px;
  border: 0;
}

.booking-fallback {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.booking-thanks-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  background: rgba(15, 107, 92, 0.94);
}

.booking-thanks-overlay.is-visible {
  animation: booking-thanks-fade-in 0.35s ease forwards;
}

.booking-thanks-overlay__text {
  margin: 0;
  max-width: 980px;
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 7.8vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

@keyframes booking-thanks-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer */
.site-footer {
  padding: 40px 24px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.build-revision {
  margin: 0;
  padding: 0 24px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .package-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  section {
    padding: 52px 0;
  }

  .hero {
    padding: 52px 0;
  }

  .wrap {
    padding: 0 16px;
  }

  .site-header .inner {
    padding: 10px 16px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 0.92rem;
  }

  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .package-card {
    padding: 22px;
    gap: 22px;
  }

  .booking-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .booking-modal__backdrop {
    backdrop-filter: none;
    background: var(--bg);
  }

  .booking-modal__panel {
    width: 100%;
    max-height: none;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding:
      max(18px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  html.booking-modal--open,
  body.booking-modal--open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .booking-thanks-overlay.is-visible {
    animation: none;
    opacity: 1;
  }
}
