.at-site-footer {
  --atf-navy: #071d2b;
  --atf-navy-2: #0b2c3d;
  --atf-teal: #2f9e94;
  --atf-teal-light: #4db6ac;
  --atf-white: #fff;
  --atf-muted: rgba(255, 255, 255, .67);
  margin: 0;
  background: var(--atf-navy);
  color: var(--atf-white);
}

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

.at-site-footer-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.at-site-footer-main {
  padding: 82px 0 68px;
  background:
    radial-gradient(circle at 12% 12%, rgba(77, 182, 172, .16), transparent 26%),
    linear-gradient(135deg, var(--atf-navy), var(--atf-navy-2));
}

.at-site-footer-grid {
  display: grid;
  grid-template-columns: 1.55fr .65fr .65fr 1fr;
  gap: 48px;
  align-items: start;
}

.at-site-footer-kicker,
.at-site-footer-heading {
  display: block;
  color: var(--atf-teal-light);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.at-site-footer-kicker {
  margin-bottom: 20px;
}

.at-site-footer-heading {
  margin-bottom: 24px;
}

.at-site-footer-brand h2 {
  max-width: 16ch;
  margin: 0 0 18px;
  color: var(--atf-white);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
  text-transform: none !important;
}

.at-site-footer-brand > p {
  max-width: 54ch;
  margin: 0;
  color: var(--atf-muted);
  line-height: 1.75;
}

.at-site-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.at-site-footer-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none !important;
}

.at-site-footer-btn-primary {
  background: var(--atf-teal-light);
  color: var(--atf-navy) !important;
}

.at-site-footer-btn-secondary {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
  color: var(--atf-white) !important;
}

.at-site-footer-links {
  display: grid;
  align-content: start;
  gap: 11px;
}

.at-site-footer-links a {
  color: var(--atf-muted) !important;
  font-size: .93rem;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
}

.at-site-footer-links a:hover {
  color: var(--atf-white) !important;
  transform: translateX(3px);
}

.at-site-footer-contact {
  display: grid;
  align-content: start;
  gap: 14px;
}

.at-site-footer-contact > a,
.at-site-footer-appointment-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--atf-muted) !important;
  font-size: .9rem;
  line-height: 1.55;
  text-decoration: none !important;
}

.at-site-footer-contact i,
.at-site-footer-appointment-note i {
  margin-top: 4px;
  color: var(--atf-teal-light);
}

.at-site-footer-appointment-note {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.at-site-footer-appointment-note strong {
  display: block;
  color: var(--atf-white);
}

.at-site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #051722;
}

.at-site-footer-bottom-grid {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.at-site-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: .84rem;
}

.at-site-footer-bottom-grid > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgba(255, 255, 255, .5);
  font-size: .8rem;
}

.at-site-footer a:focus-visible {
  outline: 3px solid rgba(77, 182, 172, .62);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .at-site-footer-grid {
    grid-template-columns: 1.35fr .65fr .65fr;
  }

  .at-site-footer-contact {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .at-site-footer-contact > .at-site-footer-heading {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .at-site-footer-container {
    width: min(100% - 28px, 1180px);
  }

  .at-site-footer-main {
    padding: 68px 0 56px;
  }

  .at-site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 28px;
  }

  .at-site-footer-brand {
    grid-column: 1 / -1;
  }

  .at-site-footer-contact {
    grid-template-columns: 1fr;
  }

  .at-site-footer-actions {
    display: grid;
  }

  .at-site-footer-btn {
    width: 100%;
  }

  .at-site-footer-bottom-grid {
    display: grid;
    padding: 22px 0;
  }
}

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

  .at-site-footer-brand,
  .at-site-footer-contact {
    grid-column: auto;
  }

  .at-site-footer-bottom-grid > div {
    display: grid;
    gap: 5px;
  }
}

/* Fixed mobile conversion bar */
.at-mobile-action-bar {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .at-mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(7, 29, 43, .12);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -12px 32px rgba(7, 29, 43, .14);
    backdrop-filter: blur(14px);
  }

  .at-mobile-action-bar a {
    display: flex;
    min-width: 0;
    min-height: 70px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 9px 5px;
    color: var(--atf-navy) !important;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
  }

  .at-mobile-action-bar a + a {
    border-left: 1px solid rgba(7, 29, 43, .1);
  }

  .at-mobile-action-bar i {
    color: var(--atf-teal);
    font-size: 1.2rem;
  }

  .at-mobile-action-bar .at-mobile-book {
    background: var(--atf-teal);
    color: #fff !important;
  }

  .at-mobile-action-bar .at-mobile-book i {
    color: #fff;
  }

  .at-mobile-action-bar a:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid rgba(77, 182, 172, .75);
    outline-offset: -4px;
  }

  /* The fixed WhatsApp action replaces the separate floating WhatsApp bubble on mobile. */
  #ht-ctc-chat,
  .ht-ctc-chat {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-site-footer *,
  .at-site-footer *::before,
  .at-site-footer *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
