/* ==========================================================================
   Hydralive Therapy — Licensee Landing Page Template
   Tokens come from the Hydralive Therapy design system and brand book.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --navy: #212d65;
  --turquoise: #54c2eb;          /* Fills and accents only. Never text on white. */
  --aqua: #c7e3ee;               /* Placeholder fills */

  /* Surfaces */
  --surface: #ffffff;
  --surface-tint: #def6ff;
  --surface-warm: #efeeeb;

  /* Text */
  --heading: var(--navy);
  --ink: #272727;
  --ink-muted: #636363;
  --link: #0c7297;               /* Text-weight blue: passes AA on white and tint */
  --on-dark: #f3f5fb;
  --on-dark-muted: #b8c2e6;

  /* Lines and controls */
  --line: #e0e0e0;
  --line-dark: #3a4888;
  --field-border: #767676;       /* 4.5:1 on white, above the 3:1 control minimum */
  --focus-ring: var(--navy);

  /* Type */
  --font-sans: "Montserrat", Calibri, Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-1: 8px;
  --space-2: 15px;
  --space-3: 25px;
  --space-4: 40px;
  --space-5: 75px;

  /* Radius */
  --radius-sm: 7px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 50px;

  /* Shadow */
  --shadow-card: 0 10px 20px 0 rgba(0, 0, 0, 0.1);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: var(--link); }
a:hover { color: var(--navy); }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: var(--space-1) var(--space-2);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip-link:focus { top: var(--space-1); color: #fff; }

/* ---------- 3. Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter);
}

.section--white { background: var(--surface); }
.section--tint  { background: var(--surface-tint); }
.section--warm  { background: var(--surface-warm); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 640px;
  margin-bottom: var(--space-4);
}
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }

/* ---------- 4. Type ---------- */
.display {
  font-size: 50px;
  line-height: 60px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--heading);
  text-wrap: balance;
}
.h2 { font-size: 40px; line-height: 48px; font-weight: 400; color: var(--heading); }
.h3 { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--heading); }
.body-lg { font-size: 18px; line-height: 30px; }
.body { font-size: 16px; line-height: 24px; }
.small { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- 5. Components ---------- */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(0.95); }
.btn--primary { background: var(--turquoise); border-color: var(--turquoise); color: var(--navy); }
.btn--primary:hover { color: var(--navy); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--heading); }
.btn--block { width: 100%; }

/* Image placeholder: replace with <img> and real alt text */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aqua);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Form */
.form {
  display: grid;
  gap: 16px 20px;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-md);
}
.form--card { box-shadow: var(--shadow-card); }
.form--two-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.form__full { grid-column: 1 / -1; }
.form__actions { grid-column: 1 / -1; display: flex; justify-content: center; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--heading); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.field textarea { padding: 12px 14px; resize: vertical; }

/* ---------- 6. Sections ---------- */

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.site-header__logo { width: 190px; }

/* Hero */
.hero__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__copy .body-lg { max-width: 560px; }
.hero__image { height: 300px; }
.hero__form { flex: 1 1 380px; min-width: 0; }

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}
.service-card { overflow: hidden; display: flex; flex-direction: column; }
.service-card__image { height: 180px; border-radius: 0; }
.service-card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: 10px; }
.service-card__body p { color: var(--ink-muted); }
.service-card__link { font-weight: 600; text-decoration: none; }

/* Process */
.process__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.process__steps { flex: 1 1 460px; min-width: 0; }
.process__image { flex: 1 1 380px; min-width: 0; height: 420px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-2); align-items: start; }
.step__num { font-size: 40px; line-height: 40px; font-weight: 300; color: var(--link); font-variant-numeric: tabular-nums; }
.step__title { margin: 4px 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--heading); }
.step__desc { color: var(--ink-muted); }

/* Pricing */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.price-card { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.price-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-card__price { font-size: 44px; line-height: 50px; font-weight: 300; color: var(--heading); }
.price-card__price span { font-size: 16px; color: var(--ink-muted); }
.price-card__desc { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.price-card__list { margin: 0; padding-left: 18px; list-style: square; font-size: 15px; line-height: 26px; flex: 1; }
.price-card .btn { align-self: flex-start; }

.price-card--featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.price-card--featured .h3,
.price-card--featured .price-card__price { color: #fff; }
.price-card--featured .price-card__price span,
.price-card--featured .price-card__desc { color: var(--on-dark-muted); }
.price-card--featured .price-card__list { color: var(--on-dark); }

.badge {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--turquoise);
  color: var(--navy);
}

/* Location */
.location__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.location__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.location__address { font-style: normal; font-size: 16px; line-height: 26px; }
.location__phone { font-size: 18px; font-weight: 600; color: var(--heading); text-decoration: none; }
.hours { margin: 0; max-width: 320px; display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dd { margin: 0; }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.location__map { flex: 2 1 460px; min-width: 0; min-height: 380px; }

/* Bottom form */
.contact__form { max-width: 760px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); }
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-block: 64px 32px;
}
.site-footer__logo { width: 240px; }
.site-footer__legal {
  align-self: stretch;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  color: var(--on-dark-muted);
}

/* ---------- 7. Mobile (≤ 640px) ---------- */
@media (max-width: 640px) {
  /* Hero order on phones: headline, text, form, then image */
  .hero__grid { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; }
  .hero__copy { display: contents; }
  .hero__form { order: 2; flex: none; margin-top: var(--space-1); }
  .hero__image { order: 3; margin-top: var(--space-1); }

  /* Service cards become a horizontal swipe row */
  .services__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) var(--space-3);
    scrollbar-width: none;
  }
  .services__grid::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 80%; scroll-snap-align: center; }
}
