/* =========================================================
   ELITE EMERGENCY — LEAK DETECTORS & PLUMBERS
   ========================================================= */

:root {
  --black: #131313;
  --off-white: #f2f2f0;
  --panel-grey: #ebebe9;
  --red: #e0201f;
  --red-dark: #c11817;
  --green: #22c55e;
  --text-muted: #5b5b58;
  --radius: 14px;

  /* ---- timings you can tune ---- */
  --hero-fade-delay: 900ms;
  --hero-fade-duration: 700ms;
  --ticker-speed: 32s;
  --reveal-duration: 650ms;
  --reveal-stagger: 130ms;

  /* Nav bar / bottom bar — "24 HRS & EMERGENCIES" box PNG */
  --phone-pill-shape-height: 35px;   /* size of the black-and-white box PNG — width scales automatically */

  /* PHONES ONLY — bottom bar (scrolling text + the box) fixed to the bottom of the screen */
  --bottom-bar-bg: var(--off-white); /* colour of the strip behind the box */
  --bottom-bar-padding-y: 10px;      /* space above and below the box */
  --bottom-bar-height: 0px;          /* 0 on desktop. script.js measures the real height on phones */

  /* Nav bar — logo position */
  --logo-offset-x: 0px;

  /* Nav bar — hamburger icon (your PNG) */
  --hamburger-height: 24px;   /* size of the menu icon PNG — width scales automatically */

  /* Scrolling ticker — dash colour */
  --ticker-dot-color: #ffffff;

  /* Hero panel */
  --hero-panel-max-width: 1250px;
  --hero-panel-padding-x: 56px;
  --hero-panel-padding-top: 56px;
  --hero-panel-padding-bottom: 84px; /* also sets the gap under the green sale box — raise for more space */
  --hero-search-max-width: 525px;    /* lower this number to make the whole search bar narrower */

  /* Hero — eyebrow */
  --hero-eyebrow-offset-y: -20px;

  /* Hero — title */
  --hero-title-offset-y: -16px;      /* negative = up, positive = down */

  /* Hero — star rating icons */
  --hero-stars-offset-y: -10px;      /* negative = up, positive = down */

  --hero-review-text-offset-y: -5px; /* negative = up, positive = down */

  /* Hero — reviews */
  --hero-reviews-gap-top: 26px;
  --hero-reviews-gap-inner: 10px;

  /* Hero — winter sale banner */
  --summer-sale-offset-x: 0px;
  --summer-sale-offset-y: -15px;     /* negative = up, positive = down */

  /* Booking pop-up */
  --modal-max-width: 1250px;
  --modal-max-height: 86vh;
  --modal-scroll-max-height: 78vh;

  /* Booking modal — input boxes ("Name", "Contact Number", etc.) */
  --modal-field-padding-x: 24px;     /* side padding INSIDE each box (text to box border) */
  --modal-field-padding-y: 16px;     /* top/bottom padding inside each box */
  --modal-scroll-padding-x: 60px;    /* breathing room OUTSIDE each box — panel border to box edge (left boxes: left gap. right boxes: right gap) */

  /* Booking modal — "Details about the issue" box */
  --modal-textarea-height: 320px;    /* how tall that box is — raise this number to make it taller */
  --modal-field-gap: 40px;           /* vertical breathing room between field groups (e.g. Service → Details) */

  /* Booking modal — "Make a Booking" / subtitle / phone number — each fully independent */
  --modal-title-size: 2.4rem;        /* "Make a Booking" */
  --modal-title-weight: 900;
  --modal-subtitle-size: 1.2rem;     /* "Call us and we'll book you in now:" */
  --modal-subtitle-weight: 900;
  --modal-phone-size: 2.4rem;        /* "020 8000 0000" */
  --modal-phone-weight: 900;

  /* Booking modal — "Send Booking Request" button width */
  --modal-submit-width: 260px;       /* lower this number to make the button narrower */

  /* CTA red panel */
  --cta-panel-column-width: 2.5fr;
  --cta-panel-padding-left: 140px;
  --cta-panel-padding-right: 24px;   /* small gap between the text and the right edge of the box */
  --cta-panel-padding-y: 64px;

  /* Footer — "Call us" heading */
  --footer-callus-size: 7rem;        /* raise/lower this to change how big it is */
  --footer-callus-offset-y: -32px;   /* negative = up — pulls the whole column up to match the other footer columns */

  /* Menu overlay — specialty links vertical position */
  --menu-specialties-offset-y: -40px; /* negative = up, positive = down */

  /* Footer — logo position */
  --footer-logo-offset-x: -50px;       /* negative = left, positive = right */
  --footer-logo-offset-y: 35px;     /* negative = up, positive = down */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--off-white);
  color: var(--black);
  overflow-x: hidden;
}

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

button { font-family: inherit; cursor: pointer; }

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

.btn {
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 16px 22px;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--light { background: var(--off-white); color: var(--black); border: 2px solid var(--black); }
.btn--block { width: 100%; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 40px;
  background: var(--off-white);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity var(--hero-fade-duration) ease, transform var(--hero-fade-duration) ease;
}
.topbar.is-visible { opacity: 1; transform: translateY(0); }

.phone-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.phone-pill__shape {
  display: block;
  height: var(--phone-pill-shape-height);
  width: auto;
}
.phone-pill__label-text {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}
.phone-pill__number {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.logo__img { height: 60px; width: auto; }
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--logo-offset-x)), -50%);
}

.hamburger {
  position: relative;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger__icon {
  height: var(--hamburger-height);
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.hamburger__icon--close {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black);
  opacity: 0;
}
body.menu-open .hamburger__icon--menu { opacity: 0; }
body.menu-open .hamburger__icon--close { opacity: 1; }

/* =========================================================
   BOTTOM BAR — PHONES ONLY (hidden on desktop, switched on in the mobile section at the very bottom)
   ========================================================= */
.bottom-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
}
.bottom-bar__call {
  display: flex;
  justify-content: center;
  background: var(--bottom-bar-bg);
  padding: var(--bottom-bar-padding-y) 16px;
}

/* =========================================================
   TICKER
   ========================================================= */
.ticker-wrap {
  background: var(--black);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.ticker {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll var(--ticker-speed) linear infinite;
}
.ticker__item {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 10px;
}
.ticker__dot { color: var(--ticker-dot-color); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 40px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #cfcfcb;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__panel {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: var(--hero-panel-padding-top) var(--hero-panel-padding-x) var(--hero-panel-padding-bottom);
  width: 100%;
  max-width: var(--hero-panel-max-width);
  margin: 40px auto 0;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--hero-fade-duration) ease, transform var(--hero-fade-duration) ease;
  position: relative;
  overflow: hidden;
}
.hero__panel.is-visible { opacity: 1; transform: translateY(0); }

.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}
.hero__intro { flex: 1; min-width: 0; }

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  transform: translateY(var(--hero-eyebrow-offset-y));
}
.eyebrow-dash { color: var(--black); }

.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
  transform: translateY(var(--hero-title-offset-y));
}

.hero__search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 10px;
  overflow: visible;
  max-width: var(--hero-search-max-width);
  flex-shrink: 0;
  position: relative;
}

.service-select { position: relative; flex: 1; }
.service-select__toggle {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.service-select__toggle .icon-chevron { margin-left: auto; transition: transform 0.2s ease; }
.service-select.is-open .icon-chevron { transform: rotate(180deg); }
.service-select__toggle.has-value { color: var(--black); font-weight: 700; }

.service-select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}
.service-select.is-open .service-select__list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.service-select__list li {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
}
.service-select__list li:hover,
.service-select__list li.is-active { background: #4d4d4a; color: #fff; }

.hero__divider { width: 1px; background: #e2e2e0; margin: 10px 0; }

.postcode-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  color: var(--text-muted);
}
.postcode-field input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--black);
  background: none;
}
.postcode-field input::placeholder { color: var(--text-muted); }

.hero__search .btn { border-radius: 0 10px 10px 0; flex: 0 0 auto; }

.hero__trustpilot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hero-reviews-gap-inner);
  margin-top: var(--hero-reviews-gap-top);
}
.stars { display: inline-flex; gap: 2px; background: var(--green); padding: 4px 6px; border-radius: 3px; }
.hero__trustpilot .stars { transform: translateY(var(--hero-stars-offset-y)); }
.stars--sm { padding: 3px 5px; }
.star { color: #fff; font-size: 0.85rem; }
.hero__trustpilot p { margin: 0; font-size: 0.9rem; transform: translateY(var(--hero-review-text-offset-y)); }

.summer-sale {
  position: absolute;
  top: 380px;
  left: var(--hero-panel-padding-x);
  transform: translate(var(--summer-sale-offset-x), var(--summer-sale-offset-y));
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.summer-sale__pct { font-size: 1.35rem; }

.thankyou-page {
  background: #fff;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 80px 56px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.thankyou-page[hidden] { display: none; }
.thankyou-page.is-visible { opacity: 1; }
.thankyou-page__inner { max-width: 700px; }
.thankyou-page__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; margin: 0 0 20px; }
.thankyou-page__rule { width: 90px; height: 5px; background: var(--red); border-radius: 3px; margin-bottom: 26px; }
.thankyou-page p { font-size: 1rem; line-height: 1.6; margin: 0 0 10px; color: var(--black); }

/* =========================================================
   SERVICES + REVIEWS
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 24px;
  padding: 90px 56px;
  align-items: start;
}

.services__reviews { display: flex; flex-direction: column; gap: 20px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.review-card {
  background: var(--panel-grey);
  border-radius: var(--radius);
  padding: 26px;
}
.review-card h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.review-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.services__cards { display: contents; }
.service-card {
  background: var(--panel-grey);
  border-radius: var(--radius);
  padding: 40px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}
.service-card__icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
  color: var(--black);
}
.service-card h3 { font-size: 1.7rem; font-weight: 900; margin: 0 0 20px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; margin: 0 0 16px; }
.service-card__cta {
  margin-top: 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  align-self: stretch;
  width: calc(100% + 64px);
  margin-left: -32px;
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr auto 130px;
  gap: 40px;
  padding: 40px 56px 100px;
  align-items: center;
}

.why__image { border-radius: var(--radius); overflow: hidden; }
.why__image img { width: 100%; height: 560px; object-fit: cover; }

.why__heading { font-size: 2.3rem; font-weight: 900; margin: 0 0 12px; }
.why__list { align-self: start; }
.why__heading-rule { width: 70px; height: 5px; background: var(--red); border-radius: 3px; margin-bottom: 30px; }

.why__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.why__item {
  padding: 18px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.why__item h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.why__item p {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
}
.why__item.is-selected { background: var(--panel-grey); }
.why__item.is-selected p { max-height: 120px; }

.why__arrows { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.why__arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid #d8d8d5;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.why__arrow:hover { background: var(--panel-grey); transform: translateY(-2px); }

.why__side {
  background: var(--black);
  border-radius: var(--radius) 0 0 var(--radius);
  align-self: stretch;
  padding: 34px 20px;
  width: 130px;
  margin-right: -56px;
  overflow: hidden;
  position: relative;
}
.why__side-track { position: relative; height: 100%; }
.why__side-line {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.why__side-line.is-in { opacity: 1; transform: translateX(0); }

/* =========================================================
   CTA / STATS
   ========================================================= */
.cta {
  display: grid;
  grid-template-columns: var(--cta-panel-column-width) 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 0 0 120px;
}

.cta__panel {
  background: var(--red);
  color: #fff;
  padding: var(--cta-panel-padding-y) var(--cta-panel-padding-right) var(--cta-panel-padding-y) var(--cta-panel-padding-left);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: right;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cta__panel.is-visible { opacity: 1; transform: translateX(0); }
.cta__panel-label { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.cta__panel-number {
  display: block;
  margin-left: auto;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  border-bottom: 3px solid #fff;
  padding-bottom: 16px;
  margin-bottom: 20px;
  width: fit-content;
}
.cta__panel-link { font-size: 0.9rem; text-decoration: underline; opacity: 0.9; }

.cta__stats { display: flex; flex-direction: column; gap: 26px; padding-left: 12px; }
.cta__stat { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.25; }
.cta__stat strong { color: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  color: #fff;
  padding: 80px 56px calc(30px + var(--bottom-bar-height));
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 40px;
  position: relative;
}
.footer__col h4 { font-size: 1rem; font-weight: 700; margin: 0 0 20px; }
.footer__col p { font-size: 0.9rem; line-height: 1.7; color: #d6d6d4; margin: 0 0 16px; }
.footer__tagline { color: #fff; }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer__links a { font-size: 0.9rem; color: #d6d6d4; transition: color 0.2s ease; }
.footer__links a:hover { color: #fff; }

.footer__col--call { text-align: right; transform: translateY(var(--footer-callus-offset-y)); }
.footer__col--call h2 { font-size: var(--footer-callus-size); font-weight: 800; margin: 0 0 20px; }
.footer__col--call p { max-width: 420px; margin-left: auto; }
.footer__logo { height: 70px; width: auto; margin-top: 20px; margin-left: auto; transform: translate(var(--footer-logo-offset-x), var(--footer-logo-offset-y)); }

.footer__copyright {
  grid-column: 1 / -1;
  border-top: 1px solid #2b2b2b;
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.78rem;
  color: #8f8f8c;
  text-align: center;
}

/* =========================================================
   WHATSAPP BUTTON (fixed, present on every section)
   ========================================================= */
.whatsapp-btn {
  position: fixed;
  right: 26px;
  bottom: calc(var(--bottom-bar-height) + 26px);
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 50;
  transition: transform 0.2s ease;
}
.whatsapp-btn:hover { transform: scale(1.08); }

/* =========================================================
   FULL-SCREEN MENU OVERLAY
   ========================================================= */
.page-wrap {
  filter: blur(0px);
  transition: filter 0.4s ease;
}
body.menu-open .page-wrap { filter: blur(10px); }

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--off-white);
  z-index: 90;
  overflow-y: auto;
  transition: height 0.5s ease;
  box-shadow: 0 40px 30px rgba(0,0,0,0.15);
}
.menu-overlay.is-open { height: 50vh; }

.menu-overlay__body {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 40px 96px;
}
.menu-overlay__specialties { display: flex; flex-direction: column; gap: 10px; transform: translateY(var(--menu-specialties-offset-y)); }
.menu-overlay__specialty {
  display: block;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 4px 0;
  text-align: right;
  transition: color 0.2s ease;
}
.menu-overlay__specialty:hover { color: var(--red); }

/* =========================================================
   BOOKING MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.01s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.3s ease;
}
.modal.is-open .modal__backdrop { backdrop-filter: blur(6px); }

.modal__panel {
  position: relative;
  background: var(--off-white);
  border-radius: 20px;
  width: min(var(--modal-max-width), 92vw);
  max-height: var(--modal-max-height);
  padding: 44px 10px 44px 0;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
  box-shadow: 0 40px 90px rgba(0,0,0,0.35);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); opacity: 1; }

.modal__scroll { max-height: var(--modal-scroll-max-height); overflow-y: auto; padding: 0 var(--modal-scroll-padding-x); }

.modal__close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  color: var(--black);
  z-index: 5;
}

.modal__title { font-size: var(--modal-title-size); font-weight: var(--modal-title-weight); text-align: center; margin: 0 0 10px; }
.modal__subtitle { text-align: center; margin: 0 0 6px; font-size: var(--modal-subtitle-size); font-weight: var(--modal-subtitle-weight); }
.modal__phone { display: block; text-align: center; font-size: var(--modal-phone-size); font-weight: var(--modal-phone-weight); margin-bottom: 26px; }
.modal__rule { border: none; border-top: 1px solid #dcdcd9; margin: 0 0 30px; }
.modal__form-intro { font-size: 0.95rem; margin: 0 0 24px; text-align: center; }

.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--modal-field-gap); }
.field label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.field input,
.field textarea {
  background: #fff;
  border: 1px solid #e2e2df;
  border-radius: 8px;
  padding: var(--modal-field-padding-y) var(--modal-field-padding-x);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  resize: vertical;
}
.field textarea { min-height: var(--modal-textarea-height); }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--black); outline-offset: 1px; }

.modal__submit {
  margin-top: 6px;
  display: block;
  width: var(--modal-submit-width);
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why__arrows { flex-direction: row; justify-content: center; }
  .why__side { min-height: 200px; width: 100%; margin-right: 0; border-radius: var(--radius); }
  .cta { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer__logo { margin-left: 0; }
  .hero__top { flex-direction: column; }

  /* Footer order: Call us, About, services list, "Have questions..." text, logo, copyright */
  .footer__col--call { display: contents; }
  .footer__col--call h2 { order: -3; margin-bottom: 0; }
  .footer > .footer__col:first-child { order: -2; margin-top: -20px; }
  .footer__col--call p { order: 1; margin: 0; max-width: none; }
  .footer__logo { order: 2; justify-self: start; margin-top: 0; }
  .footer__copyright { order: 3; }
}

@media (max-width: 640px) {
  .topbar { padding: 16px 18px; }
  .hero__panel { padding: 34px 26px; border-radius: var(--radius); margin: 20px 12px; }
  .hero__search { flex-direction: column; }
  .hero__divider { display: none; }
  .hero__search .btn { border-radius: 8px; }
  .services, .why { padding-left: 20px; padding-right: 20px; }
  .modal__grid { grid-template-columns: 1fr; }
  .footer { padding: 60px 24px 24px; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   MOBILE FIXES (phones) — everything in here only applies on small screens
   ========================================================= */
@media (max-width: 640px) {

  /* Tuneable phone values — same idea as the desktop ones at the top */
  :root {
    --topbar-min-height-mobile: 52px;   /* nav bar height on phones — stays the same whether the menu is open or closed */
    --hero-gap-top: 28px;               /* space between the nav bar and the form box */
    --hero-gap-bottom: 28px;            /* space between the form box and the next section */
    --bottom-bar-height: 96px;          /* fallback only — script.js measures the real height */
    --bottom-bar-padding-y: 10px;       /* space above and below the number */
    --bottom-bar-label-size: 0.85rem;   /* "24 HRS & EMERGENCIES" text size */
    --bottom-bar-number-size: 1.5rem;   /* phone number text size */
    --bottom-bar-text-gap: 14px;        /* space between the label and the number */
    --hamburger-height: 20px;
    --hero-eyebrow-offset-y: -6px;
    --hero-title-offset-y: -4px;
    --hero-stars-offset-y: 0px;
    --hero-review-text-offset-y: 0px;
    --cta-panel-padding-left: 20px;
    --cta-panel-padding-right: 20px;
    --cta-panel-padding-y: 40px;
    --footer-callus-size: 4rem;
    --footer-callus-offset-y: 0px;
    --menu-specialties-offset-y: 0px;
    --modal-scroll-padding-x: 20px;
    --modal-title-size: 1.7rem;
    --modal-subtitle-size: 1rem;
    --modal-phone-size: 1.7rem;
    --modal-textarea-height: 180px;
    --modal-field-gap: 24px;
  }

  /* Bottom bar ON (and blurred while the menu is open), and the desktop versions of the box and scrolling text OFF */
  .bottom-bar { display: block; filter: blur(0px); transition: filter 0.4s ease; }
  body.menu-open .bottom-bar { filter: blur(10px); }
.whatsapp-btn { filter: blur(0px); transition: transform 0.2s ease, filter 0.4s ease; }
body.menu-open .whatsapp-btn { filter: blur(10px); }
  .phone-pill--nav { display: none; }
  .page-wrap > .ticker-wrap { display: none; }

  /* Bottom bar: no box, just dark text sitting on the white strip */
  .bottom-bar .phone-pill { display: flex; align-items: center; justify-content: center; gap: var(--bottom-bar-text-gap); }
  .bottom-bar .phone-pill__shape { display: none; }
  .bottom-bar .phone-pill__label-text,
  .bottom-bar .phone-pill__number {
    position: static;
    transform: none;
    color: var(--black);
  }
  .bottom-bar .phone-pill__label-text { font-size: var(--bottom-bar-label-size); }
  .bottom-bar .phone-pill__number { font-size: var(--bottom-bar-number-size); }

  /* Nav bar: logo stays centred, menu icon on the right. Fixed minimum height so it can't shrink when the icon swaps to the X */
  .topbar { padding: 12px 14px; min-height: var(--topbar-min-height-mobile); }
  .logo__img { height: 40px; }

  /* Hero panel */
  .hero { padding: var(--hero-gap-top) 12px var(--hero-gap-bottom); min-height: 0; }
  .hero__panel { padding: 28px 20px 32px; margin: 0; }
  .hero__top { gap: 22px; margin-bottom: 20px; }
  .hero__eyebrow { font-size: 0.64rem; letter-spacing: 0.04em; }
  .hero__title { font-size: clamp(1.25rem, 6.2vw, 2rem); }
  .hero__search { width: 100%; max-width: none; }

  /* Winter sale: sits below the search box instead of floating on top of it */
  .summer-sale { position: static; transform: none; margin-top: 4px; padding: 14px 22px; font-size: 1rem; }
  .summer-sale__pct { font-size: 1.2rem; }

  /* Sections */
  .services { padding-top: 56px; padding-bottom: 56px; }
  .why { padding-bottom: 60px; }
  .why__image img { height: 320px; }
  .cta { gap: 28px; padding-bottom: 64px; }
  .cta__panel-number { font-size: 2.1rem; }
  .cta__stat { font-size: 1.2rem; }

  /* Footer (extra space at the bottom so the fixed bar doesn't cover the copyright line) */
  .footer { padding: 48px 20px calc(24px + var(--bottom-bar-height)); }
  .footer__col--call { text-align: left; }
  .footer__col--call p { margin-left: 0; }
  .footer__logo { transform: none; margin-left: 0; height: 56px; }

  /* Menu panel, thank-you page, WhatsApp button, booking form */
  .menu-overlay__body { padding: 24px; }
  .thankyou-page { padding: 48px 20px; }
  .whatsapp-btn { width: 50px; height: 50px; right: 16px; bottom: calc(var(--bottom-bar-height) + 14px); }
  .modal__panel { padding: 36px 6px 28px 0; border-radius: 16px; }
}

/* =========================================================
   MOBILE FIXES 2 (phones) — scrolling bar + bottom call box
   ========================================================= */
@media (max-width: 640px) {

  :root {
    --ticker-font-size: 0.72rem;      /* size of ALL the scrolling text and dashes (they now match) */
    --ticker-padding-y: 5px;          /* height of the black bar — lower = thinner bar */
    --bottom-bar-label-size: 0.72rem; /* "24 HRS & EMERGENCIES" text size */
    --bottom-bar-text-gap: 3px;       /* space between the label and the number */
  }

  /* Stop iPhones from enlarging some of the text on their own */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  /* Scrolling bar: every word and dash the same size, and a thinner bar */
  .bottom-bar .ticker-wrap { padding: var(--ticker-padding-y) 0; }
  .bottom-bar .ticker__item,
  .bottom-bar .ticker__dot { font-size: var(--ticker-font-size); line-height: 1.2; }

  /* Bottom call box: label on top, number underneath, both centred */
  .bottom-bar .phone-pill { flex-direction: column; align-items: center; text-align: center; }
}

/* =========================================================
   MOBILE FIXES 3 (phones) — shadow under the scrolling bar + bottom bar fades in on load
   ========================================================= */
@media (max-width: 640px) {

  :root {
    --ticker-shadow: 0 6px 10px -2px rgba(0,0,0,0.3);  /* shadow under the black bar — raise the last number (0.3) for a darker shadow */
  }

  /* Shadow under the scrolling bar (raised above the white strip so the shadow shows) */
  .bottom-bar .ticker-wrap { position: relative; z-index: 1; box-shadow: var(--ticker-shadow); }

  /* Bottom bar fades in (and slides up slightly) at the same time as the nav bar and the form box */
  .bottom-bar {
    opacity: 0;
    transform: translateY(14px);
    transition: filter 0.4s ease, opacity var(--hero-fade-duration) ease, transform var(--hero-fade-duration) ease;
  }
  .bottom-bar.is-visible { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MENU ICON — burger and X share one exact spot and crossfade (ALL screens: desktop + phone)
   ========================================================= */
:root {
  --hamburger-close-size: 22px;   /* size of the X */
  --hamburger-fade: 0.25s;        /* how long the burger-to-X fade takes */
}

.hamburger { position: relative; }
.hamburger__icon { display: block; transition: opacity var(--hamburger-fade) ease; }
.hamburger__icon--close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: var(--hamburger-close-size);
  height: var(--hamburger-close-size);
  transform: none;
  opacity: 0;
}
body.menu-open .hamburger__icon--menu { display: block; opacity: 0; }
body.menu-open .hamburger__icon--close { display: block; opacity: 1; }

/* =========================================================
   MOBILE FIXES 4 (phones) — shadow on the whole bottom bar + centred label
   ========================================================= */
@media (max-width: 640px) {

  :root {
    --bottom-bar-shadow: 0 -6px 14px rgba(0,0,0,0.28);  /* shadow cast upward from the whole bar — raise 0.28 for darker, raise 14px for softer and wider */
  }

  /* Remove the old shadow that was under the black bar, and put one on the whole bar (black + white together) */
  .bottom-bar .ticker-wrap { box-shadow: none; }
  .bottom-bar { box-shadow: var(--bottom-bar-shadow); }

  /* "24 HRS & EMERGENCIES": letters centred over the number */
  .bottom-bar .phone-pill { width: 100%; }
  .bottom-bar .phone-pill__label-text {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    left: auto;
    right: auto;
    text-align: center;
  }
  .bottom-bar .phone-pill__number { text-align: center; }
}

/* =========================================================
   MOBILE FIXES 5 (phones) — footer logo position
   ========================================================= */
@media (max-width: 640px) {
  :root {
    --footer-logo-offset-y-mobile: 25px;  /* positive = down, negative = up */
  }
  .footer__logo { transform: translateY(var(--footer-logo-offset-y-mobile)); }
}

/* =========================================================
   MOBILE FIXES 6 (phones/tablets) — footer order: Call us first, then About, then the rest
   ========================================================= */
@media (max-width: 1000px) {
  .footer__col--call { order: -1; }
}