/* ============================================================
   LYN — Palestinian heritage landing page
   Palette: linen cream · tatreez red · olive · gold · ink
   ============================================================ */

:root {
  --cream:      #F4ECDD;
  --cream-2:    #EFE6D6;
  --paper:      #FBF6EC;
  --ink:        #1E1B17;
  --ink-soft:   #4A443B;
  --muted:      #7A7163;
  --red:        #9E2B25;
  --terracotta: #B5482F;
  --olive:      #5E6B3C;
  --gold:       #C9A24B;
  --line:       rgba(30, 27, 23, 0.12);

  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --arabic: 'Amiri', 'Cormorant Garamond', serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(30, 27, 23, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 500; line-height: 1.12; }

h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; }

/* ---- Kicker (eyebrow label) ---- */
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--red);
  display: inline-block;
}
.kicker.light { color: var(--gold); }
.kicker.light::before { background: var(--gold); }
.center .kicker, .section-head.center .kicker { justify-content: center; }

.lede { color: var(--ink-soft); font-size: 1.08rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-primary {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
}
.btn-primary:hover { background: #872420; border-color: #872420; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 236, 221, 0.55);
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-ghost.dark { color: var(--ink); border-color: var(--line); }
.btn-ghost.dark:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0.5rem 0;
}
.site-header.scrolled {
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }

.brand { display: flex; align-items: baseline; gap: 0.6rem; color: var(--cream); transition: color 0.4s var(--ease); }
.scrolled .brand { color: var(--ink); }
.brand-mark {
  width: 18px; height: 18px;
  align-self: center;
  background:
    linear-gradient(45deg, transparent 47%, var(--gold) 47% 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, var(--gold) 47% 53%, transparent 53%);
  transform: rotate(0deg);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 3px;
  border: 1.5px solid var(--red);
  transform: rotate(45deg);
}
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: 2px; }
.brand-arabic { font-family: var(--arabic); font-size: 1.15rem; color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 236, 221, 0.9);
  transition: color 0.25s var(--ease);
  position: relative;
}
.scrolled .site-nav a { color: var(--ink-soft); }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--red);
  transition: width 0.3s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.site-nav a:hover { color: var(--red); }
.nav-cta {
  border: 1px solid currentColor;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: all 0.3s var(--ease); }
.scrolled .nav-toggle span { background: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* --hero-img is set inline from content.json; gradient stays in CSS so the
     live editor can swap just the image. */
  background-image: linear-gradient(rgba(20, 18, 15, 0.55), rgba(20, 18, 15, 0.78)), var(--hero-img);
  background-size: cover;
  background-position: center;
  color: var(--cream);
  padding: 7rem 0 5rem;
}
.hero-inner { max-width: 760px; }
.hero-arabic { font-family: var(--arabic); font-size: clamp(1.3rem, 3vw, 2rem); color: var(--gold); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 500; letter-spacing: -1px; margin-bottom: 1.6rem; }
.hero-title span { display: block; }
.hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(244, 236, 221, 0.88); max-width: 560px; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(244, 236, 221, 0.5); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 3px; height: 8px; background: var(--gold); border-radius: 2px; animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ============================================================
   Sections / layout
   ============================================================ */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.story { background: var(--cream); }
.craft { background: var(--paper); }
.collection { background: var(--cream); }
.promise { background: var(--cream-2); }
.contact { background: var(--paper); }

.section-head { max-width: 640px; margin: 0 auto 3.5rem; }
.section-head.center { text-align: center; }
.center { text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Caption that sits OVER an image (e.g. the tatreez calligraphy). It stays on
   top of whatever photo is uploaded, so the "nice writing" is never lost. */
.media-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.6rem 1.6rem;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(20, 18, 15, 0.78), rgba(20, 18, 15, 0));
  color: var(--cream);
  pointer-events: none;
}
.edit-mode .media-overlay { pointer-events: auto; }
.media-overlay-ar {
  display: block;
  font-family: var(--arabic);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  line-height: 1.3;
}
.media-overlay-en {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(244, 236, 221, 0.92);
  margin-top: 0.3rem;
}
.split-body h2 { margin-bottom: 1.4rem; }
.split-body .lede + .lede { margin-top: 1rem; }

/* ---- Craft feature list ---- */
.feature-list { list-style: none; margin-top: 2.2rem; display: grid; gap: 1.6rem; }
.feature-list li { display: flex; gap: 1.1rem; }
.feature-mark {
  flex: none; width: 16px; height: 16px; margin-top: 6px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.feature-list h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.feature-list p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   Collection grid
   ============================================================ */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product:hover .product-media img { transform: scale(1.05); }
.product-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(251, 246, 236, 0.92);
  color: var(--red);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 2px;
}
.product-body { padding: 1.4rem 1.5rem 1.7rem; }
.product-body h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.product-body p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   Mission banner
   ============================================================ */
.mission {
  background:
    linear-gradient(rgba(20, 18, 15, 0.86), rgba(20, 18, 15, 0.9)),
    url("../images/hero.svg");
  background-size: cover;
  background-position: center;
  color: var(--cream);
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.mission .kicker { justify-content: center; }
.mission-arabic { font-family: var(--arabic); font-size: clamp(1.5rem, 4vw, 2.6rem); color: var(--gold); margin-bottom: 1.4rem; }
.mission blockquote {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 400;
  max-width: 900px; margin: 0 auto;
  line-height: 1.25;
}

/* ============================================================
   Promise
   ============================================================ */
.promise h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.6rem; }
.promise-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--red); }

/* ============================================================
   Contact + Newsletter
   ============================================================ */
.contact .split { align-items: stretch; }
.contact-list { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: 0.8rem; }
.contact-list li { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-soft); font-size: 1.05rem; }
.contact-list .ico { color: var(--gold); font-size: 1.1rem; }
.contact-list a:hover { color: var(--red); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.newsletter {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  align-self: center;
}
.newsletter h3 { font-size: 2rem; margin-bottom: 0.6rem; }
.newsletter p { color: rgba(244, 236, 221, 0.78); margin-bottom: 1.5rem; }
.signup { display: flex; gap: 0.6rem; }
.signup input {
  flex: 1; min-width: 0;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 236, 221, 0.25);
  background: rgba(244, 236, 221, 0.06);
  color: var(--cream);
  font-family: var(--sans); font-size: 0.95rem;
}
.signup input::placeholder { color: rgba(244, 236, 221, 0.5); }
.signup input:focus { outline: none; border-color: var(--gold); }
.signup button {
  padding: 0.95rem 1.4rem;
  border: 0; border-radius: var(--radius);
  background: var(--gold); color: var(--ink);
  font-family: var(--sans); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s var(--ease); white-space: nowrap;
}
.signup button:hover { background: #b78f3c; }

.flash { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.95rem; }
.flash.success { background: rgba(94, 107, 60, 0.22); color: #d7e2b6; border: 1px solid rgba(94, 107, 60, 0.5); }
.flash.error   { background: rgba(158, 43, 37, 0.22); color: #f3c7c4; border: 1px solid rgba(158, 43, 37, 0.5); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(244, 236, 221, 0.8); padding: 3.5rem 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.footer-brand { display: flex; align-items: baseline; gap: 0.6rem; color: var(--cream); }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--cream); max-width: 520px; }
.footer-copyright { font-size: 0.82rem; letter-spacing: 0.08em; color: rgba(244, 236, 221, 0.5); }

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .split, .contact .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.4rem;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 60px rgba(30, 27, 23, 0.2);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { color: var(--ink-soft); font-size: 1rem; }
  .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); }
}

@media (max-width: 560px) {
  .collection-grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .brand-arabic { display: none; }
}
