/* Nailly Spa & Boutique - public website
   Built to the Visual Identity Guidelines: Warm Ivory ground, Oyster panels,
   Champagne Gold as accent only, Warm Brown headings, two font families. */

:root {
  --ivory:  #F8F4ED;
  --oyster: #E8DED1;
  --beige:  #D2C2AF;
  --gold:   #A08869;
  --brown:  #6F513B;
  --black:  #1D1D1B;
  --glow:   #FFFBF4;

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body:    "Montserrat", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --container: 72.5rem;   /* 1160px */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ink-soft: rgba(29, 29, 27, 0.78);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--black);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--black); color: var(--ivory);
  padding: .6rem 1rem; z-index: 100; font-size: .875rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: .6875rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 4.6vw, 3.5rem); letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.5rem; }
.lead { font-size: clamp(.9375rem, 1.5vw, 1.0625rem); color: var(--ink-soft); max-width: 48ch; margin: 0; }
.hairline {
  width: 4.5rem; height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, rgba(160,136,105,0), var(--gold) 50%, rgba(160,136,105,0));
}
.hairline--center { margin-inline: auto; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--oyster { background: var(--oyster); }
.section__head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.section__head .eyebrow { text-indent: .34em; }
.section__head .lead { margin: 1.25rem auto 0; }
.section__head .hairline { margin: 1.5rem auto 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 244, 237, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(160, 136, 105, .28);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: .85rem;
}
.brand { display: inline-flex; line-height: 0; }
.brand img { width: 8.75rem; }             /* 140px - above the guide's 120px digital minimum */
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  font-weight: 600; font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brown); text-decoration: none; padding: .35rem 0;
  border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 40em) {
  .site-header .bar { justify-content: center; }
  .site-nav ul { gap: 1.1rem; }
  .site-nav a { font-size: .625rem; letter-spacing: .2em; }
}

/* ---------- concept label on every render ---------- */
.media { position: relative; overflow: hidden; background: var(--oyster); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.concept-tag {
  position: absolute; left: .9rem; bottom: .9rem;
  font-weight: 600; font-size: .625rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ivory); background: rgba(29, 29, 27, .55);
  padding: .5rem .7rem; line-height: 1;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ---------- hero: text on a calm solid panel, image beside it ---------- */
.hero { display: grid; grid-template-columns: 1fr; }
.hero__media { aspect-ratio: 4 / 3; }
.hero__media img { object-position: 50% 45%; }
.hero__panel {
  display: grid; gap: 1.35rem; align-content: center; justify-items: start;
  padding: clamp(2.75rem, 7vw, 5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(720px 360px at 30% -10%, var(--glow) 0%, rgba(255,251,244,0) 70%),
    var(--ivory);
  animation: settle 1100ms cubic-bezier(.2,.7,.2,1) both;
}
.hero__panel .eyebrow { margin: 0; }
@keyframes settle { from { opacity: .82; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__panel { animation: none; } }
@media (min-width: 56em) {
  .hero { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); min-height: min(78vh, 47.5rem); }
  /* Side by side, the image fills whatever height the panel and min-height
     produce. Absolute positioning keeps the image out of the row-sizing loop,
     where a percentage height would otherwise resolve to nothing. */
  .hero__media { aspect-ratio: auto; order: 2; min-height: 100%; }
  .hero__media img { position: absolute; inset: 0; }
  .hero__panel { order: 1; padding-inline: clamp(2rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); }
}

/* ---------- welcome ---------- */
.welcome { text-align: center; max-width: 64ch; margin-inline: auto; }
.welcome .eyebrow { text-indent: .34em; }
.welcome p { margin: 1.5rem auto 0; color: var(--ink-soft); max-width: 58ch; }

/* ---------- the spa ---------- */
.spa { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.collage .media:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.collage .media { aspect-ratio: 1 / 1; }
.disciplines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--beige); }
.disciplines li { padding: 1.15rem 0; border-bottom: 1px solid var(--beige); display: grid; gap: .2rem; }
.disciplines h3 { font-size: 1.55rem; }
.disciplines p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
@media (min-width: 56em) {
  .spa { grid-template-columns: 1.08fr 1fr; }
  .disciplines li { grid-template-columns: 11rem 1fr; align-items: baseline; gap: 1.5rem; }
}

/* ---------- the spaces ---------- */
.rooms { display: grid; gap: clamp(2.25rem, 5vw, 3rem) 2rem; }
.room .media { aspect-ratio: 4 / 3; }
.room__name {
  font-family: var(--display); font-weight: 600; font-size: 1.4rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brown);
  text-align: center; margin: 1.3rem 0 .25rem; text-indent: .16em;
}
.room__desc {
  font-weight: 600; font-size: .625rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin: 0 0 .8rem; text-indent: .32em;
}
.room p { text-align: center; margin: 0 auto; max-width: 40ch; font-size: .9375rem; color: var(--ink-soft); }
@media (min-width: 45em) { .rooms { grid-template-columns: 1fr 1fr; } }

/* ---------- the boutique ---------- */
.boutique { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.boutique .media { aspect-ratio: 5 / 4; }
.boutique .media img { object-position: 50% 68%; }   /* keeps the pedestals, crops the placeholder signage */
.boutique__text .eyebrow { margin-bottom: 1rem; }
.boutique__text p { color: var(--ink-soft); max-width: 46ch; margin: 1.25rem 0 0; }
.boutique__text .hairline { margin-top: 1.5rem; }
@media (min-width: 56em) { .boutique { grid-template-columns: 1fr 1fr; } .boutique .media { order: 2; } }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 1.1rem 1rem; grid-template-columns: 1fr; }
.gallery .media { aspect-ratio: 4 / 3; }
.gallery figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: .6rem; font-size: .75rem; color: var(--brown);
}
.gallery figcaption .tag { font-weight: 600; font-size: .5625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
@media (min-width: 38em) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60em) { .gallery { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- footer: the approved dark treatment, gold lockup ---------- */
.site-footer { background: var(--black); color: var(--beige); padding: clamp(3rem, 7vw, 5rem) 0 2.25rem; }
.site-footer .inner { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.site-footer .logo { width: min(13rem, 60vw); }
.site-footer .rule { width: 4.5rem; height: 1px; background: linear-gradient(90deg, rgba(160,136,105,0), var(--gold) 50%, rgba(160,136,105,0)); }
.site-footer nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.site-footer nav a { font-weight: 600; font-size: .625rem; letter-spacing: .24em; text-transform: uppercase; color: var(--beige); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--gold); }
.site-footer p { margin: 0; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; }
.site-footer .group { color: var(--gold); }
