:root {
  color-scheme: light;
  --navy: #1a3043;
  --deep-navy: #142737;
  --cream: #f7f3ed;
  --white: #fcf8f1;
  --gold: #e0ba75;
  --gold-dark: #7c591f;
  --muted-light: #d4dce2;
  --muted-dark: #475968;
  --line-light: #ffffff2e;
  --line-dark: #1a304329;
  --frame: min(77rem, calc(100% - clamp(2.25rem, 10vw, 10rem)));
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--white); background: var(--navy); font: 1rem/1.6 var(--sans); }
main, section { display: block; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section[id], #equipe, .team-profile { scroll-margin-top: 1.5rem; }
p, h1, h2, h3, figure { margin: 0; }

.frame { width: var(--frame); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.4rem; height: 1.4rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 3; padding: .65rem 1rem; color: var(--navy); background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: var(--navy); }
.header-inner { display: flex; min-height: 5.65rem; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line-light); }
.brand { display: inline-flex; flex: none; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 1.95rem; height: auto; }
.brand-wordmark { width: 9.15rem; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(1.05rem, 2.3vw, 2.7rem); }
.site-nav a, .footer-social { text-decoration: none; transition: color .2s ease; }
.site-nav a { white-space: nowrap; font-size: .94rem; }
.site-nav a:hover, .footer-social:hover { color: var(--gold); }
.menu-toggle { display: none; }

.button { display: inline-flex; min-height: 3.35rem; justify-content: center; align-items: center; gap: .6rem; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: .35rem; font-weight: 700; font-size: .94rem; line-height: 1.25; text-align: center; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button .icon { width: 1.25rem; height: 1.25rem; }
.button-outline { min-height: 2.8rem; flex: none; color: var(--gold); border-color: #e0ba758f; }
.button-outline:hover { color: var(--deep-navy); background: var(--gold); border-color: var(--gold); }
.button-gold { background: var(--gold); color: var(--deep-navy); }
.button-gold:hover { background: #f1d39f; }
.button-navy { background: var(--navy); color: var(--white); }
.button-navy:hover { background: #294b65; }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .95rem; font-weight: 650; text-decoration-color: #e0ba75b5; text-decoration-thickness: 1px; text-underline-offset: .4rem; transition: color .2s ease; }
.text-link:hover { color: var(--gold); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 12% 35%, #254257 0%, var(--navy) 51%, var(--deep-navy) 100%); }
.hero::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 105% 52%, #d5af6822, transparent 53%); content: ''; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1.75rem, 5vw, 5rem); padding-block: clamp(2.35rem, 4vw, 3.7rem); }
.hero-copy { padding-block: 1.75rem 2.25rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--gold); font-size: .83rem; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { width: 1.6rem; flex: none; height: 1px; background: currentColor; content: ''; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.065em; line-height: 1.035; }
h1 { max-width: 11em; margin-top: 1.25rem; font-size: clamp(2.9rem, 5vw, 4.8rem); }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
h1 em { display: block; }
.hero-description { max-width: 29rem; margin-top: 1.6rem; color: var(--muted-light); font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.45rem; margin-top: 1.9rem; }
.hero-portrait { aspect-ratio: .97; overflow: hidden; border: 1px solid #e0ba7570; border-radius: .5rem .5rem 4rem .5rem; background: #c5b9a9; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 37%; }
.quick-links { display: grid; grid-template-columns: .92fr 1fr 1.15fr; border-top: 1px solid var(--line-light); }
.quick-links a { position: relative; display: flex; min-width: 0; min-height: 6.1rem; align-items: center; gap: 1rem; text-decoration: none; line-height: 1.4; }
.quick-links a + a { padding-left: clamp(1rem, 4vw, 3.3rem); }
.quick-links a + a::before { position: absolute; inset: 27% auto 27% 0; width: 1px; background: var(--line-light); content: ''; }
.quick-links .icon { color: var(--gold); }
.quick-links small { display: block; margin-bottom: .17rem; color: var(--muted-light); font-size: .82rem; }
.quick-links a:hover span { color: var(--gold); }

.section-light { background: var(--cream); color: var(--navy); }
.section-light .eyebrow, .section-light h2 em, .section-light .text-link:hover { color: var(--gold-dark); }
.section-light .text-link { text-decoration-color: #7c591f99; }
h2 { margin-top: .95rem; font-size: clamp(2.6rem, 4.55vw, 4.35rem); }
.about, .services, .gallery, .visit, .location { padding-block: clamp(4.4rem, 8vw, 7.35rem); }
.about-inner { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.about-photos { position: relative; isolation: isolate; padding: 0 20% 2.5rem 0; }
.about-main-photo { width: 100%; aspect-ratio: .91; object-fit: cover; object-position: center 35%; border-radius: .45rem .45rem .45rem 3.1rem; }
.about-detail-photo { position: absolute; right: 0; bottom: 0; width: 51%; height: auto; aspect-ratio: 1.47; object-fit: cover; object-position: center 49%; border: .44rem solid var(--cream); border-radius: .5rem; }
.about-copy h2 em { display: block; }
.about-copy > p:not(.eyebrow) { max-width: 35rem; margin-top: 1rem; color: var(--muted-dark); font-size: 1.08rem; }
.about-copy > h2 + p { margin-top: 1.4rem; }
.about-copy .text-link { margin-top: .9rem; }

.services { background: radial-gradient(ellipse at 100% 10%, #294960, var(--navy) 64%); }
.services h2, .gallery h2 { margin-top: 0; }
.implant-feature { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; margin-top: 2rem; border: 1px solid var(--line-light); border-radius: .55rem .55rem 2.5rem .55rem; background: var(--deep-navy); }
.implant-feature > img { width: 100%; height: 100%; min-height: 21rem; object-fit: cover; object-position: 52% 45%; }
.implant-copy { align-self: center; padding: clamp(1.5rem, 4.3vw, 3.6rem); }
.implant-copy h3 { font: 400 clamp(1.85rem, 3.25vw, 3rem)/1.08 var(--serif); letter-spacing: -.04em; }
.implant-copy p { max-width: 34rem; margin-top: .8rem; color: var(--muted-light); }
.implant-copy .button { margin-top: 1.2rem; }
.implant-copy .text-link { display: flex; width: fit-content; margin-top: .35rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.service-grid article { padding: 1.35rem clamp(1.25rem, 2.7vw, 2.05rem); border: 1px solid var(--line-light); border-radius: .45rem; background: #ffffff06; }
.service-grid h3 { font-size: 1.18rem; }
.service-grid p { max-width: 33rem; margin-top: .45rem; color: var(--muted-light); }

.team-profile { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(15.5rem, 1fr); align-items: center; gap: 1.6rem; margin-top: 2rem; padding: clamp(1.25rem, 3.5vw, 2.35rem); border: 1px solid var(--line-dark); border-radius: .55rem; background: #fffaf3; }
.team-identity { display: flex; align-items: center; gap: clamp(.8rem, 2.3vw, 1.6rem); }
.team-identity > img { width: clamp(4rem, 12vw, 9rem); height: auto; flex: none; aspect-ratio: .83; object-fit: cover; object-position: center 28%; border-radius: .4rem; }
.team-registration { color: var(--gold-dark); font-size: .9rem; font-weight: 700; }
.team-profile h3 { margin-top: .4rem; font: 400 clamp(1.55rem, 3.15vw, 2.6rem)/1.12 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
.team-credentials { margin: 0; padding-left: 1.25rem; border-left: 1px solid var(--line-dark); color: var(--muted-dark); list-style: none; }
.team-credentials li + li { margin-top: .25rem; }
.gallery-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.gallery-photo { position: relative; isolation: isolate; height: clamp(14rem, 25vw, 21.5rem); overflow: hidden; border-radius: .45rem; color: var(--white); background: var(--navy); text-decoration: none; }
.gallery-photo::after { position: absolute; inset: 52% 0 0; background: linear-gradient(transparent, #0a1723dc); pointer-events: none; content: ''; }
.gallery-photo:focus-visible { outline-color: var(--navy); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .35s ease; }
.gallery-photo-wide img { object-position: center 47%; }
.gallery-photo:hover img { transform: scale(1.035); }
.gallery-caption { position: absolute; z-index: 1; right: .75rem; bottom: .85rem; left: .95rem; font-size: .94rem; font-weight: 650; line-height: 1.25; }
.gallery-zoom { position: absolute; z-index: 1; top: .65rem; right: .65rem; display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border: 1px solid #fff6; border-radius: 50%; background: #142737e8; }
.gallery-zoom .icon { width: 1.15rem; height: 1.15rem; }

.gallery-dialog:not([open]) { display: none; }
.gallery-dialog { width: min(63rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid #fff4; border-radius: .6rem; color: var(--white); background: var(--deep-navy); }
.gallery-dialog::backdrop { background: #0a1723dc; }
.gallery-dialog-body { padding: clamp(.8rem, 2vw, 1.4rem); }
.gallery-dialog form { display: flex; justify-content: flex-end; margin-bottom: .6rem; }
.gallery-dialog button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: .5rem; padding: .4rem .68rem; border: 1px solid var(--line-light); border-radius: .35rem; color: var(--white); background: transparent; cursor: pointer; font-size: .92rem; }
.gallery-dialog button:hover { border-color: var(--gold); color: var(--gold); }
.gallery-close span { font-size: 1.3rem; line-height: 1; }
.gallery-full-photo { width: 100%; height: min(65dvh, 40rem); object-fit: contain; background: #0e1d29; }
.gallery-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; margin-top: .65rem; }
.gallery-full-caption { font-size: .94rem; text-align: center; }

.visit { background: var(--navy); }
.visit-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-block: 2.2rem 1.8rem; }
.visit-steps article { padding: clamp(1.3rem, 2.85vw, 2.3rem); border: 1px solid var(--line-light); border-radius: .5rem; background: #ffffff06; }
.visit-steps .icon { width: 1.85rem; height: 1.85rem; color: var(--gold); }
.visit-steps h3 { margin-top: .9rem; font-size: 1.1rem; }
.visit-steps p { margin-top: .55rem; color: var(--muted-light); }

.location-inner { display: grid; grid-template-columns: .94fr 1fr; align-items: start; gap: clamp(2.2rem, 7.8vw, 7rem); }
.location address, .location-phones { display: flex; align-items: flex-start; gap: .8rem; color: var(--muted-dark); font-style: normal; }
.location address { margin-top: 1.6rem; }
.location address strong { color: var(--navy); }
.location address .icon, .location-phones .icon { color: var(--gold-dark); margin-top: .18rem; }
.location-phones { align-items: center; margin-top: 1rem; }
.location-phones > div { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.location-phones a, .faq p a { color: var(--navy); text-underline-offset: .2em; }
.location-phones a:hover, .faq p a:hover { color: var(--gold-dark); }
.location-copy > .button { margin-top: 1.5rem; }
.faq { padding: clamp(1.2rem, 3vw, 2.2rem); border: 1px solid var(--line-dark); border-radius: .6rem; background: #fffaf3; }
.faq h3 { margin-bottom: 1.15rem; font: 400 clamp(1.5rem, 3vw, 2rem)/1.2 var(--serif); letter-spacing: -.04em; }
.faq details { border-top: 1px solid var(--line-dark); }
.faq summary { position: relative; padding: 1rem 2rem 1rem 0; cursor: pointer; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: .2rem; top: 50%; width: 1rem; height: 1rem; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; color: var(--gold-dark); transform: translateY(-50%); content: ''; }
.faq details[open] summary::after { background-size: 100% 1px, 0 0; }
.faq details p { padding: 0 .6rem 1.1rem 0; color: var(--muted-dark); }

.site-footer { background: var(--deep-navy); }
.footer-inner { display: flex; min-height: 7.25rem; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1.5rem; }
.footer-inner p { color: var(--muted-light); font-size: .88rem; }
.footer-social { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .45rem; font-size: .92rem; }
.footer-social .icon { color: var(--gold); width: 1.2rem; height: 1.2rem; }

@media (max-width: 960px) {
  .header-inner { gap: 1rem; }
  .site-nav { gap: 1.1rem; }
  .hero-inner { gap: 1.85rem; }
  .hero-actions { gap: .45rem 1rem; }
  .quick-links a { gap: .65rem; }
  .quick-links a + a { padding-left: 1rem; }
  .quick-links a span { overflow-wrap: anywhere; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 4.5rem; flex-wrap: wrap; gap: 0 1rem; }
  .brand-mark { width: 1.65rem; }
  .brand-wordmark { width: 8rem; }
  .header-action { display: none; }
  .menu-toggle:not([hidden]) { display: inline-flex; min-height: 2.8rem; align-items: center; gap: .65rem; padding: .4rem .65rem; border: 1px solid var(--line-light); border-radius: .35rem; color: var(--white); background: transparent; cursor: pointer; }
  .menu-bars { display: block; width: .95rem; height: .64rem; border-block: 1px solid currentColor; }
  .site-nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 0 1rem; padding-bottom: .45rem; }
  .site-nav a { display: flex; min-height: 2.75rem; align-items: center; }
  .header-inner:has(.menu-toggle[aria-expanded="false"]:not([hidden])) .site-nav { display: none; }
}

@media (max-width: 760px) {
  :root { --frame: calc(100% - 2.5rem); }
  .hero-inner { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.3rem 1.65rem; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(2.55rem, 8.6vw, 4.1rem); margin-top: .85rem; }
  .hero-description { margin-top: .95rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-portrait { aspect-ratio: 1.11; border-bottom-right-radius: 2.6rem; }
  .hero-portrait img { object-position: center 34%; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: .3rem .65rem; }
  .quick-links a { min-height: 4.3rem; }
  .quick-links a:last-child { grid-column: 1 / -1; min-height: 3.9rem; padding-left: 0; border-top: 1px solid var(--line-light); }
  .quick-links a:last-child::before { content: none; }
  .quick-links small { margin-bottom: 0; }
  .about, .services, .gallery, .visit, .location { padding-block: 3.75rem; }
  .about-inner, .location-inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .about-copy { grid-row: 1; }
  .about-copy h2 em { display: inline; }
  .about-photos { width: min(100%, 34rem); }
  .implant-feature { grid-template-columns: 1fr; margin-top: 1.35rem; }
  .implant-feature > img { height: clamp(12rem, 62vw, 25rem); min-height: 0; }
  .service-grid { grid-template-columns: 1fr; gap: .7rem; margin-top: .7rem; }
  .team-profile { grid-template-columns: 1fr; gap: .9rem; margin-top: 1.35rem; }
  .team-identity > img { width: clamp(4rem, 20vw, 6.5rem); }
  .team-credentials { padding: .85rem 0 0; border-top: 1px solid var(--line-dark); border-left: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .gallery-photo { height: auto; aspect-ratio: .78; }
  .gallery-photo-wide { grid-column: 1 / -1; aspect-ratio: 1.5; }
  .visit-steps { grid-template-columns: 1fr; gap: .7rem; margin-top: 1.5rem; }
  .visit-steps article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .4rem .85rem; }
  .visit-steps h3, .visit-steps p { margin-top: 0; }
  .visit-steps p { grid-column: 2; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 1; width: 100%; }
}

@media (max-width: 360px) {
  :root { --frame: calc(100% - 2rem); }
  .quick-links a { gap: .4rem; font-size: .92rem; }
  .quick-links a + a { padding-left: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
