/* ============================================================
   Zayfa Living — Styles
   Elegant, warm, editorial home-brand aesthetic
   ============================================================ */

:root {
  --cream: #faf6ef;
  --cream-deep: #f2ead9;
  --ink: #2e2a26;
  --ink-soft: #6b635a;
  --terracotta: #b56a4a;
  --terracotta-dark: #9a5638;
  --sage: #8a8f7a;
  --line: rgba(46, 42, 38, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px -30px rgba(46, 42, 38, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

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

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

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

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: 2px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 22px;
}
.section-title em { font-style: italic; color: var(--terracotta); }

.section { padding: clamp(72px, 10vw, 130px) 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
  cursor: pointer;
}
.btn-solid {
  background: var(--terracotta);
  color: var(--cream);
  border: 1px solid var(--terracotta);
}
.btn-solid:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  color: var(--ink);
  transition: background 0.4s var(--ease), box-shadow 0.4s, color 0.3s;
}
.site-header.scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.on-hero { color: var(--cream); }
.site-header.on-hero.scrolled { color: var(--ink); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav { display: flex; gap: 38px; }
.nav-link {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 8px; z-index: 120;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--cream);
  padding: calc(var(--nav-h) + 40px) 0 60px;
  overflow: hidden;
}

.hero-media {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(46,42,38,0) 0%, rgba(0,0,0,0.35) 100%),
    linear-gradient(160deg, #3a342d 0%, #57503f 55%, #2e2a26 100%);
}
.hero-frame {
  position: absolute; inset: 0;
  display: flex; gap: 2%;
  padding: 6% 7%;
  opacity: 0.55;
}
.hero-image { flex: 1; border-radius: 4px; }
.hero-image.modern {
  background:
    linear-gradient(rgba(46,42,38,0.25), rgba(46,42,38,0.25)),
    repeating-linear-gradient(90deg, rgba(250,246,239,0.14) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #8a7a5e 0%, #6b5a44 60%, #55432b 100%);
  background-color: #8a7a5e;
}
.hero-image.plant {
  background:
    radial-gradient(40% 55% at 60% 30%, rgba(138,143,122,0.7) 0%, rgba(138,143,122,0) 70%),
    linear-gradient(160deg, #4a443b 0%, #2e2a26 100%);
  position: relative;
}
.hero-image.plant::before {
  content: "";
  position: absolute; left: 18%; bottom: -8%;
  width: 60%; height: 85%;
  border: 1px solid transparent;
  border-top: 0;
  border-radius: 50% 50% 0 0;
  background:
    repeating-radial-gradient(ellipse at 50% 100%,
      rgba(250,246,239,0.25) 0 2px, transparent 2px 8px);
  mask: radial-gradient(ellipse at 50% 100%, #000 30%, transparent 78%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: #e8c9a8; }
.hero-sub {
  font-size: 1.06rem;
  max-width: 520px;
  color: rgba(250, 246, 239, 0.82);
  margin-bottom: 40px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-cta .btn-ghost { color: var(--cream); border-color: rgba(250,246,239,0.6); }
.hero-cta .btn-ghost:hover { border-color: var(--cream); background: var(--cream); color: var(--ink); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 30px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(250,246,239,0.55);
  border-radius: 20px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 9px;
  border-radius: 3px;
  background: rgba(250,246,239,0.75);
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 36px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--terracotta); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */

.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-visual { position: relative; min-height: 460px; }
.about-img {
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.about-img.main {
  position: absolute; top: 0; left: 0;
  width: 78%; height: 74%;
  background:
    linear-gradient(rgba(46,42,38,0.18), rgba(46,42,38,0.18)),
    repeating-linear-gradient(45deg, rgba(250,246,239,0.18) 0 3px, transparent 3px 14px),
    linear-gradient(140deg, #9c7f60, #6b5238);
}
.about-img.accent {
  position: absolute; right: 0; bottom: 0;
  width: 55%; height: 55%;
  background:
    linear-gradient(rgba(46,42,38,0.15), rgba(46,42,38,0.15)),
    linear-gradient(200deg, #8a8f7a, #5b6049);
  border: 10px solid var(--cream);
}

.about-text p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px);
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.about-stats strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--terracotta);
  line-height: 1.1;
}
.about-stats span {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Collections ---------- */

.collections { background: var(--cream-deep); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

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

.collection-card {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 0 10px 34px -25px rgba(46,42,38,0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.collection-media {
  height: clamp(200px, 30vw, 300px);
  position: relative;
}
.collection-media.linen {
  background:
    radial-gradient(50% 60% at 70% 30%, rgba(250,246,239,0.3), transparent 70%),
    repeating-linear-gradient(0deg, rgba(46,42,38,0.12) 0 1px, transparent 1px 9px),
    linear-gradient(140deg, #c9b49a, #a2845f);
}
.collection-media.ceramic {
  background:
    radial-gradient(45% 45% at 50% 60%, rgba(250,246,239,0.35) 0%, transparent 70%),
    linear-gradient(160deg, #d8c3a4, #b98e6b 60%, #96684a);
}
.collection-media.candle {
  background:
    radial-gradient(circle at 50% 55%, rgba(250,246,239,0.5) 0%, transparent 55%),
    linear-gradient(160deg, #6b5a44, #3f372d);
}
.collection-media.decor {
  background:
    radial-gradient(60% 70% at 40% 35%, rgba(250,246,239,0.4), transparent 70%),
    linear-gradient(160deg, #9c9b86, #6d6b55);
}

.collection-info { padding: 26px 30px 30px; position: relative; }
.collection-tag {
  position: absolute; top: -14px; right: 26px;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: rgba(46, 42, 38, 0.12);
}
.collection-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.collection-info p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 18px;
}
.collection-link {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- Philosophy ---------- */

.philosophy { background: var(--ink); color: var(--cream); }

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.philosophy .eyebrow { color: #e8c9a8; }
.philosophy .section-title em { color: #e8c9a8; }
.philosophy-text p:not(.eyebrow) {
  color: rgba(250, 246, 239, 0.75);
  font-size: 1.05rem;
  max-width: 460px;
}

.philosophy-values { display: grid; gap: 34px; }
.value {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(250, 246, 239, 0.14);
}
.value:last-child { border-bottom: 0; padding-bottom: 0; }
.value-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1px solid rgba(250, 246, 239, 0.3);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #e8c9a8;
}
.value h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.value p { color: rgba(250, 246, 239, 0.68); font-size: 0.96rem; }

/* ---------- Testimonials ---------- */

.testimonials { background: var(--cream); }

.section-head.center { text-align: center; }

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

.quote {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 22px;
  transition: transform 0.4s var(--ease);
}
.quote:hover { transform: translateY(-4px); }
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  flex: 1;
}
.quote figcaption {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.avatar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
}

/* ---------- Contact ---------- */

.contact {
  background:
    linear-gradient(rgba(46,42,38,0.82), rgba(46,42,38,0.82)),
    repeating-linear-gradient(45deg, rgba(250,246,239,0.06) 0 2px, transparent 2px 12px);
  color: var(--cream);
  text-align: center;
}
.contact .eyebrow { color: #e8c9a8; }
.contact .section-title em { color: #e8c9a8; }
.contact-sub {
  max-width: 480px;
  margin: 0 auto 34px;
  color: rgba(250, 246, 239, 0.75);
}

.newsletter {
  display: flex;
  max-width: 480px;
  margin: 0 auto 10px;
  background: var(--cream);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.newsletter .btn { flex-shrink: 0; }
.newsletter-status {
  min-height: 24px;
  font-size: 0.9rem;
  color: #e8c9a8;
}
.newsletter-status.error { color: #e79c8a; }

.contact-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid rgba(250, 246, 239, 0.16);
}
.contact-links a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.75);
  transition: color 0.3s;
}
.contact-links a:hover { color: #e8c9a8; }

/* ---------- Footer ---------- */

.site-footer { background: #1f1c19; color: rgba(250, 246, 239, 0.72); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding: 64px 0 48px;
}
.footer-brand .brand-mark {
  color: #e8c9a8;
  margin-bottom: 18px;
  width: 46px; height: 46px;
}
.footer-brand p { max-width: 280px; font-size: 0.95rem; }
.footer-grid h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8c9a8;
  margin-bottom: 16px;
}
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-social a {
  width: max-content;
  font-size: 0.92rem;
  transition: color 0.3s;
}
.footer-links a:hover, .footer-social a:hover { color: var(--cream); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 22px 0;
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.5);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .about-grid, .philosophy-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 400px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 72px; }
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    background: var(--ink);
    color: var(--cream);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav-link {
    font-size: 1.05rem;
    letter-spacing: 0.3em;
  }

  .collection-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter { flex-direction: column; border-radius: 18px; }
  .newsletter input { text-align: center; padding: 16px; }
  .newsletter .btn { width: 100%; }
  .hero { background: linear-gradient(160deg, #3a342d 0%, #2e2a26 100%); }
}