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

:root {
  --cream: #F5F0EB;
  --cream-light: #FAF7F4;
  --black: #1A1A1A;
  --gold: #C4A265;
  --text-muted: #6B6260;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 240, 235, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,26,26,0.06);
  transition: all 0.3s ease;
}
nav.scrolled {
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
}
.nav-logo span { font-style: italic; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }

/* ── ROUTINE HERO ── */
.routine-hero {
  min-height: 70vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8rem 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
}
.routine-hero .hero-content { flex: 1; }
.routine-hero .hero-icon {
  flex: 0 0 200px;
  color: var(--accent);
  opacity: 0.4;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.back-link:hover { color: var(--black); }
.hero-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1.2rem;
  margin-bottom: 2rem;
  font-weight: 500;
}
.routine-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.routine-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ── STEPS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.step {
  padding: 4rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease both;
}
.step:nth-of-type(1) { animation-delay: 0.1s; }
.step:nth-of-type(2) { animation-delay: 0.3s; }
.step:nth-of-type(3) { animation-delay: 0.5s; }

.step-header {
  margin-bottom: 3rem;
}
.step-number {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.step-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.step-note {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── PRODUCT CARDS (Step 1 & 2) ── */
.products-row {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}
.products-row.single {
  max-width: 500px;
}

.product-card {
  flex: 1;
  background: var(--cream-light);
  border: 1px solid rgba(26,26,26,0.06);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.product-card.featured {
  border-color: var(--accent);
  border-width: 1px;
}

.product-badge {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: var(--accent-light, rgba(123,167,194,0.08));
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.product-badge.night {
  background: rgba(26,26,26,0.06);
  color: var(--text-muted);
}

.product-image-placeholder {
  width: 80px;
  height: 100px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.product-brand {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.product-benefit {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.product-usage {
  padding-top: 1rem;
  border-top: 1px solid rgba(26,26,26,0.06);
}
.usage-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.usage-value {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
}
.product-divider span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── TIMELINE (Step 3) ── */
.products-timeline {
  position: relative;
  padding-left: 3rem;
}
.products-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(26,26,26,0.06));
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeInLeft 0.5s ease both;
}
.timeline-item:nth-child(1) { animation-delay: 0.6s; }
.timeline-item:nth-child(2) { animation-delay: 0.8s; }
.timeline-item:nth-child(3) { animation-delay: 1s; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: 0;
  width: 30px;
  height: 30px;
  background: var(--cream);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--accent);
}

.timeline-item .product-card {
  flex: 1;
  padding: 2rem 2.5rem;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.detail-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.detail-label {
  flex: 0 0 70px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
}
.detail-value {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── OTHER ROUTINES NAV ── */
.other-routines {
  padding: 5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(26,26,26,0.06);
}
.other-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.other-grid {
  display: flex;
  gap: 1.5rem;
}
.other-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--cream-light);
  border: 1px solid rgba(26,26,26,0.06);
  text-decoration: none;
  color: var(--black);
  transition: all 0.4s ease;
}
.other-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.other-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.5;
}
.other-name {
  flex: 1;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}
.other-card svg {
  color: var(--text-muted);
  transition: transform 0.3s;
}
.other-card:hover svg { transform: translateX(4px); }

/* ── FOOTER ── */
footer {
  padding: 4rem 2rem;
  text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.footer-logo span { font-style: italic; }
.footer-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--cream);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent, var(--gold));
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }

  .routine-hero {
    flex-direction: column;
    padding: 6rem 1.5rem 2.5rem;
    min-height: auto;
    gap: 2rem;
  }
  .routine-hero .hero-icon { display: none; }
  .routine-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-tagline { font-size: 0.95rem; }
  .hero-badge { font-size: 0.6rem; padding: 0.3rem 1rem; margin-bottom: 1.5rem; }
  .back-link { margin-bottom: 1.5rem; }

  .step { padding: 2.5rem 1.5rem; }
  .step-header { margin-bottom: 2rem; }
  .step-header h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

  .products-row {
    flex-direction: column;
  }
  .product-card { padding: 1.75rem; }
  .product-name { font-size: 1.15rem; }
  .product-benefit { font-size: 0.85rem; }
  .product-divider {
    flex: 0 0 auto;
    padding: 0.5rem 0;
  }
  .product-image-placeholder img,
  .product-card img {
    max-height: 100px !important;
  }

  .products-timeline { padding-left: 2.25rem; }
  .products-timeline::before { left: 12px; }
  .timeline-marker { width: 26px; height: 26px; font-size: 0.7rem; }
  .timeline-item { gap: 0.75rem; margin-bottom: 1.5rem; }
  .timeline-item .product-card { padding: 1.5rem; }
  .timeline-item .product-card img { max-height: 80px !important; }

  .detail-row { flex-direction: column; gap: 0.2rem; }
  .detail-label { flex: none; }
  .detail-value { font-size: 0.85rem; }

  .other-routines { padding: 3rem 1.5rem; }
  .other-grid { flex-direction: column; gap: 1rem; }
  .other-card { padding: 1.25rem 1.5rem; }

  footer { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  nav { padding: 1rem 1.25rem; }
  nav.scrolled { padding: 0.6rem 1.25rem; }
  .nav-logo { font-size: 1.25rem; }

  .routine-hero { padding: 5.5rem 1.25rem 2rem; }
  .step { padding: 2rem 1.25rem; }
  .product-card { padding: 1.5rem; }
  .timeline-item .product-card { padding: 1.25rem; }
  .products-timeline { padding-left: 2rem; }
  .products-timeline::before { left: 10px; }
  .timeline-marker { width: 22px; height: 22px; font-size: 0.65rem; }

  .other-routines { padding: 2.5rem 1.25rem; }
}
