/* ===========================================================
   AZRA — styles.css
   Desert-editorial · warm plaster tones · refined minimal
   =========================================================== */

:root {
  /* Palette */
  --offwhite:   #F8F2E9;   /* page canvas */
  --cream:      #FBF7EF;   /* tinted sections */
  --sand:       #E6D4BA;   /* warm sand */
  --sand-soft:  #EFE3CE;
  --tan:        #C7A77C;   /* dark tan */
  --clay:       #AE7350;   /* clay */
  --amber:      #BE7A2B;   /* amber accent */
  --amber-deep: #A0611C;
  --brown:      #6A4A28;   /* brown */
  --brown-deep: #4B341D;
  --ink:        #2A2018;   /* deep brown text */
  --muted:      #6E5C48;   /* secondary text */
  --line:       rgba(42, 32, 24, 0.12);
  --line-light: rgba(248, 242, 233, 0.22);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* Spacing / shape */
  --container: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -28px rgba(74, 52, 29, 0.45);
  --shadow-soft: 0 14px 40px -24px rgba(74, 52, 29, 0.4);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--offwhite);
  /* warm atmosphere: soft radial glow + faint grain */
  background-image:
    radial-gradient(1200px 700px at 78% -8%, rgba(190, 122, 43, 0.10), transparent 60%),
    radial-gradient(900px 600px at -5% 12%, rgba(174, 115, 80, 0.08), transparent 55%);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* subtle plaster grain overlay */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
main, header, footer { position: relative; z-index: 1; }

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

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.display {
  font-size: clamp(2.7rem, 7vw, 5.1rem);
  font-weight: 380;
  letter-spacing: -0.02em;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--brown-deep); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 1.1rem;
}
.eyebrow.center, .section-title.center, .center { text-align: center; }
.light { color: var(--cream); }
.eyebrow.light { color: var(--sand); }
.muted-note, .subtle { color: var(--muted); }
.subtle { margin-top: 0.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.7em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brown); color: var(--cream); }
.btn-primary:hover { background: var(--brown-deep); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brown-deep); border-color: rgba(74,52,29,0.3); }
.btn-ghost:hover { border-color: var(--brown); background: rgba(106,74,40,0.06); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brown-deep); border-color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--cream); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(248, 242, 233, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark {
  font-family: var(--font-body);
  font-weight: 600; letter-spacing: 0.42em;
  font-size: 1.18rem; color: var(--ink); padding-left: 0.42em;
}
.primary-nav { display: flex; gap: 2rem; }
.primary-nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  position: relative; padding: 0.2rem 0; transition: color .2s ease;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--clay); transition: width .28s ease;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted);
  max-width: 30ch; margin: 1.4rem 0 2.1rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-figure {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--sand-soft), var(--sand));
  box-shadow: var(--shadow); aspect-ratio: 9 / 11;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Origin strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(231, 212, 186, 0.35); }
.strip-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 1.1rem; padding: 1rem 28px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--brown);
}
.strip-inner i { width: 4px; height: 4px; border-radius: 50%; background: var(--clay); display: inline-block; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tint { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title.center { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); }
.pillar { padding: 2rem 1.6rem; border-top: 2px solid var(--clay); background: rgba(251,247,239,0.6); border-radius: 0 0 var(--radius) var(--radius); }
.pillar-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--clay); letter-spacing: 0.1em; }
.pillar h3 { font-size: 1.42rem; margin: 0.5rem 0 0.6rem; color: var(--brown-deep); }
.pillar p { margin: 0; color: var(--muted); }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.6vw, 2rem); }
.card { margin: 0; }
.card-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--sand-soft), var(--sand));
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-soft);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card-media img.focus-right { object-position: 78% center; }
.card:hover .card-media img { transform: scale(1.045); }
.pill {
  position: absolute; top: 14px; left: 14px;
  background: rgba(42,32,24,0.78); color: var(--sand);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 0.4em 0.85em; border-radius: 999px; backdrop-filter: blur(4px);
}
.card figcaption { margin-top: 0.95rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--brown-deep); }

/* Source */
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.source-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand); }
.source-figure img { width: 100%; height: 100%; object-fit: cover; }
.source-copy p { color: var(--muted); margin: 1rem 0 0; }
.source-copy .muted-note { font-size: 0.95rem; padding-top: 1rem; margin-top: 1.4rem; border-top: 1px solid var(--line); }

/* Transparency (dark clay panel) */
.transparency { background: linear-gradient(165deg, var(--brown), var(--brown-deep)); color: var(--cream); }
.trans-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 720px;
  display: grid; gap: 0;
}
.trans-list li {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--sand); padding: 1.05rem 0.4rem; border-bottom: 1px solid var(--line-light);
  display: flex; align-items: baseline; gap: 1rem;
}
.trans-list li::before { content: "—"; color: var(--amber); font-size: 0.9em; }
.trans-foot { max-width: 620px; margin: 2.4rem auto 0; color: var(--sand-soft); }

/* Signup form */
.signup { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; text-align: left; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.95em 1.1em; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--offwhite); width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(174,115,80,0.14); }
.form-note { min-height: 1.2em; text-align: center; font-size: 0.92rem; color: var(--clay); font-weight: 600; margin: 0.4rem 0 0; }

/* Wholesale */
.wholesale p { color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }
.wholesale .btn { margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sand-soft); padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(231,212,186,0.16); }
.footer-brand .wordmark { color: var(--cream); display: inline-block; margin-bottom: 0.8rem; }
.footer-brand p { margin: 0.2rem 0; color: rgba(231,212,186,0.7); font-size: 0.95rem; }
.footer-meta { font-size: 0.82rem !important; letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { font-size: 0.9rem; color: rgba(231,212,186,0.82); transition: color .2s ease; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: 0.8rem; color: rgba(231,212,186,0.55); letter-spacing: 0.04em; }

/* ---------- Scroll reveal (only hides when JS is active) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; aspect-ratio: 4 / 4; max-height: 460px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-figure { order: -1; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .pillar { border-radius: var(--radius); }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(248,242,233,0.97); backdrop-filter: blur(10px);
    flex-direction: column; gap: 0; padding: 0.5rem 28px 1.4rem;
    box-shadow: 0 12px 30px -18px rgba(74,52,29,0.5);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .primary-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
