/* ============================================================
   Borinquen Trading Company — shared stylesheet
   "Fiesta poster" restyle: bold flat-color boricua art —
   flag reds and sky blues, gold, leaf green, turquoise,
   hibiscus pink; thick black outlines, hard offset shadows,
   woodcut grain. FUN and HAPPY first: a parranda, not a
   corporate page. Mobile-first. WCAG AA contrast throughout.
   ============================================================ */

:root {
  --red: #ef3340;          /* bright flag red */
  --red-dark: #c8102e;     /* deep red — white text on this passes AA */
  --red-deep: #8f0c22;
  --blue: #2e9bd6;         /* bright sky blue */
  --blue-flag: #0050a4;    /* flag blue */
  --blue-dark: #004e9e;
  --blue-deep: #003a78;
  --gold: #ffc53d;         /* bright tropical gold */
  --gold-pale: #ffe9a8;
  --green: #1e9e4a;        /* leaf green */
  --green-dark: #14663a;   /* green dark enough for white text */
  --turq: #12b5a5;         /* turquoise sea */
  --pink: #ff5c8a;         /* hibiscus pink */
  --orange: #ff7a1a;       /* flamboyán orange */
  --cream: #fff9ec;        /* warm cream background */
  --sand: #fbeed3;
  --ink: #201512;          /* near-black for outlines and text */
  --white: #ffffff;
  --radius: 18px;
  --max-width: 1020px;
  --font-display: "Archivo Black", "Arial Black", "Trebuchet MS", sans-serif;
  --font-head: "Fredoka", "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  /* screen-print grain (SVG turbulence, tiny tile) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

/* visually hidden but accessible (email-form labels) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, .brand-name, .nav a, .btn, .coming-chip, .badge {
  font-family: var(--font-head);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  color: var(--red-dark);
  text-shadow: 3px 3px 0 var(--gold);
}
h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--blue-dark);
}
h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  border-radius: 3px;
  background: var(--gold);
  margin-top: 0.4rem;
}
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; color: var(--blue-dark); }
p { margin: 0 0 1rem; }

a { color: var(--blue-dark); }
a:hover { color: var(--red-dark); }

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

/* ---------- Flag stripe (top of header & footer) ---------- */

.flag-stripes {
  height: 10px;
  background: linear-gradient(180deg,
    var(--red) 0 20%, var(--white) 20% 40%, var(--red) 40% 60%,
    var(--white) 60% 80%, var(--red) 80% 100%);
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--red-dark);
  color: var(--white);
  padding: 0 0 0.9rem;
  border-bottom: 3px solid var(--ink);
}
.site-header .flag-stripes { margin-bottom: 0.9rem; }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}
.brand-name span { color: var(--gold); }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

section { padding: 2.25rem 0; }
/* party stripe between sections */
section + section {
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg,
    var(--red) 0 20%, var(--gold) 20% 40%, var(--green) 40% 60%,
    var(--turq) 60% 80%, var(--blue) 80% 100%) 1;
}

/* ---------- Divider band (Taíno pattern) ---------- */

.divider-band {
  line-height: 0;
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.divider-band img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  object-position: center;
}

/* ---------- Hero — the flag as a mural ---------- */

.hero {
  position: relative;
  overflow: hidden;
  /* Puerto Rican flag: five red/white stripes */
  background: repeating-linear-gradient(180deg,
    var(--red) 0 104px, var(--white) 104px 208px);
  padding: 2.5rem 1rem 3rem;
}
/* blue triangle of the flag, left side */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: var(--blue-flag);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  z-index: 0;
}
/* woodcut grain over the flag */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.hero .flag-star {
  position: absolute;
  left: 6%;
  top: 50%;
  width: 80px;
  height: 80px;
  transform: translateY(-50%);
  z-index: 1;
}
.hero-card {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(32, 21, 18, 0.85);
  padding: 2rem 1.5rem;
  text-align: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
.hero-art img {
  width: min(300px, 72vw);
  margin: 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4rem);
  margin: 0 0 0.25rem;
}
.hero .brand-line {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.hero .tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.hero p.lede { max-width: 34rem; margin: 0 auto 1.5rem; font-size: 1.1rem; }

/* fiesta sticker badge on the hero card */
.sticker {
  position: absolute;
  top: -18px;
  right: -8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.05;
  color: var(--ink);
  text-transform: uppercase;
  transform: rotate(10deg);
}
/* folk-motif decorations pinned to the hero card corners */
.hero-decor {
  position: absolute;
  z-index: 3;
  width: 56px;
  height: 56px;
  pointer-events: none;
}
.hero-decor.d1 { left: -14px; top: -18px; transform: rotate(-14deg); }
.hero-decor.d2 { right: -12px; bottom: -16px; transform: rotate(12deg); }
.hero-decor.d3 { left: -10px; bottom: -14px; transform: rotate(8deg); width: 44px; height: 44px; }

/* ---------- Buttons & status chips ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-red { background: var(--red-dark); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 4px 4px 0 var(--blue-dark);
}
.btn-outline:hover { background: var(--blue-dark); color: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost-light {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 4px 4px 0 var(--blue-dark);
}
.btn-ghost-light:hover { background: var(--blue-dark); color: var(--white); box-shadow: 6px 6px 0 var(--ink); }

/* Honest "not live yet" marker — a chip, never a dead link. */
.coming-chip {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #5c3d0e;
  background: var(--gold-pale);
  border: 2px dashed #b97f1e;
}

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }

.card-img {
  background: var(--gold);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--ink);
}
.product-grid .card:nth-child(3n+1) .card-img { background: var(--gold); }
.product-grid .card:nth-child(3n+2) .card-img { background: #a8dcf5; }
.product-grid .card:nth-child(3n+3) .card-img { background: #ffc2d4; }
.card-img img { width: 100%; height: auto; }

.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { flex: 1; }
.price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red-dark);
  margin: 0 0 0.75rem;
}
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-pale);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}
.badge-coming { color: var(--ink); background: var(--gold-pale); }
.badge-new { color: var(--white); background: var(--green-dark); }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.card-actions .btn { font-size: 0.92rem; padding: 0.55rem 1rem; }

/* ---------- Cookbook feature — gold poster cover ---------- */

.cookbook-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
.cookbook-cover {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 8px 8px 0 var(--ink);
}
.cookbook-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.cookbook-cover img {
  width: 210px;
  margin: 0 auto 0.75rem;
}
.cookbook-cover .cover-kicker {
  font-family: var(--font-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-dark);
}
.cookbook-cover h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0.5rem 0;
}
.cookbook-cover .cover-sub { font-style: italic; color: var(--ink); margin-bottom: 0; }
.cookbook-cover .cover-rule {
  width: 4rem;
  height: 5px;
  background: var(--red-dark);
  border: 0;
  margin: 1rem auto;
}
.cookbook-cover .cover-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-dark);
}

/* ---------- Coquí feature ---------- */

.coqui-feature {
  background: var(--white);
  border: 3px solid var(--green-dark);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--green-dark);
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.coqui-art {
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 50%;
  padding: 1rem;
  width: min(270px, 76vw);
  margin: 0 auto;
}
.coqui-art img { width: 100%; }
.coqui-feature h2 { color: var(--green-dark); }
.coqui-feature h2::after { background: var(--green); }
.coqui-feature .coqui-call {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-dark);
  letter-spacing: 0.03em;
}
.coqui-corner {
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
}
.coqui-corner.c1 { top: 10px; right: 14px; transform: rotate(14deg); }
.coqui-corner.c2 { bottom: 10px; left: 14px; transform: rotate(-12deg); width: 44px; height: 44px; }

/* ---------- Honesty pledge ---------- */

.pledge {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--red-dark);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.pledge h2 { color: var(--red-dark); }
.pledge h2::after { margin-left: auto; margin-right: auto; background: var(--red); }
.pledge-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}
.pledge-list li {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-dark);
}
.pledge-list li::before { content: "★ "; color: var(--red); }
.pledge-list li:nth-child(2)::before { color: var(--gold); }
.pledge-list li:nth-child(3)::before { color: var(--green); }

/* ---------- Email signup — party panel ---------- */

.signup {
  position: relative;
  overflow: hidden;
  background: var(--red-dark);
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 2rem 1.5rem;
  text-align: center;
}
.signup::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.signup h2 { color: var(--white); }
.signup h2::after { background: var(--gold); margin-left: auto; margin-right: auto; }
.signup p { max-width: 32rem; margin-left: auto; margin-right: auto; color: #ffe9e9; }
.signup-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.signup-form input[type="email"] {
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 3px solid var(--ink);
  min-width: min(18rem, 100%);
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.signup-form .btn { border-color: var(--ink); background: var(--gold); color: var(--ink); }
.signup-form .btn:hover { background: #ffd97a; }
.signup .fineprint { position: relative; z-index: 1; font-size: 0.85rem; color: #ffe9e9; margin: 1rem 0 0; }
.signup-note {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
}
.signup-note.n1 { top: 12px; left: 16px; transform: rotate(-14deg); }
.signup-note.n2 { bottom: 12px; right: 16px; transform: rotate(12deg); }

/* ---------- Story page ---------- */

.story-intro {
  font-size: 1.15rem;
  line-height: 1.7;
}
.story-figure {
  text-align: center;
  margin: 1.5rem 0;
}
.story-figure img {
  width: min(260px, 70vw);
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 6px 6px 0 var(--gold);
}
/* the Taíno coquí gets a gold sun-circle, like a sticker */
.story-figure img[src*="taino-coqui"] {
  background: var(--gold);
  border-radius: 50%;
  padding: 1rem;
}
.story-figure figcaption {
  font-size: 0.9rem;
  font-style: italic;
  color: #6b4a12;
  margin-top: 0.5rem;
}

.placeholder-box {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--gold);
  padding: 1.75rem 1.5rem;
  margin: 1.25rem 0;
}
.placeholder-box h2 { color: var(--red-dark); }
.placeholder-box .status {
  font-family: var(--font-head);
  font-weight: 700;
  color: #8a5a00;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.fact-box {
  background: var(--sand);
  border: 3px solid var(--ink);
  border-left: 8px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.tradition {
  font-style: italic;
  color: #5a4632;
}
blockquote {
  background: var(--white);
  border: 3px solid var(--ink);
  border-left: 8px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(32, 21, 18, 0.85);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
}
blockquote p { margin: 0 0 0.75rem; }
blockquote p:last-child { margin-bottom: 0; }
blockquote .quote-label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-dark);
}
/* the nine quotes cycle the fiesta colors */
blockquote.q-red { border-left-color: var(--red); }
blockquote.q-blue { border-left-color: var(--blue); background: #eaf4fc; }
blockquote.q-green { border-left-color: var(--green); background: #eaf7ee; }
blockquote.q-gold { border-left-color: var(--gold); background: #fff6db; }
.story-section h2 { margin-top: 2rem; }

/* folk-collage band: Frank's own art, sticker-style, on hibiscus pink */
.collage-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  background: var(--pink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 1.5rem 1rem;
  margin: 2rem 0;
  overflow: hidden;
}
.collage-band img {
  height: 150px;
  width: auto;
  background: var(--white);
  border: 4px solid var(--white);
  outline: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(32, 21, 18, 0.8);
}
.collage-band img:nth-child(1) { transform: rotate(-3deg); }
.collage-band img:nth-child(2) { transform: rotate(2deg); }
.collage-band img:nth-child(3) { transform: rotate(-2deg); }
.collage-band img:nth-child(4) { transform: rotate(3deg); }
.collage-band img:nth-child(5) { transform: rotate(-1deg); }

.closing {
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 1.75rem 1.5rem;
  margin: 2rem 0 1.5rem;
  font-size: 1.1rem;
}
.closing h2::after { background: var(--red-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-deep);
  color: #e8ddcb;
  padding: 0 1rem 2rem;
  margin-top: 0;
}
.site-footer .flag-stripes { margin-bottom: 1.5rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; padding: 0 1rem; }
.site-footer a { color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; margin-bottom: 1rem; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.site-footer p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.site-footer .motto { font-style: italic; color: var(--gold); }
.footer-motifs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.footer-motifs svg, .footer-motifs img { width: 30px; height: 30px; }

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  .hero { padding: 3rem 1rem 3.5rem; }
  .hero-card { text-align: left; padding: 2.25rem 2rem; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 2rem; }
  .hero h1 { font-size: 3.4rem; }
  .hero p.lede { margin-left: 0; margin-right: 0; }
  .hero-art img { width: min(340px, 100%); }
  .cookbook-feature { grid-template-columns: 5fr 7fr; }
  .coqui-feature { grid-template-columns: 5fr 7fr; }
  section { padding: 3rem 0; }
  .collage-band img { height: 170px; }
}

@media (max-width: 639px) {
  .hero .flag-star { display: none; }
  .sticker { width: 76px; height: 76px; font-size: 0.9rem; top: -14px; right: 0; }
  .hero-decor { width: 40px; height: 40px; }
  .collage-band img { height: 120px; }
}
