/* =============================================================
   DR PAUL GEBERS — STYLESHEET
   Fonts: Syne (headlines) + Nunito (body)
   Mobile-first. CSS custom properties for all tokens.
============================================================= */

/* -------------------------------------------------------
   TOKENS
------------------------------------------------------- */
:root {
  /* Colour */
  --colour-navy:        #02445A;
  --colour-teal:        #2ED3B5;
  --colour-mid-blue:    #4A7C8B;
  --colour-bg:          #FFFFFF;
  --colour-bg-alt:      #F0F7F6;
  --colour-body:        #3D6472;
  --colour-border:      #C5DFD9;
  --colour-white:       #FFFFFF;
  --colour-navy-dark:   #012E3E;

  /* Typography */
  --font-display:       'Playfair Display', Georgia, serif;
  --font-body:          'Nunito', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  clamp(2.5rem, 5vw, 4rem);

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4rem;
  --space-3xl:  clamp(3rem, 7vw, 6rem);
  --space-4xl:  clamp(4rem, 10vw, 8rem);

  /* Layout */
  --max-width:  1100px;
  --nav-height: 84px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-ui:     0.25s ease;
  --transition-reveal: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


/* -------------------------------------------------------
   RESET & BASE
------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--colour-body);
  background-color: var(--colour-bg);
  overflow-x: hidden;
  opacity: 0;
  animation: page-fade-in 0.4s ease forwards;
}

@keyframes page-fade-in {
  to { opacity: 1; }
}

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

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

ul {
  list-style: none;
}

address {
  font-style: normal;
}


/* -------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--colour-navy);
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: var(--text-6xl);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

p {
  line-height: 1.75;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--colour-teal);
  margin-bottom: var(--space-sm);
}

.section-label--light {
  color: rgba(46, 211, 181, 0.9);
}


/* -------------------------------------------------------
   LAYOUT UTILITIES
------------------------------------------------------- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}


/* -------------------------------------------------------
   BUTTONS
------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition-ui), color var(--transition-ui), border-color var(--transition-ui), transform var(--transition-fast), box-shadow var(--transition-ui);
  min-height: 52px;
}

.btn:focus-visible {
  outline: 3px solid var(--colour-teal);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--colour-teal);
  color: var(--colour-navy);
  border-color: var(--colour-teal);
}

.btn-primary:hover {
  background-color: #24b89e;
  border-color: #24b89e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 211, 181, 0.35);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--colour-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--colour-white);
  transform: translateY(-2px);
}


/* -------------------------------------------------------
   ANIMATIONS — fade-up
------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
  transition-delay: var(--delay, 0s);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    animation: none;
  }
}


/* =============================================================
   NAVIGATION
============================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background-color var(--transition-ui), box-shadow var(--transition-ui);
}

.site-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--colour-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Dual logo — white shows on hero, blue shows after scroll */
.nav-logo {
  flex-shrink: 0;
  display: block;
  height: 52px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.nav-logo .logo-light,
.nav-logo .logo-dark {
  height: 52px;
  width: auto;
  display: block;
}

.nav-logo .logo-dark {
  display: none;
}

.site-nav.scrolled .logo-light {
  display: none;
}

.site-nav.scrolled .logo-dark {
  display: block;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
}

/* Default state — on hero (dark background), white links */
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--colour-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-ui);
}

.nav-links a:hover {
  color: var(--colour-teal);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Scrolled state — navy links */
.site-nav.scrolled .nav-links a {
  color: var(--colour-navy);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--colour-white) !important; /* Overriding inherited link colour — intentional */
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-ui), border-color var(--transition-ui), color var(--transition-ui) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background-color: var(--colour-teal) !important;
  border-color: var(--colour-teal) !important;
  color: var(--colour-navy) !important;
}

/* Scrolled CTA */
.site-nav.scrolled .nav-cta {
  background-color: var(--colour-navy) !important;
  border-color: var(--colour-navy) !important;
  color: var(--colour-white) !important;
}

.site-nav.scrolled .nav-cta:hover {
  background-color: var(--colour-teal) !important;
  border-color: var(--colour-teal) !important;
  color: var(--colour-navy) !important;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--colour-white);
  border-radius: 2px;
  transition: transform var(--transition-ui), opacity var(--transition-ui);
}

.site-nav.scrolled .nav-hamburger span {
  background-color: var(--colour-navy);
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background-color: var(--colour-bg);
  z-index: 200;
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 40px rgba(2, 68, 90, 0.12);
}

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

.mobile-menu-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--colour-navy);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.mobile-menu-close:hover {
  background-color: var(--colour-bg-alt);
}

.mobile-menu-close:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 2px;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-menu ul a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--colour-navy);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.mobile-menu ul a:hover {
  color: var(--colour-teal);
}

.mobile-menu ul a:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 4px;
  border-radius: 2px;
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background-color: var(--colour-teal);
  color: var(--colour-navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-ui);
}

.mobile-menu-cta:hover {
  background-color: #24b89e;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 68, 90, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu-backdrop.is-active {
  opacity: 1;
  pointer-events: all;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }
}


/* =============================================================
   HERO
============================================================= */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100svh;
  height: 100vh;
  overflow: hidden;
  background-image: url('assets/hero-bg.webp');
  background-size: cover;
  background-position: center center;
  z-index: 1;
}

/* Separate figure layer — independently positioned/scaled per breakpoint */
.hero-figure {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 92%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  height: 100svh;
  height: 100vh;
}

.hero-content-col {
  background: linear-gradient(to right, rgba(1, 40, 54, 0.55) 0%, transparent 100%);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-image-col {
  display: none;
  position: relative;
  background-color: transparent;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl) var(--space-md);
  align-items: center;
  justify-content: center;
}

.about-photo-wrap {
  will-change: transform;
}

.teen-image-col img {
  will-change: transform;
}

.hero-content {
  max-width: 560px;
  width: 100%;
}

.hero-content h1 {
  color: var(--colour-white);
  max-width: 14ch;
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 8vw, 4.2rem);
}

/* Trust badge — replaces hero label */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: var(--space-md);
}

.hero-trust-avatars {
  display: flex;
  flex-shrink: 0;
}

.hero-trust-avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--colour-navy);
  margin-left: -10px;
  transition: transform var(--transition-ui), z-index 0s;
}

.hero-trust-avatars img:first-child {
  margin-left: 0;
}

.hero-trust-avatars img:hover {
  transform: translateY(-3px) scale(1.06);
  z-index: 10;
  position: relative;
}

.hero-trust-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.hero-trust-text span {
  display: inline;
  color: var(--colour-teal);
  font-weight: 700;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  max-width: 40ch;
  line-height: 1.6;
}

.hero-cta {
  font-size: var(--text-base);
  cursor: default;
  pointer-events: none;
}

/* Mobile: push image to far right and darken overlay so text is readable */
@media (max-width: 767px) {
  .hero {
    background-position: center center;
  }

  /* Scale figure down and anchor bottom-right on mobile */
  .hero-figure {
    height: 52%;
    opacity: 0.55;
    right: -2%;
  }

  .hero-content-col {
    background: rgba(1, 40, 54, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--nav-height) 1.25rem 1.25rem;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-trust-text {
    text-align: center;
  }

  /* Global mobile horizontal padding = 20px */
  .section-inner,
  .hero-content-col,
  .philosophy-inner,
  .vaccinations-inner,
  .contact-inner,
  .footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 55% 45%;
  }

  .hero-content-col {
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-2xl) var(--space-2xl) calc((100vw - var(--max-width)) / 2 + var(--space-md));
    padding-left: max(var(--space-2xl), calc((100vw - var(--max-width)) / 2 + var(--space-md)));
  }

  .hero-image-col {
    display: flex;
  }
}


/* =============================================================
   ABOUT
============================================================= */
/* Push about down so fixed hero is fully visible before scrolling begins */
.about {
  background-color: #FFFFFF;
  padding: var(--space-4xl) 0;
  margin-top: 100svh;
  margin-top: 100vh;
  position: relative;
  z-index: 2;
}

/* All sections after hero must sit above the fixed hero layer */
.services, .philosophy, .teenage-clinic, .vaccinations, .visit, .contact {
  position: relative;
  z-index: 2;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-image-col {
  display: flex;
  justify-content: center;
}

.about-photo-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  clip-path: none;
  box-shadow: 0 8px 32px rgba(2, 68, 90, 0.18);
  flex-shrink: 0;
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-photo-wrap.is-visible img {
  transform: scale(1);
}

.about-text-col .section-label {
  display: block;
  color: var(--colour-teal);
}

.about-text-col h2 {
  color: var(--colour-navy);
  margin-bottom: var(--space-md);
}

.about-body {
  color: var(--colour-body);
  margin-bottom: var(--space-xl);
}

.about-body p + p {
  margin-top: var(--space-md);
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.credential-pill {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--colour-bg-alt);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-md);
  color: var(--colour-navy);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: box-shadow var(--transition-ui);
}

.credential-pill:hover {
  box-shadow: 0 4px 16px rgba(2, 68, 90, 0.12);
}

.credential-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--colour-teal);
}

@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: var(--space-3xl);
  }
}

/* About tabs */
.about-tabs {
  margin-top: var(--space-xl);
}

.about-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--colour-border);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.about-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--colour-mid-blue);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.about-tab-btn:hover {
  color: var(--colour-navy);
}

.about-tab-btn.is-active {
  color: var(--colour-navy);
  border-bottom-color: var(--colour-teal);
}

.about-tab-btn:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.about-tab-panel[hidden] {
  display: none;
}


/* =============================================================
   SERVICES
============================================================= */
.services {
  padding: var(--space-4xl) 0;
  background-color: #C5DFD9;
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-header .section-label,
.services-header h2 {
  display: block;
}

.services-header .section-label {
  color: var(--colour-navy);
  opacity: 0.65;
}

.services-intro {
  color: var(--colour-body);
  font-size: var(--text-lg);
  margin-top: var(--space-md);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--colour-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(2, 68, 90, 0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: var(--space-md);
  color: var(--colour-white);
}

.service-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scattered accent colours — deliberately non-sequential */
.service-card:nth-child(1) .service-icon { background-color: #5D929E; }
.service-card:nth-child(2) .service-icon { background-color: #CBB18E; }
.service-card:nth-child(3) .service-icon { background-color: #AECCB1; }
.service-card:nth-child(4) .service-icon { background-color: #2ED3B5; }
.service-card:nth-child(5) .service-icon { background-color: #CBB18E; }
.service-card:nth-child(6) .service-icon { background-color: #5D929E; }
.service-card:nth-child(7) .service-icon { background-color: #2ED3B5; }
.service-card:nth-child(8) .service-icon { background-color: #AECCB1; }

.service-card h3 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-lg);
}

.service-card p {
  color: var(--colour-body);
  font-size: var(--text-sm);
  line-height: 1.6;
}

@media (min-width: 540px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* =============================================================
   PHILOSOPHY QUOTE
============================================================= */
.philosophy {
  background-color: var(--colour-bg);
  padding: var(--space-3xl) 0;
}

.philosophy-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  padding: 0 var(--space-2xl);
  margin: 0 auto;
}

.philosophy-quote {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--colour-navy);
  text-align: center;
  text-wrap: balance;
  width: 100%;
}

/* Quote — each segment reveals on viewport entry, staggered */
.quote-segment {
  display: block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter  0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.2em;
  text-wrap: balance;
}

.quote-segment:nth-child(1) { transition-delay: 0s; }
.quote-segment:nth-child(2) { transition-delay: 0.3s; }
.quote-segment:nth-child(3) { transition-delay: 0.6s; }

.quote-segment.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Accent words blur into focus after their segment appears */
.pq-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  filter: blur(10px);
  transition: filter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.quote-segment.is-visible .pq-accent {
  filter: blur(0);
}

.pq-accent--1 { color: #1A73E8; }
.pq-accent--2 { color: var(--colour-teal); }
.pq-accent--3 { color: #CBB18E; }
.pq-accent--4 { color: #6A9A6F; }

@media (prefers-reduced-motion: reduce) {
  .quote-segment {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  .pq-accent {
    filter: none;
    transition: none;
  }
}

/* Inline avatar cluster — mirrors hero trust avatars */
.pq-inline-img {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 0.3em;
}

.pq-inline-img img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--colour-bg);
  margin-left: -14px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 68, 90, 0.15);
}

.pq-inline-img img:first-child {
  margin-left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pq-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =============================================================
   TEENAGE CLINIC
============================================================= */

/* Blur-in reveal for teen section text */
.teenage-clinic .fade-up {
  filter: blur(8px);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

.teenage-clinic .fade-up.is-visible {
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .teenage-clinic .fade-up {
    filter: none;
  }
}

.teenage-clinic {
  background-color: var(--colour-navy);
  position: relative;
  overflow: hidden;
}

.teen-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 600px;
}

.teen-text-col {
  padding: var(--space-4xl) var(--space-md);
  max-width: calc(var(--max-width) / 2 + var(--space-md));
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
}

.teen-text-col h2 {
  color: var(--colour-white);
}

.teen-body {
  color: rgba(255, 255, 255, 0.78);
}

.teen-body p + p {
  margin-top: var(--space-md);
}

.teen-callout {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: rgba(46, 211, 181, 0.15);
  border: 1px solid rgba(46, 211, 181, 0.35);
  border-radius: var(--radius-md);
  color: var(--colour-teal);
  font-size: var(--text-sm);
  font-weight: 600;
  width: fit-content;
}

.teen-image-col {
  position: relative;
  display: flex;
  align-items: center;
}

.teen-image-col img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  will-change: transform;
}

@media (min-width: 900px) {
  .teen-split {
    grid-template-columns: 1fr 1fr;
  }

  .teen-text-col {
    padding: var(--space-4xl) var(--space-2xl) var(--space-4xl) var(--space-md);
  }

  .teen-image-col {
    min-height: unset;
    padding: var(--space-xl);
  }
}


/* =============================================================
   VACCINATIONS
============================================================= */
.vaccinations {
  padding: var(--space-4xl) 0;
  background-color: var(--colour-white);
}

.vaccinations-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  align-items: center;
  text-align: center;
}

.vacc-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.vacc-body {
  font-size: var(--text-lg);
  color: var(--colour-body);
}

.vacc-note {
  font-size: var(--text-xs);
  color: var(--colour-mid-blue);
  opacity: 0.7;
  margin-top: var(--space-xs);
}

.vacc-image {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.vacc-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .vaccinations-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3xl);
  }

  .vacc-content {
    align-items: flex-start;
  }

  .vacc-image {
    max-width: 420px;
  }
}


/* =============================================================
   YOUR VISIT
============================================================= */
.visit {
  padding: var(--space-4xl) 0;
  background-color: var(--colour-bg-alt);
}

.visit .section-label,
.visit h2 {
  display: block;
  margin-bottom: var(--space-sm);
}

.visit h2 {
  margin-bottom: var(--space-2xl);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.visit-card {
  padding: var(--space-xl);
  background-color: var(--colour-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg);
}

.visit-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--colour-white);
  margin-bottom: var(--space-md);
}

/* Alternating accent colours on planning cards */
.visit-card:nth-child(1) .visit-card-icon { background-color: #5D929E; }
.visit-card:nth-child(2) .visit-card-icon { background-color: #AECCB1; }
.visit-card:nth-child(3) .visit-card-icon { background-color: #CBB18E; }
.visit-card:nth-child(4) .visit-card-icon { background-color: #2ED3B5; }

.visit-card h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--colour-navy);
  font-family: var(--font-display);
  font-weight: 700;
}

.visit-card address,
.visit-card p {
  color: var(--colour-body);
  font-size: var(--text-base);
  line-height: 1.7;
}

.visit-note {
  font-size: var(--text-sm) !important; /* Overrides base p size for supplementary notes */
  color: var(--colour-mid-blue) !important;
  margin-top: var(--space-sm);
}

.visit-note a {
  color: var(--colour-teal);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.visit-note a:hover {
  color: var(--colour-navy);
}

.visit-link {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--colour-teal);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.visit-link:hover {
  color: var(--colour-navy);
}

.visit-link:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.bring-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-xs);
}

.bring-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--colour-body);
  font-size: var(--text-base);
}

.bring-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--colour-teal);
}

.bring-sub {
  color: var(--colour-mid-blue);
  font-size: var(--text-sm);
}

/* Map embed */
.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--colour-border);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.map-link {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--colour-white);
  color: var(--colour-navy);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(2, 68, 90, 0.15);
  transition: box-shadow var(--transition-ui), transform var(--transition-fast);
}

.map-link:hover {
  box-shadow: 0 8px 24px rgba(2, 68, 90, 0.2);
  transform: translateY(-2px);
}

.map-link:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (min-width: 600px) {
  .visit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =============================================================
   CONTACT
============================================================= */
.contact {
  background-color: var(--colour-navy-dark);
  padding: var(--space-4xl) 0 0;
}

.contact-inner {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-4xl);
}

/* Prominent phone number at top */
.contact-phone-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--colour-white);
  line-height: 1.1;
  margin: var(--space-md) 0 var(--space-sm);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.contact-phone-number:hover {
  color: var(--colour-teal);
}

.contact-phone-number:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 4px;
  border-radius: 2px;
}

.contact-location {
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--text-base);
  margin-bottom: var(--space-2xl);
}

/* Clean contact list — no boxes, 2-column grid on desktop */
.contact-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .contact-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-row:nth-child(odd) {
    padding-right: var(--space-2xl);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .contact-row:nth-child(even) {
    padding-left: var(--space-xl);
  }
}

.contact-row dt {
  width: 110px;
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.contact-row dd {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-base);
  font-style: normal;
  line-height: 1.6;
}

.contact-row dd a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.contact-row dd a:hover {
  color: var(--colour-teal);
}

.contact-row dd a:focus-visible {
  outline: 2px solid var(--colour-teal);
  outline-offset: 3px;
  border-radius: 2px;
}


/* =============================================================
   FOOTER
============================================================= */
.site-footer {
  border-top: 1px solid rgba(197, 223, 217, 0.1);
  padding: var(--space-xl) 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-logo {
  display: block;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 0.7;
}

.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.7;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
}

.footer-reg {
  color: rgba(255, 255, 255, 0.25);
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
