:root {
  --bg: #f7f2eb;
  --bg-soft: #fcfaf7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #21313a;
  --muted: #55656f;
  --navy: #19303f;
  --gold: #b98b42;
  --gold-soft: #e9d5b0;
  --line: rgba(25, 48, 63, 0.11);
  --shadow: 0 20px 50px rgba(22, 35, 46, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 139, 66, 0.18), transparent 28%),
    radial-gradient(circle at right, rgba(25, 48, 63, 0.12), transparent 36%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 48%, #f2ece3 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(25, 48, 63, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 48, 63, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 86%);
  opacity: 0.25;
}

img {
  display: block;
  max-width: 100%;
}

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

p,
ul,
ol,
blockquote,
h1,
h2,
h3 {
  margin-top: 0;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
}

.top-bar {
  background: rgba(17, 29, 38, 0.95);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.top-bar-inner {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.top-bar a {
  color: white;
  font-weight: 800;
}

.top-bar span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(185, 139, 66, 0.16);
  color: #f8dfb0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(252, 250, 247, 0.84);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 76px;
  height: auto;
}

.brand span {
  display: grid;
  gap: 0.15rem;
}

.brand strong,
.hero-card h1,
.section-heading h2,
.panel h2,
.prose h2,
.panel h1 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.02em;
}

.brand strong {
  font-size: 1.35rem;
  color: var(--navy);
}

.brand small {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 36rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav > a,
.nav-link {
  font-weight: 700;
  color: var(--navy);
  opacity: 0.86;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"],
.nav-link:hover,
.nav-link[aria-current="page"] {
  opacity: 1;
  color: var(--gold);
}

.nav-dropdown {
  position: relative;
  padding-bottom: 0.7rem;
  margin-bottom: -0.7rem;
}

.nav-dropdown-head {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-dropdown.is-active .nav-link,
.nav-dropdown.is-open .nav-link,
.nav-dropdown.is-active .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle {
  opacity: 1;
  color: var(--gold);
}

.nav-dropdown-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.nav-dropdown-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.12rem);
  left: 0;
  z-index: 20;
  width: min(560px, 92vw);
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0.7rem;
}

.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-caret {
    transform: rotate(225deg) translateY(-1px);
  }

  .nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.nav-dropdown-overview {
  grid-column: 1 / -1;
}

.nav-dropdown-overview a {
  display: inline-flex;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(25, 48, 63, 0.06);
  color: var(--navy);
  font-weight: 800;
}

.nav-dropdown-group {
  display: grid;
  gap: 0.55rem;
}

.nav-dropdown-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-dropdown-links {
  display: grid;
  gap: 0.28rem;
}

.nav-dropdown-links a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 700;
}

.nav-dropdown-links a:hover,
.nav-dropdown-links a[aria-current="page"],
.nav-dropdown-overview a:hover {
  background: rgba(185, 139, 66, 0.12);
  color: var(--gold);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
}

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-home {
  min-height: 84svh;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 20, 27, 0.82) 0%, rgba(12, 20, 27, 0.48) 45%, rgba(12, 20, 27, 0.2) 100%),
    linear-gradient(180deg, rgba(12, 20, 27, 0.08) 0%, rgba(12, 20, 27, 0.56) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
}

.hero-card,
.panel,
.card,
.stats-panel,
.photo-tile {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  max-width: 36rem;
  padding: clamp(1.25rem, 3vw, 2.3rem);
  border-radius: var(--radius-xl);
  color: white;
}

.hero-card p:last-of-type {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hero-card h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.94;
  margin-bottom: 1rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.button-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

.centered {
  justify-content: center;
}

.button,
.text-link,
.link-pill {
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button-primary {
  background: linear-gradient(135deg, #d2ab69 0%, #b98b42 100%);
  color: #1f1204;
}

.button-primary:hover {
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.36);
}

.is-home .button-secondary,
.contact-strip .button-secondary,
.is-contact .button-secondary,
.is-overview .button-secondary,
.is-about .button-secondary,
.is-gallery .button-secondary,
.is-news .button-secondary,
.is-appointment .button-secondary,
.is-treatment .button-secondary,
.is-not-found .button-secondary {
  color: var(--navy);
  border-color: rgba(25, 48, 63, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.content-section {
  position: relative;
  padding: 5.5rem 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(233, 213, 176, 0.2));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
}

.split-layout-images {
  align-items: start;
}

.prose,
.intro-centered {
  max-width: 46rem;
}

.prose h2,
.section-heading h2,
.panel h2,
.panel h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
  color: var(--navy);
  margin-bottom: 1rem;
}

.prose p,
.card p,
.panel p,
.panel li,
.photo-tile figcaption {
  color: var(--muted);
}

.intro-centered {
  text-align: center;
  margin: 0 auto;
}

.stats-panel,
.side-panel {
  border-radius: var(--radius-xl);
  padding: 1.3rem;
}

.stats-panel {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.stat-chip,
.link-pill {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(25, 48, 63, 0.08);
  color: var(--navy);
  font-weight: 700;
}

.section-heading {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.card-grid-services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.card h3,
.photo-tile figcaption {
  color: var(--navy);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.card-image {
  overflow: hidden;
  padding: 0;
}

.card-image img {
  aspect-ratio: 5 / 4;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.3rem;
}

.text-link {
  display: inline-flex;
  margin-top: 0.7rem;
  font-weight: 800;
  color: var(--gold);
}

.panel {
  padding: 1.8rem;
  border-radius: var(--radius-xl);
}

.panel-centered {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.panel-wide {
  padding: 2rem;
}

.quote-panel {
  text-align: center;
}

.quote-panel blockquote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 1rem;
}

.panel-meta {
  font-weight: 800;
  color: var(--gold);
}

.check-list,
.footer-links,
.number-list {
  margin: 0;
  padding-left: 1.2rem;
}

.check-list li,
.number-list li {
  margin-bottom: 0.8rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.photo-tile {
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.photo-tile img,
.photo-stack img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
  object-fit: cover;
}

.photo-tile img {
  aspect-ratio: 4 / 3;
}

.photo-tile figcaption {
  padding: 0.95rem 0.3rem 0.15rem;
  font-weight: 700;
}

.photo-stack {
  display: grid;
  gap: 1rem;
}

.stack-grid {
  display: grid;
  gap: 1rem;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.link-pill:hover,
.link-pill:focus,
.text-link:hover,
.text-link:focus {
  transform: translateY(-1px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.content-section .breadcrumbs,
.section-tint .breadcrumbs {
  color: var(--muted);
}

.crumb-sep {
  opacity: 0.6;
}

.contact-strip {
  padding: 1.5rem 0 5rem;
}

.contact-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(25, 48, 63, 0.96), rgba(28, 54, 71, 0.9));
  box-shadow: var(--shadow);
  color: white;
}

.contact-strip-inner h2 {
  margin-bottom: 0.45rem;
}

.contact-only-panel .contact-line {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.site-footer {
  padding: 0 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: rgba(17, 29, 38, 0.94);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-links a:hover {
  color: #f8dfb0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 680ms ease forwards;
}

.card-grid .reveal:nth-child(2),
.photo-grid .reveal:nth-child(2),
.stack-grid .reveal:nth-child(2) {
  animation-delay: 90ms;
}

.card-grid .reveal:nth-child(3),
.photo-grid .reveal:nth-child(3),
.stack-grid .reveal:nth-child(3) {
  animation-delay: 180ms;
}

.card-grid .reveal:nth-child(4),
.photo-grid .reveal:nth-child(4) {
  animation-delay: 270ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 1rem;
    width: min(320px, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav > a,
  .nav-link,
  .nav-cta {
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-dropdown {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-dropdown-head {
    justify-content: space-between;
    border-radius: 14px;
    background: rgba(247, 242, 235, 0.82);
  }

  .nav-link {
    flex: 1;
    min-height: auto;
  }

  .nav-dropdown-toggle {
    width: 48px;
    height: 48px;
  }

  .nav-dropdown-panel {
    position: static;
    width: 100%;
    max-height: 0;
    margin-top: 0.35rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: hidden;
    transform: none;
  }

  .nav-dropdown.is-open .nav-dropdown-panel {
    max-height: 1400px;
    padding: 0.35rem 0 0.2rem;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-dropdown-overview a,
  .nav-dropdown-links a {
    background: rgba(255, 255, 255, 0.72);
  }

  .card-grid,
  .card-grid-services,
  .photo-grid,
  .photo-grid-preview,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-card h1,
  .prose h2,
  .section-heading h2,
  .panel h2,
  .panel h1 {
    line-height: 1.02;
  }

  .split-layout,
  .contact-strip-inner,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .contact-strip-inner {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .hero-content {
    padding: 3rem 0 4rem;
  }

  .brand img {
    width: 62px;
  }

  .brand small {
    display: none;
  }

  .card-grid,
  .card-grid-services,
  .photo-grid,
  .photo-grid-preview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 4.3rem 0;
  }

  .panel,
  .card,
  .hero-card,
  .contact-strip-inner {
    border-radius: 22px;
  }

  .top-bar-inner {
    font-size: 0.82rem;
  }
}

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

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

  .button,
  .text-link,
  .link-pill {
    transition: none;
  }
}
