:root {
  --ink: #12363d;
  --ink-soft: #4e666c;
  --teal: #0c5c63;
  --teal-dark: #073c42;
  --aqua: #8fe5df;
  --aqua-strong: #27b7b2;
  --white: #fff;
  --glass: rgba(255, 255, 255, .82);
  --glass-soft: rgba(255, 255, 255, .18);
  --line: rgba(255, 255, 255, .42);
  --shadow: 0 20px 70px rgba(0, 28, 33, .16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #0a343a;
  line-height: 1.6;
  overflow-x: hidden
}

body.menu-open {
  overflow: hidden
}

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

button,
input,
select,
textarea {
  font: inherit
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 9999;
  background: #fff;
  padding: 10px 14px;
  transform: translateY(-150%);
  transition: .2s
}

.skip-link:focus {
  transform: none
}

.container {
  width: min(1420px, calc(100% - 64px));
  margin: auto
}

/* One background image, fixed for the entire page. Put your supplied wide photo at images/doctor_bg.jpg. */
.site-background {
  position: fixed;
  inset: 0;
  z-index: -5;
  background: #dbe9e8 url("../images/doctor_bg_desktop.jpg") center center/cover no-repeat;
  will-change: transform
}

.site-background-shade {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 48, 54, .20) 0%, rgba(4, 48, 54, .14) 48%, rgba(4, 48, 54, .10) 100%), linear-gradient(180deg, rgba(4, 43, 48, .10), rgba(4, 43, 48, .28));
}

/* Premium floating header inspired by the supplied reference. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 1px 0;
  background: transparent;
  border: 0
}

.nav {
  min-height: 42px;
  background: rgba(225, 238, 235, .90);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 16px;
  padding: 0 28px 0 24px;
  box-shadow: 0 14px 45px rgba(0, 35, 40, .14);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 190px
}

.brand img {
  width: 95px;
  height: 95px;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  border: 1px solid rgba(10, 57, 62, .18);
  background: #fff
}

.brand-name strong,
.brand-name small {
  display: block
}

.brand-name strong {
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ink)
}

.brand-name small {
  font-size: 8px;
  letter-spacing: .32em;
  color: #527176;
  margin-top: 2px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 29px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 800
}

.nav-links a {
  transition: .2s
}

.nav-links a:hover {
  color: var(--aqua-strong)
}

.nav-links a.active {
  color: var(--aqua-strong)
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--teal-dark);
  color: #fff !important;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(4, 48, 54, .18)
}

.nav-cta:hover {
  background: #0a6970 !important;
  transform: translateY(-1px)
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  margin: 5px;
  border-radius: 2px
}

/* Persistent quick actions. Labels stay visible like the supplied reference. */
.quick-actions {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px
}

.quick-action {
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff
}

.quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .96);
  color: var(--teal-dark);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 9px 24px rgba(0, 35, 40, .16);
  transition: .2s
}

.quick-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor
}

.quick-action:hover .quick-icon {
  transform: translateY(-3px);
  background: var(--aqua);
  color: #073d43
}

.quick-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35)
}

.text-icon {
  font-size: 22px;
  font-weight: 800
}

main {
  position: relative
}

.glass-section {
  position: relative
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 220px)
}

.hero-copy {
  max-width: 820px;
  color: #fff
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 30px
}

.location-pin {
  font-size: 22px;
  color: #fff
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(62px, 7.3vw, 118px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .92;
  margin: 0;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .16)
}

.hero h1 em {
  color: #a7f0ea;
  font-style: italic;
  font-weight: 500
}

.hero-lead {
  max-width: 670px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .92);
  margin: 30px 0 34px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .18)
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap
}

.button {
  min-height: 58px;
  padding: 16px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: .02em;
  font-weight: 800;
  border: 1px solid transparent;
  transition: .22s
}

.button-primary {
  background: #2bb9b4;
  color: #fff;
  box-shadow: 0 14px 35px rgba(13, 122, 126, .28)
}

.button-primary:hover {
  background: #44cbc5;
  transform: translateY(-2px)
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px
}

.story-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  display: grid;
  place-items: center;
  font-size: 12px;
  padding-left: 2px
}

.story-link:hover .story-play {
  background: rgba(255, 255, 255, .14)
}

.hero-stats {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  display: flex;
  gap: 0;
  max-width: 820px
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, .28)
}

.hero-stat:last-child {
  border-right: 0;
  margin-right: 0
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(157, 241, 235, .92);
  color: #0a555b;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12)
}

.hero-stat strong,
.hero-stat small {
  display: block
}

.hero-stat strong {
  font: 600 28px/1 var(--serif);
  color: #fff
}

.hero-stat small {
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
  margin-top: 5px
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 9px;
  letter-spacing: .24em
}

.scroll-cue i {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, .8);
  display: block;
  margin: 7px 0
}

.scroll-cue b {
  font-size: 18px;
  font-weight: 400;
  line-height: 1
}

/* All subsequent sections remain translucent so the same doctor_bg.jpg remains visible while scrolling. */
.section {
  padding: 120px 0
}

.section:not(.hero) {
  border-top: 1px solid rgba(255, 255, 255, .22)
}

.section:not(.dark-panel) {
  background: rgba(248, 251, 249, .34);
  backdrop-filter: blur(4px) saturate(.95)
}

.dark-panel {
  background: rgba(4, 45, 51, .20);
  color: #fff;
  backdrop-filter: blur(4px) saturate(.9)
}

.intro-grid {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 70px
}

.section-label {
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 900;
  color: #7b5318;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .55)
}

.intro-copy {
  max-width: 800px
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px
}

.eyebrow span {
  width: 25px;
  height: 1px;
  background: currentColor
}

.eyebrow.dark {
  color: #0b7475
}

.eyebrow.light {
  color: #a4ebe6
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
  margin: 0 0 25px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .45)
}

.intro-copy h2,
.light-on-paper h2,
.location-grid h2 {
  color: #172629
}

.section h2 em {
  font-style: italic;
  color: #94661f;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .65)
}

.intro-copy>p:not(.eyebrow),
.location-grid>div>p:not(.eyebrow) {
  color: #18282b;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.85;
  max-width: 820px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .72)
}

.inline-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 16px;
  color: #714b0d;
  font-weight: 950;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 2px solid #9b7025;
  padding-bottom: 7px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .75)
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr .65fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px
}

.section-heading>p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.85
}

.light-on-paper>p {
  color: #1b2a2d;
  font-weight: 650;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .72)
}

.tech-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px
}

.tech-card {
  min-height: 350px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  position: relative;
  transition: .25s
}

.tech-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .12)
}

.tech-number {
  position: absolute;
  right: 24px;
  top: 22px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px
}

.icon-ring {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(164, 235, 230, .6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--aqua);
  font-size: 22px;
  margin-bottom: 65px
}

.tech-card h3 {
  font: 500 28px/1.15 var(--serif);
  margin: 0 0 13px
}

.tech-card p {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.8
}

.tech-tag {
  position: absolute;
  left: 30px;
  bottom: 28px;
  color: var(--aqua);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px
}

.treatment-card {
  min-height: 265px;
  padding: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 14px 40px rgba(0, 35, 40, .08);
  transition: .25s
}

.treatment-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .9)
}

.treatment-no {
  float: right;
  color: #0b7475;
  font-size: 9px
}

.treatment-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #8ad9d4;
  color: #16817f;
  margin-bottom: 38px;
  font-size: 20px
}

.treatment-card h3 {
  font: 500 23px/1.2 var(--serif);
  margin: 0 0 11px;
  color: var(--ink)
}

.treatment-card p {
  margin: 0;
  color: #587078;
  font-size: 12px;
  line-height: 1.75
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.why-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .10)
}

.why-card strong {
  font: 600 62px/1 var(--serif);
  color: #a5efea
}

.why-card h3 {
  margin: 12px 0 8px;
  font-size: 19px
}

.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.75
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px
}

.gallery-item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 16px 45px rgba(0, 35, 40, .12)
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover
}

.gallery-item.image-missing {
  display: none
}

.gallery-item.gallery-doctor {
  grid-row: span 2
}

.gallery-item.gallery-doctor img {
  height: 616px
}

.gallery-item figcaption {
  padding: 12px 15px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.gallery-placeholder {
  display: none
}

.video-gallery {
  margin-top: 64px
}

.media-heading h3 {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
  margin: 0;
  color: #172629
}

.media-heading h3 em {
  color: #94661f
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px
}

.video-card {
  display: none;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 16px 45px rgba(0, 35, 40, .12)
}

.video-card.ready {
  display: block
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #111
}

.video-card figcaption {
  padding: 12px 15px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.video-gallery.has-videos .media-heading {
  display: block
}

.video-gallery:not(.has-videos) {
  display: none;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center
}

.doctor-photo {
  min-height: 650px;
  border-radius: 22px;
  background: url("../images/doctor_dr.jpg") center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .18);
  position: relative;
  overflow: hidden
}

.photo-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(3, 34, 39, .7);
  backdrop-filter: blur(10px);
  color: #fff
}

.photo-caption span,
.photo-caption b {
  display: block
}

.photo-caption span {
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--aqua)
}

.photo-caption b {
  font: 500 25px var(--serif);
  margin-top: 5px
}

.doctor-copy h2 {
  color: #fff
}

.doctor-copy>p {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.85
}

.doctor-points {
  margin-top: 30px
}

.doctor-points div {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15)
}

.doctor-points span {
  color: var(--aqua);
  font-size: 10px
}

.doctor-points b {
  font-size: 13px
}

.location-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: start
}

.address-card {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .8);
  max-width: 620px
}

.address-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  display: grid;
  place-items: center
}

.address-card strong,
.address-card span {
  display: block
}

.address-card strong {
  margin-bottom: 5px
}

.address-card span {
  font-size: 13px;
  line-height: 1.8;
  color: #567078
}

.social-links {
  display: flex;
  gap: 10px;
  margin: 20px 0
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-dark);
  color: #fff;
  font-weight: 800
}

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.button-dark {
  background: var(--teal-dark);
  color: #fff
}

.button-dark:hover {
  background: #0a6970
}

.button-outline-dark {
  border-color: rgba(18, 54, 61, .25);
  color: var(--ink);
  background: rgba(255, 255, 255, .55)
}

.button-outline-dark:hover {
  background: #fff
}

.hours-card {
  padding: 34px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow)
}

.hours-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #117472;
  margin: 15px 0 20px
}

.hours-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ab3a8;
  box-shadow: 0 0 0 5px rgba(42, 179, 168, .12)
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(18, 54, 61, .12);
  font-size: 12px
}

.hours-row strong {
  color: var(--ink)
}

.hours-note {
  color: #667b80;
  font-size: 11px;
  line-height: 1.7;
  margin: 20px 0
}

.booking-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start
}

.booking-copy h2 {
  color: #fff
}

.booking-copy>p {
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.8
}

.booking-contact {
  display: grid;
  gap: 10px;
  margin-top: 25px
}

.booking-contact a {
  color: #fff;
  font-size: 12px
}

.booking-contact span {
  display: inline-block;
  width: 55px;
  color: var(--aqua);
  font-size: 8px;
  letter-spacing: .14em;
  font-weight: 800
}

.booking-form {
  padding: 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .91);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.booking-form label {
  display: block;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #61777d;
  margin-bottom: 17px
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid #d6e0df;
  background: #fff;
  color: var(--ink);
  outline: 0;
  border-radius: 0
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: #4bbcb5;
  box-shadow: 0 0 0 3px rgba(75, 188, 181, .12)
}

.booking-form textarea {
  resize: vertical
}

.booking-form .button-primary {
  width: 100%;
  border: 0;
  color: #fff;
  background: var(--teal-dark)
}

.booking-form .button-primary:hover {
  background: #0a6970
}

.form-note {
  font-size: 9px;
  color: #89999d;
  text-align: center;
  margin: 12px 0 0
}

.footer {
  padding: 48px 0 22px;
  background: rgba(2, 34, 39, .8);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .14)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr .8fr;
  gap: 40px;
  align-items: start
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.footer-brand img {
  width: 279px;
  height: 279px;
  border-radius: 50%;
  object-fit: cover
}

.footer-brand strong,
.footer-brand span {
  display: block
}

.footer-brand strong {
  font-size: 11px;
  letter-spacing: .15em
}

.footer-brand span {
  font-size: 10px;
  color: #b7cacc;
  margin-top: 3px
}

.footer-address {
  font-size: 11px;
  color: #b7cacc;
  line-height: 1.8
}

.footer-contact {
  display: grid;
  gap: 7px;
  font-size: 11px
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 5px
}

.footer-social .social-link {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14)
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 9px;
  color: #90a8ac
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease
}

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


/* Final typography polish: stronger, clearer and more premium across every section. */
.section p:not(.eyebrow),
.section li {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.8;
  letter-spacing: .005em;
}

.section-heading>p,
.light-on-paper>p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.intro-copy>p:not(.eyebrow),
.location-grid>div>p:not(.eyebrow) {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.85;
}

.inline-link {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .16em;
}

.tech-card p,
.treatment-card p,
.why-card p,
.doctor-copy>p,
.address-card p,
.booking-copy>p {
  font-weight: 650;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media(max-width:1100px) {
  .container {
    width: min(100% - 42px, 1180px)
  }

  .nav-links {
    gap: 18px
  }

  .nav {
    padding-right: 18px
  }

  .hero h1 {
    font-size: clamp(58px, 8vw, 92px)
  }

  .quick-actions {
    right: 14px
  }

  .treatment-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr
  }

  .tech-card.featured {
    grid-column: 1/-1
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr
  }

  .gallery-item.gallery-doctor {
    grid-column: 1/-1;
    grid-row: auto
  }

  .gallery-item.gallery-doctor img {
    height: 480px
  }
}

@media(max-width:860px) {
  .site-header {
    padding: 12px 0
  }

  .nav {
    min-height: 68px;
    border-radius: 16px
  }

  .menu-toggle {
    display: block
  }

  .nav-links {
    position: absolute;
    left: 21px;
    right: 21px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, .98);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    max-height: calc(100vh - 96px);
    overflow: auto
  }

  .nav-links.open {
    display: flex
  }

  .nav-links a {
    padding: 13px 15px
  }

  .nav-cta {
    justify-content: center;
    margin-top: 6px
  }

  .hero {
    padding-top: 130px
  }

  .hero-inner {
    min-height: calc(100vh - 150px)
  }

  .hero-stats {
    gap: 12px
  }

  .hero-stat {
    padding-right: 12px;
    margin-right: 12px
  }

  .stat-icon {
    width: 45px;
    height: 45px
  }

  .hero-stat strong {
    font-size: 23px
  }

  .hero-stat small {
    font-size: 11px
  }

  .section {
    padding: 95px 0
  }

  .intro-grid,
  .location-grid,
  .booking-grid,
  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 42px
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .doctor-photo {
    min-height: 560px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-contact {
    justify-self: start
  }
}

@media(max-width:640px) {
  /* Keep the first two mobile navigation items clearly visible. */
  .nav-links > a:nth-child(1),
  .nav-links > a:nth-child(2) {
    background: #ffffff !important;
    color: #102f35 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    border: 1px solid rgba(16, 47, 53, .10) !important;
  }

  .nav-links > a:nth-child(1):hover,
  .nav-links > a:nth-child(2):hover,
  .nav-links > a:nth-child(1).active,
  .nav-links > a:nth-child(2).active {
    background: #f3fbfa !important;
    color: #0a6970 !important;
  }

  html {
    scroll-padding-top: 92px
  }

  .container {
    width: calc(100% - 28px)
  }

  .site-background {
    background-image: url("../images/doctor_bg_mobile.jpg"), url("../images/doctor_bg_mobile.jpg");
    background-size: contain, cover;
    background-position: center, center;
    background-repeat: no-repeat
  }

  .site-background-shade {
    background: linear-gradient(90deg, rgba(4, 48, 54, .42), rgba(4, 48, 54, .20)), linear-gradient(180deg, rgba(4, 43, 48, .12), rgba(4, 43, 48, .20))
  }

  .nav {
    padding: 0 12px 0 13px
  }

  .brand {
    min-width: 0
  }

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

  .brand-name strong {
    font-size: 11px
  }

  .nav-links {
    left: 14px;
    right: 14px;
    top: 75px
  }

  .quick-actions {
    right: 9px;
    bottom: 14px;
    top: auto;
    transform: none;
    flex-direction: row;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(7, 53, 59, .72);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .2)
  }

  .quick-action {
    width: 43px
  }

  .quick-icon {
    width: 39px;
    height: 39px
  }

  .quick-label {
    display: none
  }

  .hero {
    padding: 125px 0 100px;
    min-height: 100svh
  }

  .hero-inner {
    min-height: calc(100svh - 170px)
  }

  .hero-location {
    font-size: 10px;
    margin-bottom: 20px
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
    line-height: .94
  }

  .hero-lead {
    font-size: 14px;
    margin: 22px 0 25px
  }

  .hero-actions {
    gap: 14px
  }

  .button {
    min-height: 52px;
    padding: 14px 20px;
    font-size: 11px
  }

  .story-link {
    font-size: 12px
  }

  .hero-stats {
    margin-top: 42px;
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
  }

  .hero-stat {
    border-right: 0;
    margin-right: 0;
    padding-right: 0
  }

  .hero-stat:last-child {
    grid-column: 1/-1
  }

  .hero-stat strong {
    font-size: 22px
  }

  .hero-stat small {
    font-size: 10px
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 19px
  }

  .scroll-cue {
    display: none
  }

  .section {
    padding: 78px 0
  }

  .section h2 {
    font-size: clamp(42px, 12vw, 60px)
  }

  .tech-grid,
  .treatment-grid,
  .why-us-grid,
  .gallery-grid,
  .video-grid {
    grid-template-columns: 1fr
  }

  .tech-card.featured {
    grid-column: auto
  }

  .gallery-item.gallery-doctor img {
    height: 420px
  }

  .doctor-photo {
    min-height: 500px
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    flex-direction: column
  }

  .address-card {
    padding: 19px
  }

  .location-actions .button {
    width: 100%
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

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

  .button,
  .quick-icon,
  .tech-card,
  .treatment-card {
    transition: none
  }
}

/* Treatment and about copy polish */
.intro-copy>p:not(.eyebrow),
.light-on-paper>p,
.treatment-card p {
  text-wrap: pretty;
}

.treatment-card h3 {
  font-weight: 600;
}

.treatment-card p {
  font-size: 13px;
  line-height: 1.78;
  color: #3f555b;
}

@media(max-width:640px) {
  .treatment-card {
    min-height: auto
  }

  .treatment-card p {
    font-size: 13px
  }
}

/* Expanded treatment catalogue + social icon polish */
.treatment-grid {
  align-items: stretch
}

.treatment-card h3 {
  font-size: 21px
}

.treatment-card p {
  font-size: 12.5px;
  line-height: 1.7
}

.quick-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor
}

.quick-action.social-quick .quick-icon {
  font-size: 0
}

.quick-action.social-quick .quick-icon svg {
  width: 23px;
  height: 23px
}

@media(max-width:640px) {
  .treatment-card {
    min-height: auto
  }

  .treatment-icon {
    margin-bottom: 30px
  }

  .treatment-card h3 {
    font-size: 22px
  }

  .treatment-card p {
    font-size: 13px
  }
}


/* =========================================================
   FINAL HEADER UPDATE
   Large logo sits OUTSIDE the navigation bar.
   Navigation bar stays compact and does not grow with logo.
   ========================================================= */

@media (min-width: 861px) {
  .site-header {
    padding: 8px 0;
  }

  .nav {
    position: relative;
    min-height: 58px;
    height: 58px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 28px 0 120px;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
  }

  .nav::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 105px;
    background: rgba(225, 238, 235, .90);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 16px;
    box-shadow: 0 14px 45px rgba(0, 35, 40, .14);
    backdrop-filter: blur(16px);
    z-index: 0;
  }

  .nav>* {
    position: relative;
    z-index: 2;
  }

  .brand {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
  }

  .brand img {
    width: 95px;
    height: 95px;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    overflow: hidden;
    border: 1px solid rgba(10, 57, 62, .18);
    background: #fff;
  }
}

/* Tablet / mobile header */
@media (max-width: 860px) {
  .site-header {
    padding: 12px 0;
  }

  .nav {
    position: relative;
    min-height: 58px;
    height: 58px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 12px 0 105px;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
  }

  .nav::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 85px;
    background: rgba(225, 238, 235, .90);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 16px;
    box-shadow: 0 14px 45px rgba(0, 35, 40, .14);
    backdrop-filter: blur(16px);
    z-index: 0;
  }

  .nav>* {
    position: relative;
    z-index: 2;
  }

  .brand {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    min-width: 0;
  }

  .brand img {
    width: 78px;
    height: 78px;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    overflow: hidden;
  }
}

/* Small mobile */
@media (max-width: 640px) {
  .nav {
    min-height: 54px;
    height: 54px;
    padding: 0 10px 0 82px;
  }

  .nav::before {
    left: 70px;
  }

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

  .nav-links {
    top: 68px;
  }
}

/* =========================================================
   FINAL HEADER POSITIONING
   Logo + clinic name outside the navigation bar
   Compact navigation bar positioned slightly higher
   ========================================================= */

@media (min-width: 861px) {

  /* Header area */
  .site-header {
    padding: 4px 0;
  }

  /* Keep the actual nav container independent */
  .nav {
    position: relative;
    height: 58px;
    min-height: 58px;
    padding: 0 24px 0 120px;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  /* Small, slightly raised navigation bar */
  .nav::before {
    content: "";
    position: absolute;

    left: 105px;
    right: 0;

    top: 7px;
    bottom: 7px;

    background: rgba(225, 238, 235, .90);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0, 35, 40, .14);
    backdrop-filter: blur(16px);

    z-index: 0;
  }

  /* Navigation content */
  .nav>* {
    position: relative;
    z-index: 2;
  }

  /* =========================================
     LOGO + CLINIC NAME
     ========================================= */

  .brand {
    position: absolute;

    left: 0;
    top: 0;

    transform: none;

    z-index: 20;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 3px;

    min-width: 110px;
    width: 110px;

    text-align: center;
  }

  /* Logo */
  .brand img {
    width: 82px;
    height: 82px;

    aspect-ratio: 1 / 1;

    display: block;

    border-radius: 50%;

    object-fit: contain;
    object-position: center;

    overflow: hidden;

    border: 1px solid rgba(10, 57, 62, .18);

    background: #fff;

    flex-shrink: 0;
  }

  /* Clinic name BELOW logo */
  .brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 0;
    padding: 0;

    line-height: 1;
    text-align: center;
  }

  .brand-name strong {
    display: block;

    font-size: 9px;
    line-height: 1.1;

    letter-spacing: .13em;

    color: #12363d;

    white-space: nowrap;
  }

  .brand-name small {
    display: block;

    font-size: 6px;
    line-height: 1.1;

    letter-spacing: .25em;

    color: #527176;

    margin-top: 2px;

    white-space: nowrap;
  }

  /* Navigation links slightly smaller */
  .nav-links {
    gap: 24px;
    font-size: 9px;
  }

  /* Appointment button slightly smaller */
  .nav-cta {
    padding: 11px 18px;
    font-size: 9px;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 860px) {

  .site-header {
    padding: 8px 0;
  }

  .nav {
    height: 56px;
    min-height: 56px;

    padding: 0 12px 0 100px;

    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .nav::before {
    left: 82px;
    right: 0;

    top: 6px;
    bottom: 6px;

    background: rgba(225, 238, 235, .90);

    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0, 35, 40, .14);

    backdrop-filter: blur(16px);
  }

  .brand {
    position: absolute;

    left: 0;
    top: 0;

    transform: none;

    z-index: 20;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 2px;

    width: 92px;
    min-width: 92px;

    text-align: center;
  }

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

  .brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    text-align: center;
  }

  .brand-name strong {
    font-size: 7px;
    letter-spacing: .10em;
  }

  .brand-name small {
    font-size: 5px;
    letter-spacing: .18em;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .nav {
    height: 52px;
    min-height: 52px;

    padding-left: 82px;
  }

  .nav::before {
    left: 68px;

    top: 6px;
    bottom: 6px;
  }

  .brand {
    width: 76px;
    min-width: 76px;
  }

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

  .brand-name strong {
    font-size: 6px;
    letter-spacing: .08em;
  }

  .brand-name small {
    font-size: 4px;
    letter-spacing: .14em;
  }

  .nav-links {
    top: 66px;
  }
}

/* =========================================================
   FINAL HEADER LAYOUT
   Logo left + clinic name underneath
   Navigation compact and pushed to the RIGHT
   ========================================================= */

@media (min-width: 861px) {

  /* Header itself */
  .site-header {
    padding: 4px 0;
  }

  /* Main header container */
  .nav {
    position: relative;

    width: 100%;
    height: 58px;
    min-height: 58px;

    margin: 0;

    padding: 0 0 0 135px;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    overflow: visible;
  }


  /* =====================================================
     COMPACT NAVIGATION BAR
     ===================================================== */

  .nav::before {
    content: "";

    position: absolute;

    left: 105px;
    right: 0;

    top: 7px;
    bottom: 7px;

    background: rgba(225, 238, 235, .90);

    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0, 35, 40, .14);

    backdrop-filter: blur(16px);

    z-index: 0;
  }


  /* Everything inside header above the bar */
  .nav>* {
    position: relative;
    z-index: 2;
  }


  /* =====================================================
     LOGO + CLINIC NAME
     ===================================================== */

  .brand {
    position: absolute;

    left: 0;
    top: 0;

    width: 105px;
    min-width: 105px;

    height: auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    gap: 3px;

    margin: 0;
    padding: 0;

    z-index: 20;

    text-align: center;
  }


  /* Header logo */
  .brand img {
    width: 82px;
    height: 82px;

    aspect-ratio: 1 / 1;

    display: block;

    border-radius: 50%;

    object-fit: contain;
    object-position: center;

    border: 1px solid rgba(10, 57, 62, .18);

    background: #fff;

    flex-shrink: 0;
  }


  /* =====================================================
     TEXT UNDER LOGO
     ===================================================== */

  .brand-name {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    text-align: center;

    line-height: 1;
  }


  .brand-name strong {
    display: block;

    margin: 0;

    font-size: 8px;
    line-height: 1.1;

    letter-spacing: .14em;

    color: #12363d;

    white-space: nowrap;
  }


  .brand-name small {
    display: block;

    margin: 2px 0 0;

    font-size: 5px;
    line-height: 1.1;

    letter-spacing: .25em;

    color: #527176;

    white-space: nowrap;
  }


  /* =====================================================
     PUSH NAVIGATION TO THE RIGHT
     ===================================================== */

  .nav-links {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 24px;

    margin-left: auto;

    color: var(--ink);

    font-size: 9px;

    letter-spacing: .07em;

    text-transform: uppercase;

    font-weight: 800;
  }


  /* Appointment button */
  .nav-cta {
    margin-left: 8px;

    padding: 11px 18px;

    font-size: 9px;

    white-space: nowrap;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 860px) {

  .site-header {
    padding: 8px 0;
  }

  .nav {
    position: relative;

    width: 100%;

    height: 56px;
    min-height: 56px;

    padding: 0 10px 0 95px;

    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;

    overflow: visible;

    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .nav::before {
    content: "";

    position: absolute;

    left: 82px;
    right: 0;

    top: 6px;
    bottom: 6px;

    background: rgba(225, 238, 235, .90);

    border: 1px solid rgba(255, 255, 255, .78);

    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0, 35, 40, .14);

    backdrop-filter: blur(16px);

    z-index: 0;
  }

  .nav>* {
    position: relative;
    z-index: 2;
  }

  .brand {
    position: absolute;

    left: 0;
    top: 0;

    width: 82px;
    min-width: 82px;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 2px;

    z-index: 20;

    text-align: center;
  }

  .brand img {
    width: 72px;
    height: 72px;

    border-radius: 50%;

    object-fit: contain;
  }

  .brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    text-align: center;
  }

  .brand-name strong {
    font-size: 7px;
    letter-spacing: .10em;
  }

  .brand-name small {
    font-size: 5px;
    letter-spacing: .18em;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .nav {
    height: 52px;
    min-height: 52px;

    padding-left: 78px;
  }

  .nav::before {
    left: 68px;

    top: 6px;
    bottom: 6px;
  }

  .brand {
    width: 68px;
    min-width: 68px;
  }

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

  .brand-name strong {
    font-size: 5.5px;
    letter-spacing: .08em;
  }

  .brand-name small {
    font-size: 4px;
    letter-spacing: .12em;
  }
}

/* =========================================================
   COMPACT NAV BAR — FIT CONTENT ONLY
   ========================================================= */

@media (min-width: 861px) {

  .nav {
    position: relative;

    height: 58px;
    min-height: 58px;

    /* Keep logo area free */
    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    overflow: visible;
  }

  /* Remove the full-width bar */
  .nav::before {
    display: none;
  }

  /* The actual navigation content becomes the bar */
  .nav-links {
    position: relative;

    display: flex;
    align-items: center;

    gap: 24px;

    padding: 0 14px 0 24px;

    height: 44px;

    background: rgba(225, 238, 235, .90);

    border: 1px solid rgba(255, 255, 255, .78);

    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0, 35, 40, .14);

    backdrop-filter: blur(16px);

    margin-left: auto;

    z-index: 5;
  }

  /* Appointment button stays inside the compact bar */
  .nav-cta {
    margin-left: 8px;

    padding: 10px 18px;

    font-size: 9px;

    white-space: nowrap;
  }

  /* Logo remains completely separate */
  .brand {
    position: absolute;

    left: 0;
    top: 0;

    width: 105px;
    min-width: 105px;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 3px;

    z-index: 20;
  }

  .brand img {
    width: 82px;
    height: 82px;

    border-radius: 50%;

    object-fit: contain;
    object-position: center;

    display: block;
  }

  .brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    text-align: center;
    line-height: 1;
  }

  .brand-name strong {
    font-size: 8px;
    letter-spacing: .14em;
    white-space: nowrap;
  }

  .brand-name small {
    font-size: 5px;
    letter-spacing: .25em;
    white-space: nowrap;
  }
}

.nav::before {
  display: none;
}

/* =========================================================
   FINAL SAFE OVERRIDE
   HEADER + UNIFORM 100-PHOTO GALLERY
   DOCTOR SECTION PHOTO REMAINS LARGE
   ========================================================= */


/* =========================================================
   1. DESKTOP HEADER
   Logo stays completely OUTSIDE the navigation bar
   ========================================================= */

@media (min-width: 861px) {

  .site-header {
    padding: 4px 0;
  }

  .nav {
    position: relative;
    width: 100%;
    height: 58px;
    min-height: 58px;

    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    overflow: visible;
  }

  /* Remove old full navigation background */
  .nav::before {
    display: none !important;
  }

  /* -----------------------------------------
     LOGO — COMPLETELY SEPARATE FROM NAV BAR
     ----------------------------------------- */

  .brand {
    position: absolute;

    left: 0;
    top: 0;

    width: 105px;
    min-width: 105px;

    height: auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    gap: 3px;

    margin: 0;
    padding: 0;

    z-index: 50;

    text-align: center;
  }

  .brand img {
    width: 82px;
    height: 82px;

    aspect-ratio: 1 / 1;

    display: block;

    border-radius: 50%;

    object-fit: contain;
    object-position: center;

    border: 1px solid rgba(10, 57, 62, .18);

    background: #fff;

    flex-shrink: 0;
  }

  /* Clinic name remains underneath logo */
  .brand-name {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    text-align: center;
    line-height: 1;
  }

  .brand-name strong {
    display: block;

    margin: 0;

    font-size: 8px;
    line-height: 1.1;

    letter-spacing: .14em;

    color: #12363d;

    white-space: nowrap;
  }

  .brand-name small {
    display: block;

    margin: 2px 0 0;

    font-size: 5px;
    line-height: 1.1;

    letter-spacing: .25em;

    color: #527176;

    white-space: nowrap;
  }


  /* -----------------------------------------
     NAVIGATION BAR
     Only the navigation links + appointment
     are inside the bar.
     ----------------------------------------- */

  .nav-links {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 24px;

    height: 44px;

    padding: 0 14px 0 24px;

    margin-left: auto;

    background: rgba(225, 238, 235, .90);

    border: 1px solid rgba(255, 255, 255, .78);

    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0, 35, 40, .14);

    backdrop-filter: blur(16px);

    z-index: 5;
  }

  .nav-cta {
    margin-left: 8px;

    padding: 10px 18px;

    font-size: 9px;

    white-space: nowrap;
  }
}


/* =========================================================
   2. GALLERY
   5 IMAGES PER ROW ON LARGE DESKTOP
   ALL IMAGES EXACTLY THE SAME SIZE
   ========================================================= */

@media (min-width: 1201px) {

  .gallery-grid {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 16px;

    align-items: stretch;
  }

  .gallery-item {
    width: 100%;
    height: auto;

    margin: 0;

    border-radius: 18px;

    overflow: hidden;

    background: rgba(255, 255, 255, .78);

    border: 1px solid rgba(255, 255, 255, .75);

    box-shadow: 0 16px 45px rgba(0, 35, 40, .12);

    display: block;
  }

  /* EVERY gallery image gets exactly the same size */
  .gallery-item img {
    display: block;

    width: 100%;

    height: 230px;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    object-position: center;

    margin: 0;
  }

  /* IMPORTANT:
     Doctor image in GALLERY is NOT special anymore */
  .gallery-item.gallery-doctor {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .gallery-item.gallery-doctor img {
    width: 100%;

    height: 230px !important;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    object-position: center;
  }
}


/* =========================================================
   3. FOUR IMAGES PER ROW
   MEDIUM DESKTOP / TABLET
   ========================================================= */

@media (min-width: 861px) and (max-width: 1200px) {

  .gallery-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 16px;

    align-items: stretch;
  }

  .gallery-item {
    width: 100%;
    margin: 0;

    border-radius: 18px;

    overflow: hidden;

    display: block;
  }

  .gallery-item img {
    display: block;

    width: 100%;

    height: 230px;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    object-position: center;
  }

  /* Doctor photo in Gallery = SAME SIZE */
  .gallery-item.gallery-doctor {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .gallery-item.gallery-doctor img {
    width: 100%;

    height: 230px !important;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    object-position: center;
  }
}


/* =========================================================
   4. TABLET
   TWO / THREE COLUMNS DEPENDING ON WIDTH
   ========================================================= */

@media (min-width: 641px) and (max-width: 860px) {

  .gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 14px;
  }

  .gallery-item {
    width: 100%;
    margin: 0;

    border-radius: 16px;

    overflow: hidden;
  }

  .gallery-item img {
    display: block;

    width: 100%;

    height: 210px;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    object-position: center;
  }

  .gallery-item.gallery-doctor {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .gallery-item.gallery-doctor img {
    height: 210px !important;

    aspect-ratio: 4 / 3;

    object-fit: cover;
  }
}


/* =========================================================
   5. MOBILE GALLERY
   TWO PER ROW ON SMALL MOBILE
   ONE PER ROW ON VERY NARROW SCREENS
   ========================================================= */

@media (max-width: 640px) {

  .gallery-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .gallery-item {
    width: 100%;
    margin: 0;

    border-radius: 14px;

    overflow: hidden;
  }

  .gallery-item img {
    display: block;

    width: 100%;

    height: 150px;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    object-position: center;
  }

  /* Doctor photo in Gallery = SAME SIZE */
  .gallery-item.gallery-doctor {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .gallery-item.gallery-doctor img {
    width: 100%;

    height: 150px !important;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    object-position: center;
  }
}


/* =========================================================
   6. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img,
  .gallery-item.gallery-doctor img {
    height: 220px !important;

    aspect-ratio: 4 / 3;

    object-fit: cover;
  }
}


/* =========================================================
   7. DOCTOR SECTION
   KEEP doctor_dr.jpg LARGE
   THIS IS SEPARATE FROM THE GALLERY doctor.jpg
   ========================================================= */

.doctor-photo {
  min-height: 650px;

  background-image: url("../images/doctor_dr.jpg");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  border-radius: 22px;

  overflow: hidden;
}


/* Tablet doctor photo stays large */
@media (max-width: 860px) and (min-width: 641px) {

  .doctor-photo {
    min-height: 560px;
  }
}


/* Mobile doctor photo */
@media (max-width: 640px) {

  .doctor-photo {
    min-height: 500px;
  }
}


/* =========================================================
   FINAL LOGO SIZE + TRANSPARENT HEADER LOGO BACKGROUND
   =========================================================
   - Large standalone header logo
   - Large AP DENTAL / CLINIC text below it
   - No CSS white background or white border
   - Navigation bar remains compact
   - Doctor section and gallery remain unchanged
   ========================================================= */

@media (min-width: 861px) {

  /* Keep logo completely outside the navigation bar */
  .brand {
    position: absolute;
    left: 0;
    top: 0;

    width: 175px;
    min-width: 175px;

    height: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 6px;

    margin: 0;
    padding: 0;

    z-index: 50;
    text-align: center;
  }

  /* LARGE HEADER LOGO */
  .brand img {
    width: 135px;
    height: 135px;

    aspect-ratio: 1 / 1;
    display: block;

    border-radius: 50%;

    object-fit: contain;
    object-position: center;

    /* No white CSS background */
    background: transparent;
    border: 0;

    box-shadow: none;
    overflow: hidden;

    flex-shrink: 0;
  }

  /* AP DENTAL CLINIC BELOW THE LOGO */
  .brand-name {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    line-height: 1;
    text-align: center;
  }

  .brand-name strong {
    display: block;

    margin: 0;

    font-size: 14px;
    line-height: 1.1;

    letter-spacing: .16em;

    color: #12363d;

    white-space: nowrap;
  }

  .brand-name small {
    display: block;

    margin: 4px 0 0;

    font-size: 9px;
    line-height: 1.1;

    letter-spacing: .30em;

    color: #12363d;

    white-space: nowrap;
  }

  /* Navigation bar stays compact and separate */
  .nav {
    height: 58px;
    min-height: 58px;
    padding-left: 190px;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .nav::before {
    left: 175px;
  }
}


/* TABLET */
@media (min-width: 641px) and (max-width: 860px) {

  .brand {
    width: 145px;
    min-width: 145px;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    z-index: 50;
  }

  .brand img {
    width: 105px;
    height: 105px;

    border: 0;
    background: transparent;
    box-shadow: none;

    object-fit: contain;
    object-position: center;
  }

  .brand-name strong {
    font-size: 11px;
    letter-spacing: .14em;
  }

  .brand-name small {
    font-size: 7px;
    letter-spacing: .25em;
    margin-top: 3px;
  }
}


/* MOBILE */
@media (max-width: 640px) {

  .brand {
    width: 120px;
    min-width: 120px;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    z-index: 50;
  }

  .brand img {
    width: 88px;
    height: 88px;

    border: 0;
    background: transparent;
    box-shadow: none;

    object-fit: contain;
    object-position: center;
  }

  .brand-name strong {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .brand-name small {
    font-size: 6px;
    letter-spacing: .22em;
    margin-top: 2px;
  }

  /* Keep the mobile navigation independent */
  .nav {
    padding-left: 125px;
  }

  .nav::before {
    left: 120px;
  }
}

/* =========================================================
   FINAL LOGO FIX
   LARGE FULL CIRCLE + BRIGHT CLINIC NAME
   LOGO SITS ABOVE THE NAVIGATION BAR
   ========================================================= */

@media (min-width: 861px) {

  /* Keep header/nav structure unchanged */
  .site-header {
    z-index: 80;
  }

  .nav {
    position: relative;
    overflow: visible !important;
  }

  /* ---------------------------------------------------------
     LOGO BLOCK
     --------------------------------------------------------- */

  .brand {
    position: absolute !important;

    left: 18px !important;
    top: 2px !important;

    width: 190px !important;
    min-width: 190px !important;

    height: auto !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 7px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;

    z-index: 999 !important;

    text-align: center !important;

    pointer-events: none;
  }


  /* ---------------------------------------------------------
     LARGE FULL CIRCLE LOGO
     --------------------------------------------------------- */

  .brand img {
    width: 128px !important;
    height: 128px !important;

    min-width: 128px !important;
    min-height: 128px !important;

    max-width: 128px !important;
    max-height: 128px !important;

    aspect-ratio: 1 / 1 !important;

    display: block !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center center !important;

    overflow: hidden !important;

    /* REMOVE WHITE BORDER */
    border: none !important;

    /* REMOVE WHITE BACKGROUND */
    background: transparent !important;

    box-shadow: none !important;

    flex-shrink: 0 !important;

    position: relative !important;
    z-index: 1000 !important;
  }


  /* ---------------------------------------------------------
     AP DENTAL CLINIC
     BIGGER + BRIGHTER
     --------------------------------------------------------- */

  .brand-name {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;

    line-height: 1 !important;

    position: relative !important;
    z-index: 1001 !important;
  }


  .brand-name strong {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 15px !important;

    line-height: 1.15 !important;

    letter-spacing: .18em !important;

    color: #eaffff !important;

    font-weight: 900 !important;

    text-shadow:
      0 1px 2px rgba(0, 0, 0, .65),
      0 0 8px rgba(143, 229, 223, .45) !important;

    white-space: nowrap !important;
  }


  .brand-name small {
    display: block !important;

    margin: 4px 0 0 !important;
    padding: 0 !important;

    font-size: 9px !important;

    line-height: 1.1 !important;

    letter-spacing: .38em !important;

    color: #dffffc !important;

    font-weight: 800 !important;

    text-shadow:
      0 1px 2px rgba(0, 0, 0, .65),
      0 0 7px rgba(143, 229, 223, .4) !important;

    white-space: nowrap !important;
  }


  /* ---------------------------------------------------------
     MAKE NAVIGATION BAR STAY BEHIND LOGO
     --------------------------------------------------------- */

  .nav::before {
    z-index: 1 !important;
  }

  .nav>* {
    position: relative;
  }

  .brand {
    z-index: 999 !important;
  }

  .nav-links,
  .nav-cta,
  .menu-toggle {
    z-index: 5 !important;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 641px) and (max-width: 860px) {

  .brand {
    position: absolute !important;

    left: 8px !important;
    top: 0 !important;

    width: 145px !important;
    min-width: 145px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;

    gap: 5px !important;

    z-index: 999 !important;

    text-align: center !important;
  }

  .brand img {
    width: 105px !important;
    height: 105px !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    background: transparent !important;

    box-shadow: none !important;
  }

  .brand-name strong {
    font-size: 12px !important;
    font-weight: 900 !important;

    color: #eaffff !important;

    text-shadow:
      0 1px 3px rgba(0, 0, 0, .7),
      0 0 7px rgba(143, 229, 223, .4) !important;
  }

  .brand-name small {
    font-size: 7px !important;

    color: #dffffc !important;

    font-weight: 800 !important;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .brand {
    position: absolute !important;

    left: 5px !important;
    top: 0 !important;

    width: 105px !important;
    min-width: 105px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;

    gap: 4px !important;

    z-index: 999 !important;

    text-align: center !important;
  }

  .brand img {
    width: 78px !important;
    height: 78px !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    background: transparent !important;

    box-shadow: none !important;
  }

  .brand-name strong {
    font-size: 9px !important;

    font-weight: 900 !important;

    color: #eaffff !important;

    text-shadow:
      0 1px 3px rgba(0, 0, 0, .75),
      0 0 6px rgba(143, 229, 223, .4) !important;
  }

  .brand-name small {
    font-size: 5px !important;

    color: #dffffc !important;

    font-weight: 800 !important;
  }
}

/* =========================================================
   FINAL LOGO BEHAVIOUR
   LARGE LOGO IS VISIBLE AT THE TOP ONLY.
   IT DISAPPEARS AS THE PAGE IS SCROLLED.
   NAVIGATION BAR REMAINS FIXED.
   ========================================================= */

/* Keep the existing fixed navigation header */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 80 !important;
}

/* Desktop logo: large, circular, outside the nav bar */
@media (min-width: 861px) {

  .brand {
    position: absolute !important;
    left: 18px !important;
    top: 4px !important;

    width: 190px !important;
    min-width: 190px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 7px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;

    z-index: 999 !important;
    text-align: center !important;

    /* The logo is allowed to disappear independently of the nav */
    animation: apDentalLogoHide 1ms linear both;
    animation-timeline: scroll(root);
    animation-range: 0 140px;
  }

  .brand img {
    width: 128px !important;
    height: 128px !important;

    min-width: 128px !important;
    min-height: 128px !important;

    max-width: 128px !important;
    max-height: 128px !important;

    aspect-ratio: 1 / 1 !important;

    display: block !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center center !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;

    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .brand-name {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
    line-height: 1 !important;
  }

  .brand-name strong {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 15px !important;
    line-height: 1.15 !important;

    letter-spacing: .18em !important;

    color: #ffffff !important;
    font-weight: 900 !important;

    text-shadow:
      0 2px 4px rgba(0, 0, 0, .85),
      0 0 10px rgba(143, 229, 223, .55) !important;

    white-space: nowrap !important;
  }

  .brand-name small {
    display: block !important;

    margin: 4px 0 0 !important;
    padding: 0 !important;

    font-size: 9px !important;
    line-height: 1.1 !important;

    letter-spacing: .38em !important;

    color: #ffffff !important;
    font-weight: 900 !important;

    text-shadow:
      0 2px 4px rgba(0, 0, 0, .85),
      0 0 9px rgba(143, 229, 223, .50) !important;

    white-space: nowrap !important;
  }

  /* Keep the nav bar independent and above the page content */
  .nav {
    position: relative !important;
    overflow: visible !important;
  }

  .nav::before {
    z-index: 1 !important;
  }

  .nav>* {
    position: relative;
  }

  .nav-links,
  .nav-cta,
  .menu-toggle {
    z-index: 5 !important;
  }
}


/* Logo is visible at the top and fades/slides away during scrolling */
@keyframes apDentalLogoHide {
  0% {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  75% {
    opacity: 0;
    transform: translateY(-20px);
    visibility: visible;
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
  }
}


/* =========================================================
   FALLBACK FOR BROWSERS WITHOUT SCROLL-DRIVEN ANIMATIONS
   ========================================================= */

@supports not (animation-timeline: scroll(root)) {
  .brand {
    animation: none !important;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 641px) and (max-width: 860px) {

  .brand {
    position: absolute !important;

    left: 8px !important;
    top: 0 !important;

    width: 145px !important;
    min-width: 145px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;

    gap: 5px !important;

    z-index: 999 !important;

    text-align: center !important;
  }

  .brand img {
    width: 105px !important;
    height: 105px !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    background: transparent !important;

    box-shadow: none !important;
  }

  .brand-name strong {
    font-size: 12px !important;
    font-weight: 900 !important;

    color: #ffffff !important;

    text-shadow:
      0 2px 4px rgba(0, 0, 0, .85),
      0 0 8px rgba(143, 229, 223, .50) !important;
  }

  .brand-name small {
    font-size: 7px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .brand {
    position: absolute !important;

    left: 5px !important;
    top: 0 !important;

    width: 105px !important;
    min-width: 105px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;

    gap: 4px !important;

    z-index: 999 !important;

    text-align: center !important;
  }

  .brand img {
    width: 78px !important;
    height: 78px !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    background: transparent !important;

    box-shadow: none !important;
  }

  .brand-name strong {
    font-size: 9px !important;
    font-weight: 900 !important;

    color: #ffffff !important;

    text-shadow:
      0 2px 4px rgba(0, 0, 0, .85),
      0 0 7px rgba(143, 229, 223, .50) !important;
  }

  .brand-name small {
    font-size: 5px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
  }
}

/* =========================================================
   HERO TITLE — KEEP LOGO AREA CLEAR
   ========================================================= */

@media (min-width: 861px) {

  .hero h1 {
    margin-top: 85px !important;
  }

  .hero h1 span,
  .hero h1 em {
    display: block !important;
  }

  .hero h1 span {
    white-space: nowrap;
  }

  .hero h1 em {
    white-space: nowrap;
  }
}

/* =========================================================
   FINAL LOGO SIZE
   ========================================================= */

@media (min-width: 861px) {
  .brand img {
    width: 150px !important;
    height: 150px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    border: none !important;
    background: transparent !important;
  }

  .brand {
    width: 190px !important;
    min-width: 190px !important;
  }

  .brand-name strong {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #fff !important;
  }

  .brand-name small {
    font-size: 9px !important;
    font-weight: 900 !important;
    color: #fff !important;
  }
}

/* =========================================================
   HEADER LOGO — MATCH FOOTER LOGO SIZE
   ========================================================= */

@media (min-width: 861px) {

  .brand {
    position: absolute !important;
    left: 18px !important;
    top: 4px !important;

    width: 300px !important;
    min-width: 300px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 8px !important;

    z-index: 9999 !important;
  }

  .brand img {
    width: 279px !important;
    height: 279px !important;

    min-width: 279px !important;
    min-height: 279px !important;

    max-width: 279px !important;
    max-height: 279px !important;

    aspect-ratio: 1 / 1 !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    background: transparent !important;

    box-shadow: none !important;
  }

  .brand-name {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
  }

  .brand-name strong {
    font-size: 18px !important;
    font-weight: 900 !important;

    color: #ffffff !important;

    letter-spacing: .18em !important;

    text-shadow:
      0 2px 5px rgba(0, 0, 0, .8),
      0 0 10px rgba(143, 229, 223, .5) !important;
  }

  .brand-name small {
    font-size: 11px !important;
    font-weight: 900 !important;

    color: #ffffff !important;

    letter-spacing: .35em !important;

    margin-top: 4px !important;

    text-shadow:
      0 2px 5px rgba(0, 0, 0, .8),
      0 0 10px rgba(143, 229, 223, .5) !important;
  }
}


/* =========================================================
   FINAL HEADER LOGO — MATCH FOOTER LOGO SIZE
   LARGE CIRCLE + CLINIC NAME
   LOGO FADES AWAY WHEN SCROLLING
   NAVIGATION REMAINS FIXED
   ========================================================= */

@media (min-width: 861px) {

  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 80 !important;
  }

  /* Keep the large logo independent from the navigation bar */
  .brand {
    position: absolute !important;
    left: 18px !important;
    top: 4px !important;

    width: 300px !important;
    min-width: 300px !important;

    height: auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 8px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;

    z-index: 9999 !important;
    text-align: center !important;

    /* Keep the existing top-only logo behavior */
    animation: apDentalLogoHide 1ms linear both !important;
    animation-timeline: scroll(root) !important;
    animation-range: 0 140px !important;
  }

  /* Header logo = same 279px diameter as footer logo */
  .brand img {
    width: 279px !important;
    height: 279px !important;

    min-width: 279px !important;
    min-height: 279px !important;

    max-width: 279px !important;
    max-height: 279px !important;

    aspect-ratio: 1 / 1 !important;

    display: block !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center center !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;

    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  /* Clinic name under the large logo */
  .brand-name {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
    line-height: 1 !important;
  }

  .brand-name strong {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 18px !important;
    line-height: 1.15 !important;

    letter-spacing: .18em !important;

    color: #ffffff !important;
    font-weight: 900 !important;

    text-shadow:
      0 2px 5px rgba(0, 0, 0, .8),
      0 0 10px rgba(143, 229, 223, .5) !important;

    white-space: nowrap !important;
  }

  .brand-name small {
    display: block !important;

    margin: 4px 0 0 !important;
    padding: 0 !important;

    font-size: 11px !important;
    line-height: 1.1 !important;

    letter-spacing: .35em !important;

    color: #ffffff !important;
    font-weight: 900 !important;

    text-shadow:
      0 2px 5px rgba(0, 0, 0, .8),
      0 0 10px rgba(143, 229, 223, .5) !important;

    white-space: nowrap !important;
  }

  /* Move hero title down so the 279px logo has clear space */
  .hero-copy {
    padding-top: 120px !important;
  }

  .hero h1 {
    margin-top: 0 !important;
  }

  /* Keep the navigation bar unchanged and above page content */
  .nav {
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
  }

  .nav::before {
    z-index: 1 !important;
  }

  .nav>* {
    position: relative;
  }

  .nav-links,
  .nav-cta,
  .menu-toggle {
    z-index: 5 !important;
  }
}


/* =========================================================
   TABLET — KEEP LOGO RESPONSIVE
   ========================================================= */

@media (min-width: 641px) and (max-width: 860px) {

  .brand {
    position: absolute !important;

    left: 8px !important;
    top: 0 !important;

    width: 145px !important;
    min-width: 145px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 5px !important;

    z-index: 9999 !important;
    text-align: center !important;
  }

  .brand img {
    width: 105px !important;
    height: 105px !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .brand-name strong {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
  }

  .brand-name small {
    font-size: 7px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
  }
}


/* =========================================================
   MOBILE — KEEP LOGO RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {

  .brand {
    position: absolute !important;

    left: 5px !important;
    top: 0 !important;

    width: 105px !important;
    min-width: 105px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 4px !important;

    z-index: 9999 !important;
    text-align: center !important;
  }

  .brand img {
    width: 78px !important;
    height: 78px !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .brand-name strong {
    font-size: 9px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
  }

  .brand-name small {
    font-size: 5px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
  }
}

/* =========================================================
   FINAL FIX — LARGE HEADER LOGO / HERO SPACING
   Keep logo at footer size without overlapping hero title
   ========================================================= */

@media (min-width: 861px) {

  /* Keep the large logo exactly as it is */
  .brand img {
    width: 279px !important;
    height: 279px !important;
    min-width: 279px !important;
    min-height: 279px !important;
    max-width: 279px !important;
    max-height: 279px !important;

    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Keep logo above everything */
  .brand {
    z-index: 9999 !important;
  }

  /* Push the complete hero content below the logo */
  .hero-copy {
    padding-top: 210px !important;
  }

  /* Keep the title itself clean */
  .hero h1 {
    margin-top: 0 !important;
  }
}

/* =========================================================
   BEFORE / AFTER SMILE PREVIEW
   Self-contained styles — existing website styles untouched.
   ========================================================= */

.smile-before-after-section {
  position: relative;
  overflow: hidden;
}

.smile-before-after-section .section-heading {
  margin-bottom: 42px;
}

.smile-comparison {
  width: min(100%, 980px);
  margin: 0 auto;
}

.smile-comparison__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 784 / 572;
  overflow: hidden;
  border-radius: 24px;
  background: #111;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 24px 70px rgba(0,0,0,.32),
    0 0 0 1px rgba(143,229,223,.06);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}

.smile-comparison__image,
.smile-comparison__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.smile-comparison__image {
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.smile-comparison__image--before {
  z-index: 1;
}

.smile-comparison__after {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 0;
}

.smile-comparison__image--after {
  width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.smile-comparison__label {
  position: absolute;
  top: 24px;
  z-index: 5;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.smile-comparison__label--before {
  left: 24px;
  background: rgba(30,30,30,.68);
  border: 1px solid rgba(255,255,255,.18);
}

.smile-comparison__label--after {
  right: 24px;
  background: rgba(178,139,67,.82);
  border: 1px solid rgba(255,255,255,.28);
}

.smile-comparison__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 8;
  width: 42px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.smile-comparison__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.95);
  box-shadow:
    0 0 8px rgba(255,255,255,.55),
    0 0 18px rgba(143,229,223,.28);
}

.smile-comparison__handle-circle {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  border-radius: 50%;
  color: #fff;
  background: rgba(12,31,34,.94);
  border: 2px solid rgba(255,255,255,.92);
  box-shadow:
    0 8px 24px rgba(0,0,0,.34),
    0 0 22px rgba(143,229,223,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.smile-comparison__handle:hover .smile-comparison__handle-circle,
.smile-comparison__handle:focus-visible .smile-comparison__handle-circle,
.smile-comparison.is-dragging .smile-comparison__handle-circle {
  transform: scale(1.08);
  box-shadow:
    0 10px 28px rgba(0,0,0,.38),
    0 0 28px rgba(143,229,223,.38);
}

.smile-comparison__arrow {
  position: relative;
  z-index: 2;
  font-family: Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
  font-weight: 400;
}

.smile-comparison__instruction {
  width: fit-content;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.smile-comparison__instruction-icon {
  font-size: 17px;
  color: #8fe5df;
  line-height: 1;
}

.smile-comparison__note {
  max-width: 720px;
  margin: 13px auto 0;
  text-align: center;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  line-height: 1.6;
}

.smile-comparison__handle:focus-visible {
  outline: 2px solid #8fe5df;
  outline-offset: 4px;
  border-radius: 50%;
}

/* Small idle hint animation — the comparison itself never auto-moves. */
@keyframes smileComparisonHint {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(calc(-50% + 7px)); }
}

.smile-comparison:not(.is-dragging) .smile-comparison__handle {
  animation: smileComparisonHint 2.6s ease-in-out 1.2s 2;
}

@media (max-width: 760px) {
  .smile-before-after-section .section-heading {
    margin-bottom: 28px;
  }

  .smile-comparison__frame {
    border-radius: 18px;
  }

  .smile-comparison__label {
    top: 14px;
    padding: 8px 12px;
    font-size: 9px;
    letter-spacing: .17em;
  }

  .smile-comparison__label--before {
    left: 14px;
  }

  .smile-comparison__label--after {
    right: 14px;
  }

  .smile-comparison__handle {
    width: 38px;
  }

  .smile-comparison__handle-circle {
    width: 42px;
    height: 42px;
    padding: 0 6px;
  }

  .smile-comparison__arrow {
    font-size: 20px;
  }

  .smile-comparison__instruction {
    font-size: 10px;
    padding: 8px 13px;
    letter-spacing: .06em;
  }

  .smile-comparison__note {
    font-size: 10px;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smile-comparison:not(.is-dragging) .smile-comparison__handle {
    animation: none;
  }
}


/* =========================================================
   BEFORE / AFTER SLIDER — INITIAL BEFORE STATE + LABEL FADE
   Only affects the smile comparison component.
   ========================================================= */
.smile-comparison__label--before,
.smile-comparison__label--after {
  transition:
    opacity .65s ease,
    transform .65s ease,
    visibility .65s ease;
}

.smile-comparison__label--before {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.smile-comparison__label--after {
  opacity: 0;
  transform: translateX(8px);
  visibility: hidden;
}

/* At the starting position the comparison is entirely BEFORE. */
.smile-comparison.is-before-start .smile-comparison__label--before {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.smile-comparison.is-before-start .smile-comparison__label--after {
  opacity: 0;
  transform: translateX(8px);
  visibility: hidden;
}

/* During movement the labels are driven continuously by --compare-progress. */
.smile-comparison.is-comparing .smile-comparison__label--before {
  opacity: calc(1 - var(--compare-progress, 0));
  transform: translateX(calc(var(--compare-progress, 0) * -8px));
  visibility: visible;
}

.smile-comparison.is-comparing .smile-comparison__label--after {
  opacity: var(--compare-progress, 0);
  transform: translateX(calc((1 - var(--compare-progress, 0)) * 8px));
  visibility: visible;
}

/* Fully revealed AFTER state: BEFORE disappears completely. */
.smile-comparison.is-after-end .smile-comparison__label--before {
  opacity: 0;
  transform: translateX(-8px);
  visibility: hidden;
}

.smile-comparison.is-after-end .smile-comparison__label--after {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

/* Requested heading-emphasis color update: existing aqua/teal theme only. */
#about h2 em,
#technology h2 em,
#why-us h2 em,
#gallery h2 em,
#doctor h2 em,
#location h2 em {
  color: #2bb9b4 !important;
}

/* Supporting layout for the expanded Technology and Why Us content. */
.technology-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.technology-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 18px;
  border: 1px solid rgba(167, 240, 234, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}

.technology-detail > span {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  color: #8fe5df;
}

.technology-detail h3 {
  margin: 0 0 7px;
  font-size: 15px;
  color: #fff;
}

.technology-detail p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.7;
}

.why-us-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-us-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.why-us-points div {
  padding: 13px 14px;
  border: 1px solid rgba(167, 240, 234, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  line-height: 1.45;
}

.why-us-points span {
  color: #8fe5df;
  font-weight: 900;
  margin-right: 6px;
}

@media (max-width: 900px) {
  .technology-detail-grid,
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-us-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .technology-detail-grid,
  .why-us-grid,
  .why-us-points {
    grid-template-columns: 1fr;
  }
}
.starts-here {
    color: #2bb9b4 !important;
}
.every-smile {
    color: #2bb9b4 !important;
}
.simple-reach {
    color: #ffffff !important;
}
.simple-swipe {
    color: #2bb9b4 !important;
}

/* Professional typography — targeted to headings only. */
.section-heading h2,
.section-heading h2 em,
.hero h1,
.hero h1 em {
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
}

.section-heading h2 em,
.hero h1 em {
  color: #2bb9b4 !important;
}

.section-support-copy {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}

.why-us-closing {
  margin: 22px auto 0;
  text-align: center;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: .015em;
}

/* Give the regular navigation links the same contained professional treatment
   while leaving the Book Appointment action intact. */
.nav-links {
  background: rgba(10, 30, 31, .90);
  border: 1px solid rgba(167, 240, 234, .16);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

.nav-links a {
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}

.nav-links a:hover {
  background: rgba(43, 185, 180, .12);
}

/* =========================================================
   FINAL PROFESSIONAL TYPOGRAPHY
   Clean DM Sans headings — no decorative/italic heading font.
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sans) !important;
}

h1 em,
h2 em,
h3 em,
h4 em,
h5 em,
h6 em {
  font-style: normal !important;
  font-family: var(--sans) !important;
}

/* Keep heading emphasis premium without the italic look. */
.section h2 em,
.media-heading h3 em,
.hero h1 em {
  font-style: normal !important;
  font-weight: 700 !important;
}

/* =========================================================
   DESKTOP NAVIGATION
   Regular navigation gets its own visible background.
   Book Appointment stays a separate CTA.
   ========================================================= */

@media (min-width: 861px) {
  .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px !important;
    background: rgba(7, 60, 66, .94) !important;
    border: 1px solid rgba(143, 229, 223, .28) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 28px rgba(0, 35, 40, .22) !important;
    backdrop-filter: blur(14px) !important;
  }

  .nav-links > a:not(.nav-cta) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    color: rgba(255, 255, 255, .92) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .nav-links > a:not(.nav-cta):hover,
  .nav-links > a:not(.nav-cta).active {
    color: #8fe5df !important;
    background: rgba(143, 229, 223, .10) !important;
  }

  /* Book Appointment remains visually distinct as the solid CTA. */
  .nav-links .nav-cta {
    margin-left: 6px !important;
    background: var(--teal-dark) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    min-height: 36px !important;
  }
}

/* Mobile menu: keep links readable and separate from the CTA. */
@media (max-width: 860px) {
  .nav-links > a:not(.nav-cta) {
    font-family: var(--sans) !important;
    font-style: normal !important;
    color: var(--ink) !important;
  }

  .nav-links .nav-cta {
    color: #fff !important;
  }
}
.section-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    color: #8fe5df !important;
}
.eyebrow.dark {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
}
/* Treatments section label */
#treatments .eyebrow.dark {
    color: #8fe5df !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
}

#treatments .eyebrow.dark span {
    background: #8fe5df !important;
}

#smile-preview .eyebrow {
    color: #8fe5df !important;
}

#smile-preview .eyebrow span {
    background: #8fe5df !important;
}
/* Only "in motion" */
.media-heading h3 em.in-motion {
    color: #2bb9b4 !important;
    font-style: normal !important;
}





/* =========================================================
   FINAL HOVER INTERACTIONS
   Requested: stronger gallery pop-up hover + card lift/scale.
   No layout or content changes.
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  /* Gallery photos: make the hovered photo visibly pop above the grid. */
  .gallery-grid {
    overflow: visible;
  }

  .gallery-item {
    position: relative;
    z-index: 1;
    transform-origin: center center;
    transition:
      transform .32s cubic-bezier(.2,.8,.2,1),
      box-shadow .32s ease,
      filter .32s ease;
    will-change: transform;
  }

  .gallery-item:hover {
    z-index: 20;
    transform: translateY(-8px) scale(1.18);
    box-shadow: 0 28px 70px rgba(0, 25, 30, .28);
    filter: saturate(1.04) contrast(1.02);
  }

  /* Technology cards and supporting technology boxes. */
  .tech-card,
  .technology-detail {
    position: relative;
    z-index: 1;
    transform-origin: center center;
    transition:
      transform .30s cubic-bezier(.2,.8,.2,1),
      box-shadow .30s ease,
      background-color .30s ease;
    will-change: transform;
  }

  .tech-card:hover {
    z-index: 10;
    transform: translateY(-8px) scale(1.07);
    box-shadow: 0 24px 55px rgba(0, 25, 30, .20);
  }

  .technology-detail:hover {
    z-index: 10;
    transform: translateY(-5px) scale(1.045);
    box-shadow: 0 18px 40px rgba(0, 25, 30, .16);
  }

  /* Treatment cards. */
  .treatment-card {
    position: relative;
    z-index: 1;
    transform-origin: center center;
    transition:
      transform .30s cubic-bezier(.2,.8,.2,1),
      box-shadow .30s ease,
      background-color .30s ease;
    will-change: transform;
  }

  .treatment-card:hover {
    z-index: 10;
    transform: translateY(-8px) scale(1.07);
    box-shadow: 0 26px 58px rgba(0, 35, 40, .18);
  }

  /* Why Us cards: same professional card treatment as Treatments. */
  .why-card {
    position: relative;
    z-index: 1;
    transform-origin: center center;
    transition:
      transform .30s cubic-bezier(.2,.8,.2,1),
      box-shadow .30s ease,
      background-color .30s ease;
    will-change: transform;
  }

  .why-card:hover {
    z-index: 10;
    transform: translateY(-8px) scale(1.07);
    box-shadow: 0 26px 58px rgba(0, 35, 40, .18);
  }

  .why-us-points div {
    position: relative;
    z-index: 1;
    transition:
      transform .25s cubic-bezier(.2,.8,.2,1),
      box-shadow .25s ease,
      background-color .25s ease;
  }

  .why-us-points div:hover {
    z-index: 5;
    transform: translateY(-4px) scale(1.035);
    box-shadow: 0 14px 32px rgba(0, 35, 40, .14);
  }
}

/* Why Us: replace the plain white-on-transparent cards with the
   cleaner treatment-style light card appearance requested. */
.why-card {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 14px 40px rgba(0, 35, 40, .08);
}

.why-card strong {
  color: #0b7475;
}

.why-card h3 {
  color: var(--ink);
}

.why-card p {
  color: #587078;
}

.why-us-points div {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(255, 255, 255, .72);
  color: #587078;
}

.why-us-points span {
  color: #16817f;
}


/* =========================================================
   FINAL CROSS-BROWSER / MOBILE HANDOFF FIXES
   Targeted fixes only — desktop design and existing theme preserved.
   ========================================================= */

/* Firefox-safe logo: the logo must stay visible and fixed.
   Remove the scroll-driven hide animation that can behave differently
   between browsers. */
.brand {
  animation: none !important;
  animation-timeline: none !important;
  animation-range: none !important;
}

@media (min-width: 861px) {
  .brand {
    position: fixed !important;
    left: 18px !important;
    top: 4px !important;
    z-index: 9999 !important;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .brand {
    position: fixed !important;
    left: 8px !important;
    top: 4px !important;
    z-index: 9999 !important;
  }
}

@media (max-width: 640px) {
  .brand {
    position: fixed !important;
    left: 5px !important;
    top: 4px !important;
    z-index: 9999 !important;
  }

  /* Mobile menu opens below the fixed header and always starts
     at the first item instead of inheriting an old scroll position. */
  .nav-links {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    top: 78px !important;
    max-height: calc(100dvh - 92px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9998 !important;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  /* Mobile only: keep HOME and ABOUT clearly readable on the circular menu. */
  .nav-links > a:nth-child(1),
  .nav-links > a:nth-child(2) {
   background: transparent !important;
   color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10001 !important;
    text-shadow: none !important;
  }

  .nav-links.open {
    display: flex !important;
  }
}


/* =========================================================
   FINAL LOGO SCROLL BEHAVIOR — ORIGINAL REQUEST
   Logo visible at top; hides while scrolling down and
   becomes visible again when returning to the top.
   Navigation remains unchanged.
   ========================================================= */
.brand.logo-scroll-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-20px) !important;
  pointer-events: none !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
}

.brand {
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}


/* =========================================================
   FINAL SINGLE-PASS MOBILE NAV + GALLERY SPACING FIX
   No desktop design changes.
   ========================================================= */

/* Reduce the empty space around the gallery continuation text. */
.gallery-coming-soon {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

.video-gallery {
  margin-top: 28px !important;
}

@media (max-width: 640px) {
  .gallery-coming-soon {
    margin-top: 10px !important;
  }

  .video-gallery {
    margin-top: 22px !important;
  }

  /* Keep the existing circular mobile menu exactly as designed.
     Only make every navigation label readable above its background. */
  .nav-links > a {
    position: relative !important;
    z-index: 10002 !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.65) !important;
  }

  .nav-links > a:not(.nav-cta) {
    color: #ffffff !important;
    background: transparent !important;
  }

  /* HOME + ABOUT remain the requested light highlighted links. */
  
  .nav-links > a.nav-cta {
    color: #ffffff !important;
    background: var(--teal-dark) !important;
  }
}


/* FINAL MOBILE NAV TEXT CENTERING ONLY */
@media (max-width: 640px) {
  .nav-links > a {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .nav-links > a:nth-child(1),
  .nav-links > a:nth-child(2) {
    text-align: center !important;
    justify-content: center !important;
  }
}
