:root {
  --display-font: Georgia, serif;
  --bs-body-font-family: system-ui, sans-serif;
  --bs-body-color: #20201f;
  --forest: #414b3f;
  --brand-purple: #4d4384;
  --brand-light: #eee8ff;
  --hero-surface: #f6f2ec;
  --header-height: 5rem;
}

html { font-size: 15px; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font: inherit; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.container { width: 100%; max-width: none; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { max-width: 40rem; } }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.site-header.is-scrolled {
  background-color: var(--hero-surface);
  color: var(--bs-body-color);
  box-shadow: 0 1px 0 #2d214f1a;
}
.site-header:not(.is-scrolled) .brand span,
.site-header:not(.is-scrolled) .desktop-nav { text-shadow: 0 1px 3px #000, 0 2px 10px #000b; }
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .65rem;
  min-height: var(--header-height);
  padding-block: .75rem;
}
.brand { gap: .65rem; font-size: .875rem; font-weight: 500; line-height: 1.25; }
.brand img { width: 2.5rem; height: 2.5rem; flex: none; }
.desktop-nav { display: none; }
.desktop-nav ul { gap: clamp(1rem, 2vw, 2rem); }
.desktop-nav a:hover, .mobile-menu nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

.mobile-menu summary {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #c5bad7;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.site-header:not(.is-scrolled) .mobile-menu summary { border-color: #fff9; }
.site-header:not(.is-scrolled) .mobile-menu summary svg { filter: drop-shadow(0 1px 2px #000); }
.menu-close-icon, .mobile-menu[open] .menu-open-icon { display: none; }
.mobile-menu[open] .menu-close-icon { display: block; }
.mobile-menu nav {
  position: absolute;
  top: 100%;
  inset-inline: 1.25rem;
  max-height: calc(100svh - 6rem);
  overflow: auto;
  border-radius: .75rem;
  padding: .5rem 1rem;
  background: #fff;
  color: var(--brand-purple);
  box-shadow: 0 .5rem 2rem #0003;
}
.mobile-menu nav a { display: block; padding: .75rem .25rem; }
.mobile-menu nav li + li { border-top: 1px solid #ece8f6; }

.booking-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand-light);
  color: #35295f;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.booking-button:hover { background: #fff; }
.booking-button.booking-header { border-color: #c5bad7; background: transparent; }
.site-header:not(.is-scrolled) .booking-button.booking-header { border-color: transparent; background: #fbf8f3eb; }
.booking-button.booking-header:hover { background: var(--brand-light); }
.site-header:not(.is-scrolled) .booking-button.booking-header:hover { background: #fff; }
.booking-primary {
  min-height: 3.5rem;
  padding-inline: 1.75rem;
  background: var(--brand-purple);
  color: #fff;
}
.booking-primary:hover { background: #3b316d; }

.home-hero { background: var(--hero-surface); }
.hero-layout { display: grid; }
.hero-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(25rem, 60svh, 35rem);
  padding: 1.25rem;
  overflow: hidden;
  background: #ded4c8;
}
.hero-panel-services { min-height: 18rem; background: #dbcbc5; }
.hero-panel .cover-image { object-position: 53% center; }
.hero-panel-services .cover-image { object-position: 52% 62%; }
.hero-copy {
  position: relative;
  display: grid;
  justify-items: start;
  gap: .9rem;
  max-width: 29rem;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border-radius: .35rem;
  background: #fbf8f3f5;
}
.hero-copy h1 { font-family: var(--display-font); font-size: clamp(3.25rem, 6vw, 6rem); line-height: .94; letter-spacing: -.065em; }
.hero-copy h1 span { display: block; margin-top: .3em; color: var(--brand-purple); font-size: .49em; letter-spacing: -.035em; }
.hero-copy h2 { font-family: var(--display-font); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
.hero-copy p { max-width: 34ch; color: #57514e; line-height: 1.55; }
.hero-copy-services { max-width: 24rem; }
.hero-services { color: var(--brand-purple); font-weight: 500; text-decoration: underline; text-underline-offset: .28em; }
.hero-services:hover { color: #2d214f; }
.cover-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

.introduction { padding-block: 3rem; }
.introduction .container { max-width: 42rem; gap: 1.5rem; }
.section-title { font-family: var(--display-font); font-size: 28px; line-height: 1.2; }
.introduction p { color: #464956; line-height: 1.75; }
.section-intro p { margin-top: 1rem; }

.offers, .site-footer { background: var(--forest); }
.offers .container { gap: 2.5rem; padding-block: 6.5rem; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
.offer-card { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.offer-photo { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; }
.offer-photo img { transition: scale .15s cubic-bezier(.4, 0, .2, 1); }
.offer-card h3 { font-family: var(--display-font); font-size: 1.25rem; line-height: 1.75rem; font-weight: 300; }
.offer-card:focus-visible h3 { text-decoration: underline; text-underline-offset: .2em; }
@media (hover: hover) {
  .offer-card:hover img { scale: 1.03; }
  .offer-card:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
}

.gallery { padding-bottom: 4rem; background: #f6f4ef; }
.gallery-banner { background: #e8e3d8; }
.gallery-banner .cover-image { object-position: center 48%; }
.gallery-banner .container { display: grid; align-content: center; min-height: clamp(18rem, 42vw, 38rem); padding-block: 2rem; }
.gallery-banner h2 { font-family: var(--display-font); font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; }
.gallery-collection { padding-top: clamp(2.5rem, 6vw, 6rem); }
.gallery-group + .gallery-group {
  margin-top: clamp(2.5rem, 6vw, 6rem);
  padding-top: clamp(1.75rem, 4vw, 3.5rem);
  border-top: 1px solid #d9d0c4;
}
.gallery-group h3 {
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.gallery-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.gallery-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .5rem; }
.gallery-photos .gallery-feature { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.gallery-care .gallery-feature { aspect-ratio: 4 / 3; object-position: center 42%; }
.gallery-finishing .gallery-feature { object-position: center 42%; }

@media (max-width: 767.98px) {
  .gallery-care img:last-child { margin-top: 1.25rem; }
  .gallery-finishing {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-areas: "lashes hair" "nails hair";
  }
  .gallery-finishing .gallery-feature { grid-area: hair; height: 100%; min-height: 0; aspect-ratio: auto; }
  .gallery-finishing img:nth-child(2) { grid-area: lashes; }
  .gallery-finishing img:nth-child(3) { grid-area: nails; }
}

.site-footer { padding-block: 3rem; }
.site-footer .container { gap: 2rem; }
.contact-grid { display: grid; gap: 2rem; }
.contact-content { gap: 1rem; }
.contact-note, .contact-map figcaption { color: #e4e8e2; font-size: .875rem; }
.contact-details { display: grid; gap: 1.25rem; }
.contact-details h3 { margin-bottom: .3rem; font-weight: 600; }
.contact-map { margin: 0; }
.contact-map iframe { display: block; width: 100%; height: auto; min-height: 16rem; aspect-ratio: 3 / 2; border: 0; border-radius: .5rem; background: #f6f4ef; }
.contact-map figcaption { margin-top: .6rem; }
.contact-map a { text-decoration: underline; text-underline-offset: .2em; }
.footer-bottom { gap: 1rem; border-top: 1px solid #ffffff55; padding-top: 1.5rem; font-size: .875rem; }
.footer-bottom a:hover { text-decoration: underline; }

.fade-in { animation: fade-in 1s ease both; }
.fade-up { animation: fade-up 1s ease var(--animation-delay, 0ms) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in, .fade-up { animation: none; }
  .site-header, .offer-photo img, .booking-button { transition: none; }
}

@media (min-width: 768px) {
  html { font-size: 16px; }
  .container { max-width: 48rem; padding-inline: 1.5rem; }
  .mobile-menu nav { inset-inline: 1.5rem; }
  .hero-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel { min-height: clamp(34rem, 80svh, 50rem); padding: clamp(1.5rem, 3vw, 3rem); }
  .hero-panel:first-child { padding-left: clamp(1.5rem, 6vw, 8rem); }
  .hero-panel-services { justify-content: flex-end; padding-right: clamp(1.5rem, 6vw, 8rem); }
  .introduction { padding-block: 6.5rem; }
  .section-title { font-size: 36px; }
  .offer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gallery { padding-bottom: 6rem; }
  .gallery-group-centered h3 { text-align: center; }
  .gallery-photos .gallery-feature { grid-column: auto; }
  .gallery-studio {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 2.08;
  }
  .gallery-studio img, .gallery-studio .gallery-feature { height: 100%; min-height: 0; aspect-ratio: auto; }
  .gallery-studio .gallery-feature { grid-row: span 2; }
  .gallery-studio img:nth-child(2) { object-position: center 60%; }
  .gallery-care {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr);
    grid-template-areas: "products facial massage";
    align-items: start;
  }
  .gallery-care .gallery-feature { grid-area: facial; }
  .gallery-care img:nth-child(2) { grid-area: products; margin-top: clamp(.75rem, 3vw, 3rem); }
  .gallery-care img:nth-child(3) { grid-area: massage; align-self: end; }
  .gallery-finishing {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.3fr);
    grid-template-areas: "lashes nails hair";
    align-items: start;
  }
  .gallery-finishing .gallery-feature { grid-area: hair; aspect-ratio: 1; }
  .gallery-finishing img:nth-child(2) { grid-area: lashes; align-self: center; }
  .gallery-finishing img:nth-child(3) { grid-area: nails; align-self: end; aspect-ratio: 1; }
  .site-footer { padding-block: 4rem; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
}

@media (min-width: 1024px) {
  :root { --header-height: 6rem; }
  .container { max-width: 64rem; padding-inline: 3rem; }
  .header-inner { grid-template-columns: 1fr auto 1fr; gap: 1rem; }
  .header-inner .brand { justify-self: start; }
  .brand img { width: 3rem; height: 3rem; }
  .desktop-nav { display: block; }
  .booking-header { justify-self: end; padding-inline: 1.5rem; }
  .mobile-menu { display: none; }
  .section-title { font-size: 40px; }
  .offers .container { padding-bottom: 10rem; }
}

@media (min-width: 1280px) { .container { max-width: 80rem; } }
@media (min-width: 1536px) { .container { max-width: 96rem; } }
