.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  z-index: 2;
}

.logo img {
  display: block;
  height: 120px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  object-position: left center;
}

header {
  gap: 24px;
  min-height: 120px;
  align-items: center;
}

.logo-slot {
  display: none;
}

/* Keep custom rules minimal so the main stylesheet controls layout */
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
}

/* Hide mobile dock by default (show only on small screens below) */
.mobile-dock { display: none; }

body { overflow-x: hidden; }
section[id], .hero[id], .cta, footer { scroll-margin-top: 110px; }
body.menu-open { overflow: hidden; }
main { padding-bottom: 24px; }

.portrait > span,
.portrait > i {
  position: relative;
  z-index: 2;
}

.booking .success {
  background: linear-gradient(135deg, #22b883, #55cfa7);
  box-shadow: 0 13px 30px #22b88335;
}

.hero-gallery {
  background: #dff3ff;
}

.hero-gallery .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 7000ms ease;
}

.hero-gallery .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-gallery .wash,
.hero-gallery .float,
.hero-gallery .hero-gallery-dots {
  z-index: 2;
}

.hero-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-gallery-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 4px 12px rgba(23, 50, 77, 0.22);
}

.hero-gallery-dots button.is-active {
  width: 24px;
  background: white;
}

.image-story {
  position: relative;
  min-height: 480px;
  margin: 70px 7vw 28px;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #17324d;
  box-shadow: 0 28px 80px rgba(23, 50, 77, 0.16);
}

.image-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.image-story::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 42, 69, 0.78), rgba(12, 42, 69, 0.36) 48%, rgba(12, 42, 69, 0.08));
}

.image-story-content {
  position: relative;
  z-index: 1;
  max-width: 590px;
  padding: 58px;
  color: white;
}

.image-story-content h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
  margin: 16px 0;
}

.image-story-content p {
  max-width: 520px;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 26px;
}

.image-story-pointer {
  position: absolute;
  z-index: 2;
  right: 16%;
  top: 42%;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,0.48);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #17324d;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 16px 38px rgba(23, 50, 77, 0.2);
}

.image-story-pointer::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 84px;
  height: 2px;
  background: rgba(255,255,255,0.86);
  transform: translateY(-50%);
}

.result[hidden],
.mobile-menu {
  display: none;
}

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

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

@media (max-width: 680px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  .top {
    min-height: 40px;
    padding: 8px 16px;
    justify-content: center;
    text-align: center;
  }

  header {
    min-height: auto;
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  nav {
    display: none !important;
    visibility: hidden !important;
  }

  .logo img {
    height: 46px;
    max-width: 170px;
  }

  .head-actions {
    margin-left: auto;
    gap: 8px;
    display: flex !important;
  }

  .head-actions > button:first-child,
  .head-actions > .btn {
    display: none;
  }

  .head-actions .menu {
    width: 44px;
    height: 44px;
    display: grid;
    border-radius: 14px;
    background: linear-gradient(135deg, #2d9cff, #5e62d6);
    color: white;
    box-shadow: 0 10px 24px rgba(45, 156, 255, 0.24);
  }

  .mobile-menu {
    display: none;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 82px;
    border-radius: 22px;
    padding: 10px;
    gap: 8px;
    box-shadow: 0 20px 55px rgba(20, 52, 86, 0.18);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
  }

  .mobile-menu a {
    padding: 14px 12px;
    border-radius: 14px;
    border-bottom: 0;
    font-size: 15px;
    font-weight: 600;
    background: #f6fbff;
    color: #21506f;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .mobile-quick-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 12px;
    overflow-x: auto;
    position: sticky;
    top: 72px;
    z-index: 45;
    background: linear-gradient(180deg, rgba(249,253,255,0.98) 0%, rgba(249,253,255,0.96) 80%, rgba(249,253,255,0) 100%);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
  }

  .mobile-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-quick-nav a {
    flex: 0 0 auto;
    padding: 10px 13px;
    border-radius: 999px;
    background: white;
    color: #21506f;
    border: 1px solid #dceaf2;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(32, 69, 102, 0.08);
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: auto;
    padding: 28px 16px 24px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.7rem);
    margin: 14px 0 10px;
  }

  .hero-copy > p {
    font-size: 0.98rem;
    margin: 12px 0 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn,
  .hero-actions .play {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .hero .proof {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
  }

  .hero-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: 260px;
    clip-path: none;
    border-radius: 24px;
    overflow: hidden;
  }

  .hero-image img {
    object-position: center;
  }

  .hero #booking {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 2px;
  }

  .booking {
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(37, 69, 95, 0.14);
  }

  .book-head {
    align-items: flex-start;
    gap: 10px;
  }

  .fields {
    display: grid;
    gap: 12px;
  }

  .fields label {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
  }

  .fields input,
  .fields select {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .booking .btn.primary.wide {
    width: 100%;
    min-height: 48px;
  }

  .section,
  .departments,
  .journey,
  .image-story,
  .testimonial {
    padding-left: 16px;
    padding-right: 16px;
  }

  .image-story {
    min-height: 520px;
    margin: 42px 16px 10px;
    padding: 0;
    border-radius: 26px;
  }

  .image-story::after {
    background: linear-gradient(0deg, rgba(12, 42, 69, 0.86), rgba(12, 42, 69, 0.28) 62%, rgba(12, 42, 69, 0.08));
  }

  .image-story-content {
    padding: 28px 22px;
  }

  .image-story-content h2 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  .image-story-content .btn {
    width: 100%;
  }

  .image-story-pointer {
    right: 18px;
    top: 22px;
    font-size: 11px;
  }

  .image-story-pointer::before {
    display: none;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
  }

  .section-head > p {
    margin-top: 0;
    font-size: 0.95rem;
  }

  .features,
  .dept-grid,
  .doctor-grid,
  .journey-steps {
    grid-template-columns: 1fr !important;
  }

  .features {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
  }

  .features article {
    min-height: auto;
    padding: 22px;
    border-radius: 20px;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    grid-column: auto !important;
  }

  .features article:first-child {
    grid-column: auto !important;
  }

  .features article a {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 18px;
  }

  .dept-grid article {
    min-height: auto;
    padding: 18px;
  }

  .journey {
    padding: 48px 16px;
    gap: 22px;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
  }

  .journey > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .journey h2 {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
  }

  .journey .btn.white {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .journey-steps {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  .journey-steps article {
    border-radius: 16px;
    padding: 14px 12px;
    background: rgba(255,255,255,0.08);
    text-align: left;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .journey-steps article > span {
    margin: 0 0 10px;
  }

  .calc-shell {
    padding: 24px 16px;
    gap: 22px;
    border-radius: 24px;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
  }

  .calc-copy {
    padding: 0;
  }

  .calc-copy h2 {
    font-size: 2rem;
  }

  .calc-panel {
    padding: 16px;
  }

  .tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tabs button {
    min-height: 44px;
  }

  .date-label > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .result > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .result a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .tabs button {
    min-height: 44px;
    padding: 10px 6px;
  }

  .doctor {
    border-radius: 22px;
  }

  .doctor-info {
    padding: 18px;
  }

  .doctor-info h3 {
    font-size: 1.15rem;
  }

  .btn.outline {
    min-height: 46px;
  }

  .testimonial {
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

  .cta {
    margin: 0 16px 84px;
    padding: 28px 18px;
    border-radius: 24px;
  }

  .cta > div:last-child {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .cta .btn.white,
  .cta .call {
    width: 100%;
    justify-content: center;
  }

  footer {
    padding: 36px 16px 120px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .mobile-dock {
    display: flex;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 64px;
    border-radius: 18px;
    padding: 0 8px;
    gap: 6px;
    z-index: 9999;
  }

  .mobile-dock a {
    flex: 1;
    min-height: 44px;
    justify-content: center;
    padding: 8px 4px;
    font-size: 10px;
  }

  .mobile-dock span {
    display: block;
    font-size: 10px;
  }

  .mobile-dock .dock-main {
    border-radius: 14px;
    background: linear-gradient(135deg, #2d9cff, #6b53d6);
    color: white;
    padding: 9px 12px;
  }

  /* Ensure footer content isn't hidden behind the mobile dock on small screens */
  footer { padding-bottom: 120px; }
}

/* Strong footer and CTA layout rules to ensure the bottom sections are clear and attractive */
.cta {
  margin: 0 7vw 60px;
  padding: 54px 56px;
  border-radius: 34px;
  background: linear-gradient(135deg, #1c7ee6, #6d53d5 55%, #ff5fa5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 26px 70px rgba(22, 55, 112, 0.18);
}
.cta>div:first-child {
  max-width: 520px;
}
.cta .kicker.light {
  color: #ccdeff;
  letter-spacing: 1px;
}
.cta h2 {
  font-size: clamp(34px, 3.2vw, 44px);
  margin: 18px 0 14px;
}
.cta p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
}
.cta>div:last-child {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta .btn.white {
  background: rgba(255,255,255,0.96);
  color: #184b7b;
  box-shadow: 0 14px 30px rgba(11, 59, 123, 0.18);
  padding: 16px 28px;
}
.cta .call {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 24px;
  padding: 14px 18px;
}
.cta .call span {
  display: grid;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #eef5ff;
}
.cta .call small {
  color: #dbe9ff;
  font-size: 12px;
  font-weight: 700;
}

.footer {
  position: relative;
  background: #f9fcff;
  padding: 48px 7vw 40px;
}
.footer::before {
  content: '';
  position: absolute;
  left: 7vw;
  right: 7vw;
  top: 0;
  height: 1px;
  background: rgba(20, 80, 140, 0.08);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(180px, 1fr));
  gap: 44px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-brand {
  display: grid;
  gap: 18px;
}
.footer-brand h3 {
  font-size: 22px;
}
.footer-brand p {
  font-size: 13px;
  color: #5c748c;
  line-height: 1.8;
  max-width: 330px;
}
.footer-main > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-main h4 {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #203d58;
  margin: 0;
}
.footer-main a {
  display: block;
  color: #5f748b;
  font-size: 12px;
  line-height: 1.7;
}
.footer-main p {
  color: #5f748b;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid #dceaf2;
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  color: #7b8c9c;
}

/* Ensure mobile dock doesn't overlap footer on small screens */
@media (max-width: 680px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { padding-bottom: 60px; flex-direction: column; align-items: flex-start; }
  .footer-bottom span:last-child { margin-top: 10px; }
}

@media (max-width: 900px) {
  .cta { flex-direction: column; padding: 38px 28px; text-align: left; }
  .cta>div:last-child { width: 100%; justify-content: flex-start; }
  .cta .btn.white { width: auto; }
}

@media (max-width: 760px) {
  .footer { padding: 36px 20px 34px; }
  .footer::before { left: 20px; right: 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
}

/* Hide the mobile dock on laptop and larger screens so it doesn't clutter desktop layout */
@media (min-width: 900px) {
  .mobile-dock { display: none !important; }
}

/* Tweak mobile dock appearance on small screens */
@media (max-width: 680px) {
  .mobile-dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: 10px; height: 64px; border-radius: 19px; background: white; box-shadow: 0 10px 40px rgba(36,69,94,0.23); align-items: center; justify-content: space-around; border: 1px solid #e8f1f7; z-index: 9999; }
  .mobile-dock a { display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10px; color:#607587; }
  .mobile-dock span { display: none; } /* hide labels to keep it compact */
  .mobile-dock .dock-main { padding: 9px 14px; }
}

/* Hide the mobile dock on laptop and larger screens so it doesn't clutter desktop layout */
@media (min-width: 1024px) {
  .mobile-dock { display: none !important; }
}

/* Tweak mobile dock appearance on small screens */
@media (max-width: 680px) {
  .mobile-dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: 10px; height: 64px; border-radius: 19px; background: white; box-shadow: 0 10px 40px rgba(36,69,94,0.23); align-items: center; justify-content: space-around; border: 1px solid #e8f1f7; z-index: 9999; }
  .mobile-dock a { display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10px; color:#607587; }
  .mobile-dock span { display: none; } /* hide labels to keep it compact */
  .mobile-dock .dock-main { padding: 9px 14px; }
}
