/* MoodLit Salon & Spa: editorial warm-light theme */

:root {
  --cream: #faf3ea;
  --cream-deep: #f3e8d8;
  --ink: #2b2320;
  --ink-soft: #55483f;
  --terracotta: #b85c38;
  --terracotta-deep: #9a4a2c;
  --plum: #6b3f4d;
  --gold: #c99a3f;
  --line: rgba(43, 35, 32, 0.12);
  --max: 1360px;
  --serif: "Fraunces", "Iowan Old Style", serif;
  --sans: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 450;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terracotta-deep);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(250, 243, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-dot { color: var(--terracotta); }

.main-nav {
  display: flex;
  gap: 2.4rem;
}

.main-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--terracotta-deep); }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.03;
  margin-bottom: 1.4rem;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff8f0;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 10px 24px -10px rgba(184, 92, 56, 0.55);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--terracotta-deep); border-color: var(--terracotta-deep); }

.hero-media {
  position: relative;
  height: clamp(320px, 42vw, 560px);
}

.hero-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 30px 60px -25px rgba(43, 35, 32, 0.4);
}

.hero-img-float {
  position: absolute;
  bottom: -8%;
  left: -14%;
  width: 46%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
  border: 6px solid var(--cream);
  box-shadow: 0 24px 48px -20px rgba(43, 35, 32, 0.45);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-deep);
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: scroll 26s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--plum);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Services */
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  max-width: 16ch;
}

.section-head { margin-bottom: 3rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -24px rgba(43, 35, 32, 0.35);
}

.service-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}

.service-index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

/* Story */
.story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(5rem, 9vw, 8rem);
}

.story-media img {
  border-radius: 20px;
  height: clamp(320px, 34vw, 460px);
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(43, 35, 32, 0.4);
}

.story-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  max-width: 18ch;
  margin-bottom: 1.2rem;
}

.story-copy > p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}

.story-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-points li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
  max-width: 50ch;
}

.story-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.story-points strong { color: var(--ink); }

/* Visit */
.visit {
  background: var(--plum);
  color: #f6ece8;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.visit-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.visit .eyebrow { color: #e8b98f; }

.visit-copy h2 {
  color: #fbf3ee;
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 14ch;
  margin-bottom: 2.2rem;
}

.visit-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(246, 236, 232, 0.22);
}

.visit-details h4 {
  font-family: var(--sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e8b98f;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.visit-details p {
  margin: 0;
  color: #f1e3dc;
  font-size: 0.96rem;
  line-height: 1.5;
}

.visit .btn-primary {
  background: #e8b98f;
  color: #3c2418;
  box-shadow: none;
}

.visit .btn-primary:hover { background: #f2cba4; }

.visit-map img {
  border-radius: 20px;
  height: clamp(260px, 26vw, 380px);
  object-fit: cover;
}

/* Footer */
.site-footer {
  padding: 2.6rem clamp(1.5rem, 5vw, 4rem) 2.2rem;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-note {
  color: rgba(85, 72, 63, 0.55);
  font-size: 0.78rem;
  margin: 0;
}

/* Reveal on scroll */
.service-card, .story-media, .story-copy, .hero-copy, .hero-media {
  animation: rise 0.8s ease both;
}

.service-card:nth-child(2) { animation-delay: 0.08s; }
.service-card:nth-child(3) { animation-delay: 0.16s; }
.service-card:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; height: 340px; margin-bottom: 1rem; }
  .hero-img-float { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .visit-inner { grid-template-columns: 1fr; }
  .visit-details { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .visit-details { grid-template-columns: 1fr; }
  .site-header { padding: 1.1rem 1.3rem; }
}
