:root {
  --ivory: #F6F3EC;
  --sage: #A3B39C;
  --beige: #D8D2C5;
  --gray: #777A72;
  --charcoal: #292D29;
  --white: #FFFFFF;
  --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--ivory);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; scroll-margin-top: var(--header-height); }
.hero[id] { scroll-margin-top: calc(var(--header-height) + 12px); }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: var(--charcoal); color: var(--ivory); padding: 10px 16px; }
.skip-link:focus { top: 16px; }

.site-header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, .94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: height .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: rgba(41,45,41,.08); box-shadow: 0 8px 30px rgba(41,45,41,.05); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand-name { font-family: "Lora", Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: .01em; }
.brand-dental { margin-top: 7px; padding-left: 7px; color: var(--sage); font-size: 9px; font-weight: 600; letter-spacing: .55em; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 600; }
.main-nav > a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--sage); transition: right .25s ease; }
.main-nav > a:not(.nav-contact):hover::after, .main-nav > a.active::after { right: 0; }
.nav-contact { border: 1px solid var(--charcoal); border-radius: 2px; padding: 10px 18px; transition: .25s ease; }
.nav-contact:hover { background: var(--charcoal); color: var(--ivory); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .25s ease; }

.hero { min-height: calc(100svh - var(--header-height)); display: flex; align-items: center; padding: 46px 0 72px; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--gray); font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Lora", Georgia, serif; font-weight: 500; }
h1 { max-width: 650px; margin: 0; font-size: clamp(44px, 5vw, 72px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.12; letter-spacing: -.025em; }
h3 { margin: 0; }
.hero-description { max-width: 560px; margin: 26px 0 34px; color: #60655f; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; border: 1px solid var(--charcoal); border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 20px; text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; transition: .25s ease; }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.button-primary { color: var(--ivory); background: var(--charcoal); }
.button-primary:hover { background: #1d211e; transform: translateY(-2px); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: var(--beige); }
.hero-media { position: relative; min-height: 580px; margin: 0; }
.hero-media::before { content: ""; position: absolute; width: 80%; height: 86%; right: -18px; bottom: -18px; background: var(--sage); z-index: -1; }
.hero-media img { width: 100%; height: 580px; object-fit: cover; object-position: center; }
.hero-media figcaption { position: absolute; right: -1px; bottom: 0; display: flex; background: var(--ivory); }
.hero-media figcaption span { padding: 13px 16px; border-left: 1px solid var(--beige); color: var(--gray); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.about-media { height: 620px; margin: 0; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.about-copy h2 { max-width: 520px; }
.about-copy > p:not(.eyebrow) { max-width: 530px; color: #60655f; }
.attribute-list { list-style: none; padding: 22px 0 0; margin: 32px 0 0; border-top: 1px solid var(--beige); }
.attribute-list li { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--beige); font-family: "Lora", Georgia, serif; font-size: 19px; }
.attribute-list span { width: 48px; color: var(--sage); font-family: "Manrope", sans-serif; font-size: 11px; }

.section-heading { margin-bottom: 48px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--beige); border-left: 1px solid var(--beige); }
.service-card { position: relative; min-height: 330px; padding: 38px 28px 30px; border-right: 1px solid var(--beige); border-bottom: 1px solid var(--beige); background: var(--ivory); transition: transform .25s ease, background .25s ease; }
.service-card:hover { background: var(--white); transform: translateY(-5px); }
.service-card svg { width: 44px; height: 44px; margin-bottom: 48px; fill: none; stroke: var(--sage); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card-number { position: absolute; top: 38px; right: 28px; color: var(--beige); font-size: 11px; }
.service-card h3 { min-height: 52px; font-size: 23px; line-height: 1.25; }
.service-card p { margin: 14px 0 0; color: var(--gray); font-size: 14px; }

.facilities { background: #eeece5; }
.facilities-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; }
.facilities-heading h2 { max-width: 650px; }
.facilities-heading > p { margin: 0 0 8px; color: #60655f; }
.gallery { display: grid; grid-template-columns: 1.35fr .65fr .65fr; grid-template-rows: 260px 260px; gap: 14px; }
.gallery-item { position: relative; min-width: 0; overflow: hidden; border: 0; padding: 0; background: var(--beige); cursor: zoom-in; }
.gallery-main { grid-row: 1 / 3; }
.gallery-item:last-child { grid-column: 2 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item span { position: absolute; left: 18px; bottom: 18px; background: rgba(246,243,236,.94); padding: 7px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.contact { background: var(--charcoal); color: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: 1fr .75fr; gap: 100px; align-items: end; }
.contact .eyebrow { color: var(--sage); }
.contact-copy h2 { max-width: 620px; }
.contact-copy > p:not(.eyebrow) { color: #c9cbc4; }
.contact-details { border-top: 1px solid rgba(246,243,236,.18); padding-top: 28px; }
.contact-details .button-primary { width: 100%; border-color: var(--sage); background: var(--sage); color: var(--charcoal); }
.contact-details .button-primary:hover { background: #b1bfaa; }
.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.contact-meta span { display: block; color: var(--sage); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.contact-meta strong { display: block; margin-top: 4px; font-family: "Lora", serif; font-size: 16px; }
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 12px; }
.social-item { display: inline-flex; align-items: center; gap: 7px; color: var(--ivory); font-size: 13px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.social-item-static { cursor: default; opacity: .9; }
.social-icon { display: block; width: 17px; height: 17px; flex: 0 0 17px; color: var(--sage); }
.social-x-mark { display: inline-grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 50%; background: var(--charcoal); color: var(--ivory); }
.social-x-mark svg { display: block; width: 12px; height: 12px; }
.social-links a:hover { color: var(--sage); }

.footer { background: #20231f; color: var(--ivory); border-top: 1px solid rgba(246,243,236,.08); }
.footer-inner { min-height: 130px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.footer-inner > p { margin: 0; font-size: 12px; color: #aeb1a9; }
.footer-inner > p:nth-child(2) { text-align: center; }
.footer-inner > p:last-child { text-align: right; }
.brand-footer .brand-dental { color: var(--sage); }

.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 46px; height: 46px; border: 1px solid var(--beige); border-radius: 50%; background: var(--ivory); color: var(--charcoal); opacity: 0; visibility: hidden; transform: translateY(12px); cursor: pointer; transition: .25s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.whatsapp-float { position: fixed; right: 24px; bottom: 80px; z-index: 80; width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sage); color: var(--charcoal); box-shadow: 0 8px 24px rgba(41,45,41,.18); cursor: pointer; transition: .25s ease; }
.whatsapp-float:hover { transform: scale(1.06); background: #b1bfaa; }
.whatsapp-float .whatsapp-icon { display: block; width: 23px; height: 27px; fill: currentColor; flex: none; }

.lightbox { width: min(1100px, calc(100% - 40px)); max-height: calc(100vh - 40px); border: 0; padding: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20,22,20,.88); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox p { margin: 10px 0 0; color: var(--ivory); text-align: center; }
.lightbox-close { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; border: 1px solid rgba(246,243,236,.5); border-radius: 50%; background: transparent; color: var(--ivory); font-size: 26px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --header-height: 76px; }
  .container { width: min(100% - 36px, 1180px); }
  .section { padding: 88px 0; }
  .hero-grid { gap: 36px; }
  .hero-media, .hero-media img { min-height: 500px; height: 500px; }
  .about-grid { gap: 44px; }
  .about-media { height: 540px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 230px 230px; }
  .gallery-main { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item:last-child { grid-column: 1 / 3; }
  .contact-grid { gap: 48px; }
}

@media (max-width: 720px) {
  :root { --header-height: 72px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .brand-name { font-size: 24px; }
  .brand-dental { font-size: 8px; }
  .menu-toggle { display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; left: 0; right: 0; top: var(--header-height); display: grid; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--beige); box-shadow: 0 20px 30px rgba(41,45,41,.08); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s ease; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { min-height: 56px; display: flex; align-items: center; width: calc(100% - 32px); margin-inline: auto; border-bottom: 1px solid var(--beige); }
  .main-nav .nav-contact { width: calc(100% - 32px); margin: 12px auto 16px; justify-content: center; }
  .hero { min-height: auto; padding: 38px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(40px, 12vw, 54px); }
  h2 { font-size: clamp(34px, 10vw, 44px); }
  .hero-description { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-media, .hero-media img { min-height: 420px; height: 420px; }
  .hero-media::before { right: -8px; bottom: -10px; }
  .hero-media figcaption span { padding: 10px 9px; font-size: 8px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { height: 460px; }
  .attribute-list li { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .facilities-heading { grid-template-columns: 1fr; gap: 20px; }
  .gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 330px 210px 210px; gap: 8px; }
  .gallery-main { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item:last-child { grid-column: 1 / 3; }
  .gallery-item span { left: 10px; bottom: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .contact-meta { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; text-align: center; padding: 30px 0; }
  .footer-inner .brand { margin-inline: auto; }
  .footer-inner > p:nth-child(2), .footer-inner > p:last-child { text-align: center; }
  .back-to-top { right: 16px; bottom: 16px; }
  .whatsapp-float { right: 16px; bottom: 72px; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 300px repeat(3, 220px); }
  .gallery-main, .gallery-item:last-child { grid-column: 1; }
  .gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: 1; }
  .hero-media, .hero-media img { min-height: 360px; height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
