/* ════════════════════════════════════════════════════════════════
   XEN CLEAN & HOME CO. — DESIGN SYSTEM v2
   Warm, cozy, home-interior brand. Soft light, layered textures,
   nothing cold or clinical.
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Karla:wght@300;400;500;600&display=swap');

:root {
  --grey: #6B6560;
  --taupe: #B5A393;
  --taupe-dark: #9C8975;
  --taupe-soft: #D9CBBC;
  --cream: #F5F0EA;
  --beige: #E8DDD2;
  --clay: #C99B7A;
  --clay-soft: #E8C9B0;
  --body: #5C5248;
  --white: #FFFFFF;
  --ink: #3A332C;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Karla', Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(24px, 5vw, 72px);

  --shadow-soft: 0 18px 50px -20px rgba(58, 51, 44, 0.18);
  --shadow-card: 0 12px 32px -16px rgba(58, 51, 44, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Typography ──────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
}

.display {
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  font-weight: 400;
  font-optical-sizing: auto;
}

.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--clay);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--body);
  max-width: 600px;
  font-weight: 300;
}

p { margin-bottom: 1em; }

/* ── Decorative warm blob / texture (replaces photography) ─────── */

.warm-scene {
  position: relative;
  border-radius: 28px 28px 12px 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 25% 20%, rgba(232, 201, 176, 0.9), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 75%, rgba(181, 163, 147, 0.85), transparent 65%),
    linear-gradient(155deg, #EFE3D4 0%, #E3D2BE 45%, #C9A77F 100%);
  box-shadow: var(--shadow-soft);
}
.warm-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 14px);
  opacity: 0.5;
}
.warm-scene::after {
  content: '';
  position: absolute;
  width: 55%;
  height: 55%;
  bottom: -10%;
  right: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
  filter: blur(20px);
}
.warm-scene .scene-label {
  position: absolute;
  bottom: 22px;
  left: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(58,51,44,0.55);
  z-index: 2;
}

.warm-scene.variant-2 {
  background:
    radial-gradient(ellipse 75% 55% at 75% 25%, rgba(217, 203, 188, 0.9), transparent 60%),
    radial-gradient(ellipse 65% 50% at 20% 80%, rgba(201, 155, 122, 0.7), transparent 65%),
    linear-gradient(155deg, #F2E8DC 0%, #E8DDD2 50%, #B5A393 100%);
}
.warm-scene.variant-3 {
  background:
    radial-gradient(ellipse 70% 55% at 30% 70%, rgba(232, 201, 176, 0.85), transparent 60%),
    radial-gradient(ellipse 60% 45% at 75% 20%, rgba(156, 137, 117, 0.7), transparent 65%),
    linear-gradient(155deg, #EAD9C4 0%, #D9CBBC 50%, #9C8975 100%);
}

/* ── Header / Nav ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181, 163, 147, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}
.logo .mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  display: inline-block;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  flex-wrap: nowrap;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--body);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--clay); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--clay);
}

.nav-cta {
  font-size: 0.82rem;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  padding: 10px 20px;
  border-radius: 24px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--clay); border-color: var(--clay); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transition: all 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 15px 28px;
  border-radius: 28px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--clay);
  border-color: var(--clay);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--taupe);
}
.btn-outline:hover {
  background: var(--taupe);
  color: var(--white);
}
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Section spacing ─────────────────────────────────────────── */

section { padding: clamp(60px, 8vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(181,163,147,0.5), transparent);
  margin: 0;
}

.rule {
  width: 44px;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(40px, 6vw, 70px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-footnote {
  margin-top: 28px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--clay);
  border-left: 2px solid var(--clay-soft);
  padding-left: 16px;
}

/* ── Trust strip ─────────────────────────────────────────────── */

.trust-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.trust-strip strong { color: var(--clay-soft); font-weight: 600; }

/* ── Cards / Grid ────────────────────────────────────────────── */

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

.service-card {
  background: var(--white);
  padding: clamp(30px, 3vw, 40px);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(58,51,44,0.22);
}
.service-card .icon-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--clay-soft), var(--taupe));
  margin-bottom: 22px;
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.92rem;
  flex-grow: 1;
}
.service-card .card-link {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--clay);
  font-weight: 600;
  padding-top: 16px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Why section (numbered features) ────────────────────────── */

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
}
.feature {
  background: var(--white);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.feature .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--clay);
  display: block;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.feature p { font-size: 0.92rem; margin-bottom: 0; }

/* ── Two column content ─────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.two-col.reverse .col-image { order: 2; }
.col-image {
  aspect-ratio: 4/5;
}

/* ── Banded section ──────────────────────────────────────────── */

.band-section {
  background: linear-gradient(135deg, var(--taupe) 0%, var(--clay) 100%);
  color: var(--white);
}
.band-section h2, .band-section h3 { color: var(--white); }
.band-section .eyebrow { color: rgba(255,255,255,0.85); }

.band-dark {
  background: var(--ink);
  color: var(--cream);
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: var(--clay-soft); }
.band-dark p { color: rgba(245,240,234,0.75); }

/* ── Process steps ───────────────────────────────────────────── */

.process-list {
  list-style: none;
  counter-reset: step;
}
.process-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(181,163,147,0.3);
}
.process-list li:first-child { border-top: 1px solid rgba(181,163,147,0.3); }
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--clay);
}
.process-list h4 {
  font-size: 1.0rem;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.process-list p { font-size: 0.92rem; margin-bottom: 0; }

/* ── Checklist ───────────────────────────────────────────────── */

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  list-style: none;
}
.check-grid li {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  align-items: flex-start;
}
.check-grid li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
  margin-top: 9px;
}

/* ── Testimonial / quote ─────────────────────────────────────── */

.quote-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.quote-block .mark {
  font-family: var(--serif);
  font-size: 3.6rem;
  color: var(--clay-soft);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.quote-block p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.quote-block .cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--clay);
  margin-top: 18px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.review-card .stars { color: var(--clay); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-card p { font-size: 0.92rem; font-style: italic; color: var(--body); margin-bottom: 16px; }
.review-card .cite { font-size: 0.82rem; color: var(--clay); font-weight: 600; }

/* ── Form ────────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(181,163,147,0.4);
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--clay);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ── Contact info blocks ─────────────────────────────────────── */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-block {
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.info-block .eyebrow { margin-bottom: 10px; }
.info-block .value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
}
.info-block .value a:hover { color: var(--clay); }

/* ── Footer ──────────────────────────────────────────────────── */

footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(245,240,234,0.6);
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(245,240,234,0.75);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(245,240,234,0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(245,240,234,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-socials { display: flex; gap: 18px; }
.footer-socials a {
  width: 32px; height: 32px;
  border: 1px solid rgba(245,240,234,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  color: rgba(245,240,234,0.8);
  transition: all 0.2s ease;
}
.footer-socials a:hover { border-color: var(--clay); color: var(--clay); }

/* ── Page hero (interior pages) ─────────────────────────────── */

.page-hero {
  padding-top: clamp(52px, 7vw, 80px);
  padding-bottom: clamp(36px, 5vw, 56px);
  text-align: center;
}
.page-hero .lede { margin: 0 auto; }

.full-bleed-image {
  width: 100%;
  aspect-ratio: 21/9;
}

/* ── Founder block ──────────────────────────────────────────── */

.founder-quote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin: 26px 0;
}

/* ── Animations ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Tablet: collapse to mobile nav earlier to avoid squeeze ──── */

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid rgba(181,163,147,0.3);
    gap: 18px;
    box-shadow: var(--shadow-card);
  }
  .nav-cta.mobile-open {
    display: inline-flex;
    margin: 0 var(--gutter) 24px;
  }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; aspect-ratio: 16/10; }

  .card-grid, .feature-row, .review-grid, .info-grid { grid-template-columns: 1fr; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .col-image { order: -1; }

  .check-grid { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .process-list li { grid-template-columns: 40px 1fr; }
}

