/* ============================================================
   Light & Salt Provisions CIC — landing page (v2)
   Split: dark hero, cream body, dark punctuation bands
   ============================================================ */

:root {
  --ink:         #121319;  /* near-black to match the Instagram look — dark bands, footer, headings on light */
  --gold-bright: #E3A53A;  /* "social yellow" — gold type/accents on dark only */
  --gold:        #A0682A;  /* Provisions Gold — button fills, accents on light */
  --amber:       #D4883A;  /* Sunrise Amber — secondary highlight / button hover */
  --cream:       #F5EDD8;  /* body section background */
  --light:       #FAF6EE;  /* alternate light background */
  --charcoal:    #2C2422;  /* body text (warmer than black) */

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-label:   'Montserrat', Calibri, Arial, sans-serif;
  --font-body:    'Lato', Calibri, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 2px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: clamp(64px, 11vw, 130px) 0; }
.section-cream { background: var(--cream); }
.section-light { background: var(--light); }

/* subtle paper/linen grain on light sections */
.section-cream, .section-light {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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.035'/%3E%3C/svg%3E");
}

.section-band {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(56px, 9vw, 110px) 0;
}

/* ---------- typography helpers ---------- */
.kicker {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin: 0 0 1.4rem;
}
.kicker-bright { color: var(--gold-bright); }  /* on dark */
.kicker-gold   { color: var(--gold); }         /* on light */

.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.section-band .section-title { color: var(--cream); }
.gallery .section-title { margin-bottom: 0.4rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-gold {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--amber); border-color: var(--amber); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold-bright);
}
.btn-outline:hover { background: var(--gold-bright); color: var(--ink); }
.btn-short { display: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 6px 0;
}
.site-header.scrolled {
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(227,165,58,0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 88px;
  width: auto;
  transition: height .3s ease;
}
.site-header.scrolled .header-logo img { height: 68px; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--cream);
}
.nav-link:hover { color: var(--gold-bright); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--ink) url("images/hero-kamado.jpg") center 45% / cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,19,25,0.60) 0%, rgba(18,19,25,0.52) 45%, rgba(18,19,25,0.84) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 900px;
}
.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 640px;
  margin: 0 0 2.2rem;
  color: rgba(245,237,216,0.94);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold-bright), transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- shared split (story + mission) ---------- */
.container-split {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.story-figure, .mission-figure { margin: 0; }
.story-figure img, .mission-figure img {
  width: 100%;
  border-radius: var(--radius);
}
/* story image sits right; mission image sits right too, story text left */
.story-body p { font-size: 1.08rem; margin: 0 0 1.3rem; }
.story-body p:last-child { margin-bottom: 0; }

.mission-text p:not(.kicker):not(.section-title) { font-size: 1.08rem; margin: 0 0 1.2rem; }
.mission-text .mission-close {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 1.6rem;
  margin-bottom: 0;
}

/* ---------- pull-quote band ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.3;
  color: var(--gold-bright);
  margin: 0;
  text-wrap: balance;
}

/* ---------- provenance strip ---------- */
.pillars {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pillars li {
  padding: 4px 28px;
  border-left: 1px solid rgba(227,165,58,0.45);
}
.pillars li:first-child { border-left: none; padding-left: 0; }
.pillar-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}
.pillar-line {
  display: block;
  font-size: 0.98rem;
  color: rgba(245,237,216,0.85);
  line-height: 1.5;
}

/* ---------- gallery ---------- */
.gallery-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- signup ---------- */
.signup-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.1rem;
  color: var(--cream);
}
.signup-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 2.2rem;
  color: rgba(245,237,216,0.9);
}
.signup-form { max-width: 540px; margin: 0 auto; }
.field-row {
  display: flex;
  gap: 12px;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid rgba(245,237,216,0.35);
  border-radius: var(--radius);
  background: rgba(245,237,216,0.06);
  color: var(--cream);
}
.signup-form input[type="email"]::placeholder { color: rgba(245,237,216,0.5); }
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: rgba(245,237,216,0.12);
}
.signup-form input[type="email"].invalid { border-color: #e08b7a; }
.form-consent {
  font-size: 0.8rem;
  color: rgba(245,237,216,0.62);
  margin: 1rem 0 0;
}
.form-message {
  min-height: 1.2em;
  margin: 0.8rem 0 0;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-message.success { color: var(--gold-bright); }
.form-message.error   { color: #f0a89a; }
.signup-instagram {
  margin: 2.4rem 0 0;
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.signup-instagram a { color: var(--gold-bright); text-decoration: none; font-weight: 600; }
.signup-instagram a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid rgba(227,165,58,0.4);
}
.footer-logo { height: 140px; width: auto; margin: 0 auto 1.4rem; opacity: 0.95; }
.footer-org {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--gold-bright);
  margin: 0 0 0.5rem;
}
.footer-address { margin: 0 0 0.9rem; font-size: 0.95rem; color: rgba(245,237,216,0.9); }
.footer-links { margin: 0 0 0.5rem; font-size: 0.95rem; }
.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-links .dot { margin: 0 10px; color: var(--gold-bright); }
.footer-fine {
  font-size: 0.78rem;
  color: rgba(245,237,216,0.55);
  margin: 1.1rem 0 0;
}
.footer-fine + .footer-fine { margin-top: 0.3rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .pillars li:nth-child(odd) { border-left: none; padding-left: 0; }
  .pillars li { padding: 0 20px; }

  .container-split { grid-template-columns: 1fr; }
  .story-figure { order: -1; max-width: 520px; }
  .mission-figure { max-width: 520px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .header-logo img { height: 64px; }
  .hero { min-height: 92svh; }
  .hero-actions .btn { flex: 1; text-align: center; }
  .pillars { grid-template-columns: 1fr; gap: 22px; }
  .pillars li { border-left: none; padding-left: 0; }
  .gallery-grid { gap: 10px; }
  .field-row { flex-direction: column; }
  .signup-form .btn { width: 100%; }
  .btn-long { display: none; }
  .btn-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
  .gallery-item img { transition: none; }
}
