/* Dental Master Ultimate — transparent header, full-screen navigation, mobile action rail */
:root { --nav-gold: #D1B886; }

#header.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  width: 100%; min-height: 78px; padding: 0 clamp(20px, 5vw, 72px);
  color: #fff; background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
#header.header.scrolled {
  background: rgba(10, 10, 10, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: none;
}
#header .brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; color: #fff; filter: drop-shadow(0 2px 7px rgba(0,0,0,.7)); }
#header .brand-glyph { color: var(--nav-gold); font-size: 20px; }
#header .brand-text strong { color: #fff; font-size: 19px; }
#header .brand-sub { color: var(--nav-gold); font-size: 8px; letter-spacing: .19em; }
#header .head-actions { display: flex; align-items: center; gap: 0; margin-left: auto; }
.header-phone, #header .hamb { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--nav-gold); background: transparent; border: 0; filter: drop-shadow(0 1px 5px rgba(0,0,0,.75)); cursor: pointer; }
.header-phone svg, .nav-overlay-phone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#header .hamb { display: grid; font-size: 20px; }
#header .hamb:hover, .header-phone:hover { color: #fff; transform: translateY(-1px); }

/* Full-screen black overlay; visibility prevents hidden menu controls entering tab order. */
.nav-overlay {
  position: fixed; inset: 0; z-index: 2000; width: 100vw; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(20px, 4vw, 42px) clamp(22px, 7vw, 96px);
  color: #F5F5F0; background: #0A0A0A; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s ease, visibility .4s ease;
}
.nav-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-overlay-backdrop { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: default; }
.nav-overlay-inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(1060px, 100%); min-height: 100%; margin: 0 auto; }
.nav-overlay-header { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-overlay-header .brand { display: inline-flex; align-items: center; gap: 9px; color: #F5F5F0; font-family: 'Playfair Display', Georgia, serif; font-size: 15px; }
.nav-overlay-header .brand-glyph { color: var(--nav-gold); }
.nav-overlay-phone { position: absolute; left: 50%; display: inline-flex; align-items: center; gap: 9px; color: var(--nav-gold); font: 600 12px/1 'Inter', sans-serif; letter-spacing: .04em; transform: translateX(-50%); }
.nav-overlay-phone:hover { color: #fff; }
.mobile-nav-close { display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #F5F5F0; background: rgba(255,255,255,.04); font-size: 20px; cursor: pointer; }
.mobile-nav-close:hover { color: var(--nav-gold); border-color: var(--nav-gold); }
.nav-overlay-links { display: flex; flex-direction: column; width: min(760px, 100%); margin: auto; padding: 20px 0; }
.nav-overlay-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 72px; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #F5F5F0; background: transparent; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 5vw, 40px); line-height: 1.08; text-align: left; cursor: pointer; transition: color .2s ease, padding .2s ease; }
.nav-overlay-link > span:last-child { color: var(--nav-gold); font-family: 'Inter', sans-serif; font-size: 17px; transition: transform .2s ease; }
.nav-overlay-link:hover { color: var(--nav-gold); padding-left: 7px; }
.nav-overlay-link:hover > span:last-child { transform: translate(3px,-3px); }
.nav-services-toggle .nav-chevron { width: 24px; height: 24px; fill: none; stroke: var(--nav-gold); stroke-width: 1.7; transition: transform .24s ease; }
.nav-services-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.sub-menu[hidden] { display: none; }
.sub-menu:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 32px; padding: 22px 0 27px; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-service-category p { margin: 0 0 7px; color: var(--nav-gold); font: 700 10px/1.4 'Inter', sans-serif; letter-spacing: .19em; text-transform: uppercase; }
.nav-service-category a { display: block; padding: 8px 0; color: #E0E0E0; font: 400 15px/1.5 'Inter', sans-serif; transition: color .18s ease, padding-left .18s ease; }
.nav-service-category a:hover { padding-left: 4px; color: var(--nav-gold); }
.nav-overlay-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.nav-bottom-controls { display: flex; align-items: center; gap: 14px; }
.nav-overlay .lang-switch { min-height: 42px; padding: 8px 15px; border-color: rgba(255,255,255,.2); color: #E0E0E0; background: transparent; }
.nav-overlay .lang-switch .active { color: var(--nav-gold); }
.nav-overlay .theme-toggle-menu { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #E0E0E0; background: transparent; font: 600 11px 'Inter', sans-serif; cursor: pointer; }
.nav-overlay .theme-toggle-menu i { color: var(--nav-gold); }
.nav-overlay .theme-toggle-menu:hover { border-color: var(--nav-gold); color: var(--nav-gold); }
.nav-booking { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; color: #111; background: linear-gradient(135deg, #D1B886, #E5C995); font: 700 11px 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.nav-booking:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Floating three-action mobile rail: call · booking · AI assistant */
.floating-bottom-bar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 100px !important; }
  .floating-bottom-bar {
    position: fixed; z-index: 999; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: calc(100% - 56px); max-width: 300px; height: 56px; padding: 0 8px;
    border: 1px solid rgba(255,255,255,.15); border-radius: 50px;
    color: #F5F5F0; background: rgba(20,20,20,.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,.5); transform: translateX(-50%);
  }
  .mobile-bar-icon, .mobile-ai-trigger { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: var(--nav-gold); background: transparent; cursor: pointer; }
  .mobile-bar-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-ai-trigger { border: 1px solid rgba(229,201,149,.55); color: #111; background: linear-gradient(145deg, #f5ddb0, #c7a86c); box-shadow: 0 4px 14px rgba(209,184,134,.28); }
  .mobile-ai-trigger i { font-size: 15px; line-height: 1; }
  .mobile-ai-trigger:hover, .mobile-ai-trigger[aria-expanded="true"] { color: #111; background: linear-gradient(145deg, #ffeac0, #d1b886); transform: translateY(-1px); }
  .btn-gold-center { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; min-height: 38px; padding: 10px 14px; border: 0; border-radius: 30px; color: #000; background: linear-gradient(135deg, #D1B886, #E5C995); font: 600 10px/1 'Inter', sans-serif; letter-spacing: .07em; text-align: center; text-transform: uppercase; white-space: nowrap; }
  .btn-gold-center:hover { filter: brightness(1.06); transform: translateY(-1px); }
  .ai-widget { right: 20px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .ai-widget .ai-launcher { display: none; }
  .ai-widget .ai-panel { right: -2px; bottom: 0; width: min(390px, calc(100vw - 32px)); height: min(570px, calc(100dvh - 185px)); min-height: 300px; }
}
@media (min-width: 769px) {
  body { padding-bottom: 0 !important; }
  .floating-bottom-bar { display: none !important; }
}
@media (max-width: 520px) {
  #header.header { min-height: 68px; padding-inline: 18px; }
  #header .brand-text strong { font-size: 16px; }
  #header .brand-sub { font-size: 7px; }
  #header .head-actions { gap: 12px; }
  .nav-overlay { padding: 18px 22px calc(24px + env(safe-area-inset-bottom)); }
  .nav-overlay-header { padding-bottom: 15px; }
  .nav-overlay-header .brand { font-size: 12px; }
  .nav-overlay-phone span { display: none; }
  .nav-overlay-links { margin: 18px 0; }
  .nav-overlay-link { min-height: 59px; font-size: 29px; }
  .sub-menu:not([hidden]) { grid-template-columns: 1fr; gap: 14px; padding-top: 17px; }
  .nav-overlay-bottom { align-items: stretch; flex-direction: column; gap: 12px; padding-top: 14px; }
  .nav-bottom-controls { justify-content: space-between; }
  .nav-booking { justify-content: center; }
  .floating-bottom-bar { width: calc(100% - 56px); max-width: 300px; padding-inline: 8px; }
  .btn-gold-center { padding-inline: 10px; font-size: 9px; letter-spacing: .05em; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-overlay, .nav-overlay * { transition-duration: .01ms !important; }
}

@media print {
  body.booking-pass-open * { visibility: hidden !important; }
  body.booking-pass-open .booking-success-overlay,
  body.booking-pass-open .booking-success-overlay * { visibility: visible !important; }
  body.booking-pass-open .booking-success-overlay { position: absolute; inset: 0; display: block !important; width: auto; height: auto; padding: 0; background: #fff; opacity: 1; overflow: visible; }
  body.booking-pass-open .booking-pass-card { width: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; animation: none; }
  body.booking-pass-open .booking-pass-close,
  body.booking-pass-open .booking-pass-tools,
  body.booking-pass-open .booking-pass-done { display: none !important; }
}


/* Final reference layout: wordmark left; phone and hamburger grouped on the right. */
#header.header { justify-content: space-between; gap: 18px; }
#header .brand { margin-right: 0; }
#header .head-actions { gap: 12px; margin-left: 0; }
#header .header-phone { width: 50px; height: 50px; border: 1px solid rgba(209,184,134,.48); border-radius: 50%; background: rgba(10,10,10,.12); }
#header .header-phone svg { width: 21px; height: 21px; }
#header .hamb { width: 38px; height: 44px; margin-left: 2px; border-radius: 0; background: transparent; box-shadow: none; }

/* Compact bottom pill follows the reference: call · schedule · accessibility. */
@media (max-width: 768px) {
  body { padding-bottom: 90px !important; }
  .floating-bottom-bar { width: min(300px, calc(100% - 52px)); max-width: 300px; height: 56px; gap: 6px; padding: 0 8px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .mobile-bar-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--nav-gold); background: transparent; cursor: pointer; touch-action: manipulation; }
  .mobile-bar-icon:hover { color: #fff; background: rgba(255,255,255,.1); }
  .btn-gold-center { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 30px; color: #111; background: linear-gradient(135deg, #D1B886, #E5C995); font: 700 10px/1 'Inter', sans-serif; letter-spacing: .13em; text-align: center; text-transform: uppercase; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
  .btn-gold-center svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .ai-widget { right: 20px; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .ai-widget .ai-launcher { display: none; }
  .mobile-accessibility-panel { position: fixed; z-index: 1001; right: max(26px, calc((100vw - 300px) / 2)); bottom: calc(82px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 5px; width: min(242px, calc(100vw - 52px)); padding: 9px; border: 1px solid rgba(209,184,134,.34); border-radius: 18px; color: #F5F5F0; background: rgba(15,15,15,.96); box-shadow: 0 16px 42px rgba(0,0,0,.48); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(7px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
  .mobile-accessibility-panel.active { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .mobile-a11y-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 10px; color: inherit; background: transparent; font: 600 12px 'Inter', sans-serif; text-align: left; cursor: pointer; }
  .mobile-a11y-option:hover, .mobile-a11y-option[aria-pressed="true"] { color: var(--nav-gold); background: rgba(255,255,255,.08); }
  .a11y-option-icon { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; color: var(--nav-gold); font-weight: 800; }
}
@media (min-width: 769px) { .mobile-accessibility-panel { display: none; } }
@media (max-width: 520px) {
  #header.header { justify-content: space-between; min-height: 68px; padding-inline: 18px; }
  #header .brand-text strong { font-size: 16px; }
  #header .brand-sub { font-size: 7px; }
  #header .head-actions { gap: 8px; }
  #header .header-phone { width: 42px; height: 42px; }
  #header .hamb { width: 34px; }
  .floating-bottom-bar { width: min(300px, calc(100% - 52px)); max-width: 300px; height: 56px; }
  .btn-gold-center { padding-inline: 9px; font-size: 9px; letter-spacing: .11em; }
}

/* One-tap accessibility settings, available from the single mobile pill. */
html.a11y-large-text { font-size: 110%; }
body.a11y-high-contrast { --muted: #222; --line: rgba(0,0,0,.45); --line-strong: rgba(0,0,0,.7); }
body.dark.a11y-high-contrast { --muted: #F1F1F1; --line: rgba(255,255,255,.48); --line-strong: rgba(255,255,255,.72); }
body.a11y-high-contrast :focus-visible { outline: 3px solid #E1B34F !important; outline-offset: 3px; }

/* Booking success focus mode: blur and darken the page, never the pass card. */
body.booking-pass-open { overflow: hidden !important; }
.booking-success-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; width: 100vw; height: 100vh; height: 100dvh; padding: 20px; background: rgba(4,31,32,.58); backdrop-filter: blur(18px) saturate(.72); -webkit-backdrop-filter: blur(18px) saturate(.72); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility .28s ease; }
.booking-success-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.booking-success-backdrop { position: absolute; inset: 0; }
.booking-pass-card { --pass-accent: #D1B886; --pass-deep: #0A5A5C; --pass-header: #0B5558; position: relative; z-index: 1; width: min(680px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 0 24px 24px; border: 1px solid color-mix(in srgb, var(--pass-accent) 72%, #fff); border-radius: 28px; color: #123337; background: #F8F7F1; box-shadow: 0 32px 100px rgba(0,0,0,.55); filter: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: bookingPassReveal .46s cubic-bezier(.2,.8,.2,1) both; }
.booking-pass-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 -24px 0; padding: 24px 24px 30px; border-radius: 28px 28px 0 0; color: #F8F7F1; background: radial-gradient(circle at 78% 5%, rgba(80,164,153,.45), transparent 34%), linear-gradient(135deg, var(--pass-header), #06373A); position: relative; overflow: hidden; }
.booking-pass-header::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: -22px; height: 48px; border-radius: 50%; background: #F8F7F1; transform: rotate(-2deg); }
.booking-pass-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(0,0,0,.12); border-radius: 50%; color: #343630; background: transparent; font-size: 25px; line-height: 1; cursor: pointer; }
.booking-pass-close:hover { color: #000; background: rgba(0,0,0,.06); }
.booking-pass-brand { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 2px 8px; max-width: calc(100% - 38px); }
.booking-pass-mark { grid-row: span 2; color: var(--pass-accent); font-size: 29px; }
.booking-pass-brand strong { overflow: hidden; color: #F8F7F1; font: 700 17px/1.1 'Inter', sans-serif; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.booking-pass-brand small { color: var(--pass-accent); font: 700 8px/1.4 'Inter', sans-serif; letter-spacing: .15em; }
.booking-pass-status { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 9px 13px; border: 1px solid rgba(202,240,207,.32); border-radius: 999px; color: #DFF5E4; background: rgba(83,178,108,.6); font: 700 9px 'Inter', sans-serif; letter-spacing: .12em; }
.booking-pass-status > span:first-child { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: #507A53; font-size: 11px; }
.booking-pass-heading { position: relative; z-index: 2; padding: 5px 10px 21px; text-align: center; }
.booking-pass-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 8px; color: #8C6C3B; font: 700 9px 'Inter', sans-serif; letter-spacing: .2em; }
.booking-pass-eyebrow::before, .booking-pass-eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--pass-accent); }
.booking-pass-card h2 { margin: 0 0 7px; color: var(--pass-deep); font: 600 clamp(28px, 5vw, 42px)/1.05 'Playfair Display', Georgia, serif; letter-spacing: -.035em; }
.booking-pass-copy { max-width: 520px; margin: 0 auto; color: #4D6668; font: italic 400 17px/1.4 'Inter', sans-serif; }
.booking-pass-date-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 16px; overflow: hidden; border: 1px solid rgba(10,90,92,.12); border-radius: 15px; background: rgba(10,90,92,.12); }
.booking-pass-date-item { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 16px; background: #FFFEFA; }
.booking-pass-date-item > i { color: var(--pass-deep); font-size: 25px; }
.booking-pass-date-item dt, .booking-pass-date-item dd { margin: 0; }
.booking-pass-date-item dt { color: #527174; font: 700 9px 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.booking-pass-date-item dd { margin-top: 5px; overflow-wrap: anywhere; color: #14393D; font: 700 16px/1.25 'Inter', sans-serif; }
.booking-pass-details { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1px; margin: 0 0 16px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); border-radius: 14px; background: rgba(0,0,0,.1); }
.booking-pass-details > div { min-width: 0; padding: 13px; background: #FBFAF6; }
.booking-pass-details dt { margin: 0 0 5px; color: #668082; font: 700 8px 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.booking-pass-details dd { margin: 0; overflow-wrap: anywhere; color: #163B3F; font: 600 12px/1.4 'Inter', sans-serif; }
.booking-pass-reference { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 14px; border: 1px solid rgba(10,90,92,.16); border-radius: 14px; background: #fff; }
.booking-pass-reference-text { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.booking-pass-reference-text > span { color: #76786F; font: 700 8px 'Inter', sans-serif; letter-spacing: .12em; }
.booking-pass-reference-text strong { overflow-wrap: anywhere; color: #161715; font: 700 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.booking-pass-qr-block { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 82px; }
.booking-pass-qr { display: grid; place-items: center; width: 76px; height: 76px; padding: 5px; border: 1px solid #E1DED5; border-radius: 8px; background: #fff; }
.booking-pass-qr svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.booking-pass-qr-block small { max-width: 100px; color: #76786F; font: 500 7px/1.3 'Inter', sans-serif; text-align: center; }
.booking-pass-protected { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 17px; padding: 13px 18px; border: 1px solid rgba(10,90,92,.18); border-radius: 15px; color: var(--pass-deep); background: #E6F4F1; text-align: left; }
.booking-pass-protected > i { font-size: 28px; color: var(--pass-deep); }
.booking-pass-protected strong, .booking-pass-protected span { display: block; }
.booking-pass-protected strong { margin-bottom: 2px; font: 700 13px 'Inter', sans-serif; }
.booking-pass-protected span { font: 400 11px/1.4 'Inter', sans-serif; }
.booking-pass-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 10px; }
.booking-pass-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 10px; border: 1px solid rgba(10,90,92,.22); border-radius: 999px; color: var(--pass-deep); background: rgba(230,244,241,.72); font: 700 9px/1.2 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.booking-pass-tool:hover { background: #E6F4F1; transform: translateY(-1px); }
.booking-pass-tool i { font-size: 13px; }
.booking-pass-done { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; color: #151612; background: linear-gradient(135deg, #D1B886, #E5C995); font: 700 10px 'Inter', sans-serif; letter-spacing: .11em; text-transform: uppercase; cursor: pointer; }
.booking-pass-done:hover { filter: brightness(1.04); transform: translateY(-1px); }
@keyframes bookingPassReveal { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) {
  .booking-success-overlay { padding: 13px; }
  .booking-pass-card { max-height: calc(100dvh - 26px); padding: 0 14px 17px; border-radius: 21px; }
  .booking-pass-header { margin-inline: -14px; padding: 20px 16px 26px; border-radius: 21px 21px 0 0; }
  .booking-pass-brand strong { font-size: 14px; }
  .booking-pass-heading { padding-inline: 2px; }
  .booking-pass-copy { font-size: 14px; }
  .booking-pass-date-item { gap: 8px; padding: 11px 9px; }
  .booking-pass-date-item > i { font-size: 19px; }
  .booking-pass-date-item dd { font-size: 12px; }
  .booking-pass-status { margin-top: 0; }
  .booking-pass-details { grid-template-columns: 1fr 1fr; }
  .booking-pass-details > div { padding: 10px; }
  .booking-pass-details > div:last-child { grid-column: 1 / -1; }
  .booking-pass-reference { gap: 10px; padding: 11px; }
  .booking-pass-reference-text strong { font-size: 12px; }
  .booking-pass-qr-block { flex-basis: 72px; }
  .booking-pass-qr { width: 68px; height: 68px; }
  .booking-pass-tools { grid-template-columns: 1fr; gap: 7px; }
  .booking-pass-tool { min-height: 40px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .booking-pass-card, .booking-success-overlay { animation: none; transition-duration: .01ms !important; } }

@media (max-width: 768px) {
  .whatsapp-btn, .to-top { display: none !important; }
}

/* Compact clinic wordmark inspired by the reference lockup, using this site's own brand data. */
#header .brand, .nav-overlay-header .brand { gap: 0; padding: 5px 10px 5px 5px; border: 1px solid rgba(255,255,255,.78); background: rgba(8,8,8,.24); }
#header .brand-glyph, .nav-overlay-header .brand-glyph { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; margin-right: 8px; color: #101010; background: #F7F5EE; font-size: 16px; }
#header .brand-text strong, .nav-overlay-header .brand-text strong { display: block; max-width: 150px; overflow: hidden; color: #fff; font: 700 12px/1.2 'Inter', sans-serif; letter-spacing: .11em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
#header .brand-sub, .nav-overlay-header .brand-sub { display: block; margin-top: 2px; color: var(--nav-gold); font: 600 6px/1.2 'Inter', sans-serif; letter-spacing: .17em; }
@media (max-width: 520px) { #header .brand { padding: 4px 7px 4px 4px; } #header .brand-glyph { flex-basis: 27px; width: 27px; height: 27px; margin-right: 7px; } #header .brand-text strong { max-width: 122px; font-size: 10px; } #header .brand-sub { font-size: 5px; } }

@media (max-width: 900px) {
  .hero { height: auto; max-height: none; align-items: flex-start; }
  .hero-grid { align-items: start; }
}

@media (max-width: 768px) {
  .mobile-ai-trigger { color: var(--nav-gold); }
  .mobile-ai-trigger i { font-size: 15px; line-height: 1; }
  .mobile-ai-trigger[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.1); }
}

/* Mobile polish: keep the gallery controls anchored to the image, not the viewport. */
.gallery-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gallery-modal-card { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 1100px); max-height: calc(100dvh - 48px); }
.gallery-modal-figure { position: relative; width: 100%; margin: 0; }
.gallery-modal-figure img { display: block; width: 100%; max-height: calc(100dvh - 100px); object-fit: contain; border-radius: 16px; }
.gallery-modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(15,15,15,.58); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; }
.gallery-nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(15,15,15,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; transform: translateY(-50%); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-nav:hover, .gallery-modal-close:hover { color: var(--nav-gold); background: rgba(15,15,15,.82); }
@media (max-width: 768px) {
  body { padding-bottom: 120px !important; }
  .floating-bottom-bar { height: 50px; padding: 0 7px; gap: 5px; align-items: center; }
  .mobile-bar-icon, .mobile-ai-trigger { flex-basis: 36px; width: 36px; height: 36px; }
  .btn-gold-center { min-height: 36px; padding-block: 8px; }
  .gallery-modal { padding: 18px; }
  .gallery-modal-card { max-height: calc(100dvh - 36px); }
  .gallery-modal-close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .gallery-nav { width: 40px; height: 40px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
}
@media (max-width: 768px) { #header.header.scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; } }

/* Requested glass header: clear at the top, translucent once scrolling begins. */
#header.header { background: transparent; }
#header.header.scrolled {
  background: rgba(15, 15, 15, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  #header.header.scrolled {
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .cookie-banner { bottom: calc(100px + env(safe-area-inset-bottom)); }
}
