/* Famous Chili Company — spec redesign
   Palette: deep red, dark brown, cream, brand yellow (sampled from their logo) — heritage/Americana feel */

:root {
  --red: #a51c1c;
  --red-dark: #7a1414;
  --brown: #3b2314;
  --brown-deep: #2a180d;
  --cream: #fbf3e1;
  --cream-2: #f4e8cd;
  --gold: #ffe600;
  --gold-dark: #d1b400;
  --ink: #2a1a10;
  --white: #fffdf8;
  --shadow: 0 10px 30px rgba(42, 24, 13, 0.18);
  --radius: 14px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --script: "Caveat", cursive;
}

* { box-sizing: border-box; min-width: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--brown-deep);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head p {
  font-size: 1.05rem;
  color: #5a4433;
}

section {
  padding: 88px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--brown-deep);
  box-shadow: 0 8px 20px rgba(255, 230, 0, 0.35);
}

.btn-primary:hover { box-shadow: 0 12px 26px rgba(255, 230, 0, 0.45); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 253, 248, 0.7);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255, 253, 248, 0.12); }

.btn-dark {
  background: var(--brown-deep);
  color: var(--cream);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown-deep);
  border-bottom: 3px solid var(--gold);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.nav-brand span {
  font-family: var(--display);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-brand span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-brand:hover img { transform: rotate(-3deg) scale(1.05); }

.nav-brand:hover span { color: var(--gold); }

.nav-brand:hover span::after { width: 100%; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream-2);
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-actions .social-link { margin-left: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 20px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cream);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  margin-left: 20px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.social-link svg { width: 30px; height: 30px; }

.social-link:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--red-dark) 0%, var(--red) 55%, #8c1717 100%);
  color: var(--white);
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 253, 248, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-badge strong {
  font-family: var(--script);
  font-size: 1.2rem;
  letter-spacing: 0;
  color: var(--gold);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  margin-bottom: 18px;
}

.hero .script-line {
  font-family: var(--script);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0;
  display: block;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 480px;
  color: var(--cream-2);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid rgba(255, 253, 248, 0.15);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--gold);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--cream-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Our Story ---------- */
.story {
  background: var(--cream);
}

.story-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.story-copy p { margin: 0 0 18px; color: #4a3624; font-size: 1.05rem; }

.story-copy p:last-child { margin-bottom: 0; }

.pull-quote {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--red);
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin: 28px 0;
  line-height: 1.3;
}

.story-figure {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.story-figure img {
  border-radius: 8px;
  margin: 0 auto;
}

.story-figure .cap {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 14px;
}

/* ---------- Products ---------- */
.products {
  background: var(--brown-deep);
  color: var(--cream);
  position: relative;
}

.products .section-head h2 { color: var(--cream); }
.products .section-head p { color: var(--cream-2); }
.products .eyebrow { color: var(--gold); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.product-card:hover { transform: translateY(-6px); }

.product-photo {
  background: var(--white);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.product-photo img {
  max-height: 160px;
  width: auto;
  margin: 0 auto;
}

.product-photo.placeholder {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}

.product-photo.placeholder svg { width: 84px; height: 84px; opacity: 0.9; }

.product-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 1.15rem;
  color: var(--brown-deep);
  margin-bottom: 8px;
}

.product-body p {
  font-size: 0.95rem;
  color: #5a4433;
  flex: 1;
  margin: 0 0 14px;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  font-family: var(--display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold);
  color: var(--brown-deep);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.convenience-note {
  margin-top: 44px;
  text-align: center;
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid rgba(255, 230, 0, 0.35);
  border-radius: var(--radius);
  padding: 22px 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  color: var(--cream-2);
}

.convenience-note strong { color: var(--gold); }

/* Food service subsection */
.foodservice {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: rgba(255, 253, 248, 0.05);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(255, 230, 0, 0.2);
}

.foodservice h3 { color: var(--cream); font-size: 1.5rem; }

.foodservice ul { padding-left: 20px; color: var(--cream-2); margin: 16px 0 22px; }
.foodservice ul li { margin-bottom: 8px; }

/* ---------- Ways to use it ---------- */
.uses {
  background: var(--cream);
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.use-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.use-card .icon { font-size: 2rem; margin-bottom: 14px; display: block; }

.use-card h3 { font-size: 1.1rem; color: var(--red); }

.use-card p { color: #5a4433; font-size: 0.96rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream-2); }

.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(42,24,13,0.08);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
  color: var(--brown-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-a {
  padding: 0 24px 22px;
  color: #5a4433;
  font-size: 0.98rem;
}

/* ---------- Where to buy ---------- */
.buy { background: var(--brown-deep); color: var(--cream); text-align: center; }

.buy .section-head h2 { color: var(--cream); }
.buy .section-head p { color: var(--cream-2); }
.buy .eyebrow { color: var(--gold); }

.retailer-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.retailer-pills span {
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 230, 0, 0.35);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.buy-note {
  color: var(--cream-2);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Contact / CTA ---------- */
.contact { background: var(--red); color: var(--white); }

.contact .section-head h2 { color: var(--white); }
.contact .section-head p { color: rgba(255,253,248,0.85); }
.contact .eyebrow { color: var(--gold); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: var(--radius);
  padding: 34px;
}

.contact-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.contact-list { list-style: none; padding: 0; margin: 0; }

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,253,248,0.15);
  font-size: 1rem;
}

.contact-list li:last-child { border-bottom: none; }

.contact-list a { text-decoration: none; color: var(--white); }
.contact-list a:hover { color: var(--gold); }

.contact-list .label {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 3px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
  border: 4px solid rgba(255,253,248,0.2);
}

.map-frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-deep);
  color: var(--cream-2);
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,253,248,0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img { height: 40px; width: auto; border-radius: 6px; }

.footer-brand span {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.site-footer h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a { text-decoration: none; color: var(--cream-2); }
.site-footer a:hover { color: var(--gold); }

.social-link-footer {
  margin: 18px 0 0;
  color: var(--cream-2);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(251,243,225,0.55);
}

.footer-bottom a { color: rgba(251,243,225,0.75); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .story-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .uses-grid { grid-template-columns: repeat(2, 1fr); }
  .foodservice { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav-links {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    background: var(--brown-deep);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 3px solid var(--gold);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,253,248,0.1); }
  .nav-toggle { display: block; }
  .nav-brand span { display: inline; font-size: 0.9rem; }
  .hero { padding: 56px 0 70px; }
  .hero-stats { gap: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .uses-grid { grid-template-columns: 1fr; }
  .retailer-pills span { font-size: 0.8rem; padding: 10px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
