/* ============================================================
   SALON TEMPLATE — style.css
   Palette: rose #B5706E | cream #FAF5EE | charcoal #1E1813 | gold #B89050
   Fonts: Cormorant Garamond (headings) | DM Sans (body)
   ============================================================ */

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

:root {
  --rose:     #B5706E;
  --rose-l:   #D4A09E;
  --rose-d:   #8A4E4D;
  --rose-bg:  #F5E8E5;
  --cream:    #FAF5EE;
  --cream2:   #F0E6D8;
  --charcoal: #1E1813;
  --charcoal2:#2A221B;
  --stone:    #7A6558;
  --gold:     #B89050;
  --gold-l:   #D4AE6A;
  --white:    #FFFCF8;
  --border:   #E8DDD0;
  --r:        2px;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.018;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section { padding: 88px 0; }

/* ---- TYPOGRAPHY ---- */
.section__label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}
.section__label--light { color: rgba(255, 255, 255, .65); }

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section__title em {
  font-style: italic;
  color: var(--rose);
}

.title-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .06em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s var(--ease);
  text-align: center;
}

.btn--rose {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}
.btn--rose:hover {
  background: var(--rose-d);
  border-color: var(--rose-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181, 112, 110, .35);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn--cream {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
  font-weight: 600;
}
.btn--cream:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.btn--ghost-rose {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .8);
}
.btn--ghost-rose:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
.nav.scrolled {
  background: var(--charcoal);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  letter-spacing: .02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__links a {
  color: rgba(255, 255, 255, .78);
  font-size: .86rem;
  font-weight: 400;
  letter-spacing: .05em;
  transition: color .2s;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--rose) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--r);
  font-weight: 500 !important;
  font-size: .84rem !important;
  letter-spacing: .06em;
  transition: background .2s !important;
}
.nav__cta:hover { background: var(--rose-d) !important; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s var(--ease);
}

/* ---- HERO ---- */
.hero {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 88px;
  background: var(--charcoal2);
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .55;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg,
    rgba(30, 24, 19, .92) 0%,
    rgba(30, 24, 19, .55) 50%,
    rgba(30, 24, 19, .15) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
}
.hero__eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-l);
  margin-bottom: 16px;
}
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: .01em;
}
.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, .7);
  font-weight: 300;
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.hero__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.hero__stars {
  color: var(--gold-l);
  font-size: 1rem;
  letter-spacing: 2px;
}
.hero__rating-text {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .04em;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- WAVE DIVIDERS ---- */
.wave { line-height: 0; overflow: hidden; display: block; }
.wave svg { display: block; width: 100%; }
.wave--hero-to-cream  { background: var(--charcoal2); }
.wave--cream-to-white { background: var(--cream); }
.wave--white-to-rose  { background: var(--white); }
.wave--rose-to-cream  { background: var(--rose-bg); }

/* ---- SERVICES ---- */
.services { background: var(--cream); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  padding: 32px 28px;
  transition: background .2s;
}
.service-card:hover { background: var(--cream); }
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(181, 112, 110, .1);
  border: 1px solid rgba(181, 112, 110, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--rose);
}
.service-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.service-card__price {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--rose);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-card__desc {
  font-size: .88rem;
  color: var(--stone);
  line-height: 1.7;
}

/* ---- ABOUT ---- */
.about { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.about__image-wrap {
  position: relative;
  height: 540px;
  overflow: hidden;
  border-radius: var(--r);
}
.about__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.about__image-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rose-bg) 0%, var(--cream2) 100%);
  z-index: 0;
}
.about__frame-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border: 1px solid var(--rose-l);
  pointer-events: none;
  z-index: -1;
}
.about__text > p {
  color: var(--stone);
  line-height: 1.85;
  margin-bottom: 32px;
  font-size: .97rem;
}
.about__badges {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}
.about__badge {
  flex: 1;
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.about__badge:last-child { border-right: none; }
.about__badge-val {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 4px;
}
.about__badge-lbl {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---- GALLERY ---- */
.gallery { background: var(--white); padding-bottom: 0; }
.gallery .container { margin-bottom: 36px; }

.gallery__grid {
  display: grid;
  gap: 4px;
}
.gallery__item {
  overflow: hidden;
  background: var(--cream2);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

/* Count-based layout modifiers */
.gallery__grid--s1 {
  grid-template-columns: 1fr;
  grid-template-rows: 420px;
}
.gallery__grid--s2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 420px;
}
.gallery__grid--s3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px;
}
.gallery__grid--s3 .gallery__item--tall { grid-row: span 2; }

.gallery__footer { padding-bottom: 72px; }
.gallery__ig {
  font-size: .88rem;
  color: var(--stone);
  margin-top: 24px;
}
.gallery__ig a {
  color: var(--rose);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gallery__ig a:hover { color: var(--rose-d); }

/* ---- BOOKING CTA ---- */
.booking { background: var(--rose-bg); }
.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.booking__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 14px;
}
.booking__title em {
  font-style: italic;
  color: var(--rose);
}
.booking__sub {
  color: var(--stone);
  font-size: .97rem;
  line-height: 1.75;
}
.booking__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.booking__cta .btn { text-align: center; }
.booking__address {
  font-size: .8rem;
  color: var(--stone);
  margin-top: 4px;
  letter-spacing: .02em;
  text-align: center;
}
/* Override btns in rose-bg context */
.booking .btn--cream {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.booking .btn--cream:hover {
  background: var(--charcoal2);
  border-color: var(--charcoal2);
}
.booking .btn--ghost-rose {
  border-color: var(--rose);
  color: var(--rose);
}
.booking .btn--ghost-rose:hover {
  background: var(--rose);
  color: var(--white);
}

/* ---- CONTACT + HOURS ---- */
.contact { background: var(--cream); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form__group label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}
.form__group input,
.form__group textarea,
.form__group select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: .93rem;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color .2s;
  resize: vertical;
}
.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  outline: none;
  border-color: var(--rose);
}
.contact__form .btn { margin-top: 8px; }
.form__status {
  margin-top: 12px;
  font-size: .88rem;
  min-height: 1.4em;
  color: var(--rose);
}

/* Hours panel */
.hours__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hours__hd .section__label { margin-bottom: 0; }

.hours__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.hours__table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--stone);
}
.hours__table td:last-child {
  text-align: right;
  color: var(--charcoal);
  font-weight: 500;
}
.hours__table tr.today td { color: var(--charcoal); font-weight: 600; }
.hours__table tr.today td:last-child { color: var(--rose); }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.status-badge.open {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .28);
  color: #22c55e;
}
.status-badge.closed {
  background: rgba(181, 112, 110, .1);
  border: 1px solid rgba(181, 112, 110, .28);
  color: var(--rose);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.open .status-dot { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* Detail rows */
.contact__details {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}
.detail-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.detail-lbl {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-l);
  margin-bottom: 4px;
}
.detail-val {
  font-size: .93rem;
  color: var(--charcoal);
}
.detail-val--link { transition: color .2s; }
.detail-val--link:hover { color: var(--rose); }

.contact__socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--stone);
  font-weight: 500;
  transition: color .2s;
}
.contact__social:hover { color: var(--rose); }

/* ---- FOOTER ---- */
.footer { background: var(--charcoal); }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 48px 0 28px;
}
.footer__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__tagline {
  font-size: .78rem;
  color: var(--rose-l);
  letter-spacing: .06em;
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: .85rem;
  color: rgba(255, 255, 255, .48);
  letter-spacing: .04em;
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  color: rgba(255, 255, 255, .45);
  transition: color .2s;
}
.footer__social a:hover { color: var(--rose-l); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 16px 0;
}
.footer__bottom p {
  text-align: center;
  font-size: .78rem;
  color: rgba(255, 255, 255, .24);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.ri, .ri-l, .ri-r {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.ri   { transform: translateY(24px); }
.ri-l { transform: translateX(-32px); }
.ri-r { transform: translateX(32px); }
.ri.in, .ri-l.in, .ri-r.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about__grid    { grid-template-columns: 1fr; gap: 52px; }
  .booking__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid  { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 5%;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  }
  .nav__links.open { display: flex; }
  .nav__burger     { display: flex; }
  .hero__actions   { flex-direction: column; align-items: flex-start; }
  .section         { padding: 64px 0; }
  .about__image-wrap     { height: 380px; }
  .about__frame-accent   { display: none; }
}

@media (max-width: 560px) {
  .gallery__grid--s2,
  .gallery__grid--s3     { grid-template-columns: 1fr; }
  .gallery__grid--s2     { grid-template-rows: 260px; }
  .gallery__grid--s3     { grid-template-rows: 240px 200px 200px; }
  .gallery__grid--s3 .gallery__item--tall { grid-row: span 1; }
  .services__grid { grid-template-columns: 1fr; }
  .form__row      { grid-template-columns: 1fr; }
  .footer__inner  { flex-direction: column; align-items: flex-start; }
}
