:root {
  --bg: #fff9f7;
  --bg-soft: #fff1ec;
  --surface: #ffffff;
  --text: #2c1b16;
  --text-soft: #6f564f;
  --accent: #4d1d11;
  --accent-strong: #7e3121;
  --line: #e8cec6;
  --radius: 1.1rem;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 85% -20%, #ffd8cd 0%, transparent 42%),
    radial-gradient(circle at 8% 25%, #fff1eb 0%, transparent 32%), var(--bg);
  color: var(--text);
  font-family: "Nunito Sans", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: 6.4rem;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(77, 29, 17, 0.05) 0.75px, transparent 0.75px);
  background-size: 2px 2px;
  opacity: 0.18;
  z-index: 1;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 2;
}

.site-header {
  width: min(var(--maxw), calc(100vw - 2rem));
  margin: 0;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--accent);
  font-family: "Bree Serif", serif;
  font-size: 1.1rem;
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--accent);
}

main {
  width: min(var(--maxw), calc(100vw - 2rem));
  margin: 2rem auto 0;
  display: grid;
  gap: 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy h1,
h2 {
  margin: 0;
  font-family: "Bree Serif", serif;
  line-height: 1.14;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  max-width: 14ch;
}

.hero-copy p {
  color: var(--text-soft);
  line-height: 1.62;
}

.hero-copy .lead {
  margin-top: 1rem;
  max-width: 56ch;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
}

.treatments-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.treatments-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff7f5;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--accent);
  background: #fff;
}

.hero-image-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(175deg, #fff, #fff3ef);
  padding: 0.8rem;
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.35rem);
}

.hero-image-frame figcaption {
  margin-top: 0.7rem;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.section-title-wrap h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.7rem);
  max-width: 23ch;
}

.about-card {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 8px 24px rgba(84, 36, 25, 0.08);
}

.about-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.about-card p + p {
  margin-top: 0.9rem;
}

.carousel {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: 0 10px 28px rgba(84, 36, 25, 0.09);
}

.carousel-track {
  position: relative;
  min-height: 260px;
}

.carousel-slide {
  display: none;
  margin: 0;
}

.carousel-slide.is-active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  border-radius: calc(var(--radius) - 0.3rem);
  object-fit: cover;
}

.gallery-panel {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 0.2rem);
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.carousel-controls {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.carousel-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 0.68rem;
  height: 0.68rem;
  border: 0;
  border-radius: 50%;
  background: #c59f94;
  cursor: pointer;
}

.dot.is-active {
  background: var(--accent);
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 0.2rem);
  padding: 0.75rem;
}

.testimonial-card img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.35rem);
}

.testimonial-card blockquote {
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 1rem;
}

.team-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.person {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  box-shadow: 0 8px 20px rgba(89, 42, 28, 0.08);
}

.person img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: calc(var(--radius) - 0.35rem);
}

.person h3 {
  margin: 0.75rem 0 0;
  font-family: "Bree Serif", serif;
  font-size: 1.1rem;
}

.person p {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
}

.lab-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.lab-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lab-text {
  margin: 0.9rem 0 0;
  color: var(--text-soft);
  line-height: 1.68;
  max-width: 80ch;
}

.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #fff4ef);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  padding: 0.9rem;
}

.contact img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.35rem);
}

.contact h2 {
  margin-top: 0;
}

.contact p {
  color: var(--text-soft);
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0 1.25rem;
  font-style: normal;
}

.contact-address a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.contact-address a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.contact-address span {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0.8rem;
}

.modal-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: calc(var(--radius) - 0.3rem);
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
}

footer {
  width: min(var(--maxw), calc(100vw - 2rem));
  margin: 2.4rem auto 1.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--accent);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    border-radius: 1rem;
    flex-direction: column;
    align-items: flex-start;
    top: 0.6rem;
  }
}

@media (max-width: 620px) {
  main,
  .site-header,
  footer {
    width: min(var(--maxw), calc(100vw - 1.2rem));
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 1.9rem;
    height: 1.9rem;
  }
}
