/* ── Variables ── */
:root {
  --background: #282922;
  --foreground: #93585e;
  --muted-foreground: #a9cc8b;
  --secondary: #f2cfcd;
  --destructive: #e05555;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── MAIN ── */
main {
  padding: 8rem 1.5rem 5rem;
}

@media (min-width: 768px) {
  main {
    padding: 10rem 3rem 5rem;
  }
}

/* ── SECTION HEADING ── */
.section-heading {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(40px);

  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-heading.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1;
}

.section-heading p {
  max-width: 32rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* ── CONTENT WRAPPER ── */
.content {
  max-width: 48rem;
  margin: 0 auto;
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
}

.timeline__line {
  display: none;
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 0.5px;
  background: rgba(240, 237, 232, 0.1);
}

@media (min-width: 768px) {
  .timeline__line {
    display: block;
  }
}

/* ── AFTERCARE STEP ── */
.aftercare-step {
  position: relative;
  padding-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.aftercare-step.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .aftercare-step {
    padding-left: 4rem;
  }
}

/* Timeline dot — desktop only */
.step-dot {
  display: none;
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 237, 232, 0.15);
  background: var(--background);
}
@media (min-width: 768px) {
  .step-dot {
    display: flex;
  }
}

/* Icon SVGs */
.step-dot svg,
.step-icon-mobile svg {
  width: 14px;
  height: 14px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile icon + phase row */
.step-mobile-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .step-mobile-header {
    display: none;
  }
}

.step-icon-mobile svg {
  width: 16px;
  height: 16px;
}

/* Phase label */
.step-phase {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
}

/* Desktop phase label */
.step-phase-desktop {
  display: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .step-phase-desktop {
    display: block;
  }
}

.step-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin-bottom: 0.25rem;
}

.step-time {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.step-instructions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-instructions li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.step-instructions li::before {
  content: "—";
  color: rgba(240, 237, 232, 0.2);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ── BOTTOM CTA ── */
.bottom-cta {
  margin-top: 6rem;
  padding: 2rem;
  border: 1px solid rgba(240, 237, 232, 0.1);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
@media (min-width: 768px) {
  .bottom-cta {
    margin-top: 8rem;
    padding: 3rem;
  }
}
.bottom-cta.in-view {
  opacity: 1;
}

.bottom-cta__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.bottom-cta p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
}

.bottom-cta__email {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  transition:
    background 0.6s ease,
    backdrop-filter 0.6s ease,
    border-color 0.6s ease;

  background: transparent;
}

.site-nav.scrolled {
  background: rgba(250, 249, 249, 0.021);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(253, 250, 245, 0.041);
}

.nav-inner {
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-around;

  padding: 0 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;

  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* MOBILE */

.mobile-toggle {
  display: none;

  background: none;
  border: none;
  color: var(--foreground);

  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;

  background: var(--background);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;

  z-index: 999;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 3rem;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(240, 237, 232, 0.08);

  margin-top: 8rem;
  padding: 6rem 1.5rem 0rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-left: 10%;
  gap: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;

  margin-bottom: 1rem;
}

.footer-text {
  color: var(--muted-foreground);
  max-width: 260px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;

  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 237, 232, 0.05);

  margin-top: 5rem;
  padding: 2rem;

  display: flex;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* PAGE TRANSITION */

.page-transition {
  opacity: 0;
  filter: blur(8px);

  animation: pageFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFade {
  to {
    opacity: 1;
    filter: blur(0px);
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}
