:root {
  --brand-blue: #1786cc;
  --brand-deep-blue: #0b5f95;
  --brand-green: #8bcf42;
  --brand-dark-green: #5fa837;
  --text-dark: #0f2736;
  --text-soft: #3d5563;
  --panel: #ffffff;
  --bg: #eef6fb;
  --glow: rgba(23, 134, 204, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(23, 134, 204, 0.22), transparent 40%),
    radial-gradient(circle at 10% 70%, rgba(139, 207, 66, 0.18), transparent 45%),
    linear-gradient(135deg, #eef6fb 0%, #f6fbff 45%, #f3f7fa 100%);
  z-index: -1;
}

.topbar,
main,
.footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.topbar {
  margin-top: 1.25rem;
  padding: 0.7rem 1.1rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.92)),
    var(--panel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 14px 28px rgba(11, 95, 149, 0.14);
  border: 1px solid rgba(23, 134, 204, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand-logo {
  width: clamp(145px, 17vw, 205px);
  height: auto;
}

.eyebrow {
  margin: 0 0 0.15rem;
  color: #0d9d86;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  text-align: center;
  justify-items: center;
}

.meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.call-now {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(110deg, var(--brand-blue), var(--brand-green));
  padding: 0.58rem 0.9rem;
  border-radius: 13px;
  box-shadow: 0 10px 20px rgba(23, 134, 204, 0.3);
  transition: transform 200ms ease;
}

.call-now:hover {
  transform: translateY(-2px);
}

main {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.hero {
  background: linear-gradient(115deg, #015d87 0%, #0e7aa8 55%, #16a3c6 100%);
  color: #fff;
  border-radius: 26px;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -80px;
  border-radius: 48% 52% 43% 57%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

.hero-tag {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b9f6b0;
}

.hero h2 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-family: "Montserrat", sans-serif;
  line-height: 1.13;
}

.hero h2 span {
  color: #d6ffaf;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
}

.cta-group {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  transition: 200ms ease;
}

.btn-primary {
  color: #123240;
  background: linear-gradient(120deg, #c8ff93, #99e457);
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
}

.quick-facts {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.quick-facts article {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem;
  border-radius: 12px;
}

.quick-facts h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
}

.quick-facts p {
  margin-top: 0.2rem;
  font-size: 0.82rem;
}

.hero-visual {
  display: grid;
  place-items: center end;
}

.tooth-card {
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 34% 66% 60% 40% / 34% 38% 62% 66%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.1) 48%),
    linear-gradient(145deg, rgba(129, 209, 255, 0.35), rgba(97, 196, 87, 0.27));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.27);
  padding: 1.1rem;
  display: grid;
  place-content: end;
  backdrop-filter: blur(2px);
}

.doctor-photo-card {
  width: min(390px, 100%);
  aspect-ratio: auto;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(215, 245, 255, 0.38), rgba(142, 221, 117, 0.3)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 0 55px rgba(255, 255, 255, 0.2),
    0 18px 38px rgba(2, 31, 56, 0.28);
}

.doctor-photo-card::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1 / 1;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.82), rgba(140, 216, 243, 0.35) 65%, rgba(12, 87, 129, 0));
}

.doctor-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 54, 85, 0.24), rgba(2, 54, 85, 0) 50%);
  pointer-events: none;
}

.doctor-photo-card img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 108%;
  max-height: 460px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.26));
  transform: translateY(10px);
}

.tooth-card p,
.tooth-card span {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.tooth-card h3 {
  margin: 0.2rem 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
}

.section-heading p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep-blue);
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.services,
.doctors,
.gallery,
.hours,
.footer {
  background: var(--panel);
  border-radius: 22px;
  padding: 1.3rem;
  border: 1px solid rgba(17, 98, 154, 0.12);
  box-shadow: 0 14px 30px rgba(8, 78, 122, 0.08);
}

.service-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}


.service-gallery {
  margin-top: 1rem;
  
 
  gap: 0.8rem;
}



.service-grid article {
  border: 1px solid rgba(23, 134, 204, 0.18);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(155deg, #fcfeff, #f4fbff);
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(8, 78, 122, 0.14);
}

.service-card img {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 0.6rem;
}

.service-grid h3 {
  margin: 0;
  color: var(--brand-deep-blue);
  text-align: center;
}

.service-grid p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  line-height: 1.55;
  text-align: center;
}

.doctor-strip {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.doctor-strip article {
  background: linear-gradient(165deg, #d8f0b7, #bce77f);
  border: 1px solid rgba(95, 168, 55, 0.35);
  border-radius: 12px;
  padding: 0.9rem;
}

.doctor-strip h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #184426;
}

.doctor-strip p {
  margin: 0.35rem 0 0;
  color: #29543b;
  font-size: 0.9rem;
}

.gallery-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-card {
  margin: 0;
  padding: 0;
  cursor: zoom-in;
  appearance: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(23, 134, 204, 0.2);
  background: #f3fbff;
  box-shadow: 0 8px 18px rgba(11, 95, 149, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(11, 95, 149, 0.16);
  outline: none;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: rgba(6, 18, 32, 0.86);
  z-index: 1000;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  width: min(92vw, 1050px);
  max-height: 88vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: rgba(6, 21, 37, 0.7);
}

.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-nav,
.lightbox-close {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.2);
}

.hours {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.85rem;
  background: none;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.hours article {
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.hours article:first-child {
  background: linear-gradient(110deg, #1786cc, #0da2d4);
  color: #fff;
}

.hours article:last-child {
  background: linear-gradient(110deg, #90d03f, #66b934);
  color: #173420;
}

.hours h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

.hours p {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.footer {
  margin-bottom: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--brand-deep-blue);
}

.footer p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.footer-note {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(23, 134, 204, 0.18);
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--brand-blue);
  text-decoration: none;
}

.reveal {
  animation: rise 720ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    place-items: center;
  }

  .doctor-photo-card {
    min-height: 380px;
  }

  .doctor-photo-card img {
    max-height: 410px;
  }

  .doctor-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox-figure {
    width: min(84vw, 760px);
  }
}

@media (max-width: 700px) {
  .topbar,
  main,
  .footer {
    width: min(1120px, calc(100% - 1.1rem));
  }

  .topbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  .brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
  }

  .brand-logo {
    width: min(250px, 88%);
    margin-inline: auto;
    display: block;
  }

  .brand-copy {
    justify-items: center;
    text-align: center;
  }

  .call-now {
    align-self: center;
  }

  .service-grid,
  .doctor-strip,
  .gallery-grid,
  .quick-facts,
  .footer,
  .hours {
    grid-template-columns: 1fr;
  }

  .hero {
    border-radius: 18px;
    padding: 1.05rem;
  }

  .doctor-photo-card {
    width: min(320px, 100%);
    min-height: 340px;
  }

  .doctor-photo-card img {
    max-height: 360px;
    transform: translateY(6px);
  }

  .lightbox {
    gap: 0.45rem;
    padding: 0.6rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
