html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.section-shell {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  z-index: 10;
}

.section-intro {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
  text-align: center;
}

.map-grid-overlay {
  background-image:
    linear-gradient(to right, #4a7862 1px, transparent 1px),
    linear-gradient(to bottom, #4a7862 1px, transparent 1px);
  background-size: 30px 30px;
}

nav .nav-link {
  color: #414944;
  border-bottom-color: transparent;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
nav .nav-link:hover,
nav .nav-link.nav-active {
  color: #315f4a;
  border-bottom-color: #315f4a;
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(49, 95, 74, 0.08);
  background-color: rgba(255, 255, 255, 0.95);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.visible {
  animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-delay-1.visible { animation-delay: 0.08s; }
.reveal-delay-2.visible { animation-delay: 0.16s; }
.reveal-delay-3.visible { animation-delay: 0.24s; }
.reveal-delay-4.visible { animation-delay: 0.32s; }

#mobile-menu {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}
#mobile-menu.open {
  visibility: visible;
  pointer-events: all;
}
#mobile-menu-backdrop {
  opacity: 0;
  transition: opacity 0.35s ease;
}
#mobile-menu.open #mobile-menu-backdrop { opacity: 1; }

#mobile-menu-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90vw;
}
#mobile-menu.open #mobile-menu-panel { transform: translateX(0); }

#lightbox {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightbox.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
#lightbox-img {
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 100%;
  height: auto;
}
#lightbox.open #lightbox-img { transform: scale(1); }

#email-picker {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  width: 100vw;
  max-width: 100%;
  left: 0;
  right: auto;
}
#email-picker > .relative {
  max-width: calc(100vw - 2rem);
}
#email-picker.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  display: flex;
}
#email-picker > .relative {
  transform: translateY(8px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#email-picker.open > .relative { transform: translateY(0) scale(1); }

[data-gallery-item] {
  position: relative;
  cursor: pointer;
}
[data-gallery-item]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(49, 95, 74, 0);
  transition: background 0.3s ease;
  z-index: 1;
}
[data-gallery-item]:hover::after {
  background: rgba(49, 95, 74, 0.08);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f4f3f1; }
::-webkit-scrollbar-thumb { background: #a0d1b7; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #315f4a; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #315f4a;
  outline-offset: 3px;
  border-radius: 4px;
}

img { transition: opacity 0.3s ease; }
img[src=""] { opacity: 0; }

button, a {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 1024px) {
  #home .aspect-\[4\/5\] {
    aspect-ratio: 3 / 4;
  }

  #about .h-\[500px\] {
    height: 440px;
  }
}

@media (max-width: 767px) {
  #site-header > div {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #home {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #about .section-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #treatments .section-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #gallery .section-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #pricing .section-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #booking {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #contact {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  footer .max-w-container-max {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #home,
  #about,
  #treatments,
  #gallery,
  #pricing,
  #booking,
  #contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  #site-header > div {
    height: 68px;
  }
  html {
    scroll-padding-top: 72px;
  }

  #home {
    flex-direction: column;
    gap: 2rem;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  #home > div.flex-1:first-child {
    text-align: left;
  }
  #home .aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
    max-height: 460px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  #about ul li span.text-label-caps {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 600;
    line-height: 1.45;
  }

  #about .section-shell {
    flex-direction: column;
  }
  #about .h-\[500px\] {
    height: 320px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  #about .order-2 { order: 2; }
  #about .md\:order-1 { order: 2; }
  #about .order-1 { order: 1; }
  #about .md\:order-2 { order: 1; }

  #booking .bg-surface-container {
    padding: 1.5rem;
  }

  #pricing .max-w-2xl {
    max-width: 100%;
    padding: 1.5rem;
  }

  #contact > div.flex-col {
    flex-direction: column;
  }
  #contact .bg-surface-container-low {
    padding: 1.5rem;
  }
  #contact .min-h-\[400px\] {
    min-height: 260px;
  }
  #contact .border-l {
    border-left: none;
    border-top: 1px solid #c0c9c2;
  }

  footer .py-12 .max-w-container-max {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 479px) {
  .text-h1, [class*="text-h1"] { font-size: 26px !important; line-height: 1.25 !important; }
  .text-h2, [class*="text-h2"] { font-size: 22px !important; }
  .text-h3, [class*="text-h3"] { font-size: 18px !important; }
  .text-body-lg, [class*="text-body-lg"] { font-size: 16px !important; }

  .font-label-caps.text-label-caps.px-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  #home a.rounded-full {
    width: 100%;
    justify-content: center;
  }

  #about .h-\[500px\] {
    height: 270px;
  }
  #about .absolute.top-0 {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    top: auto; right: auto;
  }
  #about .absolute.bottom-0 {
    display: none;
  }

  #gallery-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
  }
  #gallery-grid > div {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    aspect-ratio: 16/9;
    height: auto !important;
  }

  #treatments .grid {
    gap: 1rem;
  }

  #booking .bg-surface-container {
    padding: 1.25rem;
    border-radius: 1rem;
  }
  #booking .p-gutter {
    padding: 1rem;
  }

  #contact .gap-gutter {
    gap: 1rem;
  }
  #contact .p-4 {
    padding: 0.75rem;
  }

  #pricing li.px-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #pricing li.flex.justify-between {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
  }
  #pricing li > div.flex.items-center.gap-3 {
    display: contents;
  }
  #pricing li > div.flex.items-center.gap-3 > span:first-child {
    flex: 1 1 100%;
  }
  #pricing li > span.font-h3 {
    margin-left: auto;
  }

  footer .flex.space-x-6 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    row-gap: 0.5rem;
  }
  footer .space-x-6 {
    column-gap: 1rem;
  }

  #mobile-menu-panel {
    width: 85vw;
  }

  #lightbox-counter { display: none; }
}

@media (max-width: 359px) {
  #home { padding-top: 64px; padding-bottom: 64px; }

  #site-header a.text-primary {
    font-size: 15px;
  }

  #pricing li span.font-h3 {
    font-size: 18px !important;
  }
}

@media (min-width: 1024px) {
  #gallery-grid {
    grid-auto-rows: 200px;
  }
  #pricing .max-w-2xl:hover {
    transform: translateY(-4px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  #gallery-grid > div:first-child {
    grid-column: span 1;
    grid-row: span 2;
  }
  #gallery-grid > div:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  #treatments .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #about .h-\[500px\] {
    height: 400px;
  }
}
