/* =====================================================
   FE DE CAMPEÓN — Brand Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');

:root {
  --fdc-cream: #EEE3C9;
  --fdc-cream-light: #F7EFD7;
  --fdc-cream-dark: #DDD3BC;
  --fdc-green: #1F3A2E;
  --fdc-green-soft: #2D4D40;
  --fdc-brown: #4A4233;
  --fdc-brown-soft: #6B5638;
  --fdc-text: #2A2419;
  --fdc-yellow: #F4C430;
  --fdc-blue: #1D3F8C;
  --fdc-red: #C8392E;
  --fdc-serif: 'Times New Roman', Times, serif;
  --fdc-script: 'Pinyon Script', 'Times New Roman', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--fdc-serif);
  color: var(--fdc-text);
  background-color: var(--fdc-cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.15  0 0 0 0.22 0'/></filter><rect width='280' height='280' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  background-repeat: repeat;
  line-height: 1.6;
  font-size: 17px;
  min-height: 100vh;
}

a { color: var(--fdc-green); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- NAV ----- */
.site-header { padding: 22px 0; border-bottom: 0.5px solid rgba(31, 58, 46, 0.2); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.brand { font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--fdc-green); font-size: 13px; text-decoration: none; }
.nav ul { display: flex; list-style: none; gap: 26px; align-items: center; flex-wrap: wrap; }
.nav a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fdc-green); text-decoration: none; transition: opacity 0.2s; padding-bottom: 3px; }
.nav a:hover { opacity: 0.55; }
.nav a.active { border-bottom: 0.5px solid var(--fdc-green); }

/* ----- HEADINGS ----- */
h1, h2, h3, h4 { font-family: var(--fdc-serif); font-weight: 700; color: var(--fdc-green); letter-spacing: 0.04em; line-height: 1.1; }
h1 { text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.08em; }
h3 { font-size: clamp(1.2rem, 2.8vw, 1.5rem); letter-spacing: 0.05em; }

/* ----- SCRIPT ----- */
.script { font-family: var(--fdc-script); font-weight: 400; color: var(--fdc-green); text-transform: none; letter-spacing: 0; line-height: 1.15; }

/* ----- EYEBROW ----- */
.eyebrow { font-style: italic; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--fdc-brown-soft); margin-bottom: 1rem; }

/* ----- ORNAMENT ----- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--fdc-green); margin: 1.5rem 0; font-size: 13px; }
.ornament::before, .ornament::after { content: ""; display: block; width: 60px; height: 1px; background: var(--fdc-green); }

/* ----- FLAG BAR ----- */
.flag-bar {
  width: 150px; height: 3px; margin: 1.5rem auto;
  background: linear-gradient(to right,
    var(--fdc-yellow) 0%, var(--fdc-yellow) 33.33%,
    var(--fdc-blue) 33.33%, var(--fdc-blue) 66.66%,
    var(--fdc-red) 66.66%, var(--fdc-red) 100%);
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-block; padding: 14px 32px;
  border: 1px solid var(--fdc-green); color: var(--fdc-green); background: transparent;
  font-family: var(--fdc-serif); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.25em; font-size: 11px; text-decoration: none;
  transition: all 0.2s; cursor: pointer;
}
.btn:hover { background: var(--fdc-green); color: var(--fdc-cream); }
.btn-filled { background: var(--fdc-green); color: var(--fdc-cream); }
.btn-filled:hover { background: var(--fdc-green-soft); }

/* ----- SECTIONS ----- */
.section { padding: 5rem 0; }
.section-narrow { max-width: 720px; margin: 0 auto; }
.section-divider { border-top: 0.5px solid rgba(31, 58, 46, 0.18); }

/* ----- HERO ----- */
.hero { text-align: center; padding: 7rem 0 5rem; }
.hero h1 { margin: 1.5rem 0; }
.hero .tagline { font-style: italic; font-size: 18px; color: var(--fdc-green); margin: 1.25rem 0 1.5rem; letter-spacing: 0.02em; }

/* ----- PILLARS ----- */
.pillars {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
  padding: 4.5rem 0;
  border-top: 0.5px solid rgba(31, 58, 46, 0.18);
  border-bottom: 0.5px solid rgba(31, 58, 46, 0.18);
  text-align: center;
}
.pillar h3 { letter-spacing: 0.35em; font-size: 15px; text-transform: uppercase; margin-bottom: 0.85rem; }
.pillar p { font-style: italic; color: var(--fdc-brown); font-size: 15px; max-width: 30ch; margin: 0 auto; line-height: 1.7; }
.pillar-num { font-style: italic; color: var(--fdc-brown-soft); font-size: 11px; letter-spacing: 0.25em; margin-bottom: 0.65rem; }

/* ----- PRODUCTS (collection grid) ----- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 2rem 0; }
.product { text-align: center; }

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.2s;
}
.product-link:hover { opacity: 0.92; }
.product-link:hover .product-img-main { border-color: rgba(31, 58, 46, 0.45); }

.product-img-main {
  aspect-ratio: 1 / 1;
  background: var(--fdc-cream-light);
  border: 0.5px solid rgba(31, 58, 46, 0.2);
  margin-bottom: 14px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s;
}
.product-img-main img {
  width: 72%; height: 72%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.25s, transform 0.25s;
}
.product-img-main img:hover { opacity: 0.88; transform: scale(1.015); }

/* When the image sits inside a link, override cursor + transforms — let the link feel like a link */
.product-link .product-img-main img {
  cursor: pointer;
}
.product-link .product-img-main img:hover { transform: none; }

.product-name {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 14px; color: var(--fdc-green); margin-bottom: 6px;
}
.product-edit {
  font-style: italic; font-size: 12px; color: var(--fdc-brown-soft);
  margin-bottom: 10px; letter-spacing: 0.04em;
}
.product-price {
  font-size: 13px; letter-spacing: 0.2em; color: var(--fdc-green); margin-bottom: 14px;
}
.product-arrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fdc-green);
  font-style: italic;
  padding-bottom: 2px;
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.2s;
}
.product-link:hover .product-arrow { border-bottom-color: var(--fdc-green); }

/* ----- PLACEHOLDERS ----- */
.placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--fdc-brown-soft);
  background: var(--fdc-cream-light);
  border: 0.5px dashed rgba(31, 58, 46, 0.3);
}
.placeholder-icon {
  width: 32px; height: 32px;
  border: 0.5px solid var(--fdc-brown-soft);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.placeholder-label { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; font-style: italic; }
.placeholder-thumb {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--fdc-cream-light);
  border: 0.5px dashed rgba(31, 58, 46, 0.25);
  color: var(--fdc-brown-soft);
  font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase;
  font-style: italic; padding: 4px; text-align: center;
}

/* ----- MANIFESTO ----- */
.manifesto-page { max-width: 720px; margin: 0 auto; padding: 4rem 0 2rem; }
.manifesto-section { margin-bottom: 4.5rem; }
.section-num { font-style: italic; color: var(--fdc-brown-soft); font-size: 12px; letter-spacing: 0.4em; text-align: center; margin-bottom: 0.75rem; text-transform: uppercase; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.manifesto-body p { margin-bottom: 1.4rem; font-size: 17px; line-height: 1.85; color: var(--fdc-text); }
.drop-cap::first-letter {
  font-size: 4em; float: left; line-height: 0.85; font-weight: 700;
  color: var(--fdc-green); padding: 0.05em 0.12em 0 0; font-family: var(--fdc-serif);
}
.pull-quote {
  font-family: var(--fdc-script);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  color: var(--fdc-green);
  text-align: center;
  line-height: 1.2;
  margin: 3rem 0;
  padding: 0 1rem;
}

/* ----- REGIONS (Tierra page) ----- */
.regions { margin-top: 5rem; }
.region {
  display: flex; gap: 60px; align-items: center;
  padding: 4rem 0;
  border-top: 0.5px solid rgba(31, 58, 46, 0.15);
}
.region:first-of-type { border-top: 0; padding-top: 1rem; }
.region:nth-of-type(even) { flex-direction: row-reverse; }

.region-image {
  flex: 1; aspect-ratio: 4 / 5;
  background: var(--fdc-cream-light);
  border: 0.5px solid rgba(31, 58, 46, 0.2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.region-image img { width: 84%; height: 84%; object-fit: contain; display: block; cursor: zoom-in; transition: opacity 0.25s; }
.region-image img:hover { opacity: 0.88; }

.region-text { flex: 1; padding: 0 1rem; }
.region-num { font-style: italic; color: var(--fdc-brown-soft); font-size: 11px; letter-spacing: 0.3em; margin-bottom: 0.85rem; text-transform: uppercase; }
.region-name { font-family: var(--fdc-serif); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--fdc-green); margin-bottom: 1.5rem; line-height: 1.1; }
.region-body { font-style: italic; color: var(--fdc-brown); font-size: 16px; line-height: 1.85; margin-bottom: 1.5rem; }
.region-script { font-family: var(--fdc-script); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--fdc-green); line-height: 1.2; margin: 0; }

/* ----- PRODUCT DETAIL PAGE ----- */
.detail-page { padding-top: 3rem; }

.detail-hero {
  aspect-ratio: 1 / 1;
  background: var(--fdc-cream-light);
  border: 0.5px solid rgba(31, 58, 46, 0.2);
  margin: 2.5rem auto;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  max-width: 640px;
}
.detail-hero img {
  width: 80%; height: 80%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.25s, transform 0.25s;
}
.detail-hero img:hover { opacity: 0.9; transform: scale(1.01); }

.detail-body {
  font-style: italic;
  color: var(--fdc-brown);
  font-size: 16.5px;
  line-height: 1.85;
  margin: 2rem auto;
  max-width: 560px;
  text-align: center;
}

.detail-gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 3rem auto 2rem;
  max-width: 720px;
}
.detail-thumb-wrap { text-align: center; }
.detail-thumb {
  aspect-ratio: 1 / 1;
  background: var(--fdc-cream-light);
  border: 0.5px solid rgba(31, 58, 46, 0.18);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  margin-bottom: 12px;
}
.detail-thumb img {
  width: 82%; height: 82%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.25s;
}
.detail-thumb img:hover { opacity: 0.88; }
.detail-thumb-label {
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fdc-brown-soft);
}

.detail-buy {
  text-align: center;
  margin: 4rem auto 2rem;
  padding-top: 3rem;
  border-top: 0.5px solid rgba(31, 58, 46, 0.18);
  max-width: 480px;
}
.detail-price {
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--fdc-green);
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.detail-edition {
  font-style: italic;
  color: var(--fdc-brown-soft);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.detail-cta {
  padding: 16px 40px !important;
  font-size: 12px !important;
}

.detail-back-link {
  display: inline-block;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fdc-brown-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.detail-back-link:hover { color: var(--fdc-green); }

/* ----- CONTACT ----- */
.contact-form { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fdc-brown); margin-bottom: 8px; font-style: italic; }
.form-group input,
.form-group textarea {
  width: 100%; font-family: var(--fdc-serif);
  border: 1px solid var(--fdc-green); background: transparent; color: var(--fdc-text);
  padding: 12px 16px; font-size: 16px; border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus { outline: 1px solid var(--fdc-green); outline-offset: 2px; }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ----- FOOTER ----- */
.site-footer { border-top: 0.5px solid rgba(31, 58, 46, 0.18); padding: 2.5rem 0; margin-top: 4rem; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer .brand { font-size: 11px; letter-spacing: 0.25em; }
.site-footer .footer-quote { font-style: italic; font-size: 11px; color: var(--fdc-brown); letter-spacing: 0.18em; text-transform: uppercase; }
.footer-orn { color: var(--fdc-green); font-size: 12px; margin: 0 8px; }

/* ----- LIGHTBOX ----- */
.lightbox {
  position: fixed; inset: 0;
  background-color: rgba(238, 227, 201, 0.97);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.15  0 0 0 0.22 0'/></filter><rect width='280' height='280' filter='url(%23n)'/></svg>");
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 60px 40px; cursor: zoom-out;
  opacity: 0; transition: opacity 0.25s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border: 0.5px solid rgba(31, 58, 46, 0.25);
  background: var(--fdc-cream-light);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(31, 58, 46, 0.12);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: transparent; border: 0.5px solid var(--fdc-green); color: var(--fdc-green);
  width: 44px; height: 44px; font-size: 20px; cursor: pointer;
  font-family: var(--fdc-serif);
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: all 0.2s; border-radius: 0;
}
.lightbox-close:hover { background: var(--fdc-green); color: var(--fdc-cream); }
.lightbox-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-style: italic; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fdc-brown-soft);
}
body.lightbox-open { overflow: hidden; }

/* ----- SELECTION ----- */
::selection { background: var(--fdc-green); color: var(--fdc-cream); }

/* ----- MOBILE ----- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .site-header .container { flex-direction: column; }
  .nav ul { gap: 14px; justify-content: center; }
  .nav a { font-size: 9.5px; letter-spacing: 0.12em; }
  .brand { font-size: 11px; letter-spacing: 0.18em; }
  .hero { padding: 4rem 0 3rem; }
  .pillars { grid-template-columns: 1fr; gap: 32px; padding: 3rem 0; }
  .products { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 3rem 0; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .product-img-main img { width: 76%; height: 76%; }
  .lightbox { padding: 32px 20px; }
  .lightbox-close { top: 16px; right: 16px; width: 38px; height: 38px; }

  .region,
  .region:nth-of-type(even) {
    flex-direction: column; gap: 24px; padding: 2.5rem 0;
  }
  .region-text { padding: 0; text-align: center; }
  .region-image { aspect-ratio: 4 / 5; width: 100%; }

  .detail-hero { max-width: 100%; margin: 1.5rem auto; }
  .detail-gallery-pair { grid-template-columns: 1fr; gap: 20px; }
}
