/* ============================================================
   Coconos Bakery — secciones
   ============================================================ */

/* ---------- Top bar (announcement / promo banner) ---------- */
.promo {
  background: var(--accent-2);
  color: var(--cream);
  font-size: 0.9rem;
  position: relative;
  z-index: 60;
}
.promo-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex-wrap: wrap;
}
.promo .tag {
  font-family: var(--font-script);
  font-size: 1.15rem;
  line-height: 1.15;
  white-space: nowrap;
  background: oklch(1 0 0 / 0.16);
  padding: 1px 13px 3px;
  border-radius: 999px;
}
.promo strong { font-weight: 600; }
@media (max-width: 600px) {
  .promo .tag { display: none; }
  .promo-inner { font-size: 0.82rem; gap: 8px; }
}
.promo strong { font-weight: 700; }
.promo a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.promo .promo-close {
  position: absolute;
  right: calc(var(--gutter) - 8px);
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--cream);
  cursor: pointer;
  opacity: 0.7;
  font-size: 1.1rem;
  padding: 4px 8px;
  line-height: 1;
}
.promo .promo-close:hover { opacity: 1; }

/* ---------- Header / nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.972 0.013 80 / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
[data-theme="cacao"] .nav { background: oklch(0.945 0.022 70 / 0.82); }
[data-theme="lino"] .nav  { background: oklch(0.985 0.006 90 / 0.82); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand image-slot { width: 42px; height: 42px; flex: none; }
.brand .brand-type {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}
.brand .brand-name {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand .brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--accent-ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-toggle button {
  background: transparent;
  border: none;
  padding: 5px 11px;
  cursor: pointer;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-toggle button.active { background: var(--accent); color: var(--cream); }

.nav-cta { display: inline-flex; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .brand .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.hero-copy .eyebrow { font-size: 1.7rem; }
.hero-copy h1 {
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 1.1;
  margin: 12px 0 42px;
}
.hero-copy h1 .accent { display: block; padding-bottom: 0.08em; }
.hero-copy h1 .accent { color: var(--accent); font-style: italic; }
.hero-copy .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .stat .n {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.9rem;
  color: var(--accent-ink);
  line-height: 1;
}
.hero-meta .stat .l {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 4px;
}
.hero-art { position: relative; }
.hero-art image-slot { width: 100%; height: min(540px, 64vh); }
.hero-art .badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: 0 18px 40px -22px var(--accent-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-art .badge .seal {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-script); font-size: 1.5rem;
}
.hero-art .badge .seal-txt { line-height: 1.1; }
.hero-art .badge .seal-txt b { display: block; font-size: 0.92rem; }
.hero-art .badge .seal-txt span { font-size: 0.74rem; color: var(--ink-faint); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art image-slot { height: min(380px, 52vh); }
}

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--accent-2);
  color: var(--cream);
  overflow: hidden;
  padding: 14px 0;
}
.strip-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.strip-track span {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  opacity: 0.96;
}
.strip-track span::after { content: "✺"; opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Menu ---------- */
.menu-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-bottom: 48px;
  justify-content: center;
}
.cat-pill {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent-ink); }
.cat-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.cat-block { margin-bottom: clamp(48px, 7vw, 88px); scroll-margin-top: 110px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cat-title h3 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cat-title .count { font-size: 0.85rem; color: var(--ink-faint); margin-left: auto; }
.cat-title .eyebrow { font-size: 1.3rem; }

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.product {
  display: flex;
  flex-direction: column;
}
.product image-slot {
  width: 100%;
  height: 220px;
  margin-bottom: 14px;
  transition: transform 0.25s ease;
}
.product:hover image-slot { transform: translateY(-4px); }
.product-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.product h4 {
  font-size: 1.18rem;
  font-weight: var(--display-weight);
}
.product .tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.product .desc { font-size: 0.88rem; color: var(--ink-faint); margin-top: 3px; }
.product .star {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-script); font-size: 1.05rem; color: var(--accent);
  margin-top: 6px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.about-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 480px;
}
.about-art image-slot:nth-child(1) { grid-row: span 2; height: 100%; }
.about-art image-slot { width: 100%; height: 100%; }
.about-copy h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.05rem; }
.about-sign {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--accent);
  margin-top: 8px;
}
.values { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.value { max-width: 200px; }
.value .vt { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.15rem; }
.value .vd { font-size: 0.88rem; color: var(--ink-faint); margin-top: 2px; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-art { height: 360px; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: row dense;
  gap: 14px;
  margin-top: 36px;
}
.gallery-grid image-slot { width: 100%; height: 100%; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .tall { grid-row: auto; }
  .gallery-grid .wide { grid-column: auto; }
}

/* ---------- Locations ---------- */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: 36px;
}
.loc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.loc-card image-slot { width: 100%; height: 240px; border-radius: 0; }
.loc-body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; }
.loc-body .loc-pin {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.loc-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.loc-hours {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.loc-hours-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.loc-card .btn-ghost { align-self: flex-start; margin-top: auto; }
@media (max-width: 720px) {
  .loc-grid { grid-template-columns: 1fr; }
  .loc-card image-slot { height: 200px; }
}

/* ---------- Wholesale / form ---------- */
.wholesale {
  background: var(--accent-2);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.wholesale .eyebrow { color: oklch(0.9 0.05 75); }
.wholesale .kicker { color: oklch(0.85 0.04 75); }
.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.wholesale h2 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 18px; }
.wholesale .lead { font-size: 1.12rem; color: oklch(0.93 0.02 80); max-width: 48ch; margin-bottom: 28px; }
.wholesale-points { display: grid; gap: 14px; margin-bottom: 32px; }
.wholesale-points li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: oklch(0.94 0.02 80);
}
.wholesale-points .dot {
  font-family: var(--font-script); font-size: 1.3rem; line-height: 1;
  color: oklch(0.9 0.08 78); flex: none;
}
.wholesale-points ul { padding: 0; margin: 0; display: grid; gap: 14px; }

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 40px 80px -40px oklch(0 0 0 / 0.4);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .sub { font-size: 0.92rem; color: var(--ink-faint); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.625 0.108 55 / 0.16);
}
.field textarea { resize: vertical; min-height: 84px; }
.form-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 14px; text-align: center; }
@media (max-width: 820px) {
  .wholesale-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(54px, 7vw, 90px);
  padding-bottom: 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.footer .brand-name { color: var(--cream); font-size: 2.1rem; }
.footer-col h5 {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.8 0.02 70);
  margin: 0 0 16px;
  font-weight: 600;
  font-family: var(--font-body);
}
.footer-col a, .footer-col p {
  display: block;
  color: oklch(0.88 0.012 75);
  font-size: 0.95rem;
  margin-bottom: 9px;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-blurb { color: oklch(0.84 0.015 75); font-size: 0.96rem; max-width: 34ch; margin-top: 12px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.18);
  display: grid; place-items: center;
  color: var(--cream);
  transition: all 0.2s ease;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem; color: oklch(0.74 0.015 75);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
