/* Waves Medical Centre Ltd - original local website.
   No external templates, no external assets, no CDN dependencies. */

:root {
  --deep: #053e4b;
  --deep2: #022c37;
  --teal: #00788a;
  --aqua: #26c3c7;
  --blue: #1b9ac6;
  --light: #eef9fa;
  --offwhite: #f7f4ee;
  --white: #ffffff;
  --text: #65777d;
  --heading: #18323a;
  --line: rgba(0, 120, 138, 0.14);
  --shadow: 0 20px 60px rgba(5, 62, 75, 0.16);
  --soft-shadow: 0 12px 32px rgba(5, 62, 75, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(1160px, calc(100% - 34px));
  margin-inline: auto;
}

/* =========================
   TOP BAR
========================= */

.topbar {
  background: var(--deep2);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.topbar-right {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.topbar-right a:hover {
  color: var(--aqua);
}

/* =========================
   HEADER / NAV
========================= */

.main-header {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgb(255, 255, 255);
  border-bottom: none;
  /* box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08); */
  overflow: visible;
}

.main-header.sticky {
  position: fixed;
  top: 0;
  background: var(--white);
}

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 5;
}

.logo-link img {
  margin-top: 8px;
  width: 255px;
  height: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 30px 15px;
  font-weight: 500;
  color: var(--heading);
  font-size: 18px;
  transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 0;
  background: var(--teal);
  border-radius: 5px;
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: white;
  margin: 5px 0;
}

/* =========================
   HEADER WAVE
========================= */
.header-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 22px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

/* Shadow behind the wave */

.header-wave svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.wave-main {
  fill: rgba(58, 60, 60, 0.164);
  filter: blur(6px);
}

.wave-soft-one {
  fill: #ffffff;
}

.main-header.sticky .header-wave {
  bottom: -18px;
  height: 22px;
}
/* =========================
   HERO
========================= */

.hero {
  min-height: 940px;
  position: relative;
  overflow: hidden;
  background: var(--deep);
  display: grid;
  align-items: center;
}

.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Angled premium blocks over hero image */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 35, 35, 0.512);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 145px;
  color: white;
  max-width: 760px;
}

.eyebrow,
.section-heading span,
.mini-title {
  display: block;
  /* color: var(--teal); */
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(52px, 7.8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 4px 0 rgba(5, 62, 75, 0.35),
    0 18px 38px rgba(5, 62, 75, 0.45);
}

.hero p {
  max-width: 610px;
  margin: 22px 0 32px;
  /* color: rgba(5, 62, 75, 0.82); */
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  min-height: 50px;
  padding: 0 25px;
  border-radius: 3px;
  border: 2px solid transparent;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--deep);
  color: white;
}

.btn-dark {
  background: var(--deep2);
  color: white;
  border-color: var(--deep2);
}

/* =========================
   INFO STRIP
========================= */

.info-strip {
  position: relative;
  z-index: 5;
  margin-top: -72px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.1fr 0.95fr;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 28px 24px;
  color: white;
  min-height: 168px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.info-card:nth-child(2),
.info-card:nth-child(3) {
  background: #1493bf;
}

.info-card h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 20px;
}

.info-card p {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.info-card p strong {
  display: inline-block;
  min-width: 82px;
  color: white;
}

.info-card p span {
  margin-left: 12px;
}

.contact-card strong {
  display: block;
  font-size: 25px;
  margin: 8px 0 14px;
}

.contact-card a {
  display: inline-flex;
  background: white;
  color: var(--teal);
  padding: 9px 13px;
  font-weight: 900;
  border-radius: 3px;
  font-size: 13px;
}

/* =========================
   GENERAL SECTIONS
========================= */

.section {
  padding: 90px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.appointment-copy h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 18px 0 0;
  font-size: 17px;
}

/* =========================
   DIFFERENCE
========================= */

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.difference-card {
  text-align: center;
  padding: 10px 22px;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;

  margin: 0 auto 18px;
  font-size: 28px;
}

.icon {
  width: 58px;
  display: grid;
  place-items: center;
  height: 58px;

  object-fit: contain;

  filter: drop-shadow(0 8px 10px rgba(5, 62, 75, 0.22));
}

.difference-card h3,
.service-card h3 {
  color: var(--heading);
  margin: 0 0 10px;
}

.difference-card p {
  margin: 0;
}

/* =========================
   STATS BAND
========================= */

.stats-band {
  position: relative;
  background-image: url("../images/banner.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 240px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.stats-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 47, 59, 0.373);
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: white;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

/* =========================
   SERVICES
========================= */

.services {
  background: #f7fbfc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: white;
  padding: 32px;
  min-height: 245px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(5, 62, 75, 0.08);
  border-top: 4px solid var(--blue);
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--soft-shadow);
  border-color: var(--aqua);
}

.service-card p {
  margin: 0;
}
/* =========================
   SPLIT SECTION
========================= */

.split-section {
  position: relative;
  background:
    radial-gradient(
      circle at 18% 45%,
      rgba(38, 195, 199, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  overflow: hidden;
}

.split-grid,
.appointment-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

/* Image side */
.image-placeholder {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center right;
  display: block;
  filter: drop-shadow(0 28px 42px rgba(5, 62, 75, 0.14));
}

/* soft fade on left image edge */
.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Text side */
.split-copy {
  position: relative;
  z-index: 2;
}

.split-copy .mini-title {
  color: var(--blue);
}

.split-copy p,
.appointment-copy p {
  margin: 20px 0;
  font-size: 17px;
}

.split-copy ul {
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  display: grid;
  gap: 13px;
}

.split-copy li {
  position: relative;
  color: var(--heading);
  font-weight: 800;
  padding-left: 34px;
}

.split-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(27, 154, 198, 0.12);
  color: var(--blue);
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 1050px) {
  .split-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .image-placeholder,
  .image-placeholder img {
    min-height: 420px;
  }
}

@media (max-width: 700px) {
  .image-placeholder,
  .image-placeholder img {
    min-height: 320px;
  }
}

/* =========================
   TEAM
========================= */

.team {
  background: var(--light);
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.team-tags span {
  background: white;
  color: var(--heading);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(5, 62, 75, 0.06);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
}

/* =========================
   APPOINTMENT
========================= */

.appointment {
  background: white;
}

.appointment-contact {
  padding: 24px;
  background: var(--light);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
}

.appointment-contact p {
  margin: 5px 0;
}

.appointment-form {
  background: var(--blue);
  border-radius: 8px;
  padding: 36px;
  display: grid;
  gap: 15px;
  box-shadow: var(--shadow);
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 4px;
  min-height: 52px;
  padding: 14px 15px;
  font: inherit;
}

.appointment-form small {
  color: rgba(255, 255, 255, 0.82);
}

/* =========================
   FOOTER - OLIPOP STYLE LAYOUT
========================= */

.footer {
  position: relative;
  background: var(--deep2);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 95px;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 82px;
  line-height: 0;
  pointer-events: none;
}

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

.footer-wave path {
  fill: var(--white);
}

.footer-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 0.95fr 1.35fr;
  gap: 48px;
  align-items: start;
  padding: 36px 0 58px;
}

.footer-col h3,
.footer-newsletter p {
  margin: 0 0 13px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
  transition: 0.22s ease;
}

.footer-col a:hover {
  color: var(--aqua);
  transform: translateX(3px);
}

.footer-newsletter {
  justify-self: end;
  width: min(100%, 410px);
}

.footer-newsletter p {
  text-align: right;
  margin-bottom: 14px;
}

.footer-signup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-signup input {
  flex: 1;
  min-height: 42px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--heading);
  padding: 0 20px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.footer-signup input::placeholder {
  color: rgba(24, 50, 58, 0.75);
}

.footer-signup button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: 0.25s ease;
}

.footer-signup button:hover {
  background: var(--aqua);
  transform: translateY(-2px);
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 19px;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.92;
  transition: 0.22s ease;
}

.footer-socials a:hover {
  color: var(--aqua);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  text-align: left;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  transition: 0.22s ease;
}

.footer-legal a:hover {
  color: var(--aqua);
}

/* =========================
   FOOTER RESPONSIVE
========================= */

@media (max-width: 1050px) {
  .footer {
    padding-top: 82px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .footer-newsletter {
    justify-self: start;
    width: 100%;
  }

  .footer-newsletter p {
    text-align: left;
  }

  .footer-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .footer {
    padding-top: 70px;
  }

  .footer-wave {
    height: 62px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    padding: 26px 0 42px;
    gap: 28px;
  }

  .footer-signup {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-signup input,
  .footer-signup button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal {
    justify-content: flex-start;
    gap: 14px 22px;
  }
}

/* =========================
   BACK TO TOP
========================= */

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--blue);
  color: white;
  border-radius: 5px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 99;
}

.back-top.show {
  display: block;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
  .topbar {
    display: none;
  }

  .main-header {
    position: fixed;
    top: 0;
  }

  .header-wave {
    bottom: -26px;
    height: 34px;
  }

  .main-header.sticky .header-wave {
    bottom: -24px;
    height: 32px;
  }

  .nav-inner {
    min-height: 76px;
  }

  .logo-link img {
    width: 230px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    background:
      radial-gradient(circle at 82% 14%, rgba(38, 195, 199, 0.45), transparent 34%),
      linear-gradient(180deg, var(--blue) 0%, var(--teal) 46%, var(--deep) 100%);
    border-radius: 0;
    box-shadow: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(10px, 2.2vh, 24px);
    min-height: calc(100vh - 76px);
    padding: 24px max(30px, 9vw) 40px;
    overflow: hidden;
    z-index: 4;
  }

  .nav-menu::before {
    content: none;
  }

  .nav-menu::after {
    content: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    width: fit-content;
    padding: 4px 0;
    color: var(--white);
    font-size: clamp(58px, 14vw, 96px);
    font-weight: 900;
    line-height: 0.9;
    position: relative;
    z-index: 1;
    text-shadow: 0 12px 24px rgba(2, 44, 55, 0.24);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: rgba(255, 255, 255, 0.84);
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .info-strip {
    margin-top: 0;
  }

  .info-grid,
  .difference-grid,
  .services-grid,
  .stats-grid,
  .split-grid,
  .appointment-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .logo-link img {
    width: 190px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-bg-placeholder::before {
    background: linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.82) 72%,
      transparent 72.2%,
      transparent 100%
    );
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .info-grid,
  .difference-grid,
  .services-grid,
  .stats-grid,
  .split-grid,
  .appointment-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .appointment-form {
    padding: 25px;
  }

  .footer-logo {
    width: 240px;
  }
} /* =========================
   INTERACTIVE SPECIALTIES
========================= */

.specialties-section {
  position: relative;
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(199, 129, 38, 0.2),
      transparent 36%
    ),
    linear-gradient(180deg, #eef9fa 0%, #f8fcfd 100%);
  overflow: hidden;
  padding-bottom: 135px;
}

.specialties-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 62, 75, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 62, 75, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.55;
  pointer-events: none;
}

.specialties-section .container {
  position: relative;
  z-index: 2;
}

/* =========================
   MAIN INTERACTIVE LAYOUT
   Body centered behind lists
========================= */

.specialties-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(270px, 1fr);
  gap: 520px;
  align-items: center;
  margin-top: 46px;
  min-height: 920px;
}

/* =========================
   SPECIALTY LISTS
========================= */

.specialty-list {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 13px;
  align-content: center;
}

.specialty-list-left {
  justify-items: start;
}

.specialty-list-right {
  justify-items: end;
}

/* =========================
   SPECIALTY BUTTONS
========================= */

.specialty-item {
  position: relative;
  z-index: 6;
  width: min(100%, 310px);
  min-height: 58px;
  border: 1px solid rgba(0, 120, 138, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--heading);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 9px;
  font: inherit;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(5, 62, 75, 0.08);
  transition: 0.25s ease;
  text-align: left;
}

.specialty-list-left .specialty-item {
  flex-direction: row-reverse;
  padding: 8px 9px 8px 18px;
  text-align: right;
}

.specialty-item:hover,
.specialty-item.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(5, 62, 75, 0.18);
}

/* =========================
   BUTTON ICON CIRCLES
========================= */

.specialty-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.95),
      transparent 32%
    ),
    linear-gradient(145deg, #ffffff, #e8fbfb);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 900;
  box-shadow:
    inset 0 -6px 12px rgba(5, 62, 75, 0.08),
    0 8px 16px rgba(5, 62, 75, 0.08);
}

.specialty-item.active .specialty-icon,
.specialty-item:hover .specialty-icon {
  color: var(--teal);
}

/* =========================
   CENTER BODY BACKGROUND LAYER
========================= */

.specialty-body-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: visible;
}

.body-glow {
  position: absolute;
  width: 760px;
  height: 860px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(38, 195, 199, 0.34),
    transparent 70%
  );
  filter: blur(2px);
  opacity: 0.85;
  transform: translateY(-25px);
}

.body-diagram {
  position: relative;
  z-index: 2;
  height: 840px;
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: translateY(-0px);
  opacity: 0.92;
  filter: drop-shadow(0 30px 42px rgba(5, 62, 75, 0.18));
}

/* =========================
   SELECTED SPECIALTY CARD
   Floats near body base
========================= */

.specialty-detail-card {
  position: absolute;
  left: 50%;
  top: 590px;
  z-index: 8;
  transform: translateX(-50%);
  width: min(100%, 410px);
  background: rgba(255, 255, 255, 0.613);
  border: 1px solid rgba(0, 120, 138, 0.16);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 22px 50px rgba(5, 62, 75, 0.16);
  backdrop-filter: blur(14px);
  text-align: center;
  pointer-events: auto;
}

.detail-label {
  display: block;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 900;
  margin-bottom: 8px;
}

.specialty-detail-card h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 26px;
  line-height: 1.1;
}

.specialty-detail-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

/* =========================
   DETAIL CARD ANIMATION
========================= */

.specialty-detail-card.detail-pop {
  animation: detailPop 0.35s ease both;
}

@keyframes detailPop {
  0% {
    opacity: 0.65;
    transform: translateX(-50%) translateY(8px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* =========================
   SPECIALTIES RESPONSIVE
========================= */

@media (max-width: 1050px) {
  .specialties-section {
    padding-bottom: 115px;
  }

  .specialties-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .specialty-body-panel {
    position: relative;
    order: -1;
    min-height: 760px;
    pointer-events: auto;
  }

  .body-glow {
    width: 520px;
    height: 620px;
    transform: translateY(-25px);
  }

  .body-diagram {
    height: 680px;
    max-width: none;
    transform: translateY(-35px);
  }

  .specialty-detail-card {
    top: 545px;
    bottom: auto;
  }

  .specialty-list,
  .specialty-list-left,
  .specialty-list-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .specialty-item,
  .specialty-list-left .specialty-item {
    width: auto;
    min-height: 52px;
    flex-direction: row;
    text-align: left;
    padding: 7px 16px 7px 8px;
  }
}

@media (max-width: 700px) {
  .specialties-section {
    padding-bottom: 95px;
  }

  .specialties-section .section-heading h2 {
    font-size: 34px;
  }

  .specialty-body-panel {
    min-height: 610px;
  }

  .body-glow {
    width: 390px;
    height: 480px;
    transform: translateY(-20px);
  }

  .body-diagram {
    height: 520px;
    max-width: none;
    transform: translateY(-28px);
  }

  .specialty-detail-card {
    top: 410px;
    width: min(100%, 340px);
    padding: 20px;
  }

  .specialty-item {
    width: 100%;
    justify-content: flex-start;
  }

  .specialty-list,
  .specialty-list-left,
  .specialty-list-right {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* =========================
   SPECIALTIES RESPONSIVE
========================= */

@media (max-width: 1050px) {
  .specialties-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .specialty-list,
  .specialty-list-left,
  .specialty-list-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .specialty-item,
  .specialty-list-left .specialty-item {
    width: auto;
    min-height: 52px;
    flex-direction: row;
    text-align: left;
    padding: 7px 16px 7px 8px;
  }

  .specialty-body-panel {
    order: -1;
    min-height: 620px;
  }

  .body-glow {
    width: 430px;
    height: 500px;
  }

  .body-diagram {
    height: 500px;
    width: auto;
    max-width: 100%;
  }

  .specialty-detail-card {
    bottom: -20px;
  }
}

@media (max-width: 700px) {
  .specialties-section {
    padding-bottom: 90px;
  }

  .specialties-section .section-heading h2 {
    font-size: 34px;
  }

  .specialty-body-panel {
    min-height: 540px;
  }

  .body-glow {
    width: 340px;
    height: 410px;
  }

  .body-diagram {
    height: 390px;
    width: auto;
    max-width: 100%;
  }

  .specialty-detail-card {
    width: min(100%, 340px);
    padding: 20px;
    bottom: -25px;
  }

  .specialty-item {
    width: 100%;
    justify-content: flex-start;
  }

  .specialty-list,
  .specialty-list-left,
  .specialty-list-right {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* =========================
   SPECIALTIES RESPONSIVE
========================= */

@media (max-width: 1050px) {
  .specialties-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .specialty-list,
  .specialty-list-left,
  .specialty-list-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .specialty-item,
  .specialty-list-left .specialty-item {
    width: auto;
    min-height: 52px;
    flex-direction: row;
    text-align: left;
    padding: 7px 16px 7px 8px;
  }

  .specialty-body-panel {
    order: -1;
    min-height: 540px;
  }

  .body-diagram {
    width: min(100%, 330px);
  }
}

@media (max-width: 700px) {
  .specialties-section .section-heading h2 {
    font-size: 34px;
  }

  .specialty-body-panel {
    min-height: 480px;
  }

  .body-diagram {
    width: min(100%, 270px);
  }

  .specialty-detail-card {
    width: min(100%, 340px);
    padding: 20px;
  }

  .specialty-item {
    width: 100%;
    justify-content: flex-start;
  }

  .specialty-list,
  .specialty-list-left,
  .specialty-list-right {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.specialty-detail-card.detail-pop {
  animation: detailPop 0.35s ease both;
}

@keyframes detailPop {
  0% {
    opacity: 0.65;
    transform: translateX(-50%) translateY(8px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* =========================
   LOCATION / CONTACT DETAILS
========================= */

.location-contact {
  position: relative;

  overflow: hidden;
}

.location-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 62, 75, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 62, 75, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  opacity: 0.75;
}

.location-contact .container {
  position: relative;
  z-index: 2;
}

.location-contact-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: stretch;
}

/* Map card */
.location-map {
  min-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--light);
  border: 1px solid rgba(0, 120, 138, 0.12);
  box-shadow:
    0 30px 70px rgba(5, 62, 75, 0.14),
    0 0 0 8px rgba(255, 255, 255, 0.7);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  display: block;
  filter: saturate(0.92) contrast(0.98);
}

/* Contact card */
.location-details-card {
  position: relative;
  min-height: 560px;
  padding: 42px 44px;
  background: rgba(174, 213, 217, 0.684);
  border-radius: 26px;
  border: 1px solid rgba(0, 120, 138, 0.12);
  box-shadow:
    0 30px 70px rgba(5, 62, 75, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.location-card-heading,
.location-details-card h3,
.location-details-card p {
  position: relative;
  z-index: 2;
}

.location-card-heading {
  margin-bottom: 26px;
  text-align: left;
}

.location-card-heading span {
  display: block;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.location-card-heading h2 {
  margin: 0;
  max-width: 470px;
  color: var(--heading);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.location-details-card h3 {
  margin: 0 0 22px;
  color: var(--heading);
  font-size: 22px;
  line-height: 1.1;
}

/* Contact rows */
.location-details-card p {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
  margin: 0;
  padding: 12px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(0, 120, 138, 0.08);
}

.location-details-card p:last-child {
  border-bottom: 0;
}

.location-details-card strong {
  color: var(--heading);
  font-weight: 900;
}

.location-details-card a,
.location-details-card span {
  color: var(--text);
}

.location-details-card a {
  color: var(--teal);
  font-weight: 900;
  transition: 0.22s ease;
}

.location-details-card a:hover {
  color: var(--blue);
}

/* Optional: make important contact links feel clickable */
.location-details-card a[href^="tel"],
.location-details-card a[href^="mailto"],
.location-details-card a[href*="instagram"] {
  display: inline-block;
}

@media (max-width: 1050px) {
  .location-contact-grid {
    grid-template-columns: 1fr;
  }

  .location-map,
  .location-map iframe,
  .location-details-card {
    min-height: 460px;
  }

  .location-details-card {
    padding: 36px;
  }
}

@media (max-width: 700px) {
  .location-contact-grid {
    gap: 28px;
  }

  .location-map,
  .location-map iframe {
    min-height: 360px;
  }

  .location-details-card {
    min-height: auto;
    padding: 28px 24px;
    border-left-width: 5px;
  }

  .location-card-heading h2 {
    font-size: 34px;
  }

  .location-details-card p {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 11px 0;
  }
}
/* =========================
   FINAL FIXES / SMOOTHER ANIMATION OVERRIDES
   Paste at very bottom of style.css
========================= */

:root {
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 0.5s;
  --motion-medium: 0.9s;
  --motion-slow: 1.25s;
}

/* Stop header from becoming transparent on scroll */
.main-header,
.main-header.sticky {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.main-header.sticky {
  box-shadow: 0 14px 34px rgba(5, 62, 75, 0.08);
}

/* Keep wave height the same before and after sticky */
.header-wave,
.main-header.sticky .header-wave {
  bottom: -18px !important;
  height: 22px !important;
}

/* Smooth header motion without transparency */
.main-header {
  transition:
    box-shadow var(--motion-fast) var(--ease-apple),
    transform var(--motion-fast) var(--ease-apple);
}

/* Smoother nav link underline */
.nav-menu a::after {
  transition: transform 0.55s var(--ease-apple);
}

/* Smoother logo hover */
.logo-link img {
  transition:
    transform var(--motion-fast) var(--ease-apple),
    filter var(--motion-fast) var(--ease-apple);
}

.logo-link:hover img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 10px 16px rgba(5, 62, 75, 0.12));
}

/* Slower hero entrance */
.hero-content > * {
  opacity: 0;
  transform: translateY(34px);
  animation: heroLift 1.25s var(--ease-apple) forwards;
}

.hero-content h1 {
  animation-delay: 0.18s;
}

.hero-content p {
  animation-delay: 0.42s;
}

.hero-actions {
  animation-delay: 0.62s;
}

@keyframes heroLift {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smoother buttons */
.btn {
  transition:
    transform var(--motion-fast) var(--ease-apple),
    box-shadow var(--motion-fast) var(--ease-apple),
    background var(--motion-fast) var(--ease-apple),
    border-color var(--motion-fast) var(--ease-apple),
    color var(--motion-fast) var(--ease-apple);
}

.btn::before {
  transition: transform 1s var(--ease-apple);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(5, 62, 75, 0.18);
}

/* Slower scroll reveal */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade {
  opacity: 0;
  transition:
    opacity var(--motion-slow) var(--ease-apple),
    transform var(--motion-slow) var(--ease-apple),
    filter var(--motion-slow) var(--ease-apple);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-up {
  transform: translateY(42px);
}

.reveal-left {
  transform: translateX(-44px);
}

.reveal-right {
  transform: translateX(44px);
}

.reveal-scale {
  transform: translateY(30px) scale(0.96);
  filter: blur(4px);
}

.reveal-fade {
  transform: translateY(18px);
  filter: blur(4px);
}

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

/* Slower card hover animations */
.info-card,
.difference-card,
.service-card,
.specialty-item,
.location-map,
.location-details-card,
.appointment-form,
.image-placeholder {
  transition:
    transform 0.55s var(--ease-apple),
    box-shadow 0.55s var(--ease-apple),
    border-color 0.55s var(--ease-apple),
    filter 0.55s var(--ease-apple),
    background 0.55s var(--ease-apple),
    color 0.55s var(--ease-apple);
}

.info-card:hover,
.difference-card:hover,
.service-card:hover,
.location-details-card:hover,
.location-map:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 58px rgba(5, 62, 75, 0.16);
}

/* Smoother icon movement */
.icon,
.specialty-icon img {
  transition:
    transform 0.6s var(--ease-apple),
    filter 0.6s var(--ease-apple);
}

.difference-card:hover .icon,
.specialty-item:hover img,
.specialty-item.active img {
  transform: scale(1.08) rotate(-2deg);
}

/* Smoother stats entrance */
.stats-grid article {
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition:
    opacity 1.2s var(--ease-apple),
    transform 1.2s var(--ease-apple);
  transition-delay: var(--reveal-delay, 0ms);
}

.stats-grid article.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slower floating body animation */
.body-glow {
  animation: bodyGlowPulse 9s ease-in-out infinite;
}

@keyframes bodyGlowPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(-25px) scale(0.98);
  }

  50% {
    opacity: 0.95;
    transform: translateY(-25px) scale(1.04);
  }
}

.body-diagram {
  animation: bodyFloat 8.5s ease-in-out infinite;
}

@keyframes bodyFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Slower specialty card change */
.specialty-detail-card.detail-pop {
  animation: detailPop 0.6s var(--ease-apple) both;
}

@keyframes detailPop {
  0% {
    opacity: 0.65;
    transform: translateX(-50%) translateY(10px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.specialty-detail-card {
  transition:
    transform 0.6s var(--ease-apple),
    box-shadow 0.6s var(--ease-apple),
    background 0.6s var(--ease-apple);
}

.specialty-detail-card:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 32px 70px rgba(5, 62, 75, 0.18);
}

/* Smoother footer motion */
.footer-feature-image,
.footer-socials a {
  transition:
    transform 0.6s var(--ease-apple),
    filter 0.6s var(--ease-apple),
    color 0.35s ease;
}

.footer-feature-image:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.2));
}

.footer-socials a:hover {
  transform: translateY(-4px) scale(1.12);
}

/* Back to top smoother entrance */
.back-top.show {
  animation: backTopIn 0.55s var(--ease-apple) both;
}

@keyframes backTopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile header consistency */
@media (max-width: 1050px) {
  .main-header,
  .main-header.sticky {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .header-wave,
  .main-header.sticky .header-wave {
    bottom: -18px !important;
    height: 22px !important;
  }
}

/* Accessibility: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-fade,
  .stats-grid article,
  .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
html {
  scroll-padding-top: 50px;
}

section[id] {
  scroll-margin-top: 50px;
}

/* =========================
   FINAL MOBILE SPECIALTIES FIX
   Clean mobile selector layout for Medical Team section
========================= */

.mobile-specialty-picker {
  display: none;
}

@media (max-width: 700px) {
  .specialties-section {
    padding-top: 70px;
    padding-bottom: 80px;
  }

  .specialties-section .section-heading {
    margin-bottom: 26px;
  }

  .specialties-section .section-heading span {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .specialties-section .section-heading h2 {
    max-width: 390px;
    margin-inline: auto;
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.03;
    letter-spacing: -0.055em;
  }

  .specialties-section .section-heading p {
    max-width: 360px;
    margin: 16px auto 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .mobile-specialty-picker {
    position: relative;
    z-index: 8;
    display: grid;
    gap: 9px;
    width: min(100%, 390px);
    margin: 0 auto 28px;
  }

  .mobile-specialty-picker label {
    color: var(--heading);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .mobile-specialty-picker select {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(0, 120, 138, 0.18);
    border-radius: 999px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.88)
    );
    color: var(--heading);
    box-shadow: 0 18px 40px rgba(5, 62, 75, 0.11);
    padding: 0 52px 0 20px;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--blue) 50%),
      linear-gradient(135deg, var(--blue) 50%, transparent 50%),
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98),
        rgba(255, 255, 255, 0.88)
      );
    background-position:
      calc(100% - 28px) 26px,
      calc(100% - 20px) 26px,
      0 0;
    background-size:
      8px 8px,
      8px 8px,
      100% 100%;
    background-repeat: no-repeat;
  }

  .mobile-specialty-picker select:focus {
    border-color: rgba(27, 154, 198, 0.65);
    box-shadow:
      0 18px 40px rgba(5, 62, 75, 0.11),
      0 0 0 4px rgba(27, 154, 198, 0.12);
  }

  .specialties-layout {
    display: block !important;
    min-height: auto !important;
    margin-top: 0 !important;
  }

  .specialty-list,
  .specialty-list-left,
  .specialty-list-right {
    display: none !important;
  }

  .specialty-body-panel {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    min-height: 640px !important;
    place-items: start center !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .body-glow {
    position: absolute !important;
    top: 30px;
    left: 50%;
    width: 410px !important;
    height: 460px !important;
    transform: translateX(-50%) !important;
    opacity: 0.76 !important;
  }

  .body-diagram {
    position: relative !important;
    z-index: 2 !important;
    height: 430px !important;
    width: auto !important;
    max-width: 82vw !important;
    margin-top: 6px !important;
    transform: none !important;
    opacity: 0.9 !important;
    animation: none !important;
  }

  .specialty-detail-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 5 !important;
    transform: none !important;
    width: min(100%, 390px) !important;
    margin: -18px auto 0 !important;
    padding: 24px 22px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 26px !important;
    box-shadow: 0 24px 56px rgba(5, 62, 75, 0.14) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  .specialty-detail-card:hover {
    transform: none !important;
  }

  .detail-label {
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
  }

  .specialty-detail-card h3 {
    font-size: 31px !important;
    line-height: 1.06 !important;
  }

  .specialty-detail-card p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 430px) {
  .specialties-section .section-heading h2 {
    font-size: 36px;
  }

  .specialty-body-panel {
    min-height: 610px !important;
  }

  .body-diagram {
    height: 390px !important;
    max-width: 86vw !important;
  }

  .body-glow {
    width: 360px !important;
    height: 420px !important;
  }

  .specialty-detail-card {
    margin-top: -10px !important;
  }
}

/* =========================
   FINAL MOBILE FOOTER FIX
   Clean 3-column mobile footer + centered logo icons
========================= */

@media (max-width: 700px) {
  .footer {
    padding-top: 34px;
    padding-bottom: 24px;
    overflow: hidden;
  }

  /* Remove compressed wave on mobile */
  .footer-wave {
    display: none !important;
  }

  .footer-inner {
    padding-bottom: 0;
  }

  /* 3 compact columns */
  .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 24px 0 30px;
    align-items: start;
  }

  .footer-col h3 {
    font-size: 13px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #ffffff;
    font-weight: 900;
  }

  .footer-col a,
  .footer-col span {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    word-break: normal;
  }

  .footer-col a:hover {
    transform: none;
    color: var(--aqua);
  }

  /* Logo section below the 3 columns */
  .footer-newsletter {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .footer-image-wrap {
    width: 100%;
    display: grid;
    justify-items: center;
    overflow: visible;
  }

  .footer-feature-image {
    width: min(100%, 410px);
    max-width: 370px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  /* Icons centered below logo */
  .footer-socials {
    position: static !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 10px auto 0;
    width: 100%;
  }

  .footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
  }

  .footer-socials a:hover {
    transform: translateY(-3px) scale(1.06);
    color: var(--aqua);
  }

  .social-icon {
    width: 18px;
    height: 18px;
    display: block;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 0;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-bottom p {
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-legal {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .footer-legal a {
    font-size: 11px;
  }
}

/* Extra small phones: switch footer links to 2 columns */
@media (max-width: 430px) {
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
  }

  .footer-col h3 {
    font-size: 14px;
  }

  .footer-col a,
  .footer-col span {
    font-size: 12px;
  }

  .footer-feature-image {
    width: min(100%, 350px);
  }
}
