/* =========================================================
   Lunara Natura Spa — Stylesheet
   Warm ivory / travertine / soft taupe palette
   Japanese-inspired quiet luxury
   ========================================================= */

:root {
  --ivory: #f7f2ea;
  --cream: #efe7da;
  --travertine: #e6dcca;
  --taupe: #b9a78c;
  --taupe-soft: #d8c9b3;
  --warm-gray: #8a8073;
  --wood: #a98b6d;
  --ink: #3d352a;
  --ink-soft: #5a4f42;
  --dark: #2c2620;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --radius: 24px;
  --radius-lg: 36px;

  --transition: 400ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ivory);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

.section-title {
  font-size: clamp(2.25rem, 4.4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 0.6em;
}

.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.7rem;
  color: var(--warm-gray);
  margin: 0 0 1.6em;
  font-weight: 400;
}
.kicker.light { color: var(--taupe-soft); }

.lede {
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--taupe);
  margin: 0 0 1.8em;
}

.hero-logo {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 32px;
  display: block;
  border: none;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.3);
  filter: brightness(1.5) contrast(0.85) saturate(0.7);
}

@media (max-width: 720px) {
  .hero-logo { width: 88px; height: 88px; margin-bottom: 24px; }
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--taupe);
  margin: 36px auto 0;
  opacity: 0.6;
}

/* ---------- Philosophy statements ---------- */

.philosophy-statements {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.philosophy-statements p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
  padding: 28px 0;
}

.phi-divider {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--taupe);
  opacity: 0.45;
  flex-shrink: 0;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(247, 242, 234, 0);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(58, 49, 38, 0.06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  transition: color var(--transition);
}
.nav.scrolled .brand { color: var(--ink); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), filter var(--transition);
  filter: brightness(1.5) contrast(0.85) saturate(0.7);
}
.nav.scrolled .brand-mark {
  filter: brightness(1) contrast(1) saturate(1);
}
.brand:hover .brand-mark { transform: scale(1.04); }

.footer-mark {
  width: 32px;
  height: 32px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  transition: color var(--transition);
}
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--taupe); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--taupe);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ivory);
  transition: background var(--transition);
}
.nav.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 17px 40px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--taupe);
  transform: translateY(-1px);
}
.btn-light {
  background: transparent;
  color: var(--ivory);
  border-color: var(--taupe-soft);
}
.btn-light:hover {
  background: var(--ivory);
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ivory);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,38,32,0.25) 0%, rgba(44,38,32,0.15) 50%, rgba(44,38,32,0.3) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 32px 120px;
  max-width: 880px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.6vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--travertine);
  margin: 0 0 32px;
}

.hero-statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  color: var(--travertine);
  max-width: 640px;
  margin: 0 auto 48px;
}

.hero-actions { margin-bottom: 64px; }
.hero-actions .btn-primary {
  background: var(--ivory);
  color: var(--ink);
}
.hero-actions .btn-primary:hover {
  background: var(--taupe);
  color: var(--ivory);
}

.hero-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--taupe-soft);
  margin: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 56px;
  overflow: hidden;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--taupe-soft);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(0%); }
  100% { transform: translateY(100%); }
}

/* ---------- Sections ---------- */

.section {
  padding: 120px 0;
  position: relative;
}
.section-light  { background: var(--ivory); }
.section-cream  { background: var(--cream); }
.section-stone  { background: var(--travertine); }
.section-dark   { background: var(--dark); color: var(--ivory); }
.section-dark .section-title { color: var(--ivory); }
.section-dark .lede { color: var(--taupe-soft); }
.light { color: var(--ivory) !important; }

.section-head {
  margin-bottom: 72px;
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */

.card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(185, 167, 140, 0.18);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(58, 49, 38, 0.25);
}
.card-icon {
  width: 44px;
  height: 44px;
  color: var(--taupe);
  margin-bottom: 24px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* ---------- Treatments ---------- */

.treatments { margin-top: 24px; }

.treatment {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(185, 167, 140, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.treatment:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(58, 49, 38, 0.3);
}

.treatment-img {
  aspect-ratio: 4 / 3;
  background-color: var(--travertine);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.treatment-body {
  flex: 1;
  padding: 0 32px;
}

.treatment-body h3 {
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  margin: 36px 0 12px;
}

.treatment-body p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.8;
  margin: 0 0 18px;
}

.treatment-meta {
  margin-top: auto;
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(185, 167, 140, 0.18);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.meta-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--taupe);
  flex-shrink: 0;
  margin-right: 16px;
}

/* ---------- Journey ---------- */

.journey {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.journey li {
  flex: 1;
  min-width: 160px;
  position: relative;
  text-align: center;
  padding: 32px 18px;
  background: rgba(247, 242, 234, 0.55);
  border-radius: var(--radius);
  border: 1px solid rgba(185, 167, 140, 0.25);
}

.journey li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 1px;
  background: var(--taupe);
  opacity: 0.5;
}

.step {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: var(--taupe);
  margin-bottom: 12px;
  letter-spacing: 0.12em;
}

.step-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* ---------- Contact ---------- */

.contact-info {
  margin: 48px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}
.contact-info p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(216, 201, 179, 0.18);
  margin: 0;
  font-size: 0.98rem;
  color: var(--ivory);
}
.contact-info span {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--taupe-soft);
}
.contact-info a:hover { color: var(--taupe-soft); }

/* ---------- Contact form ---------- */

.contact-form {
  margin: 8px auto 32px;
  max-width: 520px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(216, 201, 179, 0.28);
  padding: 10px 0 12px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ivory);
  resize: vertical;
  transition: border-color var(--transition);
}
.contact-form textarea {
  min-height: 120px;
  line-height: 1.6;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(216, 201, 179, 0.5);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--taupe);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: rgba(200, 120, 100, 0.5);
}

.contact-submit {
  align-self: center;
  margin-top: 8px;
  min-width: 220px;
}
.contact-submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-status {
  text-align: center;
  margin: 4px 0 0;
  min-height: 1.4em;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--taupe-soft);
}
.form-status.success { color: #d8c9b3; }
.form-status.error { color: #d8a89c; }

.contact-fallback {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--taupe-soft);
}
.contact-fallback a {
  color: var(--ivory);
  border-bottom: 1px solid rgba(216, 201, 179, 0.4);
  padding-bottom: 1px;
  transition: border-color var(--transition);
}
.contact-fallback a:hover { border-color: var(--taupe); }

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  color: var(--taupe-soft);
  padding: 32px 0;
  border-top: 1px solid rgba(185, 167, 140, 0.12);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex-wrap: wrap;
}
.footer p {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms ease, transform 900ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 0 22px; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: 78%;
    max-width: 320px;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 110px 32px 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -20px 0 40px -20px rgba(0,0,0,0.2);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--ink); font-size: 0.95rem; }

  .nav-toggle { display: flex; }

  .hero-content { padding: 130px 22px 100px; }

  .journey {
    flex-direction: column;
    gap: 12px;
  }
  .journey li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -12px;
    transform: translateX(50%);
    width: 1px;
    height: 12px;
  }

  .section-head { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .contact-info p { flex-direction: column; align-items: flex-start; gap: 4px; }
}
