:root {
  --blue: #0244c3;
  --blue-dark: #06369a;
  --orange: #ff5b00;
  --orange-warm: #ef9135;
  --corn: #ffff96;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --ink: #25221d;
  --muted: #6f685e;
  --line: #eadfce;
  --shadow: 0 24px 70px rgba(77, 44, 10, .18);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { background: var(--cream); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.6; }
body, button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; background: #fff; color: var(--blue); padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 16px; }

.brand-stripe {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 22px, var(--orange) 22px 39px, var(--orange-warm) 39px 56px, var(--corn) 56px 70px);
}

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 253, 248, .94); border-bottom: 1px solid rgba(234, 223, 206, .9); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; width: 128px; height: 60px; overflow: hidden; }
.brand img { width: 122px; height: 72px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.main-nav a { color: #514b42; font-size: .91rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--orange); }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 2px solid var(--blue); border-radius: 11px; padding: 10px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; background: var(--blue); margin: 4px 0; border-radius: 2px; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; background: var(--orange); border: 2px solid var(--orange); border-radius: 999px; color: #fff; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { background: #e84f00; border-color: #e84f00; box-shadow: 0 10px 24px rgba(255, 91, 0, .25); transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--corn); outline-offset: 3px; }
.button-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.button-outline:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.header-cta { min-height: 42px; padding: 9px 19px; font-size: .88rem; }

.hero-pattern, .wholesale-pattern {
  position: relative;
  overflow: hidden;
  background-color: var(--orange-warm);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.13) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.13) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,.13) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,.13) 25%, transparent 25%);
  background-position: 26px 0, 26px 0, 0 0, 0 0;
  background-size: 52px 52px;
}
.hero-pattern { padding: 56px 0; }
.hero-card { min-height: 600px; display: grid; grid-template-columns: 1.02fr .98fr; overflow: hidden; background: var(--paper); border: 1px solid rgba(255,255,255,.65); border-radius: 30px; box-shadow: var(--shadow); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(42px, 6vw, 84px); }
.eyebrow { margin-bottom: 14px; color: var(--orange); font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 700; letter-spacing: .06em; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 800; letter-spacing: -.035em; line-height: .99; }
h1 { max-width: 610px; color: var(--blue); font-size: clamp(3rem, 5.7vw, 5.4rem); }
h2 { color: var(--blue); font-size: clamp(2.3rem, 4.6vw, 4rem); }
.hero-lead { max-width: 560px; margin-top: 25px; color: var(--muted); font-size: 1.06rem; }
.signature { margin: 25px 0; color: var(--orange); font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 800; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image { position: relative; min-height: 600px; overflow: hidden; }
.hero-image::before { position: absolute; inset: 20px; z-index: 1; border: 2px solid rgba(255,255,150,.75); border-radius: 999px 999px 32px 32px; content: ""; pointer-events: none; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image figcaption { position: absolute; right: 28px; bottom: 27px; z-index: 2; padding: 8px 13px; background: var(--corn); border-radius: 999px; color: var(--blue-dark); font-size: .75rem; font-weight: 700; }

section { padding: 100px 0; }
.section-heading { max-width: 700px; margin-bottom: 45px; }
.section-heading > p:last-child { max-width: 590px; margin-top: 18px; color: var(--muted); }
.section-heading.light h2 { color: var(--corn); }
.section-heading.light > p:last-child { color: rgba(255,255,255,.8); }

.process-section { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.process-section::after { position: absolute; right: -120px; bottom: -170px; width: 420px; height: 420px; border: 45px solid rgba(255,255,150,.1); border-radius: 50%; content: ""; }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { min-height: 285px; padding: 30px; border: 1px solid rgba(255,255,255,.24); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.step-number { color: var(--orange-warm); font-family: "Fraunces", Georgia, serif; font-size: 3.4rem; font-style: italic; font-weight: 800; line-height: 1; }
.step h3 { margin: 35px 0 9px; color: var(--corn); font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-style: italic; }
.step p { color: rgba(255,255,255,.76); font-size: .95rem; }

.products-section { background: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.product-card { grid-column: span 2; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(88, 56, 22, .07); }
.product-card.featured { grid-column: span 3; }
.product-card:nth-child(2) { grid-column: span 3; }
.product-card img { width: 100%; height: 220px; object-fit: cover; object-position: center; background: #fff; filter: saturate(1.06) contrast(1.03); transition: transform .45s ease; }
.product-card:hover img { transform: scale(1.045); }
.product-card div { padding: 23px 24px 26px; border-top: 5px solid var(--orange); }
.product-card:nth-child(even) div { border-color: var(--blue); }
.product-card span { color: var(--orange); font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-card:nth-child(even) span { color: var(--blue); }
.product-card h3 { margin-top: 4px; color: var(--blue); font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; font-style: italic; }
.product-card p { margin-top: 3px; color: var(--muted); font-size: .9rem; }

.story-banner { display: grid; grid-template-columns: 1.15fr .85fr; padding: 0; background: var(--orange); color: #fff; }
.story-image { min-height: 470px; background: url("assets/nixtamal-table.jpg") center / cover no-repeat; background-image: image-set(url("assets/nixtamal-table.webp") type("image/webp"), url("assets/nixtamal-table.jpg") type("image/jpeg")); }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 100px); }
.story-copy .eyebrow { color: var(--corn); }
.story-copy h2 { color: #fff; }
.story-copy > p:last-child { max-width: 470px; margin-top: 22px; color: rgba(255,255,255,.84); font-size: 1.06rem; }

.locations-section { background: var(--cream); }
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.location-grid.single { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.location-soon { border-style: dashed; border-color: rgba(2, 68, 195, .35); }
.location-soon h3 { color: var(--muted); }
.location-soon > span { color: rgba(2, 68, 195, .08); }
.location { position: relative; min-height: 260px; padding: 27px 25px; overflow: hidden; border: 2px solid var(--blue); border-radius: 18px; }
.location > span { position: absolute; right: 14px; top: 5px; color: rgba(2,68,195,.1); font-family: "Fraunces", Georgia, serif; font-size: 5rem; font-style: italic; font-weight: 800; line-height: 1; }
.location h3 { position: relative; margin-top: 55px; color: var(--blue); font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-style: italic; }
.location p { margin: 9px 0 20px; color: var(--muted); font-size: .9rem; }
.location a { color: var(--orange); font-size: .88rem; font-weight: 700; text-decoration: none; }

.wholesale-pattern { padding: 90px 0; }
.wholesale-card { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: clamp(36px, 6vw, 78px); background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); }
.wholesale-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); }
.wholesale-copy ul { margin: 24px 0 0; list-style: none; }
.wholesale-copy li { margin: 10px 0; font-weight: 600; }
.wholesale-copy li::before { margin-right: 10px; color: var(--orange); content: "✦"; }
form { display: grid; gap: 14px; padding: 28px; background: #f7f1e8; border-radius: 18px; }
form label { color: #514b42; font-size: .8rem; font-weight: 700; }
form input, form select { width: 100%; height: 48px; margin-top: 5px; padding: 0 14px; background: #fff; border: 1px solid #d8ccbb; border-radius: 10px; color: var(--ink); }
form .button { width: 100%; margin-top: 4px; }

footer { padding: 66px 0 25px; background: var(--blue-dark); color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-brand img { width: 185px; height: 110px; object-fit: contain; }
.footer-brand p { color: var(--corn); font-family: "Fraunces", Georgia, serif; font-style: italic; }
footer h3 { margin: 12px 0 15px; color: var(--corn); font-family: "Fraunces", Georgia, serif; font-size: 1rem; font-style: italic; }
footer a { display: block; width: fit-content; margin: 7px 0; font-size: .88rem; text-decoration: none; }
footer a:hover { color: var(--corn); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.17); font-size: .75rem; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; background: #25d366; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.25); color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; }

@media (max-width: 920px) {
  .header-inner { gap: 16px; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: 78px; left: 20px; right: 20px; display: none; align-items: stretch; gap: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px 10px; }
  .header-cta { display: none; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-image { min-height: 480px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 220px; }
  .step h3 { margin-top: 20px; }
  .product-card, .product-card.featured, .product-card:nth-child(2) { grid-column: span 3; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .wholesale-card { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .brand-stripe { height: 9px; }
  .header-inner { min-height: 67px; }
  .brand { width: 96px; height: 53px; }
  .brand img { width: 96px; height: 58px; }
  .main-nav { top: 67px; left: 14px; right: 14px; }
  section { padding: 70px 0; }
  .hero-pattern { padding: 18px 0 30px; }
  .hero-card { min-height: 0; border-radius: 20px; }
  .hero-copy { align-items: stretch; padding: 32px 24px 28px; text-align: center; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.6rem); }
  h2 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .hero-lead { margin-top: 18px; font-size: .94rem; }
  .signature { margin: 18px 0; }
  .button-row { display: grid; }
  .button-row .button { width: 100%; }
  .hero-image { min-height: 310px; order: 0; }
  .hero-image::before { inset: 12px; border-radius: 16px; }
  .hero-image figcaption { right: 18px; bottom: 17px; }
  .section-heading { margin-bottom: 32px; }
  .step { padding: 25px; }
  .product-grid { display: grid; grid-auto-columns: 82%; grid-auto-flow: column; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 14px 18px; margin-inline: -14px; }
  .product-card, .product-card.featured, .product-card:nth-child(2) { grid-column: auto; scroll-snap-align: start; }
  .product-card img { height: 190px; }
  .story-banner { grid-template-columns: 1fr; }
  .story-image { min-height: 300px; }
  .story-copy { padding: 50px 24px 58px; }
  .location-grid, .location-grid.single { grid-template-columns: 1fr; }
  .location { min-height: 220px; }
  .wholesale-pattern { padding: 30px 0; }
  .wholesale-card { padding: 30px 20px; border-radius: 20px; }
  form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
