/* ============================================================
   Wellness Care Base — bedding & linen
   Palette: dusty blue #7C9AB8 · sand #EFE6D8 · white
   Fonts:   Lora (display) · Work Sans (body)
   ============================================================ */

:root {
  --blue: #7C9AB8;
  --blue-deep: #4E6E8C;
  --blue-tint: #E9EFF5;
  --sand: #EFE6D8;
  --sand-deep: #D9C9AE;
  --white: #FFFFFF;
  --ink: #2E3D4F;
  --ink-muted: #6B7887;
  --radius: 2px;
  --shadow-soft: 0 6px 22px rgba(46, 61, 79, 0.08);
  --shadow-lift: 0 16px 42px rgba(46, 61, 79, 0.15);
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1220px, 92%); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 18px;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; letter-spacing: 0.005em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 15px 30px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-dark { background: var(--white); color: var(--ink); }
.btn-dark:hover { background: var(--sand); }
.btn-add { width: 100%; padding: 12px 18px; font-size: 12.5px; background: var(--white); color: var(--ink); border-color: var(--ink); border-width: 1.5px; }
.btn-add:hover { background: var(--ink); color: var(--white); }
.btn-add.added { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); cursor: default; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink); color: var(--sand);
  text-align: center; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 16px; font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 61, 79, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.logo {
  font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: 0.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo em { font-style: italic; color: var(--blue-deep); }
.logo .tld { font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--ink-muted); margin-left: 2px; }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 2px; border-bottom: 1.5px solid transparent; transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--blue-deep); border-bottom-color: var(--blue); }
.main-nav a:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius); border: none; background: transparent;
  color: var(--ink); cursor: pointer; transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--blue-tint); }
.icon-btn:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 2px;
  background: var(--blue-deep); color: var(--white); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; }
.mobile-nav {
  display: none; flex-direction: column; padding: 6px 4% 16px;
  border-top: 1px solid rgba(46, 61, 79, 0.1);
}
.mobile-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 4px; border-bottom: 1px solid rgba(46, 61, 79, 0.08);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; overflow: hidden; background: linear-gradient(180deg, var(--sand) 0%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 20px; }
.lede { font-size: 17px; color: var(--ink-muted); max-width: 46ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-meta li { font-size: 14px; color: var(--ink-muted); display: flex; align-items: center; gap: 9px; }
.hero-meta li::before {
  content: ""; width: 18px; height: 1.5px; background: var(--blue); flex: none;
}
.hero-media { position: relative; padding-bottom: 56px; }
.hero-main { margin: 0; }
.hero-main img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.hero-secondary {
  position: absolute; left: -34px; bottom: 0; width: 42%; margin: 0;
  border: 6px solid var(--white); box-shadow: var(--shadow-soft); border-radius: var(--radius);
}
.hero-secondary img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.chip {
  position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(46, 61, 79, 0.08);
  border-radius: var(--radius); padding: 12px 18px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-soft); color: var(--ink);
}
.chip-b { top: 26px; right: -14px; }
.chip-stars { color: var(--blue); letter-spacing: 2px; font-size: 13px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--blue-tint); border-block: 1px solid rgba(46, 61, 79, 0.1); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-item { display: flex; align-items: center; gap: 14px; color: var(--blue-deep); }
.trust-item svg { flex: none; }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.trust-item span { font-size: 13px; color: var(--ink-muted); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 10px; }
.section-head p { color: var(--ink-muted); font-size: 16px; }

/* ---------- Fabric story strip ---------- */
.fabric { padding: 80px 0 30px; }
.fabric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(46, 61, 79, 0.14); }
.fabric-card {
  padding: 40px 34px; color: var(--blue-deep); display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid rgba(46, 61, 79, 0.14); background: var(--white);
  transition: background 0.2s ease;
}
.fabric-card:last-child { border-right: none; }
.fabric-card:hover { background: var(--sand); }
.fabric-card h3 { font-size: 21px; color: var(--ink); }
.fabric-card p { font-size: 14.5px; color: var(--ink-muted); flex: 1; }
.fabric-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-deep); border-top: 1px solid rgba(46, 61, 79, 0.14); padding-top: 12px;
}

/* ---------- Bestsellers ---------- */
.bestsellers { padding: 76px 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--white); border: 1px solid rgba(46, 61, 79, 0.12);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-media { position: relative; overflow: hidden; }
.product-media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius);
}
.badge-hot { background: var(--ink); color: var(--white); }
.badge-new { background: var(--blue-deep); color: var(--white); }
.product-info { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.product-info h3 { font-size: 19px; }
.stars-row { display: flex; align-items: center; gap: 8px; }
.stars { color: var(--blue); letter-spacing: 2px; font-size: 14px; }
.count { font-size: 13px; color: var(--ink-muted); }
.product-desc { font-size: 14px; color: var(--ink-muted); flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-weight: 600; font-size: 18px; }
.compare { color: var(--ink-muted); text-decoration: line-through; font-size: 14.5px; }

/* ---------- Editorial band ---------- */
.band {
  background:
    linear-gradient(95deg, rgba(46, 61, 79, 0.86) 12%, rgba(78, 110, 140, 0.5) 58%, rgba(46, 61, 79, 0.18)),
    url("images/s4-band.webp") center / cover no-repeat;
  min-height: 460px; display: flex; align-items: center;
}
.band-inner { width: min(1220px, 92%); margin-inline: auto; }
.band-copy { max-width: 540px; color: var(--white); padding: 72px 0; }
.eyebrow-light { color: var(--sand); }
.band-copy h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--white); margin-bottom: 16px; }
.band-copy p { color: rgba(255, 255, 255, 0.86); margin-bottom: 30px; }

/* ---------- Steps ---------- */
.steps { padding: 76px 0 30px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--white); border: 1px solid rgba(46, 61, 79, 0.12);
  border-radius: var(--radius); padding: 34px 30px; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.step-num {
  font-family: var(--font-display); font-style: italic; font-size: 30px;
  color: var(--blue); display: block; margin-bottom: 14px;
}
.step-card h3 { font-size: 20px; margin-bottom: 10px; }
.step-card p { font-size: 14.5px; color: var(--ink-muted); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 76px 0; background: var(--sand); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  border-top: 3px solid var(--blue);
}
.testimonial-card blockquote { font-family: var(--font-display); font-size: 16.5px; font-style: italic; color: var(--ink); flex: 1; }
.testimonial-card figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-deep);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 56px 0; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--blue-tint); color: var(--ink); padding: 80px 0; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.newsletter .eyebrow { color: var(--blue-deep); }
.newsletter h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 12px; }
.newsletter-copy p { color: var(--ink-muted); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.newsletter-form input {
  flex: 1 1 240px; padding: 14px 20px; border-radius: var(--radius);
  border: 1.5px solid rgba(46, 61, 79, 0.35); background: var(--white);
  color: var(--ink); font-family: var(--font-body); font-size: 15px;
}
.newsletter-form input::placeholder { color: var(--ink-muted); }
.newsletter-form input:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(124, 154, 184, 0.3); }
.newsletter-form .btn-primary { background: var(--ink); color: var(--white); }
.newsletter-form .btn-primary:hover { background: var(--blue-deep); }
.form-note { flex-basis: 100%; font-size: 12.5px; color: var(--ink-muted); }
.form-success { flex-basis: 100%; font-weight: 600; color: var(--blue-deep); font-size: 16px; }
.form-error { border-color: #B5644F !important; }

/* ---------- Footer ---------- */
.site-footer { background: #25313F; color: rgba(255, 255, 255, 0.75); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 42px;
}
.logo-light { color: var(--white); }
.logo-light em { color: var(--blue); }
.logo-light .tld { color: rgba(255, 255, 255, 0.5); }
.footer-brand p { font-size: 14.5px; margin: 16px 0 20px; max-width: 34ch; }
.footer-widget {
  background: rgba(124, 154, 184, 0.12); border: 1px solid rgba(124, 154, 184, 0.35);
  border-radius: var(--radius); padding: 18px 20px;
}
.footer-widget h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.footer-widget ul { list-style: none; }
.footer-widget li { font-size: 13.5px; padding: 3px 0; }
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-col a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.payments-title { margin-top: 24px; }
.payments { display: flex; flex-wrap: wrap; gap: 8px; }
.payments li {
  margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius); padding: 5px 10px; color: rgba(255, 255, 255, 0.85);
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em;
  padding: 15px 28px; border-radius: var(--radius); box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 300;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fabric-grid { grid-template-columns: 1fr; }
  .fabric-card { border-right: none; border-bottom: 1px solid rgba(46, 61, 79, 0.14); }
  .fabric-card:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 40px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { padding-bottom: 44px; }
  .hero-secondary { left: auto; right: 0; width: 40%; }
  .chip-b { top: auto; bottom: 20px; right: 8px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .steps-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 28px; }
  .fabric, .bestsellers, .testimonials, .steps { padding-top: 56px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 34px; }
  .logo { font-size: 17px; }
}
