/* ==========================================================================
   DURAPOA MATTRESS — Brand Stylesheet
   Aesthetic: Editorial luxury × Kenyan craft
   Last updated: April 2026
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Colour system */
  --midnight: #0F1419;
  --midnight-soft: #1A2027;
  --cream: #F5EFE6;
  --cream-warm: #EDE4D3;
  --gold: #B8945F;
  --gold-bright: #D4AF7A;
  --ink: #14181D;
  --muted: #6B7280;
  --line: rgba(15, 20, 25, 0.08);
  --line-dark: rgba(245, 239, 230, 0.12);

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 5rem;
  --space-8: 8rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
  transition: opacity 0.2s;
}

.nav__logo-img:hover { opacity: 0.8; }

.nav__links {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 400;
}

.nav__links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  background: var(--midnight);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--midnight);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--midnight);
  transition: all 0.3s var(--ease);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--midnight);
  color: var(--cream);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(184, 148, 95, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(184, 148, 95, 0.08), transparent 60%);
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4) 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  min-height: 90vh;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-warm);
  margin-bottom: var(--space-5);
  animation: fadeUp 0.8s var(--ease) both;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(212, 175, 122, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 122, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(212, 175, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 122, 0); }
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  animation: fadeUp 0.9s 0.1s var(--ease) both;
}

.hero__headline em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}

.hero__accent {
  position: relative;
  font-style: italic;
  color: var(--gold-bright);
}

.hero__accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--cream-warm);
  max-width: 560px;
  margin-bottom: var(--space-6);
  animation: fadeUp 1s 0.2s var(--ease) both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
  animation: fadeUp 1.1s 0.3s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
}

.btn--primary {
  background: var(--cream);
  color: var(--midnight);
}

.btn--primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(184, 148, 95, 0.4);
}

.btn--ghost {
  border: 1px solid var(--line-dark);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn--gold {
  background: var(--gold);
  color: var(--midnight);
}

.btn--gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  animation: fadeUp 1.2s 0.4s var(--ease) both;
}

.hero__proof div {
  display: flex;
  flex-direction: column;
}

.hero__proof strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.hero__proof span {
  font-size: 0.8125rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.hero__proof strong .stat-num {
  font-size: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: inherit;
  margin-top: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MEMORY POINT
   ========================================================================== */
.memory {
  background: var(--cream);
  padding: var(--space-8) 1.5rem;
  position: relative;
}

.memory::before {
  content: '';
  position: absolute;
  top: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.memory__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.memory__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.memory__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--midnight);
  margin-bottom: var(--space-5);
}

.memory__statement em {
  font-style: italic;
  color: var(--gold);
}

.memory__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products {
  background: var(--cream-warm);
  padding: var(--space-8) 1.5rem;
}

.products__head {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.section__label--light { color: var(--gold-bright); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: var(--midnight);
}

.section__sub {
  font-size: 1.0625rem;
  color: var(--ink);
  opacity: 0.8;
}

.products__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(15, 20, 25, 0.12);
  border-color: transparent;
}

.product-card:hover::before { transform: scaleX(1); }

.product-card__tier {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.product-card[data-tier="luxury"] .product-card__tier { color: var(--gold); }
.product-card[data-tier="premium"] .product-card__tier { color: var(--midnight); }

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  color: var(--midnight);
}

.product-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.product-card__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--midnight);
  border-bottom: 1px solid var(--midnight);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: all 0.2s var(--ease);
}

.product-card__link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ==========================================================================
   EXPERT BAND
   ========================================================================== */
.expert {
  background: var(--midnight);
  color: var(--cream);
  padding: var(--space-8) 1.5rem;
  position: relative;
  overflow: hidden;
}

.expert::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 148, 95, 0.1), transparent 60%);
  pointer-events: none;
}

.expert__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.expert__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-4);
}

.expert__title em {
  font-style: italic;
  color: var(--gold-bright);
}

.expert__body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cream-warm);
  margin-bottom: var(--space-5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--midnight-soft);
  color: var(--cream-warm);
  padding: var(--space-7) 1.5rem var(--space-4);
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-dark);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: var(--space-3);
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: var(--cream-warm);
  opacity: 0.75;
  padding: 0.25rem 0;
  transition: opacity 0.2s, color 0.2s;
}

.footer__col a:hover {
  opacity: 1;
  color: var(--gold-bright);
}

.footer__bottom {
  max-width: 1280px;
  margin: var(--space-4) auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  opacity: 0.6;
}

.footer__seal {
  letter-spacing: 0.05em;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform 0.3s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE — MOBILE FIRST FALLBACKS
   Kenya is mobile-first, so we tune carefully here
   ========================================================================== */
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { min-height: auto; padding: var(--space-6) 1.25rem var(--space-7); }
  .hero__proof { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .hero__actions { width: 100%; }
  .btn { flex: 1; justify-content: center; padding: 0.875rem 1.25rem; }

  .memory { padding: var(--space-7) 1.25rem; }
  .products { padding: var(--space-7) 1.25rem; }
  .expert { padding: var(--space-7) 1.25rem; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero__proof { grid-template-columns: repeat(2, 1fr); }
  .hero__proof strong { font-size: 1.25rem; }
}

/* ==========================================================================
   HERO TWO-COLUMN & ANIMATED ILLUSTRATION
   ========================================================================== */

/* Hero content column */
.hero__content { position: relative; z-index: 2; }

/* Particles */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0.15;
}

@keyframes p-a {
  0%,100% { transform: translate(0,0); opacity: 0.12; }
  50% { transform: translate(-14px,-30px); opacity: 0.55; }
}
@keyframes p-b {
  0%,100% { transform: translate(0,0); opacity: 0.08; }
  50% { transform: translate(20px,-24px); opacity: 0.45; }
}
@keyframes p-c {
  0%,100% { transform: translate(0,0); opacity: 0.18; }
  50% { transform: translate(-10px,-40px); opacity: 0.4; }
}

/* Mattress visual column */
/* ==========================================================================
   HERO IMAGE CAROUSEL
   ========================================================================== */
.hero__carousel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 600px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__slide img {
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6));
  animation: mattress-float 5s ease-in-out infinite;
}

@keyframes mattress-float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-20px); }
}

.hero__slide-name {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 1rem;
  opacity: 0.85;
}

.hero__dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245, 239, 230, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero__dot.is-active {
  background: var(--gold-bright);
  transform: scale(1.5);
}

/* ==========================================================================
   LOGO STYLES
   ========================================================================== */
.footer__logo-img {
  height: 64px;
  width: auto;
  border-radius: 6px;
  margin-bottom: var(--space-3);
  display: block;
}

.footer__social {
  display: flex;
  gap: 0.625rem;
  margin-top: var(--space-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 239, 230, 0.2);
  color: var(--cream-warm);
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.footer__social-link:hover {
  opacity: 1;
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

/* ==========================================================================
   PRODUCT CARD PHOTOS — floating, no white background
   ========================================================================== */
.product-card__photo {
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-3);
  background: transparent;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.75rem 0;
}

.product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: img-float 4.5s ease-in-out infinite;
}

/* Stagger each card's float so they don't all move in sync */
.products__grid .product-card:nth-child(1) .product-card__photo img { animation-delay: 0s; }
.products__grid .product-card:nth-child(2) .product-card__photo img { animation-delay: 0.5s; }
.products__grid .product-card:nth-child(3) .product-card__photo img { animation-delay: 1.0s; }
.products__grid .product-card:nth-child(4) .product-card__photo img { animation-delay: 1.5s; }
.products__grid .product-card:nth-child(5) .product-card__photo img { animation-delay: 0.25s; }
.products__grid .product-card:nth-child(6) .product-card__photo img { animation-delay: 0.75s; }
.products__grid .product-card:nth-child(7) .product-card__photo img { animation-delay: 1.25s; }
.products__grid .product-card:nth-child(8) .product-card__photo img { animation-delay: 1.75s; }

@keyframes img-float {
  0%,100% {
    transform: translateY(0px);
    filter: drop-shadow(0 18px 22px rgba(0,0,0,0.22));
  }
  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 28px 38px rgba(0,0,0,0.10));
  }
}

/* ==========================================================================
   RESPONSIVE — hero collapses on tablet/mobile
   ========================================================================== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--space-7) 1.5rem var(--space-6);
  }
  .hero__carousel {
    max-width: 440px;
    margin: 0 auto;
  }
  .hero__slides { height: 360px; }
  .hero__slide img { max-height: 300px; }
}

@media (max-width: 640px) {
  .hero__carousel { display: none; }
  .hero__inner { padding: var(--space-6) 1.25rem var(--space-7); }
}

/* Inner-page logo paths use ../ prefix — same CSS works for both */
.nav__logo-img-inner {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
}
