/* ==========================================================================
   Farma Mosovce — Jednozrnka & Dvojzrnka
   ========================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --wheat:      #c8a96e;
  --wheat-lt:   #e8d5a8;
  --wheat-dk:   #9b7d48;
  --earth:      #5c3d1e;
  --earth-dk:   #3a2510;
  --cream:      #fdf8f0;
  --warm-bg:    #f4ead8;
  --dark-bg:    #1e1508;
  --text:       #2c1f0e;
  --muted:      #7a6248;
  --border:     #e0cba8;
  --success-bg: #f0faf3;
  --success:    #2d6a4f;

  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'Source Sans 3', system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;

  --sh-sm: 0 2px 12px rgba(92,61,30,.09);
  --sh-md: 0 6px 32px rgba(92,61,30,.15);
  --sh-lg: 0 12px 56px rgba(92,61,30,.2);

  --max-w: 1200px;
  --py: clamp(72px, 9vw, 120px);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--wheat-lt); color: var(--earth-dk); }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 52px);
  padding-right: clamp(20px, 5vw, 52px);
}

/* ── Type helpers ──────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wheat-dk);
  margin-bottom: .875rem;
}
.eyebrow--light { color: var(--wheat-lt); opacity: .8; }

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--earth-dk);
  margin-bottom: 1.25rem;
}
.section-title--light { color: #fff; }
.section-title em { font-style: italic; color: var(--wheat-dk); }

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}
.section-lead--light { color: rgba(255,255,255,.72); }

.section-hd {
  text-align: center;
  margin-bottom: clamp(44px, 7vw, 80px);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.9rem;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .18s, box-shadow .18s, background .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--earth);
  color: #fff;
  box-shadow: 0 4px 18px rgba(92,61,30,.38);
}
.btn--primary:hover { background: var(--earth-dk); box-shadow: 0 6px 28px rgba(92,61,30,.46); }

.btn--ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.25); }

.btn--full { width: 100%; justify-content: center; }
.btn__icon { width: 17px; height: 17px; flex-shrink: 0; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
  /* push content below notch / Dynamic Island */
  padding-top: env(safe-area-inset-top, 0px);
}
/* backdrop blur on a pseudo-element so the header does NOT become
   a containing block for position:fixed children (backdrop-filter
   would otherwise trap the mobile dropdown inside the header) */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: rgba(253,248,240,.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header.scrolled { box-shadow: var(--sh-md); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--earth-dk);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav__logo-icon { width: 26px; height: 34px; color: var(--wheat-dk); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s;
}
.nav__links a:hover { color: var(--earth); }

.nav__cta {
  background: var(--earth) !important;
  color: #fff !important;
  padding: .45rem 1.2rem;
  border-radius: 100px;
}
.nav__cta:hover { background: var(--earth-dk) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  color: var(--earth);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.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); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 70px;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(20,10,2,.85) 0%,  rgba(20,10,2,.55) 40%, transparent 75%),
    linear-gradient(to right, rgba(20,10,2,.4)  0%,  transparent 60%);
}

.hero__body {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 8vw, 100px);
  max-width: 740px;
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wheat-lt);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; color: var(--wheat-lt); }

.hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2.5rem;
  max-width: 52ch;
  line-height: 1.6;
}

.hero__btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding-block: var(--py); }
.section--warm { background: var(--warm-bg); }
.section--dark-bg { background: var(--dark-bg); }

/* ── O nás split ───────────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.split__text p { color: var(--muted); margin-bottom: 1rem; }
.split__text em { font-style: italic; color: var(--text); }
.split__text strong { color: var(--earth); }

.split__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.split__photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .6s ease;
}
.split__photo:hover img { transform: scale(1.03); }

/* Location pills */
.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-block: 1.25rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--earth);
  background: var(--warm-bg);
  border: 1px solid var(--border);
  padding: .35rem .85rem;
  border-radius: 100px;
}
.pill svg { width: 13px; height: 13px; }

/* Check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-top: 1.25rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--muted);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--wheat) url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l4 4 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  border-radius: 50%;
}

/* ── Process panels ────────────────────────────────────────────────────── */
.process-panels { }

.process-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.process-panel--flip .process-panel__photo { order: 2; }
.process-panel--flip .process-panel__content { order: 1; }

.process-panel__photo {
  overflow: hidden;
  margin: 0;
}
.process-panel__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.process-panel:hover .process-panel__photo img { transform: scale(1.04); }

.process-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
  background: var(--dark-bg);
  color: #fff;
}

.process-num {
  font-family: var(--ff-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(200,169,110,.25);
  margin-bottom: .5rem;
  display: block;
}

.process-panel__content h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.process-panel__content p {
  color: rgba(255,255,255,.72);
  margin-bottom: 1.5rem;
  font-size: .9375rem;
  line-height: 1.7;
}

.panel-facts {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.panel-facts li {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  padding-left: 1.25rem;
  position: relative;
}
.panel-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: var(--wheat);
  border-radius: 50%;
}

/* ── Gluten section ────────────────────────────────────────────────────── */
.gluten-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gluten-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--sh-sm);
}

.gluten-card--primary {
  background: var(--earth-dk);
  color: #fff;
  border-color: transparent;
}
.gluten-card--primary h3 { color: #fff; }
.gluten-card--primary p { color: rgba(255,255,255,.78); margin-bottom: .75rem; font-size: .9375rem; }
.gluten-card--primary em { font-style: italic; color: var(--wheat-lt); }
.gluten-card--primary strong { color: var(--wheat-lt); }

.gluten-card__icon {
  width: 64px;
  height: 64px;
  color: var(--wheat);
  margin-bottom: 1.25rem;
}

.gluten-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--earth-dk);
  margin-bottom: .875rem;
}

.gluten-card__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wheat-dk);
  margin-bottom: .5rem;
}

.gluten-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.gluten-list li {
  font-size: .875rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.gluten-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--wheat-dk);
  font-weight: 700;
}

.gluten-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fef9ec;
  border: 1px solid #e8d080;
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  color: #5c4a00;
}
.gluten-notice svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #b8860b;
  margin-top: .1rem;
}
.gluten-notice p { font-size: .9rem; line-height: 1.6; }
.gluten-notice strong { color: #3d3000; }
.gluten-notice em { font-style: italic; }

/* ── Investment section ────────────────────────────────────────────────── */
.invest-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.invest-text p { color: var(--muted); margin-bottom: 1rem; }
.invest-text strong { color: var(--earth); }

.invest-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-block: 1rem;
}
.invest-list li {
  font-size: .9375rem;
  color: var(--muted);
  padding-left: 1.4rem;
  position: relative;
}
.invest-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--wheat-dk);
  font-size: .85rem;
}

.invest-highlight {
  background: var(--warm-bg);
  border-left: 3px solid var(--wheat);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .9375rem;
  color: var(--earth-dk) !important;
  font-style: italic;
  margin-top: 1.5rem !important;
}

/* Price breakdown widget */
.price-breakdown {
  background: var(--warm-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh-sm);
  position: sticky;
  top: 90px;
}

.price-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin-bottom: .5rem;
}
.price-item--mid { opacity: .8; }
.price-item--result {
  background: var(--earth-dk);
  border-color: transparent;
  color: #fff;
}
.price-item--result .price-item__label { color: rgba(255,255,255,.72); }

.price-item__label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .25rem;
}
.price-item__val {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--earth-dk);
}
.price-item--result .price-item__val { color: #fff; }
.price-item__val--big { font-size: 1.6rem; }
.price-item__val small { font-size: .75rem; font-family: var(--ff-sans); font-weight: 400; opacity: .8; }

.price-arrow {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  padding: .375rem 0;
}

.price-divider {
  border-top: 1px dashed var(--border);
  margin-block: .75rem;
}

/* ── Products ──────────────────────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.product-card--wide { grid-column: span 2; }

.product-card__tag {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wheat-dk);
  background: var(--warm-bg);
  border: 1px solid var(--border);
  padding: .2rem .7rem;
  border-radius: 100px;
  margin-bottom: .875rem;
}
.product-card__tag--special {
  color: #fff;
  background: var(--earth);
  border-color: transparent;
}

.product-card__name {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--earth-dk);
  margin-bottom: .625rem;
  line-height: 1.3;
}

.product-card__desc {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}


/* Product option rows (replacing size pills) */
.product-card__options {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.product-card__options--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: .5rem;
}
.product-card__options--row .product-option {
  flex: 1 1 auto;
}

.product-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: var(--warm-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .45rem .75rem;
}
.product-option--bucket {
  border-color: var(--wheat);
  background: #fdf3e0;
}

.product-option__size {
  font-size: .85rem;
  color: var(--muted);
}
.product-option__price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--earth-dk);
  white-space: nowrap;
  flex-shrink: 0;
}
.product-option__price small {
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted);
}

/* Shipping info bar */
.shipping-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--sh-sm);
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: .875rem;
}
.shipping-option svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--muted);
}
.shipping-option--free svg { color: var(--earth); }
.shipping-option div { line-height: 1.4; }
.shipping-option strong {
  display: block;
  font-size: .9375rem;
  color: var(--earth-dk);
}
.shipping-option span { font-size: .875rem; color: var(--muted); }
.shipping-option--free strong { color: var(--success); }

.shipping-divider {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
  padding-left: .5rem;
  padding-right: .5rem;
}

.products__note {
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact-info { padding-top: .5rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}
.contact-detail strong { color: var(--text); display: block; }
.contact-detail__icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--wheat-dk); margin-top: 2px; }

/* Honeypot — invisible to humans */
#_honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; tab-index: -1; }

/* Form */
.contact-form-wrap {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--sh-sm);
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--earth-dk);
}
.req { color: var(--wheat-dk); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: .9375rem;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b7d48' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--wheat-dk);
  box-shadow: 0 0 0 3px rgba(155,125,72,.16);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #c0392b; }

.form-error { font-size: .8rem; color: #c0392b; min-height: 1.1em; }

/* Checkbox */
.form-group--check { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: .5rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .875rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  margin-top: 2px;
  transition: background .15s, border-color .15s;
}
.checkbox-label input:checked + .checkbox-box {
  background: var(--earth);
  border-color: var(--earth);
}
.checkbox-label input:checked + .checkbox-box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.checkbox-label input:focus + .checkbox-box { box-shadow: 0 0 0 3px rgba(155,125,72,.2); }

/* Success */
.form-success[hidden] { display: none !important; }
.form-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--success-bg);
  border: 1px solid #a8d5b5;
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  color: var(--success);
  margin-top: 1rem;
}
.form-success svg { width: 32px; height: 32px; flex-shrink: 0; }
.form-success p { font-size: .9375rem; line-height: 1.5; }

#submitBtn[data-loading="true"] { opacity: .7; pointer-events: none; }

.form-global-error {
  font-size: .875rem;
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: var(--r-sm);
  padding: .65rem 1rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--earth-dk);
  color: rgba(255,255,255,.7);
  padding-block: 3.5rem 2rem;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}
.footer__brand .nav__logo { color: #fff; margin-bottom: 1rem; }
.footer__brand .nav__logo-icon { color: var(--wheat); }
.footer__brand p { font-size: .875rem; opacity: .6; max-width: 36ch; line-height: 1.6; }

.footer__nav ul { display: flex; flex-direction: column; gap: .625rem; }
.footer__nav a { font-size: .9rem; opacity: .65; transition: opacity .15s; }
.footer__nav a:hover { opacity: 1; }

.footer__company {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}
.footer__company strong {
  display: block;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-bottom: .5rem;
}
.company-data {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: .25rem;
}
.company-data li {
  font-size: .8rem;
  color: rgba(255,255,255,.42);
}
.company-data li span {
  color: rgba(255,255,255,.28);
  margin-right: .3rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  opacity: .5;
}
.footer__love { font-style: italic; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .product-card--wide { grid-column: span 2; }
  .gluten-grid { grid-template-columns: 1fr; }
  .gluten-card--primary { grid-row: 1; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__photo { max-height: 380px; }
  .split__photo img { height: 380px; }

  .process-panel { grid-template-columns: 1fr; min-height: auto; }
  .process-panel--flip .process-panel__photo { order: 0; }
  .process-panel--flip .process-panel__content { order: 0; }
  .process-panel__photo { height: 320px; }

  .invest-wrap { grid-template-columns: 1fr; }
  .price-breakdown { position: static; }

  .contact-wrap { grid-template-columns: 1fr; }

  .products { grid-template-columns: 1fr 1fr; }
  .product-card--wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    /* top set by JS via --header-h; fallback matches .nav height */
    top: var(--header-h, 70px);
    left: 0;
    right: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    padding-bottom: 1rem;
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links li { border-bottom: 1px solid var(--border); }
  .nav__links a {
    display: block;
    padding: .9rem clamp(20px, 5vw, 52px);
    font-size: 1rem;
    color: var(--earth-dk);
  }
  .nav__cta {
    margin: .75rem clamp(20px, 5vw, 52px) 0;
    border-radius: var(--r-sm);
    text-align: center;
    display: block;
  }

  .hero__btns { flex-direction: column; }
  .hero__btns .btn { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }

  .products { grid-template-columns: 1fr; }
  .product-card--wide { grid-column: span 1; }

  .footer__top { flex-direction: column; }
  .footer__nav ul { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .hero__photo, .hero__overlay, .process-panel__photo { display: none; }
  .hero { min-height: auto; background: var(--cream); }
  body { font-size: 11pt; color: #000; }
}
