/* E-There mobile UX — shared across funnel pages */
:root {
  --tap-min: 44px;
  --header-h: 4rem;
  --sticky-bar-h: 4.25rem;
  --font-body: 1rem;
  --font-lead: 1.125rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

body {
  font-size: var(--font-body);
  padding-bottom: var(--safe-bottom);
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.sticky-active {
  padding-bottom: calc(var(--sticky-bar-h) + var(--safe-bottom));
}

body.cookie-active {
  padding-bottom: calc(5.5rem + var(--safe-bottom));
}

body.sticky-active.cookie-active {
  padding-bottom: calc(var(--sticky-bar-h) + 5.5rem + var(--safe-bottom));
}

/* Skip link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus,
.focus\:not-sr-only:focus {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 200;
}

/* Header */
.site-header {
  padding-top: var(--safe-top);
}

.menu-btn {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -0.5rem;
  border-radius: 0.75rem;
}

.menu-btn:focus-visible {
  outline: 3px solid #6dc0c8;
  outline-offset: 2px;
}

/* Drawer + overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 57, 58, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(100%, 20rem);
  height: 100%;
  height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem;
}

.drawer-link {
  display: block;
  padding: 0.875rem 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #04393a;
  border-radius: 0.75rem;
}

.drawer-link:focus-visible,
.drawer-link:hover {
  background: #f8fafc;
  color: #6dc0c8;
}

.drawer-cta {
  padding: 1rem 1.25rem calc(1rem + var(--safe-bottom));
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.drawer-cta .btn-primary {
  display: block;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  background: #04393a;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.drawer-cta .btn-call {
  display: block;
  text-align: center;
  padding: 0.875rem;
  font-weight: 600;
  color: #6dc0c8;
}

/* Sticky CTA bar — brand bar (visible on white pages) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.sticky-cta--brand {
  background: linear-gradient(180deg, #054a4c 0%, #04393a 100%);
  border-top: 2px solid #6dc0c8;
  box-shadow: 0 -8px 32px rgba(4, 57, 58, 0.45);
}

.sticky-cta__inner {
  display: flex;
  align-items: stretch;
  gap: 0.625rem;
  max-width: 24rem;
  margin: 0 auto;
  padding: 0.625rem 1rem calc(0.625rem + var(--safe-bottom));
}

.sticky-cta__primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: #fff;
  color: #04393a;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.sticky-cta__call {
  flex-shrink: 0;
  width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #6dc0c8;
  color: #04393a;
}

.sticky-cta.visible {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none !important;
  }
  body.sticky-active,
  body.cookie-active,
  body.sticky-active.cookie-active {
    padding-bottom: var(--safe-bottom);
  }
}

/* Enquiry form mobile */
.enquiry-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin: 1.5rem -1rem -1rem;
  padding: 1rem 1rem calc(1rem + var(--safe-bottom));
  background: linear-gradient(to top, #fff 85%, transparent);
}

@media (min-width: 640px) {
  .enquiry-sticky-actions {
    position: static;
    margin: 0;
    padding: 0;
    background: none;
  }
}

/* FAQ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 320px;
  padding-top: 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-toggle {
  min-height: var(--tap-min);
}

/* Path cards (homepage) */
.path-card {
  min-height: 220px;
}

.path-card:focus-visible {
  outline: 3px solid #6dc0c8;
  outline-offset: 3px;
}

/* Page heroes — mobile: one primary block (no separate photo band) */
@media (max-width: 767px) {
  #page-hero {
    min-height: auto !important;
    background-image: none !important;
    background-color: #04393a;
    display: block;
    overflow: visible;
  }

  #page-hero .hero-overlay {
    display: none;
  }

  #page-hero .hero-mobile-img {
    display: none;
  }

  #page-hero .hero-inner {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1rem 2.25rem !important;
  }

  #page-hero .hero-inner h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  #page-hero .hero-inner .inline-flex {
    max-width: 100%;
  }

  #page-hero .hero-inner .inline-flex span {
    font-size: 0.8125rem;
    line-height: 1.35;
  }
}

/* Hero phone CTA — number on one line */
.hero-btn-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  line-height: 1.2;
}

.hero-btn-phone__label {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.92;
}

.hero-btn-phone__number {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@media (min-width: 768px) {
  #page-hero .hero-mobile-img {
    display: none;
  }
}

/* Split heroes (solid block + side image on desktop) */
@media (max-width: 767px) {
  .hero-split-img {
    display: none;
  }

  #page-hero.hero-split .hero-inner,
  section.bg-primary .hero-inner {
    padding-top: 1.75rem !important;
    padding-bottom: 2rem !important;
  }

  section.bg-primary .hero-inner h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
}

/* Store hub */
.store-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-card-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.path-card__body h3 {
  font-weight: 700;
}

.path-card__body p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.path-card__cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6dc0c8;
}

.path-card:hover .path-card__cta {
  color: #fff;
}

/* Homepage path cards — stacked layout on narrow screens */
@media (max-width: 639px) {
  .path-card {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #04393a;
    border-color: #054a4c;
  }

  .path-card__media {
    position: relative;
    width: 100%;
    height: 10.5rem;
    flex-shrink: 0;
    overflow: hidden;
  }

  .path-card__media img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  .path-card__gradient {
    display: none;
  }

  .path-card__body {
    position: relative;
    padding: 1rem 1.25rem 1.25rem;
  }
}

@media (min-width: 640px) {
  .path-card {
    min-height: 280px;
  }

  .path-card__media {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .path-card__media img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .path-card__gradient {
    display: block !important;
  }

  .path-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .path-card__body h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
  }

  .path-card__body p {
    line-height: 1.45;
  }
}

@media (min-width: 1024px) {
  .path-card {
    min-height: 300px;
  }

  .path-card__body {
    padding: 1.75rem 1.5rem 2rem;
  }

  .path-card__body h3 {
    font-size: 1.35rem;
  }
}

/* Type scale helpers */
.text-readable {
  font-size: 1rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mobile-drawer,
  .nav-overlay,
  .sticky-cta,
  .path-card img,
  .faq-answer,
  .faq-icon {
    transition: none !important;
  }
  .path-card:hover img {
    transform: none !important;
  }
}
