/* =========================================================
   Maison Lumière — Modern Luxury Salon
   Palette: warm cream, charcoal, coral accent, rose gold
   Type: Cormorant Garamond (display) + Jost (sans)
   ========================================================= */

:root {
  --cream: #faf7f2;
  --cream-2: #f2ece2;
  --sand: #ece3d6;
  --charcoal: #26221f;
  --charcoal-2: #3a342f;
  --muted: #7d746a;
  --coral: #d99884;
  --coral-deep: #c47f6a;
  --line: #e4dccf;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only, .skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto; clip: auto;
  background: var(--charcoal); color: var(--cream);
  padding: 10px 16px; z-index: 1000; border-radius: var(--radius);
}

/* Typography ------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; color: var(--charcoal); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.3px; }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--coral-deep);
  margin-bottom: 1rem;
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 0.85rem; }
.btn-solid { background: var(--charcoal); color: var(--cream); }
.btn-solid:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: currentColor; }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }

/* Header ---------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--charcoal); }
.brand-mark { color: var(--coral-deep); display: inline-flex; }
.brand-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.5px; }

/* Hero header starts transparent over dark image -> light text */
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .site-nav a { color: var(--cream); }
.site-header:not(.scrolled) .brand-mark { color: var(--coral); }
.site-header:not(.scrolled) .header-cta { background: var(--cream); color: var(--charcoal); }
.site-header:not(.scrolled) .header-cta:hover { background: var(--coral); }

.site-nav ul { display: flex; gap: 32px; }
.site-nav a {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 400; position: relative; padding: 4px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--coral-deep); transition: width 0.3s var(--ease);
}
.site-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: 0.3s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--charcoal); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--cream);
  border-top: 1px solid var(--line);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.mobile-nav.open { max-height: 420px; }
.mobile-nav ul { flex-direction: column; padding: 12px 24px 26px; gap: 4px; }
.mobile-nav a {
  display: block; padding: 14px 0; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }

/* Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  padding: 120px 0 80px;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,17,15,0.72) 0%, rgba(20,17,15,0.42) 55%, rgba(20,17,15,0.2) 100%);
}
.hero-content { max-width: 720px; }
.hero .eyebrow { color: var(--coral); }
.hero h1 { color: var(--cream); max-width: 15ch; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  margin: 1.6rem 0 2.4rem;
  max-width: 46ch;
  color: rgba(250, 247, 242, 0.9);
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .btn-outline { color: var(--cream); border-color: rgba(250,247,242,0.6); }
.hero .btn-outline:hover { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }
.hero-note {
  margin-top: 2.2rem; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(250,247,242,0.72);
}

/* Sections -------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 620px; margin: 0 auto clamp(48px, 6vw, 74px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: 1.1rem; }

/* Services -------------------------------------------------- */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 34px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -28px rgba(38,34,31,0.4);
  border-color: var(--coral);
}
.service-icon {
  display: inline-flex; width: 54px; height: 54px;
  align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cream-2); color: var(--coral-deep);
  margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.98rem; }

/* Gallery --------------------------------------------------- */
.gallery { background: var(--cream-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 20px 18px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  background: linear-gradient(transparent, rgba(20,17,15,0.72));
  opacity: 0; transform: translateY(12px);
  transition: all 0.4s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* Why choose us --------------------------------------------- */
.why { background: var(--cream); }
.why-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.why-media { border-radius: var(--radius); overflow: hidden; }
.why-media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.why-list { margin-top: 2rem; display: grid; gap: 30px; }
.why-list li { display: flex; gap: 22px; }
.why-num {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--coral-deep);
  min-width: 42px; padding-top: 2px;
}
.why-list h3 { margin-bottom: 6px; }
.why-list p { color: var(--muted); font-size: 0.98rem; }

/* CTA / Contact --------------------------------------------- */
.cta { background: var(--charcoal); color: var(--cream); }
.cta h2 { color: var(--cream); }
.cta .eyebrow { color: var(--coral); }
.cta .section-lead { color: rgba(250,247,242,0.72); }
.cta-inner { text-align: center; }
.cta-copy { max-width: 560px; margin: 0 auto 3rem; }
.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 880px; margin: 0 auto;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px 24px;
  border: 1px solid rgba(250,247,242,0.16);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}
.contact-card:hover { background: var(--charcoal-2); border-color: var(--coral); transform: translateY(-5px); }
.contact-ico {
  display: inline-flex; width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(217,152,132,0.16); color: var(--coral);
  margin-bottom: 6px;
}
.contact-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); }
.contact-value { font-family: var(--font-display); font-size: 1.35rem; }

/* Footer ---------------------------------------------------- */
.site-footer { background: #1c1815; color: rgba(250,247,242,0.78); padding: 74px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.brand-light { color: var(--cream); margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: 0.94rem; }
.footer-col h4 {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream);
  margin-bottom: 14px;
}
.footer-col p { font-size: 0.94rem; }
.footer-col a { transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--coral); }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
  display: inline-flex; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(250,247,242,0.2); border-radius: 50%;
  transition: all 0.3s var(--ease);
}
.social a:hover { background: var(--coral); color: var(--charcoal); border-color: var(--coral); }

.news-form { display: flex; gap: 8px; margin-top: 6px; }
.news-form input {
  flex: 1; min-width: 0;
  background: rgba(250,247,242,0.06);
  border: 1px solid rgba(250,247,242,0.2);
  color: var(--cream); padding: 11px 14px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9rem;
}
.news-form input::placeholder { color: rgba(250,247,242,0.5); }
.news-form input:focus { outline: none; border-color: var(--coral); }
.news-form .btn { padding: 11px 20px; }
.news-msg { font-size: 0.85rem; margin-top: 10px; color: var(--coral); min-height: 1em; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 54px; padding-top: 24px;
  border-top: 1px solid rgba(250,247,242,0.12);
  font-size: 0.82rem; color: rgba(250,247,242,0.55);
}

/* Reveal animation ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; }
  .why-media { max-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 2; }
}

@media (max-width: 760px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
  /* When mobile menu context: keep toggle visible on dark hero */
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 1; }
  .cta-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-news { grid-column: span 1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-wide, .gallery-tall { grid-column: span 1; grid-row: span 1; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
