:root {
  --navy: #051a3d;
  --navy-2: #09285d;
  --ink: #111827;
  --muted: #5d6984;
  --line: #d7deee;
  --paper: #f8fbff;
  --white: #ffffff;
  --gold: #d89b18;
  --gold-2: #f7d071;
  --teal: #0c8fa3;
  --shadow: 0 22px 70px rgba(4, 18, 44, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 4%, rgba(216, 155, 24, 0.12), transparent 28rem),
    linear-gradient(180deg, #eef5ff 0%, #ffffff 26rem, #f6f9fe 100%);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(5, 26, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 26, 61, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--white);
  background: rgba(5, 26, 61, 0.76);
  box-shadow: 0 18px 46px rgba(2, 14, 34, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(5, 26, 61, 0.92);
  box-shadow: 0 18px 52px rgba(2, 14, 34, 0.28);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 208, 113, 0.45);
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(0.9rem, 2vw, 1.06rem);
  color: var(--gold-2);
}

.brand small {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--gold-2);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.nav-cta {
  padding: 0 18px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.button {
  padding: 0 22px;
  border: 1px solid transparent;
}

.button:hover,
.nav-cta:hover,
.quick-item:hover {
  transform: translateY(-2px);
}

.gold {
  color: #071d42;
  background: linear-gradient(135deg, #ffe49a, #d1910f 54%, #b97806);
  box-shadow: 0 14px 30px rgba(185, 120, 6, 0.24);
}

.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.navy {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
}

.hero {
  position: relative;
  min-height: 82vh;
  padding: 116px 24px 68px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(5, 26, 61, 0.96) 0%, rgba(5, 26, 61, 0.88) 54%, rgba(4, 38, 73, 0.84) 100%),
    url("Logo.jpeg") center / cover;
}

.hero::after {
  position: absolute;
  right: -5vw;
  bottom: -8rem;
  left: -5vw;
  height: 12rem;
  border-top: 5px solid var(--gold);
  border-radius: 50% 50% 0 0;
  content: "";
  background: var(--paper);
}

.hero-glow {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 28rem;
  height: 28rem;
  opacity: 0.42;
  background: radial-gradient(circle, rgba(247, 208, 113, 0.28), transparent 68%);
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.location-copy h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  color: var(--gold-2);
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  line-height: 0.95;
  text-shadow: 0 9px 28px rgba(0, 0, 0, 0.24);
}

.hero-line {
  margin: 20px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
}

.hero-text {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-card {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
  padding: 22px;
  border: 1px solid rgba(247, 208, 113, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: 0 32px 80px rgba(1, 9, 25, 0.38);
  backdrop-filter: blur(8px);
  outline: none;
  overflow: visible;
}

.logo-reveal-stage {
  position: relative;
  isolation: isolate;
}

.hero-logo {
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 208, 113, 0.16);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 52px rgba(1, 9, 25, 0.28);
  transition:
    transform 620ms cubic-bezier(0.18, 0.82, 0.22, 1),
    box-shadow 620ms ease,
    border-color 620ms ease;
}

.hero-card:hover .hero-logo,
.hero-card:focus-within .hero-logo {
  border-color: rgba(247, 208, 113, 0.5);
  box-shadow: 0 28px 72px rgba(1, 9, 25, 0.4);
  transform: translateX(10px) scale(1.015);
}

.legacy-story {
  position: absolute;
  top: 50%;
  right: calc(100% - 26px);
  z-index: 1;
  width: min(600px, calc(100vw - 560px));
  max-height: min(78vh, 620px);
  padding: 24px 28px;
  overflow: auto;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(247, 208, 113, 0);
  border-radius: 8px 0 0 8px;
  background:
    linear-gradient(135deg, rgba(247, 208, 113, 0.1), transparent 28%),
    rgba(5, 26, 61, 0.84);
  box-shadow: 0 28px 86px rgba(1, 9, 25, 0);
  opacity: 0;
  pointer-events: none;
  transform: translate(42px, -50%) scaleX(0.08);
  transform-origin: right center;
  backdrop-filter: blur(18px);
  transition:
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms ease,
    border-color 620ms ease,
    box-shadow 760ms ease;
}

.hero-card:hover .legacy-story,
.hero-card:focus-within .legacy-story {
  border-color: rgba(247, 208, 113, 0.72);
  box-shadow: 0 28px 86px rgba(1, 9, 25, 0.46);
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scaleX(1);
}

.legacy-story h2 {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.16rem, 1.9vw, 1.55rem);
  line-height: 1.16;
}

.legacy-story p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.64;
}

.legacy-story p + p {
  margin-top: 13px;
}

.legacy-story blockquote {
  margin: 18px 0 0;
  padding: 14px 0 0;
  color: var(--gold-2);
  border-top: 1px solid rgba(247, 208, 113, 0.28);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.legacy-panel {
  display: grid;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(247, 208, 113, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  gap: 4px;
}

.legacy-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.legacy-panel strong {
  color: var(--gold-2);
  font-size: 1.4rem;
}

.spark {
  width: 42px;
  height: 3px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--gold-2);
  box-shadow: 0 0 18px var(--gold-2);
}

.quick-strip {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1100px, calc(100% - 32px));
  margin: -34px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: #f9fbff;
  transition: transform 200ms ease, background 200ms ease;
}

.quick-item:hover {
  background: #f2f7ff;
}

.quick-item small,
.timing-row small {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-item strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: clamp(1rem, 2.4vw, 1.55rem);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 0;
}

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

.section-heading h2,
.location-copy h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.doctor-card,
.timing-panel,
.promise-panel,
.qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.doctor-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 28px;
  overflow: hidden;
  transform-origin: top center;
  transition:
    min-height 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 420ms ease,
    border-color 420ms ease,
    background 420ms ease;
}

.doctor-card:hover,
.doctor-card:focus-within {
  border-color: rgba(216, 155, 24, 0.48);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 78px rgba(5, 26, 61, 0.2);
  transform: translateY(-8px);
}

.doctor-mark,
.round-icon,
.service-icon,
.promise-icon {
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: radial-gradient(circle at 30% 24%, #168dc1, var(--navy-2) 64%, var(--navy));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 24px rgba(5, 26, 61, 0.14);
}

.doctor-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: var(--gold-2);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.doctor-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.doctor-card p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.doctor-card span {
  display: inline-block;
  margin-top: 14px;
  color: var(--navy-2);
  font-weight: 800;
}

.doctor-qualification {
  color: #126298 !important;
  font-weight: 900;
}

.doctor-details {
  display: grid;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid transparent;
  transform: translateY(-8px);
  transition:
    max-height 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-top 420ms ease,
    padding-top 420ms ease,
    opacity 300ms ease,
    border-color 420ms ease,
    transform 420ms ease;
}

.doctor-card:hover .doctor-details,
.doctor-card:focus-within .doctor-details {
  max-height: 340px;
  margin-top: 20px;
  padding-top: 18px;
  opacity: 1;
  border-top-color: var(--line);
  transform: translateY(0);
}

.doctor-details strong {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doctor-details ul {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.doctor-details li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.doctor-details li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 0 4px rgba(216, 155, 24, 0.14);
  transform: translateY(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 174px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(5, 26, 61, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  border-color: rgba(216, 155, 24, 0.42);
  box-shadow: 0 26px 58px rgba(5, 26, 61, 0.14);
  transform: translateY(-6px);
}

.service-icon,
.round-icon,
.promise-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.service-card h3 {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.25;
}

.service-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.timing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.timing-panel,
.promise-panel {
  padding: clamp(24px, 4vw, 42px);
}

.compact {
  margin-bottom: 26px;
}

.timing-list {
  display: grid;
  gap: 14px;
}

.timing-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.timing-row strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
}

.timing-note {
  padding: 18px;
  border-left: 4px solid var(--gold);
  color: var(--muted);
  line-height: 1.6;
  background: #fffaf0;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.promise-grid div {
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.promise-grid strong {
  display: block;
  margin-top: 14px;
  color: var(--navy);
  line-height: 1.35;
}

.location-section {
  display: grid;
  padding-bottom: 100px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 42px;
}

.location-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.qr-card {
  padding: 24px;
  text-align: center;
}

.qr-card img {
  width: min(100%, 260px);
  margin: 0 auto;
  border: 10px solid var(--white);
  box-shadow: 0 10px 24px rgba(5, 26, 61, 0.1);
}

.qr-card strong {
  display: block;
  margin-top: 16px;
  color: var(--gold);
  font-size: 1.1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--navy);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--gold-2);
  font-family: Cinzel, Georgia, serif;
}

.site-footer span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
}

.icon,
.phone-icon,
.clock-icon,
.pin-icon,
.sun-icon,
.moon-icon,
.check-icon,
.smile-icon,
.tooth-check,
.sparkle-tooth,
.filling-icon,
.root-icon,
.implant-icon,
.braces-icon,
.crown-icon,
.bridge-icon,
.extract-icon,
.denture-icon,
.gum-icon {
  position: relative;
}

.icon {
  width: 18px;
  height: 18px;
}

.phone-icon::before {
  content: "☎";
}

.clock-icon::before {
  content: "◷";
}

.pin-icon::before {
  content: "●";
}

.sun-icon::before {
  content: "☀";
  color: var(--gold-2);
}

.moon-icon::before {
  content: "☾";
}

.check-icon::before {
  content: "✓";
}

.smile-icon::before {
  content: "◡";
}

.tooth-check::before {
  content: "✓";
}

.sparkle-tooth::before {
  content: "✦";
  color: var(--gold-2);
}

.filling-icon::before {
  content: "●";
}

.root-icon::before {
  content: "Y";
  font-weight: 900;
}

.implant-icon::before {
  content: "▾";
}

.braces-icon::before {
  content: "⎯";
}

.crown-icon::before {
  content: "♛";
  color: var(--gold-2);
}

.bridge-icon::before {
  content: "∩";
}

.extract-icon::before {
  content: "↗";
}

.denture-icon::before {
  content: "≋";
}

.gum-icon::before {
  content: "◠";
}

.service-icon::after {
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 20px;
  height: 24px;
  border-radius: 48% 48% 40% 40%;
  content: "";
  background: var(--white);
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 88% 18%, 82% 70%, 63% 100%, 50% 70%, 37% 100%, 18% 70%, 12% 18%);
}

.service-icon::before {
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 900;
}

.round-icon::before,
.promise-icon::before,
.icon::before {
  font-weight: 900;
}

.promise-icon {
  font-size: 1.45rem;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.92);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-inner,
  .doctor-grid,
  .timing-section,
  .location-section {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 480px;
    justify-self: center;
  }

  .legacy-story {
    position: static;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-16px);
    transform-origin: top center;
  }

  .hero-card:hover .legacy-story,
  .hero-card:focus-within .legacy-story {
    max-height: 720px;
    margin-top: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
    opacity: 1;
    transform: translateY(0);
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 62px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .hero-card {
    display: none;
  }

  .hero-actions,
  .location-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-strip,
  .services-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 144px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
