:root {
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --color-bg-primary: #faf6f0;
  --color-bg-secondary: #efe6dc;
  --color-bg-panel: #ffffff;
  --color-bg-dark: #26382f;
  --color-text-primary: #24211e;
  --color-text-secondary: #625b54;
  --color-text-muted: #82786e;
  --color-text-inverse: #fffaf3;
  --color-cta: #9f633d;
  --color-cta-hover: #7f4b2d;
  --color-cta-text: #ffffff;
  --color-cta-outline-text: #24211e;
  --color-accent: #7d8b73;
  --color-accent-strong: #4f7a5b;
  --color-border: rgba(36, 33, 30, 0.14);
  --color-border-dark: rgba(255, 250, 243, 0.16);
  --color-separator: rgba(36, 33, 30, 0.22);
  --shadow-soft: 0 24px 80px rgba(55, 43, 34, 0.12);
  --content-width: min(1320px, 100% - 48px);
  --section-padding: clamp(56px, 8vw, 104px);
  --radius-card: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-heading);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  color: var(--color-bg-dark);
  font-size: clamp(38px, 4.2vw, 52px);
}

h2 {
  font-size: clamp(36px, 4.2vw, 64px);
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--color-border);
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(16px);
}

.brand img {
  width: clamp(156px, 15vw, 214px);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav a:hover {
  color: var(--color-text-primary);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--color-cta);
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-cta {
  height: 38px;
}

.button:hover,
.nav-cta:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-separator);
}

.button.secondary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-primary);
}

.button.light {
  background: var(--color-text-inverse);
  color: var(--color-bg-dark);
  border-color: var(--color-text-inverse);
}

.section-pad {
  padding: var(--section-padding) 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-label i {
  width: 80px;
  height: 2px;
  background: var(--color-accent);
}

.section-label.inverse {
  color: rgba(255, 250, 243, 0.72);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-cta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.text-link:hover {
  color: var(--color-cta-hover);
}

.why-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: var(--content-width);
  margin: 0 auto 10px;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fffdf9;
  box-shadow: var(--shadow-soft);
}

.why-feature-copy span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.why-feature-copy h3 {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
}

.why-feature-copy p {
  margin-top: 18px;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.why-feature-copy .text-link {
  margin-top: 26px;
}

.why-stats {
  display: grid;
  gap: 14px;
}

.why-stats div {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-primary);
}

.why-stats b {
  display: block;
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 1;
  color: var(--color-bg-dark);
}

.why-stats span {
  display: block;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: var(--content-width);
  margin: 10px auto 0;
}

.why-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
}

.why-card h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.2;
}

.why-card p {
  margin-top: 14px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.why-card .text-link {
  margin-top: auto;
  padding-top: 24px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 48px) 0 clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--color-border);
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px clamp(16px, 3vw, 44px);
}

.pillar + .pillar {
  border-left: 1px solid var(--color-border);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-bg-dark);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.pillar-icon svg {
  width: 38px;
  height: 38px;
}

.pillar:hover .pillar-icon {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

.pillar h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-bg-dark);
}

.pillar p {
  margin-top: 12px;
  max-width: 240px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.78fr);
  align-items: start;
  gap: clamp(40px, 5vw, 80px);
  width: var(--content-width);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 36px);
}

.hero-content > p {
  max-width: 720px;
  margin-top: 24px;
  color: var(--color-text-secondary);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

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

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-photo {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.hero-photo-main {
  inset: 0 0 auto auto;
  width: 80%;
  height: 400px;
}

.hero-photo-small {
  left: -14px;
  bottom: 48px;
  width: 48%;
  height: 260px;
  border: 12px solid var(--color-bg-primary);
}

/* Card hangs low and to the right so it clips only the bottom corner of the
   main photo (and bridges to the small photo) instead of covering the room. */
.program-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(300px, 66%);
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.program-card > span,
.solution-card span,
.final-cta span,
.dashboard-top span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.program-card > strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.18;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.program-grid p {
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-primary);
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.2;
}

.program-grid b {
  display: block;
  color: var(--color-text-primary);
  font-size: 15px;
}

.booking-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 44px) clamp(28px, 4vw, 52px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 60px rgba(55, 43, 34, 0.08);
}

.booking-band-copy {
  max-width: 680px;
}

.booking-band-copy span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.booking-band-copy h2 {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.12;
}

.booking-band-copy p {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.booking-band .button {
  flex: 0 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  width: var(--content-width);
  margin: 0 auto;
}

.content-grid > * {
  min-width: 0;
}

.align-center {
  align-items: center;
}

.mission-copy {
  display: grid;
  gap: 24px;
  color: var(--color-text-secondary);
  font-size: clamp(18px, 1.5vw, 21px);
}

.section-heading {
  width: var(--content-width);
  margin: 0 auto 48px;
}

.section-heading h2,
.section-heading p {
  max-width: 860px;
}

.section-heading p {
  margin-top: 22px;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.section-heading.narrow h2 {
  max-width: 780px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: var(--content-width);
  margin: 0 auto;
}

.solution-card {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
  overflow: hidden;
}

.solution-card.featured {
  background: #fffdf9;
}

.solution-card img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
}

.solution-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.solution-card h3 {
  margin-top: 12px;
}

.solution-card p {
  margin-top: 16px;
  color: var(--color-text-secondary);
}

.solution-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 30px 0 0;
  list-style: none;
}

.solution-card li {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.connect p {
  max-width: 640px;
  margin: 24px 0 32px;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.dashboard {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
  box-shadow: var(--shadow-soft);
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-top b {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(125, 139, 115, 0.16);
  color: var(--color-bg-dark);
  font-size: 12px;
}

.dashboard h3 {
  margin-top: 26px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.metric-row p {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-primary);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  font-size: 26px;
  line-height: 1;
}

.metric-row span {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.table div {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 16px;
  padding: 14px 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.table div:first-child {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table div + div {
  border-top: 1px solid var(--color-border);
}

.table b {
  color: var(--color-bg-dark);
  font-size: 13px;
}

.final-cta {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 80px 24px;
  background:
    linear-gradient(rgba(38, 56, 47, 0.78), rgba(38, 56, 47, 0.78)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=82") center/cover;
  color: var(--color-text-inverse);
  text-align: center;
}

.final-cta div {
  max-width: 780px;
}

.final-cta span {
  color: rgba(255, 250, 243, 0.72);
}

.final-cta p {
  max-width: 680px;
  margin: 24px auto 34px;
  color: rgba(255, 250, 243, 0.78);
  font-size: 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: var(--content-width);
  margin: 0 auto;
  padding: 36px 0;
  color: var(--color-text-muted);
}

.site-footer img {
  width: 160px;
}

.site-footer p {
  color: var(--color-text-secondary);
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .booking-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .why-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

  .pillar {
    padding-inline: clamp(12px, 2vw, 24px);
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    min-height: 0;
  }

  .solution-card img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --content-width: min(100% - 36px, 1320px);
  }

  .site-header {
    min-height: 70px;
    padding-inline: 18px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .booking-band {
    padding: 22px;
  }

  .why-stats,
  .why-grid,
  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    padding: 28px 8px;
  }

  .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-photo-main {
    width: 100%;
    height: 380px;
  }

  .hero-photo-small {
    width: 54%;
    height: 220px;
  }

  .program-card {
    right: 16px;
    bottom: 34px;
    width: min(340px, 86%);
  }

  .solution-card {
    display: flex;
  }

  .solution-card img {
    height: auto;
    aspect-ratio: 1.35;
  }

  .table {
    overflow-x: auto;
  }

  .table div {
    min-width: 520px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --content-width: min(100% - 28px, 1320px);
  }

  h1 {
    font-size: 47px;
  }

  h2 {
    font-size: 35px;
  }

  .hero-actions {
    display: grid;
  }

  .booking-band .button {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-photo-main {
    height: 300px;
  }

  .hero-photo-small {
    display: none;
  }

  .program-card {
    left: 14px;
    right: 14px;
    bottom: 8px;
    width: auto;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .solution-card div {
    padding: 24px;
  }

  .final-cta {
    min-height: 480px;
  }
}

/* ---- Booking modal ---- */

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 5vh, 64px) 16px;
  overflow-y: auto;
  background: rgba(28, 24, 20, 0.55);
  backdrop-filter: blur(6px);
}

.booking-overlay.open {
  display: flex;
}

.booking-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-primary);
  box-shadow: 0 40px 120px rgba(28, 24, 20, 0.4);
}

.booking-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-panel);
  color: var(--color-text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.booking-close:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.booking-eyebrow {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.booking-head h2 {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
}

.booking-sub {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.booking-progress {
  display: flex;
  gap: 8px;
  margin: 22px 0 4px;
}

.booking-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-border);
  transition: background 200ms ease;
}

.booking-dot.is-active {
  background: var(--color-cta);
}

.booking-step {
  display: none;
  margin-top: 20px;
}

.booking-step.is-active {
  display: block;
}

.booking-field {
  margin-bottom: 14px;
}

.booking-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.booking-field input,
.booking-field textarea,
.booking-tz select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
}

.booking-field textarea {
  resize: vertical;
}

.booking-field input:focus,
.booking-field textarea:focus,
.booking-tz select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(125, 139, 115, 0.18);
}

.booking-error {
  margin: 4px 0 14px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
}

.booking-actions {
  display: flex;
  margin-top: 22px;
}

.booking-actions.space-between {
  justify-content: space-between;
  gap: 12px;
}

.booking-actions .button {
  flex: 1;
}

.booking-actions.space-between .button {
  flex: 0 0 auto;
}

.booking-tz {
  margin-bottom: 18px;
}

.booking-tz label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.booking-tz-note {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.booking-dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.booking-date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 12px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.booking-date:hover {
  border-color: var(--color-accent);
}

.booking-date.is-selected {
  border-color: var(--color-bg-dark);
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.booking-date-dow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-date-day {
  font-size: 15px;
  font-weight: 700;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.booking-slots-empty {
  grid-column: 1 / -1;
  margin: 8px 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.booking-slot {
  padding: 11px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.booking-slot:hover {
  border-color: var(--color-accent);
}

.booking-slot.is-selected {
  border-color: var(--color-cta);
  background: var(--color-cta);
  color: var(--color-cta-text);
}

.booking-done {
  text-align: center;
}

.booking-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 8px auto 18px;
  border-radius: 999px;
  background: rgba(79, 122, 91, 0.16);
  color: var(--color-accent-strong);
  font-size: 26px;
  font-weight: 800;
}

.booking-done h3 {
  font-family: var(--font-heading);
  font-size: 26px;
}

.booking-summary {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.booking-summary strong {
  color: var(--color-text-primary);
}

.booking-summary-ct {
  display: block;
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.booking-fineprint {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  .booking-overlay {
    padding: 0;
  }

  .booking-modal {
    max-width: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
  }

  .booking-actions .button {
    width: auto;
  }

  .booking-actions.space-between .button {
    flex: 1;
  }
}

/* ---- Solution detail subpages ---- */

.solution-card .text-link {
  margin-top: 20px;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 3vw, 44px);
}

.subpage-hero-visual img {
  width: 100%;
  height: clamp(320px, 36vw, 460px);
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.back-link:hover {
  color: var(--color-text-primary);
}

.subpage-hero .eyebrow {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subpage-hero h1 {
  margin-top: 14px;
  font-size: clamp(38px, 4.2vw, 52px);
}

.subpage-hero p {
  margin-top: 24px;
  max-width: 620px;
  color: var(--color-text-secondary);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
}

.subpage-hero .button {
  margin-top: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: var(--content-width);
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .subpage-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .subpage-hero-visual img {
    height: clamp(240px, 60vw, 340px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- FAQ accordion ---- */

.faq-list {
  display: grid;
  gap: 10px;
  width: var(--content-width);
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  color: var(--color-text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-cta);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 26px 24px;
  margin: 0;
  max-width: 760px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Why Sagen page ---- */

.why-card .step-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1;
  color: var(--color-accent-strong);
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: var(--content-width);
  margin: 0 auto;
}

.serve-item {
  padding: 22px 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
}

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

@media (max-width: 768px) {
  .serve-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Why Sagen: portrait quote + image band ---- */

.principal {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: var(--content-width);
  margin: 0 auto;
}

.principal-photo img {
  width: 100%;
  height: clamp(360px, 42vw, 540px);
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.principal-quote .eyebrow {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.principal-quote p {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  color: var(--color-text-primary);
}

.principal-quote cite {
  display: block;
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-band {
  width: var(--content-width);
  margin: 0 auto;
}

.image-band img {
  width: 100%;
  height: clamp(280px, 34vw, 440px);
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1024px) {
  .principal {
    grid-template-columns: 1fr;
  }
}

/* ---- Solutions overview page ---- */

.solution-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  width: var(--content-width);
  margin: 0 auto;
}

.solution-row + .solution-row {
  margin-top: clamp(44px, 6vw, 88px);
}

.solution-row-media img {
  width: 100%;
  height: clamp(300px, 36vw, 460px);
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.solution-row.reverse .solution-row-media {
  order: 2;
}

.solution-row-body .eyebrow {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.solution-row-body h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 40px);
}

.solution-row-body > p {
  margin-top: 18px;
  color: var(--color-text-secondary);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.solution-row-body .text-link {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .solution-row {
    grid-template-columns: 1fr;
  }

  .solution-row.reverse .solution-row-media {
    order: 0;
  }
}

/* ---- Contact page ---- */

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg-panel);
  box-shadow: var(--shadow-soft);
}

.contact-card .eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card .button {
  width: 100%;
}

.contact-card .button + .button {
  margin-top: 12px;
}

/* Real WhatsApp brand button (contact card) */
.wa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  padding: 0 22px;
  border: 1px solid #25d366;
  background: #25d366;
  color: #fff;
  font-family: var(--font-body, inherit);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.wa-button:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-1px);
}

.wa-button svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.contact-card .contact-note {
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---- Consent checkbox row (email modal) ---- */

.booking-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 4px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.booking-check-row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-cta);
}

/* ---- Mobile: sticky Book a Call bar + clean hero (homepage only) ---- */

.sticky-book {
  display: none;
}

@media (max-width: 768px) {
  /* Always-visible booking CTA pinned to the bottom of the viewport.
     Only the homepage carries the .sticky-book element, so this is
     automatically homepage-only. It replaces the header CTA, which is
     hidden at this width. */
  .sticky-book {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 64px is the constant tap/label area; the safe-area chin is added BELOW it
       (via min-height + matching padding) so the button never shrinks when the
       iOS toolbar collapses on scroll. */
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-cta);
    color: var(--color-cta-text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 -6px 18px rgba(36, 33, 30, 0.16);
  }

  /* keep page content clear of the fixed bar */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  /* The Nevada stats card is desktop-only polish; on mobile it is noise.
     Hide it and let the hero photo stand on its own as a clean visual. */
  .program-card {
    display: none;
  }

  .hero-photo-small {
    display: none;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-photo-main {
    position: relative;
    width: 100%;
    height: clamp(240px, 56vw, 340px);
  }

  /* The inline hero CTA is redundant now the sticky bar is always visible;
     removing it gives the headline and image the room to sit above the fold. */
  .hero-actions {
    display: none;
  }
}

/* Phones: the hero fills the screen down to the sticky bar, and the image
   grows into the leftover space, so the next section sits just below the fold. */
@media (max-width: 480px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* override the grid-era align-items:start so children fill width */
    min-height: calc(100vh - 138px); /* fallback */
    min-height: calc(100dvh - 138px); /* viewport minus header + sticky bar */
    padding-top: 26px;
    gap: 24px;
  }

  .hero .section-label {
    margin-bottom: 24px;
  }

  #hero-title {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero-content > p {
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.6;
  }

  /* Image fills the leftover space (no void) but is capped so it stays
     moderate; the generous text spacing above shrinks it naturally. */
  .hero-visual {
    flex: 1 1 auto;
    min-height: 190px;
    max-height: 330px;
  }

  .hero-photo-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* ---- Mobile navigation (hamburger + slide-in menu) ---- */

.nav-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-bg-dark);
    border-radius: 2px;
  }

  /* the menu carries the CTA on small screens, so drop the header button */
  .nav-cta {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(36, 33, 30, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(82%, 320px);
  display: flex;
  flex-direction: column;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--color-bg-primary);
  box-shadow: -16px 0 48px rgba(36, 33, 30, 0.22);
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.mobile-menu-nav a {
  padding: 16px 6px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-bg-dark);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu-cta {
  margin-top: 20px;
  padding: 16px 6px !important;
  border-bottom: 0 !important;
  background: var(--color-cta);
  color: var(--color-cta-text) !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 14px;
}

/* ============================================================
   Resources (blog / thought-leadership)
   ============================================================ */
.resources-hero {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: clamp(18px, 2.6vw, 28px) 0 clamp(16px, 2.2vw, 24px);
}
.resources-hero-inner {
  width: var(--content-width);
  margin: 0 auto;
}
.resources-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.resources-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--color-text-inverse);
  max-width: none;
}
.resources-hero p {
  max-width: 620px;
  color: rgba(255, 250, 243, 0.78);
  font-size: 1.05rem;
}
.resources-hero .back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.resources-body {
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) 0 var(--section-padding);
}

/* Controls: search + category chips */
.resources-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.rc-search {
  display: flex;
  justify-content: center;
}
.rc-search input {
  width: min(560px, 100%);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rc-search input:focus {
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 0 3px rgba(79, 122, 91, 0.15);
}
.rc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.rc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rc-chip span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.rc-chip:hover {
  border-color: var(--color-accent-strong);
}
.rc-chip.active {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}
.rc-chip.active span {
  color: var(--color-accent);
}

/* Card grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.rc-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-secondary);
}
.rc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rc-media-empty {
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-primary));
}
.rc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
}
.rc-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent-strong);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 11px;
}
.rc-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--color-text-primary);
}
.rc-excerpt {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  flex: 1;
}
.rc-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.rc-empty,
.rc-noresults {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 0;
}

/* Single article */
.resource-article {
  width: min(760px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 var(--section-padding);
}
.preview-banner {
  width: min(760px, 100% - 48px);
  margin: 16px auto 0;
  padding: 10px 16px;
  border: 1px solid #d8b48a;
  background: #fbf1e2;
  color: #7f4b2d;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.article-head .back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--color-cta);
  font-weight: 600;
  font-size: 0.9rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.article-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent-strong);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 11px;
}
.article-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.resource-article h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 8px;
}
.article-cover {
  margin: 32px 0;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.article-cover img {
  width: 100%;
  object-fit: cover;
}
.article-content {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-text-primary);
}
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin: 40px 0 14px;
}
.article-content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 28px 0 8px;
}
.article-content p {
  margin: 0 0 18px;
}
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-card);
  text-align: center;
}
.article-cta p {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}
