/*
  Kerikeri Centre of Balance
  Main stylesheet

  Sections:
  1. Design tokens and base styles
  2. Header, navigation and buttons
  3. Hero, cards, sections and page layouts
  4. Footer and shared components
  5. Animation states and responsive rules
*/

:root {
  /* Colour system: all site colours are declared here and consumed via variables. */
  --color-ink: #12364a;
  --color-ink-soft: #213947;
  --color-muted: #5d7080;
  --color-muted-deep: #385469;
  --color-muted-rich: #415a69;
  --color-muted-footer: #c7dbe4;
  --color-muted-footer-soft: #a9c5d1;
  --color-muted-blue: #d7e7ee;
  --color-muted-steel: #435d6d;

  --color-primary: #07527b;
  --color-primary-light: #0f6f97;
  --color-primary-dark: #0d3244;
  --color-primary-deep: #073b58;
  --color-accent: #0f6f97;

  --color-surface: #ffffff;
  --color-surface-soft: #fbfaf6;
  --color-surface-warm: #f8f2e8;
  --color-surface-cool: #eef8fb;
  --color-surface-cool-2: #e8f5f8;
  --color-surface-cool-3: #e7f4f8;
  --color-surface-cool-4: #d9eef3;
  --color-surface-mint: #f2f9f6;
  --color-surface-mint-2: #f8fbf5;
  --color-surface-mint-3: #edf8f4;
  --color-surface-light: #fdfefa;
  --color-notice-surface: #eef8fb;
  --color-notice-icon: #d9eef3;
  --color-notice-text: #07527b;
  --color-line: #dce8ec;
  --color-line-strong: #b9ccd5;
  --color-line-muted: #c9d9df;
  --color-transparent: transparent;

  --rgb-ink: 18 54 74;
  --rgb-primary: 7 82 123;
  --rgb-surface: 255 255 255;
  --rgb-line: 220 232 236;
  --rgb-notice: 7 82 123;

  --color-header-bg: rgb(var(--rgb-surface) / 0.86);
  --color-header-border: rgb(var(--rgb-line) / 0.8);
  --color-notice-border: rgb(var(--rgb-notice) / 0.24);
  --color-footer-ring: rgb(var(--rgb-surface) / 0.06);
  --color-footer-border: rgb(var(--rgb-surface) / 0.12);

  --gradient-hero: radial-gradient(circle at 85% 10%, var(--color-surface-cool-4) 0, var(--color-transparent) 34%), linear-gradient(135deg, var(--color-surface) 0, var(--color-surface-mint) 55%, var(--color-surface-cool-3) 100%);
  --gradient-notice: linear-gradient(135deg, var(--color-notice-surface), var(--color-surface));
  --gradient-about: linear-gradient(135deg, var(--color-surface-cool), var(--color-surface-mint-2));
  --gradient-section: linear-gradient(0deg, var(--color-surface-cool-2) 0, var(--color-surface-soft) 100%);
  --gradient-soft: linear-gradient(135deg, var(--color-surface-light) 0, var(--color-surface-mint-3) 50%, var(--color-surface-cool-3) 100%);
  --gradient-callout: linear-gradient(135deg, var(--sage2), var(--color-surface-cool));

  --shadow: 0 22px 70px rgb(var(--rgb-ink) / 0.12);
  --shadow-header: 0 12px 40px rgb(var(--rgb-ink) / 0.09);
  --shadow-button: 0 12px 28px rgb(var(--rgb-primary) / 0.22);
  --shadow-button-hover: 0 16px 38px rgb(var(--rgb-primary) / 0.22);
  --shadow-card: 0 10px 32px rgb(var(--rgb-ink) / 0.07);
  --shadow-card-soft: 0 10px 28px rgb(var(--rgb-ink) / 0.06);
  --shadow-card-hover: 0 10px 28px rgb(var(--rgb-ink) / 0.08);
  --shadow-pill: 0 8px 24px rgb(var(--rgb-ink) / 0.06);

  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --blue: var(--color-primary);
  --blue2: var(--color-primary-light);
  --sage: #b7d7e6;
  --sage2: #e6f4f8;
  --sand: var(--color-surface-warm);
  --cream: var(--color-surface-soft);
  --line: var(--color-line);
  --white: var(--color-surface);
  --radius: 28px;
  --radius2: 18px;
  --serif: "Playfair Display", serif;
  --sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  background: var(--color-header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-header-border);
  transition:
    box-shadow 0.25s ease,
    padding 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
  padding-block: 10px;
}

.brand img {
  width: 210px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav > a:not(.book-btn),
.nav-dropdown > a {
  position: relative;
  color: var(--color-ink-soft);
}

.main-nav > a:not(.book-btn)::after,
.nav-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.main-nav > a:hover::after,
.nav-dropdown:hover > a::after {
  width: 100%;
}

.book-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  border: 1px solid var(--color-transparent);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.book-btn,
.btn.primary {
  background: var(--blue);
  color: var(--color-surface);
  box-shadow: var(--shadow-button);
}

.btn.secondary {
  background: var(--color-surface);
  border-color: var(--color-line-strong);
  color: var(--ink);
}

.btn.light {
  background: var(--color-surface);
  color: var(--blue);
}

.btn:hover,
.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: -30px;
  width: 270px;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
}

.dropdown-panel a:hover {
  background: var(--sage2);
  color: var(--ink);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 9px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 42px;
  background:
    radial-gradient(circle at 85% 10%, var(--color-surface-cool-4) 0, var(--color-transparent) 34%),
    linear-gradient(135deg, var(--color-surface) 0, var(--color-surface-mint) 55%, var(--color-surface-cool-3) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue2);
  margin-bottom: 12px;
}

.eyebrow:before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--color-accent);
}

.hero h1,
.sub-hero h1,
.section h2,
.about-band h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.96;
  margin: 0 0 22px;
  color: var(--ink);
}

.section h2,
.about-band h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.hero p,
.sub-hero p,
.section-heading p {
  font-size: 18px;
  color: var(--muted);
  max-width: 630px;
}

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

.hero-visual {
  position: relative;
}

.hero-visual img {
  height: 520px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  left: -24px;
  bottom: 28px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.floating-card strong {
  display: block;
  font-size: 30px;
  color: var(--blue);
}

.floating-card span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

/* Notice */
.notice {
  background: var(--color-surface);
  border-block: 1px solid var(--line);
  padding: 18px 0;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--gradient-notice);
  border: 1px solid var(--color-notice-border);
  box-shadow: var(--shadow);
}

.notice-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-notice-icon);
  color: var(--color-notice-text);
  font-weight: 800;
  font-size: 22px;
}

.notice-icon .material-symbols-rounded {
  font-size: 26px;
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.notice-content h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.15rem;
}

.notice-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--color-surface);
  padding: 22px;
  margin-top: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--line);
  padding: 10px;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-strip span {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage2);
  color: var(--blue);
  font-size: 22px;
}

.trust-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-content strong {
  font-size: 20px;
  line-height: 1.1;
}

.trust-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Sections */
.section {
  padding: 86px 0;
}

.section.compact {
  padding-top: 48px;
}

.section-heading {
  text-align: center;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 40px;
}

.section-heading .eyebrow {
  justify-content: center;
}

/* Homepage service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

.service-card,
.therapy-card,
.testimonial,
.content-card,
.side-card,
.contact-card,
.map-card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow-card);
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.service-card:hover,
.therapy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-card div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.service-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 12px;
  min-height: 50px;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  min-height: 92px;
}

.service-card a,
.content-card a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

/* About band */
.about-band {
  background: var(--gradient-about);
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
}

.portrait {
  height: 420px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.badges span {
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}

.quote-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.quote-card div,
.testimonial .quote {
  font-family: var(--serif);
  font-size: 70px;
  color: var(--color-accent);
  line-height: 0.7;
}

.quote-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.16;
  margin: 12px 0 0;
}

/* Layout helpers */
.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.condition-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.condition-pills span {
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--color-surface);
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  color: var(--color-muted-deep);
}

/* Testimonial carousel */
.testimonials {
  overflow: hidden;
}

.testimonial-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.testimonial-track-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}

.testimonial-track {
  display: flex;
  gap: 22px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 calc((100% - 44px) / 3);
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 30px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow-card);
}

.testimonial-slide .quote {
  font-family: var(--serif);
  font-size: 72px;
  color: var(--color-accent);
  line-height: 0.7;
  margin-bottom: 10px;
}

.testimonial-slide p {
  margin: 0 0 22px;
  color: var(--color-muted-rich);
  line-height: 1.75;
  font-size: 15px;
}

.testimonial-slide strong {
  margin-top: auto;
  font-size: 14px;
  color: var(--ink);
}

.testimonial-slide .stars {
  color: var(--color-accent);
  letter-spacing: 3px;
  margin-top: 10px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--blue);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card-hover);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: var(--color-surface);
  box-shadow: var(--shadow-button-hover);
}

.carousel-btn .material-symbols-rounded {
  font-size: 28px;
}

.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--color-line-muted);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.carousel-dot.active {
  width: 28px;
  background: var(--blue);
}

/* Visit */
.visit-section {
  padding: 72px 0;
  background: var(--gradient-section);
}

.visit-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 0.8fr;
  align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visit-grid > div {
  padding: 36px;
}

.visit-grid img {
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.phone {
  font-size: 24px;
  font-weight: 900;
  color: var(--blue);
}

.cta-panel {
  background: var(--blue);
  color: var(--color-surface);
}

.cta-panel p {
  color: var(--color-muted-blue);
}

/* Sub hero */
.sub-hero {
  padding: 74px 0;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--line);
}

.sub-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.sub-hero img {
  height: 340px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Services page main service cards */
.therapy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.therapy-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.therapy-card img {
  width: 100%;
  height: 230px;
  min-height: 230px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.therapy-card div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 28px;
}

.therapy-card h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.08;
  margin: 0 0 16px;
}

.therapy-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.therapy-card a,
.related-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.therapy-card-feature {
  grid-column: auto;
}

.therapy-card-feature img {
  object-position: center;
}

/* Content pages */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.content-card {
  padding: clamp(24px, 4vw, 48px);
}

.content-card h2,
.content-card h3,
.content-card h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
}

.content-card h2 {
  font-size: 36px;
}

.content-card h3 {
  font-size: 28px;
}

.content-card p,
.content-card li {
  color: var(--color-muted-steel);
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 900;
}

.side-card {
  padding: 26px;
  align-content: center;
}

.side-card img {
  height: 180px;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 2.5px solid var(--blue);
  box-shadow: var(--shadow-card-soft);
}

.side-card.sticky {
  position: sticky;
  top: 110px;
}

.side-card .related-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.side-card .wide {
  width: 100%;
  margin-top: 18px;
}

.bottom-cta {
  margin-top: 40px;
  background: var(--gradient-callout);
  padding: 28px;
  border-radius: 22px;
}

/* About page images */
.image-story {
  padding-top: 0;
}

.three-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.three-images figure {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card-soft);
}

.three-images img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.three-images figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Video */
.video-section {
  background: var(--color-surface-cool);
}

.video-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 38px;
  align-items: center;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-primary-dark);
}

.video-wrap iframe,
.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.contact-card {
  padding: 34px;
}

.map-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--color-primary-deep);
  color: var(--color-surface-cool-2);
  padding: 70px 0 24px;
  position: relative;
  overflow: hidden;
}

.site-footer:after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 360px;
  height: 360px;
  border: 30px solid var(--color-footer-ring);
  border-radius: 50%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr 1fr;
  gap: 38px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: 210px;
  margin-bottom: 18px;
  background-color: var(--white);
  border-radius: 10px;
  padding: 10px;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--color-muted-footer);
  font-size: 14px;
  margin: 0 0 10px;
}

.site-footer h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-surface);
}

.footer-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.footer-logos img {
  max-width: 120px;
  background: var(--color-surface);
  border-radius: 10px;
  padding: 7px;
}

.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  margin: 40px auto 0;
  padding-top: 18px;
  width: min(1180px, calc(100% - 40px));
  color: var(--color-muted-footer-soft);
  font-size: 13px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Material Symbols */
.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  var(--color-surface)-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.icon {
  color: var(--blue);
  font-size: 24px;
}

.icon-circle {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: var(--sage2);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-circle .material-symbols-rounded {
  font-size: 24px;
}

.icon-filled {
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

/* Page transitions */
body {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

body.page-loaded {
  opacity: 1;
  transform: translateY(0);
}

body.page-exit {
  opacity: 0;
  transform: translateY(10px);
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--cream), var(--sage2));
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.page-exit .page-transition-overlay {
  opacity: 1;
}

/* Tablet */
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 82px 20px auto 20px;
    background: var(--color-surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-dropdown .dropdown-panel {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    width: 100%;
    margin-top: 10px;
  }

  .hero-grid,
  .sub-hero-grid,
  .about-grid,
  .two-col,
  .content-layout,
  .video-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .trust-strip div {
    border-right: 0;
  }

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

  .three-images,
  .visit-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }

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

  .side-card.sticky {
    position: static;
  }

  .hero-visual img {
    height: 360px;
  }

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

  .testimonial-slide {
    flex-basis: calc((100% - 22px) / 2);
  }
}

/* Mobile */
@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 170px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1,
  .sub-hero h1 {
    font-size: 44px;
  }

  .section {
    padding: 58px 0;
  }

  .service-grid,
  .condition-pills {
    grid-template-columns: 1fr;
  }

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

  .therapy-card {
    min-height: auto;
  }

  .therapy-card img {
    height: 220px;
    min-height: 220px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

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

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .floating-card {
    left: 16px;
  }

  .sub-hero img {
    height: 260px;
  }

  .testimonial-carousel {
    grid-template-columns: 1fr;
  }

  .testimonial-track-wrap {
    order: 1;
  }

  .carousel-btn {
    display: none;
  }

  .testimonial-slide {
    flex-basis: 100%;
    min-height: auto;
  }

  .carousel-dots {
    order: 2;
  }
}

@media (max-width: 640px) {
  .notice-card {
    flex-direction: column;
    padding: 20px;
  }

  .notice-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

.credential-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.credential-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: var(--shadow-pill);
}

/* Accessibility and shared component states */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.main-nav a[aria-current="page"] {
  color: var(--blue);
}

.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.dropdown-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.content-divider {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--line);
}

.footer-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-surface);
  margin: 0 0 14px;
}

:where(.content-card, .contact-card, .side-card) > :first-child {
  margin-top: 0;
}

:where(.content-card, .contact-card, .side-card) > :last-child {
  margin-bottom: 0;
}

/* Content lists
   Keeps treatment-page benefit lists compact and consistent after content cleanup. */
.content-card .check-list {
  margin: 1.25rem 0 1.75rem;
}

.content-card .check-list li + li {
  margin-top: 0.85rem;
}
