/* ============================================================
   Caldesoil — Site-wide Hero, Section Waves, CTA Banner & Footer
   ============================================================ */

/* ---- Unified Home Hero (Overlay Tint, Trust Proof & Buttons) ---- */
section.g-hero,
section.hero-foto,
section.hero:has(.hero-bg) {
  position: relative;
  overflow: hidden;
  background: #111827;
  border-bottom: none;
}

section.hero:has(.hero-bg),
section.hero-foto {
  padding: 4.5rem 0 5rem;
}

section.g-hero .g-hero-bg,
section.hero-foto .hero-bg,
section.hero:has(.hero-bg) .hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 0;
}

section.g-hero .g-hero-bg picture,
section.hero-foto .hero-bg picture,
section.hero:has(.hero-bg) .hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

section.g-hero .g-hero-bg img,
section.hero-foto .hero-bg img,
section.hero:has(.hero-bg) .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

section.hero:has(.hero-bg) .hero-bg picture img {
  object-position: center 26%;
}

section.g-hero .g-hero-overlay,
section.hero-foto .hero-overlay,
section.hero:has(.hero-bg) .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(17, 24, 39, 0.90) 0%,
    rgba(17, 24, 39, 0.66) 30%,
    rgba(17, 24, 39, 0.34) 58%,
    rgba(17, 24, 39, 0.12) 100%
  );
}

section.hero:has(.hero-bg) > .container,
section.hero-foto > .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3.25rem;
}

section.g-hero .g-hero-top {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3.25rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

section.g-hero .g-hero-top.hero-only {
  padding-bottom: 5rem;
}

section.g-hero .g-hero-content,
section.hero-foto .hero-content,
section.hero:has(.hero-bg) .hero-content {
  flex: none;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

section.g-hero h1,
section.hero-foto .hero-h1,
section.hero:has(.hero-bg) h1 {
  order: 1;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

section.g-hero h1 .accent,
section.g-hero h1 span,
section.hero-foto .hero-h1 .accent,
section.hero-foto .hero-h1 span,
section.hero:has(.hero-bg) h1 .accent,
section.hero:has(.hero-bg) h1 span {
  color: #ffd9c7;
}

section.g-hero .g-hero-sub,
section.hero-foto .hero-sub,
section.hero:has(.hero-bg) .hero-sub {
  order: 2;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  line-height: 1.65;
  margin: 0 0 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

section.g-hero .g-hero-sub a,
section.hero-foto .hero-sub a,
section.hero:has(.hero-bg) .hero-sub a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

section.g-hero .hero-trust-points,
section.hero-foto .hero-trust-points,
section.hero:has(.hero-bg) .hero-trust-points {
  order: 3;
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 360px;
}

section.g-hero .hero-trust-point,
section.hero-foto .hero-trust-point,
section.hero:has(.hero-bg) .hero-trust-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

section.g-hero .hero-trust-icon,
section.hero-foto .hero-trust-icon,
section.hero:has(.hero-bg) .hero-trust-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: #f5a623;
  fill: currentColor;
  stroke: none;
}

section.g-hero .hero-google-link,
section.hero-foto .hero-google-link,
section.hero:has(.hero-bg) .hero-google-link {
  order: 4;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

section.g-hero .hero-google-link:hover .hero-google-label,
section.hero-foto .hero-google-link:hover .hero-google-label,
section.hero:has(.hero-bg) .hero-google-link:hover .hero-google-label {
  text-decoration: underline;
}

section.g-hero .hero-trust-stars,
section.hero-foto .hero-trust-stars,
section.hero:has(.hero-bg) .hero-trust-stars {
  color: #f5a623;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

section.g-hero .google-mark,
section.hero-foto .google-mark,
section.hero:has(.hero-bg) .google-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

section.g-hero [data-booking-hero],
section.hero-foto [data-booking-hero],
section.hero:has(.hero-bg) [data-booking-hero] {
  order: 5;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

section :is(.hero-btns, .g-hero-btns)[data-booking-hero] {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

section.hero-contact :is(.hero-btns, .g-hero-btns)[data-booking-hero] {
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

section :is(.hero-btns, .g-hero-btns)[data-booking-hero] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  min-width: 0;
  min-height: 60px;
  padding: 0.95rem 1.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

section :is(.hero-btns, .g-hero-btns)[data-booking-hero] .btn.btn-booking[data-booking-open] {
  padding: 0.95rem 1.75rem;
}

section :is(.hero-btns, .g-hero-btns)[data-booking-hero][data-booking-hero-theme="green-blue"] .btn-red-solid {
  background: #12883f;
  color: #ffffff;
  border: 2px solid #12883f;
  box-shadow: none;
}

section :is(.hero-btns, .g-hero-btns)[data-booking-hero][data-booking-hero-theme="green-blue"] .btn-red-solid:hover {
  background: #0f7134;
  border-color: #0f7134;
  color: #ffffff;
}

section :is(.hero-btns, .g-hero-btns)[data-booking-hero][data-booking-hero-theme="green-blue"] .btn-booking[data-booking-open] {
  background: var(--blue, #264d9a);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 15, 46, 0.24);
}

section :is(.hero-btns, .g-hero-btns)[data-booking-hero][data-booking-hero-theme="green-blue"] .btn-booking[data-booking-open]:hover {
  background: var(--blue-dark, #001d61);
  border-color: #ffffff;
}

section.hero-contact :is(.hero-btns, .g-hero-btns)[data-booking-hero][data-booking-hero-theme="green-blue"] .btn-booking[data-booking-open] {
  box-shadow: 0 0 0 3px rgba(38, 77, 154, 0.14), 0 8px 20px rgba(0, 15, 46, 0.16);
}

@media (max-width: 768px) {
  section.hero:has(.hero-bg),
  section.hero-foto {
    padding: 2rem 0 1.5rem;
    min-height: 54svh;
  }

  section.hero:has(.hero-bg) > .container,
  section.hero-foto > .container {
    min-height: 48svh;
    gap: 0.8rem;
    text-align: left;
  }

  section.g-hero .g-hero-top {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    min-height: 48svh;
    gap: 0.8rem;
  }

  section.g-hero .g-hero-overlay,
  section.hero-foto .hero-overlay,
  section.hero:has(.hero-bg) .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(17, 24, 39, 0.72) 0%,
      rgba(17, 24, 39, 0.44) 45%,
      rgba(17, 24, 39, 0.82) 100%
    );
  }

  section.hero:has(.hero-bg) .hero-bg picture img {
    object-position: 74% 26%;
  }

  section.g-hero .g-hero-content,
  section.hero-foto .hero-content,
  section.hero:has(.hero-bg) .hero-content {
    max-width: 100%;
    gap: 1.05rem;
    align-items: flex-start;
    text-align: left;
  }

  section.g-hero h1,
  section.hero-foto .hero-h1,
  section.hero:has(.hero-bg) h1 {
    font-size: 1.7rem;
    line-height: 1.18;
    margin-bottom: 0.1rem;
  }

  section.g-hero .g-hero-sub,
  section.hero-foto .hero-sub,
  section.hero:has(.hero-bg) .hero-sub {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.1rem;
  }

  section.g-hero .hero-trust-points,
  section.hero-foto .hero-trust-points,
  section.hero:has(.hero-bg) .hero-trust-points {
    gap: 0.8rem;
    margin: 0 0 0.35rem;
  }

  section.g-hero .hero-trust-point,
  section.hero-foto .hero-trust-point,
  section.hero:has(.hero-bg) .hero-trust-point {
    font-size: 0.94rem;
  }

  section.g-hero [data-booking-hero],
  section.hero-foto [data-booking-hero],
  section.hero:has(.hero-bg) [data-booking-hero] {
    margin-top: 1rem;
    margin-bottom: 0;
  }

  section :is(.hero-btns, .g-hero-btns)[data-booking-hero] {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.6rem;
    width: 100%;
  }

  section.hero-contact :is(.hero-btns, .g-hero-btns)[data-booking-hero] {
    max-width: 420px;
    margin-inline: auto;
  }

  section :is(.hero-btns, .g-hero-btns)[data-booking-hero] .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 60px;
    padding: 0.95rem 0.5rem;
    font-size: 0.9rem;
  }

  section :is(.hero-btns, .g-hero-btns)[data-booking-hero] .btn.btn-booking[data-booking-open] {
    flex: 1.6 1 0;
    padding: 0.95rem 0.5rem;
  }

  section :is(.hero-btns, .g-hero-btns)[data-booking-hero] .btn:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  section.g-hero h1,
  section.hero-foto .hero-h1,
  section.hero:has(.hero-bg) h1 {
    font-size: 1.45rem;
  }
}

/* ---- Reviews Section Wave Borders & Soft Brand-Blue Tint ---- */
section.testimonials-section {
  position: relative;
  overflow: visible;
  content-visibility: visible;
  background: #e4effb;
  z-index: 2;
}

section.testimonials-section > .container {
  position: relative;
  z-index: 1;
}

section.testimonials-section::before,
section.testimonials-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 44px;
  background-color: #e4effb;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}

section.testimonials-section::before {
  top: -43px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0,46 C280,4 580,14 880,44 C1120,68 1300,48 1440,28 L1440,72 L0,72 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0,46 C280,4 580,14 880,44 C1120,68 1300,48 1440,28 L1440,72 L0,72 Z' fill='%23000'/%3E%3C/svg%3E");
}

section.testimonials-section::after {
  bottom: -43px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,32 C1220,66 940,60 620,26 C360,-2 160,18 0,38 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,32 C1220,66 940,60 620,26 C360,-2 160,18 0,38 Z' fill='%23000'/%3E%3C/svg%3E");
}

/* Keep .urgencia-cta straight bordered where it meets .testimonials-section */
section.testimonials-section:has(+ .urgencia-cta)::after,
section.urgencia-cta + .testimonials-section::before {
  display: none;
}

section.testimonials-section + section:not(.urgencia-cta):not(.final-cta-banner) {
  padding-top: 5.5rem;
}

section:has(+ .testimonials-section):not(.urgencia-cta) {
  padding-bottom: 5.5rem;
}

@media (max-width: 768px) {
  section.testimonials-section::before,
  section.testimonials-section::after {
    height: 24px;
  }

  section.testimonials-section::before {
    top: -23px;
  }

  section.testimonials-section::after {
    bottom: -23px;
  }
}

.final-cta {
  padding-bottom: 5rem;
  border-bottom: 0;
}

/* ---- Pre-Footer Impact CTA Banner ---- */
section.final-cta.final-cta-banner {
  padding: 6rem 0 7.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #d8e9fa 100%);
  border-top: 1px solid var(--border, #e5e7eb);
  border-bottom: 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  order: 99;
}

.final-cta-banner .final-cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.final-cta-banner .final-cta-copy {
  max-width: min(700px, 55%);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta-banner h2.final-cta-jumbo {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #0d234a;
  max-width: 100%;
  text-wrap: balance;
}

.final-cta-banner .final-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.final-cta-banner .final-btns .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms, border-color 160ms, box-shadow 160ms;
}

.final-cta-banner .final-btns .btn:hover {
  transform: translateY(-2px);
}

.final-cta-banner .final-btns .btn .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.final-cta-banner .final-btns .btn-red-solid {
  background: #0d234a;
  color: #ffffff;
  border: 1.5px solid #0d234a;
  box-shadow: 0 4px 14px rgba(13, 35, 74, 0.16);
}

.final-cta-banner .final-btns .btn-red-solid:hover {
  background: #1f4f9c;
  border-color: #1f4f9c;
}

.final-cta-banner .final-btns .btn-red-solid .icon {
  stroke: #ffffff;
}

.final-cta-banner .final-btns .btn-green {
  background: rgba(255, 255, 255, 0.72);
  color: #0d234a;
  border: 1.5px solid rgba(13, 35, 74, 0.35);
  box-shadow: none;
}

.final-cta-banner .final-btns .btn-green:hover {
  background: #ffffff;
  border-color: #0d234a;
  color: #0d234a;
}

.final-cta-banner .final-btns .btn-green .icon {
  fill: #0d234a;
  stroke: none;
}

.final-cta-banner .final-cta-media {
  position: absolute;
  right: 0;
  bottom: -14px;
  width: clamp(360px, 44vw, 660px);
  max-height: calc(100% - 12px);
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}

.final-cta-banner .final-cta-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 768px) {
  section.final-cta.final-cta-banner {
    padding: 3.5rem 0 0;
    text-align: center;
  }

  .final-cta-banner .final-cta-copy {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .final-cta-banner h2.final-cta-jumbo {
    font-size: clamp(2.15rem, 7.6vw, 2.9rem);
    max-width: none;
    width: 100%;
    text-wrap: balance;
  }

  .final-cta-banner .final-btns {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
  }

  .final-cta-banner .final-btns .btn {
    width: auto;
    max-width: none;
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .final-cta-banner .final-cta-media {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-height: none;
    margin: 1.75rem auto 0;
  }
}

footer.site-footer {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.6;
  content-visibility: visible;
  overflow-x: clip;
}

footer.site-footer *,
footer.site-footer *::before,
footer.site-footer *::after {
  box-sizing: border-box;
}

footer.site-footer p,
footer.site-footer li {
  max-width: none;
}

/* ---- Top Wave Seam ---- */
footer.site-footer .site-footer-wave {
  display: block;
  width: 100%;
  height: 54px;
  margin-top: -54px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
  color: #0d234a;
}

footer.site-footer .site-footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Main Navy Body ---- */
footer.site-footer .site-footer-main {
  background: #0d234a;
  padding: 3rem 0 2.75rem;
}

footer.site-footer .site-footer-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

footer.site-footer .site-footer-top {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 232px;
  gap: 2.25rem;
  align-items: start;
}

/* ---- Left: Brand & Quick Channels ---- */
footer.site-footer .site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 208px;
}

footer.site-footer .site-footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

footer.site-footer .site-footer-logo-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

footer.site-footer .site-footer-logo-link img {
  display: block;
  width: 176px;
  height: auto;
  max-width: 100%;
}

footer.site-footer .site-footer-channels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin-top: 1.15rem;
}

footer.site-footer a.site-footer-channel-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0d234a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

footer.site-footer a.site-footer-channel-link:hover {
  background: #dcebfb;
  color: #0d234a;
  transform: translateY(-2px);
}

footer.site-footer a.site-footer-channel-link svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
}

/* ---- Center: Navigation Columns ---- */
footer.site-footer .site-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1.2fr 0.82fr;
  gap: 1.4rem;
  align-items: start;
}

footer.site-footer .site-footer-heading {
  position: relative;
  margin: 0;
  padding: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #ffffff;
}

footer.site-footer .site-footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 1px;
  background: #93c5fd;
}

footer.site-footer .site-footer-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer.site-footer .site-footer-links li {
  margin: 0;
  padding: 0;
  line-height: 1.45;
}

footer.site-footer .site-footer-links a {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.site-footer .site-footer-links a:hover {
  color: #93c5fd;
}

/* ---- Right: Contact Info Stack ---- */
footer.site-footer .site-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}

footer.site-footer .site-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #ffffff;
}

footer.site-footer .site-footer-contact-icon {
  width: 18px;
  height: 18px;
  color: #93c5fd;
  flex-shrink: 0;
  margin-top: 2px;
}

footer.site-footer .site-footer-contact-item a,
footer.site-footer .site-footer-contact-item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.site-footer .site-footer-contact-item a:hover {
  color: #b8d8f8;
}

/* ---- Service Areas Strip (Hub & City Pages) ---- */
footer.site-footer .site-footer-cities,
footer.site-footer .site-footer-nearby {
  margin-top: 2.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(147, 197, 253, 0.18);
}

footer.site-footer .site-footer-cities summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

footer.site-footer .site-footer-cities summary::-webkit-details-marker {
  display: none;
}

footer.site-footer .site-footer-cities summary:hover {
  color: #ffffff;
}

footer.site-footer .site-footer-cities summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.18);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

footer.site-footer .site-footer-cities[open] summary::after {
  content: "\2212";
}

footer.site-footer .site-footer-cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.95;
}

footer.site-footer .site-footer-cities-list a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.site-footer .site-footer-cities-list a:hover {
  color: #ffffff;
}

footer.site-footer .site-footer-cities-list a::after {
  content: " \00b7";
  color: rgba(147, 197, 253, 0.35);
  margin-right: 0.38rem;
}

footer.site-footer .site-footer-cities-list a:last-child::after {
  content: "";
}

footer.site-footer .site-footer-nearby {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

footer.site-footer .site-footer-nearby a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(147, 197, 253, 0.45);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

footer.site-footer .site-footer-nearby a:hover {
  color: #93c5fd;
}

/* ---- Bottom Legal Bar ---- */
footer.site-footer .site-footer-bottom {
  background: #ffffff;
  color: #0d234a;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

footer.site-footer .site-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #0d234a;
}

footer.site-footer .site-footer-copy {
  margin: 0;
  color: #0d234a;
}

footer.site-footer .legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #0d234a;
}

footer.site-footer .legal-links a,
footer.site-footer .legal-links button.cd-cookie-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.65rem;
  margin: 0;
  border: 0;
  background: none;
  color: #0d234a;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: color 0.2s ease;
}

footer.site-footer .legal-links a:first-child {
  padding-left: 0;
}

footer.site-footer .legal-links a:hover,
footer.site-footer .legal-links button.cd-cookie-link:hover {
  color: #1f4f9c;
  text-decoration: none;
}

footer.site-footer .legal-links > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(13, 35, 74, 0.35);
  pointer-events: none;
}

/* ---- Legacy Fallback for Non-Site-Footer Pages ---- */
footer:not(.site-footer) .legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

footer:not(.site-footer) .legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---- Focus Accessibility ---- */
footer.site-footer a:focus-visible,
footer.site-footer button:focus-visible,
footer.site-footer summary:focus-visible,
footer .legal-links a:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Tablet Layout ---- */
@media (max-width: 1080px) {
  footer.site-footer .site-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2rem;
  }

  footer.site-footer .site-footer-nav {
    grid-column: 1 / -1;
    order: 3;
    gap: 1.75rem;
  }

  footer.site-footer .site-footer-contact {
    justify-self: end;
  }
}

/* ---- Mobile Layout ---- */
@media (max-width: 768px) {
  .final-cta {
    padding-bottom: 4rem;
  }

  footer.site-footer .site-footer-wave {
    height: 30px;
    margin-top: -30px;
  }

  footer.site-footer .site-footer-main {
    padding: 2.5rem 0 2.25rem;
  }

  footer.site-footer .site-footer-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem 1rem;
    align-items: center;
    justify-items: stretch;
  }

  footer.site-footer .site-footer-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    order: 1;
    gap: 1.75rem 1.25rem;
    padding-top: 0;
    padding-bottom: 1.5rem;
    border-top: none;
    border-bottom: 1px solid rgba(147, 197, 253, 0.16);
  }

  footer.site-footer .site-footer-contact {
    justify-self: stretch;
    align-items: flex-start;
    max-width: none;
    width: 100%;
    order: 2;
    gap: 0.75rem;
    padding-top: 0;
    border-top: none;
  }

  footer.site-footer .site-footer-contact-item {
    gap: 0.55rem;
  }

  footer.site-footer .site-footer-contact-item a,
  footer.site-footer .site-footer-contact-item p {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  footer.site-footer .site-footer-brand {
    align-items: stretch;
    justify-self: end;
    align-self: center;
    order: 3;
  }

  footer.site-footer .site-footer-logo-link {
    padding: 8px 12px;
    border-radius: 10px;
  }

  footer.site-footer .site-footer-logo-link img {
    width: 124px;
  }

  footer.site-footer .site-footer-channels {
    justify-content: space-between;
    gap: 6px;
    margin-top: 0.85rem;
  }

  footer.site-footer a.site-footer-channel-link {
    width: 32px;
    height: 32px;
  }

  footer.site-footer a.site-footer-channel-link svg {
    width: 15px;
    height: 15px;
  }

  footer.site-footer .site-footer-bottom {
    padding: 1.15rem 0 4.75rem;
  }

  footer.site-footer .site-footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
  }

  footer.site-footer .legal-links {
    justify-content: center;
  }

  footer.site-footer .legal-links a,
  footer.site-footer .legal-links button.cd-cookie-link {
    min-height: 44px;
  }
}

@media (max-width: 350px) {
  footer.site-footer .site-footer-top {
    grid-template-columns: 1fr;
  }

  footer.site-footer .site-footer-brand {
    justify-self: start;
  }
}
