/* Dinsdale Medical Centre — brand colours from reference.
   Primary blue #1967D2, accent red #EA4335 for alerts, light blue/gray section backgrounds. */

:root {
  --color-accent: #1967D2;
  --color-accent-hover: #1557b0;
  --color-primary: #1967D2;
  --color-alert: #EA4335;
  --color-alert-dark: #CC0000;
  /* Seed Hub–style: cream for alternating sections (instead of green's cream) */
  --color-bg-cream: #FAF9F7;
  --color-bg-cream-alt: #F5F4F0;
}

/* ----- Pill buttons: standardised across the site ----- */
/* Base pill shape for all .btn */
.btn {
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: var(--text-base);
}

/* Blue on white: for light backgrounds */
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

/* White on blue: for blue backgrounds (nav, services, contact) */
.btn--white {
  background: #fff;
  color: var(--color-primary);
}

.btn--white:hover {
  background: #f0f4ff;
  color: var(--color-accent-hover);
  text-decoration: none;
}

/* Outline (e.g. hero on dark overlay) */
.btn--outline {
  background: transparent;
  border: 2px solid currentColor;
}

.btn--outline:hover {
  text-decoration: none;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

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

/* Branded text selection */
::selection {
  background: rgba(25, 103, 210, 0.25);
  color: var(--color-text);
}

/* Clear focus for keyboard users */
.btn:focus-visible,
.about-cta:focus-visible,
.site-header__links a:focus-visible,
.site-footer__links a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.about-cta:focus-visible {
  outline-offset: 2px;
}

.site-header__cta:focus-visible,
.site-header__mobile-cta:focus-visible,
.services-section__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

h1, h2, h3, .section-heading, .site-footer__brand {
  font-family: 'Fraunces', 'Source Sans 3', system-ui, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ----- Impactful section headings: large, confident, full-width alignment ----- */
.section-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: var(--space-2);
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
  border-radius: 2px;
}

/* Small uppercase label above headings (Seed Hub–style) */
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-alert);
  margin: 0 0 var(--space-1);
}

.section-label--light {
  color: rgba(255, 255, 255, 0.9);
}

.section-heading--light {
  color: #fff;
}

.section-heading--light::after {
  background: linear-gradient(90deg, var(--color-alert) 0%, transparent 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Header: glass pill, hamburger mobile (W&F convention) ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: var(--space-2) var(--container-padding) var(--space-2);
  background: transparent;
  border-bottom: none;
}

body.header-visible main {
  padding-top: 104px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  max-width: 100%;
  border-radius: 9999px;
  background: rgba(25, 103, 210, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 24px rgba(25, 103, 210, 0.25);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header__inner:hover {
  background: rgba(25, 103, 210, 0.96);
  border-color: rgba(255, 255, 255, 0.25);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.site-header__brand {
  font-family: 'Fraunces', 'Source Sans 3', system-ui, serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-header__logo-img {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.site-header__links a {
  color: #fff;
}

.site-header__links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.site-header__cta {
  text-decoration: none;
}

.site-header__cta:hover {
  color: var(--color-accent-hover);
}

.site-header__cta .fa-phone,
.site-header__mobile-cta .fa-phone {
  margin-right: 0.35em;
}

.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__links a {
  font-size: var(--text-sm);
  font-weight: 500;
}

@media (min-width: 768px) {
  .site-header__inner {
    max-width: min(960px, calc(100vw - 3rem));
  }
  .site-header__hamburger {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-header__nav,
  .site-header__cta {
    display: none !important;
  }
  .site-header__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease;
  }
  .site-header__hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .site-header__hamburger-box {
    display: block;
    width: 22px;
    height: 16px;
    position: relative;
  }
  .site-header__hamburger-inner {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .site-header__hamburger-inner::before,
  .site-header__hamburger-inner::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
  }
  .site-header__hamburger-inner::before { top: -6px; }
  .site-header__hamburger-inner::after { top: 6px; }
  .site-header__hamburger[aria-expanded="true"] .site-header__hamburger-inner {
    background: transparent;
  }
  .site-header__hamburger[aria-expanded="true"] .site-header__hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
  }
  .site-header__hamburger[aria-expanded="true"] .site-header__hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .site-header__mobile-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.35s ease, opacity 0.35s ease;
  }
  .site-header__mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
  }
  .site-header__mobile-nav-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    padding: 5rem 1.5rem 2rem;
    background: rgba(25, 103, 210, 0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .site-header__mobile-nav.is-open .site-header__mobile-nav-inner {
    transform: translateX(0);
  }
  .site-header__mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .site-header__mobile-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateX(12px);
    transition: color 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
  }
  .site-header__mobile-nav.is-open .site-header__mobile-links a {
    opacity: 1;
    transform: translateX(0);
  }
  .site-header__mobile-nav.is-open .site-header__mobile-links li:nth-child(1) a { transition-delay: 0.05s; }
  .site-header__mobile-nav.is-open .site-header__mobile-links li:nth-child(2) a { transition-delay: 0.1s; }
  .site-header__mobile-nav.is-open .site-header__mobile-links li:nth-child(3) a { transition-delay: 0.15s; }
  .site-header__mobile-nav.is-open .site-header__mobile-links li:nth-child(4) a { transition-delay: 0.2s; }
  .site-header__mobile-nav.is-open .site-header__mobile-links li:nth-child(5) a { transition-delay: 0.25s; }
  .site-header__mobile-links a:hover { color: rgba(255, 255, 255, 0.9); }
  .site-header__mobile-cta {
    margin-top: auto;
    padding: 0.85rem 1.25rem;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
  }
  .site-header__mobile-nav.is-open .site-header__mobile-cta {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .site-header__mobile-nav {
    display: none;
  }
}

/* ----- Section content width: 93%, max 2000px ----- */
.trust-bar__inner,
.about-section__inner,
.services-section__inner,
.appointments-section__inner,
.contact-section__inner {
  width: 93%;
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Trust bar: 4-column strip with icons ----- */
.trust-bar {
  padding: var(--space-5) var(--container-padding);
  width: 100%;
  background: linear-gradient(135deg, #e8f2fc 0%, #dceaf9 100%);
  color: var(--color-text);
  border-bottom: 1px solid rgba(25, 103, 210, 0.12);
  border-top: 1px solid rgba(25, 103, 210, 0.1);
}

.trust-bar__inner {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.trust-bar__inner {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Mobile: horizontal scroll so cards can be wider without squishing text */
.trust-bar__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--container-padding);
  margin: 0 calc(-1 * var(--container-padding));
  padding: 0 var(--container-padding);
  max-width: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trust-bar__grid::-webkit-scrollbar {
  display: none;
}

.trust-bar__grid > * {
  flex: 0 0 auto;
  width: 237px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    overflow: visible;
    scroll-snap-type: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1400px;
  }

  .trust-bar__grid > * {
    min-width: 0;
    width: auto;
  }
}

.trust-bar__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25, 103, 210, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trust-bar__item--link {
  text-decoration: none;
  color: inherit;
}

.trust-bar__item--link:hover {
  background: #fff;
  border-color: rgba(25, 103, 210, 0.2);
  box-shadow: 0 4px 16px rgba(25, 103, 210, 0.08);
  text-decoration: none;
  color: var(--color-primary);
}

.trust-bar__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.trust-bar__icon--clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231967D2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.trust-bar__icon--pin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231967D2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.trust-bar__item--link:hover .trust-bar__icon--pin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231557b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.trust-bar__icon--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231967D2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.trust-bar__item--link:hover .trust-bar__icon--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231557b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.trust-bar__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.trust-bar__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.trust-bar__value {
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .trust-bar {
    padding: var(--space-6) var(--container-padding);
  }
  .trust-bar__value {
    font-size: var(--text-lg);
  }
}

/* ----- About: cream block, two columns (text | CTAs); CTAs full section height ----- */
.about-section {
  padding: 0;
  background: var(--color-bg-cream);
  width: 100%;
  border-top: 1px solid rgba(25, 103, 210, 0.06);
}

.about-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--space-6) 0;
  padding: var(--space-6) var(--container-padding);
  min-height: 0;
}

@media (min-width: 768px) {
  .about-section__inner {
    grid-template-columns: 1fr minmax(260px, 320px);
    grid-template-rows: auto 1fr;
    gap: 0 var(--space-8);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 60vh;
  }
}

.about-section__header {
  grid-column: 1;
  padding-top: 0;
  padding-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .about-section__header {
    padding-top: var(--space-6);
  }
}

.about-section .section-heading {
  margin-bottom: var(--space-4);
}

.about-section__content {
  grid-column: 1;
  max-width: 60ch;
}

@media (min-width: 768px) {
  .about-section__content {
    padding-bottom: var(--space-6);
    align-self: start;
  }
}

.about-section__lead {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

/* CTAs column: full height of section, three equal boxes */
.about-section__ctas {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  grid-column: 1;
}

@media (min-width: 768px) {
  .about-section__ctas {
    grid-column: 2;
    grid-row: 1 / -1;
    height: 100%;
    min-height: 0;
  }
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex: 1 1 0;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 0;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-cta__icon {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  opacity: 0.9;
}

.about-cta__icon i {
  display: block;
}

.about-cta:nth-child(1) {
  background: #e3eff9;
}
.about-cta:nth-child(2) {
  background: #cce2f5;
}
.about-cta:nth-child(3) {
  background: #b5d5f1;
}

.about-cta:hover {
  color: #fff;
  text-decoration: none;
  transform: none;
}
.about-cta:nth-child(1):hover { background: var(--color-primary); }
.about-cta:nth-child(2):hover { background: var(--color-primary); }
.about-cta:nth-child(3):hover { background: var(--color-primary); }

.about-cta__label {
  flex: 1;
}

.about-cta__arrow {
  flex-shrink: 0;
  font-size: 1.25em;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.about-cta:hover .about-cta__arrow {
  transform: translateX(4px);
}

/* ----- Hero: full viewport, two-image slide transition, parallax ----- */
.hero--single {
  padding: 0;
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero__bg-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* Parallax: JS sets --parallax-y on the wrap */
.hero__bg-wrap[data-parallax] {
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.hero--single .hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* First slide (about-consultation.jpg) visible 0–45%, fade out 45–50%, off 50–95%, fade in 95–100% */
.hero__bg--1 {
  animation: hero-fade-1 8s ease-in-out infinite;
}

/* Second slide (virtual consultation) visible 50–95%, fade out 95–100%, off 0–45%, fade in 45–50% */
.hero__bg--2 {
  animation: hero-fade-2 8s ease-in-out infinite;
}

@keyframes hero-fade-1 {
  0%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; }
  95%  { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes hero-fade-2 {
  0%   { opacity: 0; }
  45%  { opacity: 0; }
  50%  { opacity: 1; }
  95%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg--1,
  .hero__bg--2 {
    animation: none;
  }
  .hero__bg--1 { opacity: 1; }
  .hero__bg--2 { opacity: 0; }
}

.hero--single .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero--single .hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 640px;
}

.hero--single .hero__copy .hero__headline {
  font-family: 'Fraunces', 'Source Sans 3', system-ui, serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.hero--single .hero__copy .hero__support {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.95);
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero--single .hero__copy .hero__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hero--single .hero__copy .hero__cta-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.hero__cta-arrow {
  font-size: 1.15em;
  opacity: 0.95;
}

/* ----- Services: primary blue block, full-width two-row grid ----- */
.services-section {
  padding: var(--space-6) 0;
  background: var(--color-primary);
  width: 100%;
}

@media (min-width: 768px) {
  .services-section {
    padding: var(--space-6) 0 5rem;
  }
}

.services-section__inner {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.services-section .section-heading {
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .services-section__inner > .section-label,
  .services-section__inner > .section-heading {
    max-width: 36rem;
  }
}

.services-section__sub {
  margin: var(--space-3) 0 var(--space-4);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
}

.services-slider-wrap {
  position: relative;
  padding: 0 0 var(--space-4);
  width: 100%;
  margin-top: var(--space-4);
}

/* Splide + Grid: no overlap, clear columns */
.services-splide-wrap {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  width: 100%;
  position: relative;
}

.services-splide.splide {
  position: relative;
}

/* Composite slide (one "page"): fixed height from slider */
.services-splide .splide__slide {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Row: grid extension sets height via inline style; we only set layout */
.services-splide .splide__slide__row {
  display: flex;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 0;
}

/* Each cell (our card): fixed structure = image + title */
.services-splide .splide__slide--col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.25rem;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.services-splide .splide__list {
  display: flex;
  align-items: stretch;
}

/* Image: fixed height, same for every card at every breakpoint */
.services-slide__image-wrap {
  width: 100%;
  flex: 0 0 auto;
  height: 11rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border);
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title: fixed height so 2–3 lines always fit, never clipped */
.services-slide__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-align: center;
  padding: 0.25rem 0.25rem 0;
  flex: 0 0 auto;
  height: 5.25rem;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .services-slide__title {
    font-size: 20px;
  }
}

.services-splide .splide__slide--col:hover .services-slide__image-wrap {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Splide arrows: white circle, blue icon; prev left, next right (not stacked) */
.services-splide .splide__arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}
.services-splide .splide__arrows .splide__arrow {
  pointer-events: auto;
}
.services-splide .splide__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  margin: 0;
  background: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: absolute;
}
.services-splide .splide__arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}
.services-splide .splide__arrow:hover {
  background: #f0f4ff;
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}
.services-splide .splide__arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.services-splide .splide__arrow--prev {
  left: 0.75rem;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
}
.services-splide .splide__arrow--prev:hover {
  transform: translateY(-50%) scale(1.05);
}
.services-splide .splide__arrow--prev svg {
  transform: scaleX(-1);
}
.services-splide .splide__arrow--next {
  left: auto;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}
.services-splide .splide__arrow--next:hover {
  transform: translateY(-50%) scale(1.05);
}

.services-section__cta-wrap {
  margin: 0;
  text-align: center;
}

.services-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.services-section__cta:hover {
  transform: translateY(-1px);
}

/* ----- Appointments: cream block, generous padding ----- */
.appointments-section {
  padding: var(--space-6) 0;
  background: var(--color-bg-cream);
  width: 100%;
  border-top: 1px solid rgba(25, 103, 210, 0.08);
}

@media (min-width: 768px) {
  .appointments-section {
    padding: 5rem 0;
  }
}

.appointments-section__inner {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.appointments-section__lead {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

/* Prominent phone link: pill style so it’s clearly tappable */
.appointments-section__tel {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  margin: 0 0.15em;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(25, 103, 210, 0.12);
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.appointments-section__tel:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.appointments-section__tel:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.appointments-section__urgent {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: rgba(234, 67, 53, 0.1);
  border-left: 4px solid var(--color-alert);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
  color: var(--color-text);
}

/* ----- Contact: form block + map grid ----- */
.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .contact-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr auto;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    padding-left: 0;
    padding-right: 0;
  }
  .contact-section__inner .section-label {
    grid-column: 1;
    grid-row: 1;
    padding-left: 1.5rem;
    margin-bottom: 0;
  }
  .contact-section__inner .section-heading {
    grid-column: 1;
    grid-row: 2;
    padding-left: 1.5rem;
    margin-top: var(--space-1);
  }
  .contact-section__grid {
    display: contents;
  }
  .contact-section__form-block {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .contact-section__map-wrap {
    grid-column: 2;
    grid-row: 1 / -1;
    min-width: 0;
    min-height: 100%;
    border-radius: 0 0 0 16px;
    margin: calc(-1 * var(--space-6)) 0;
    height: calc(100% + 2 * var(--space-6));
    align-self: stretch;
  }
  .contact-section__map-wrap iframe {
    min-height: 100%;
    height: 100%;
  }
  .contact-section__copy {
    grid-column: 1;
    grid-row: 4;
    padding-left: 1.5rem;
  }
  .contact-section .container {
    max-width: 2000px;
  }
}

/* ----- Contact: primary blue block (matches Services vibe) ----- */
.contact-section {
  padding: var(--space-6) 0;
  background: var(--color-primary);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-section .section-heading,
.contact-section .section-label {
  margin-bottom: var(--space-4);
}

.contact-section .contact-details__item {
  color: rgba(255, 255, 255, 0.95);
}

.contact-section .contact-details__item:hover {
  color: #fff;
}

/* White icons on blue contact section */
.contact-section .contact-details__icon--pin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.contact-section .contact-details__icon--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.contact-section .contact-details__icon--email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.contact-section__hours {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.contact-section__copy {
  color: rgba(255, 255, 255, 0.75);
}

/* ----- Footer: full width, deep blue ----- */
.site-footer {
  background: #1967D2;
  color: #fff;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-5);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.85);
}
