/* =========================================================
   Kettle Corn Bros — premium rebuild
   Design principles (Sam Crawford, "Psychology of Premium Websites"):
   - Halo effect: engineer the first 50ms (full-screen hero, one headline)
   - Cognitive fluency: generous white space, one goal per section
   - Peak-end rule: micro-interactions + a bold product "peak"
   - Restraint: remove everything that competes
   ========================================================= */

:root {
  /* Warm, edible palette */
  --cream:      #FBF6EC;   /* page background */
  --cream-2:    #F4EAD7;   /* alt section */
  --paper:      #FFFFFF;
  --ink:        #241B12;   /* warm near-black */
  --ink-soft:   #5C4F42;   /* body text */
  --muted:      #8A7C6C;
  --brand:      #C23B2B;   /* refined kettle-red (nods to old red banner) */
  --brand-deep: #A12E20;
  --caramel:    #D9962E;   /* warm gold accent */
  --caramel-2:  #E7B65A;
  --line:       rgba(36, 27, 18, 0.10);

  --shadow-sm:  0 2px 10px rgba(36, 27, 18, 0.06);
  --shadow-md:  0 18px 40px -18px rgba(36, 27, 18, 0.30);
  --shadow-lg:  0 40px 80px -30px rgba(36, 27, 18, 0.40);

  --radius:     18px;
  --radius-lg:  28px;

  --maxw:       1140px;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
}

/* ---------- Shared bits ---------- */
.kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 1rem;
}
.kicker--light { color: var(--caramel-2); }

.section__head { max-width: 760px; margin: 0 auto 4rem; text-align: center; }
.section__title { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(194, 59, 43, 0.8);
}
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(161, 46, 32, 0.85); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

.link {
  font-weight: 600; color: var(--brand); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.link i { transition: transform .3s var(--ease); font-style: normal; }
.link:hover i { transform: translateX(5px); }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.4rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em; display: flex; align-items: center;
}
.nav__brand img { height: 46px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  position: relative; transition: color .25s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand); transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--ink); color: #fff !important;
  padding: .6rem 1.2rem; border-radius: 999px;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.nav__cta:hover { background: var(--brand); transform: translateY(-2px); }

.nav.scrolled {
  background: rgba(251, 246, 236, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

/* =========================================================
   Hero (split: text + framed photo)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 8rem 1.6rem 5rem;
  background:
    radial-gradient(120% 90% at 50% -10%, #FFFDF8 0%, var(--cream) 45%, var(--cream-2) 100%);
  overflow: hidden;
}
/* soft popcorn-kernel texture using layered gradients */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(217, 150, 46, 0.10) 0 14px, transparent 15px),
    radial-gradient(circle at 88% 18%, rgba(194, 59, 43, 0.07) 0 18px, transparent 19px),
    radial-gradient(circle at 80% 82%, rgba(217, 150, 46, 0.09) 0 12px, transparent 13px),
    radial-gradient(circle at 20% 84%, rgba(194, 59, 43, 0.05) 0 16px, transparent 17px);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 0.78fr 1.22fr;
  align-items: center; gap: clamp(2rem, 4vw, 3.5rem);
}
.hero__text { text-align: left; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.24em; font-size: .78rem;
  font-weight: 600; color: var(--brand); margin: 0 0 1.4rem;
}
.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
.hero__title br { display: block; }
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 520px; margin: 1.6rem 0 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__note {
  margin: 2.2rem 0 0; color: var(--muted);
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
}
.hero__media { display: flex; justify-content: center; }
.hero__media img {
  width: 100%; max-width: 780px; height: auto;
  border-radius: var(--radius-lg);
  border: 9px solid #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}
.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em;
}
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); animation: scrollPulse 2.2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity:.3; transform: scaleY(.6);} 50% { opacity:1; transform: scaleY(1);} }

/* =========================================================
   Statement (the product "peak")
   ========================================================= */
.statement {
  position: relative;
  background:
    linear-gradient(rgba(28, 21, 14, 0.85), rgba(28, 21, 14, 0.9)),
    url("assets/scoop.jpg") center / cover no-repeat;
  color: #fff;
  padding: clamp(5rem, 12vw, 9rem) 1.6rem;
  text-align: center;
}
.statement__inner { max-width: 920px; margin: 0 auto; }
.statement__kicker {
  text-transform: uppercase; letter-spacing: .26em; font-size: .74rem; font-weight: 600;
  color: var(--caramel-2); margin: 0 0 1.6rem;
}
.statement__line {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 600; line-height: 1.05;
}
.statement__line span { color: var(--caramel-2); font-style: italic; font-weight: 500; }
.statement__sub {
  color: rgba(255,255,255,0.72); max-width: 640px; margin: 1.8rem auto 0;
  font-size: 1.08rem;
}

/* =========================================================
   Offerings
   ========================================================= */
.offerings { max-width: var(--maxw); margin: 0 auto; padding: clamp(5rem, 11vw, 8.5rem) 1.6rem; }
.offerings__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.offer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.offer:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.offer__art {
  height: 190px; border-radius: var(--radius); margin-bottom: 1.6rem;
  overflow: hidden;
}
.offer__art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.offer:hover .offer__art img { transform: scale(1.06); }
.offer h3 { font-size: 1.6rem; margin-bottom: .7rem; }
.offer p { margin: 0 0 1.4rem; }

/* =========================================================
   Story
   ========================================================= */
.story {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 1.6rem;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story__photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.story__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story__body .section__title { margin-bottom: 1.4rem; }
.story__body p { margin: 0 0 1.1rem; }
.story__badges {
  list-style: none; padding: 0; margin: 1.8rem 0 0;
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.story__badges li {
  background: var(--cream-2); color: var(--ink);
  padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* =========================================================
   Sizes
   ========================================================= */
.sizes { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) 1.6rem; }
.sizes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.size {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem 1.6rem; text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.size:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.size__name { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--brand); margin: 0 0 .8rem; }
.size__oz { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.4rem); color: var(--ink); line-height: 1; margin: 0 0 .6rem; }
.size__note { margin: 0; color: var(--muted); }
.sizes__note { text-align: center; max-width: 560px; margin: 2.2rem auto 0; color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: .98rem; }
.sizes__foot { text-align: center; margin: 1.1rem 0 0; color: var(--ink-soft); }
.sizes__foot a { color: var(--brand); font-weight: 600; }

/* =========================================================
   Fundraising
   ========================================================= */
.fundraising {
  background: var(--ink);
  color: #fff;
  padding: clamp(5rem, 12vw, 9rem) 1.6rem;
}
.fundraising__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.fundraising__intro .section__title { color: #fff; margin-bottom: 1.3rem; }
.fundraising__intro p { color: rgba(255,255,255,.72); margin: 0; }
.fundraising__math {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2.8rem; text-align: center;
}
.math__label { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--caramel-2); margin: 0 0 1.4rem; font-weight: 600; }
.math__row { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: 1.15rem; color: #fff; font-weight: 600; }
.math__row i { color: var(--caramel-2); font-style: normal; }
.math__equals { color: rgba(255,255,255,.4); font-size: 1.4rem; margin: .6rem 0; }
.math__result { font-family: var(--font-display); font-size: clamp(3rem, 9vw, 4.6rem); color: var(--caramel-2); margin: 0; line-height: 1; }
.math__result small { font-family: var(--font-body); font-size: 1rem; color: rgba(255,255,255,.6); display: block; letter-spacing: .1em; text-transform: uppercase; margin-top: .5rem; }
.math__note { color: rgba(255,255,255,.6); font-size: .92rem; margin: 1.6rem 0 0; }

.fundraising__steps {
  max-width: var(--maxw); margin: clamp(3rem, 7vw, 5rem) auto 0;
  text-align: center;
}
.steps {
  list-style: none; padding: 0; margin: 2rem 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: left;
}
.steps li {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.4rem; color: rgba(255,255,255,.82); font-size: .92rem;
}
.steps li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-family: var(--font-display);
  margin-bottom: .8rem;
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(5rem, 11vw, 8.5rem) 1.6rem;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact__head { position: sticky; top: 6rem; }
.contact__head .section__title { margin-bottom: 1.2rem; }
.contact__sub { margin: 0 0 2rem; }
.contact__cards { display: flex; flex-direction: column; gap: 1rem; }
.contact__card {
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.6rem; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.contact__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.contact__label { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--muted); font-weight: 600; }
.contact__value { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.contact__form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .6rem; box-shadow: var(--shadow-md); overflow: hidden;
}
.contact__form iframe { border-radius: calc(var(--radius-lg) - 8px); display: block; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--cream-2); padding: clamp(3rem, 6vw, 4.5rem) 1.6rem; text-align: center; }
.footer__logo { height: 72px; width: auto; display: block; margin: 0 auto 1.1rem; }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 0 0 .4rem; }
.footer__tag { color: var(--ink-soft); margin: 0 0 1.4rem; font-family: var(--font-display); font-style: italic; }
.footer__legal { color: var(--muted); font-size: .85rem; margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero { padding-top: 7rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero__text { text-align: center; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { order: -1; }
  .hero__media img { max-width: 480px; transform: none; }

  .offerings__grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story__media { order: 2; }
  .sizes__grid { grid-template-columns: 1fr; }
  .fundraising__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__head { position: static; }

  .nav__links {
    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: 2.5rem;
    background: var(--cream); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 1.2rem; }
  .nav__toggle { display: block; z-index: 60; }
  .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) {
  body { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll i { animation: none; }
  html { scroll-behavior: auto; }
}
