/* ============================================================
   Banapov · Industria Arrocera — Modern Heritage
   ============================================================ */

:root {
  /* palette */
  --cream:        #F5EDDE;
  --cream-deep:   #ECE0C9;
  --cream-warm:   #FBF6EA;
  --earth:        #2B1F17;
  --earth-soft:   #5C4A3A;
  --paddy:        #3E5A3A;
  --paddy-dark:   #2B4128;
  --paddy-deep:   #1F2E1C;
  --terracotta:   #C57B57;
  --terracotta-dark: #A85F3D;
  --gold:         #C9A24A;
  --gold-soft:    #DBB964;

  /* spacing */
  --container-max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* shadows */
  --shadow-card: 0 2px 4px rgba(43, 31, 23, 0.04), 0 8px 24px rgba(43, 31, 23, 0.06);
  --shadow-card-hover: 0 4px 8px rgba(43, 31, 23, 0.08), 0 16px 40px rgba(43, 31, 23, 0.1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--earth);
  background: var(--cream-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--cream      { background: var(--cream); color: var(--earth); }
.section--cream-deep { background: var(--cream-deep); color: var(--earth); }
.section--paddy      { background: var(--paddy-dark); color: var(--cream); }
.section--earth      { background: var(--earth); color: var(--cream); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  margin-bottom: 1rem;
}
.section-title--light { color: var(--cream); }
.section-lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--earth-soft);
  max-width: 60ch;
}
.section-lede--light { color: rgba(245, 237, 222, 0.78); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paddy);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-soft); }

/* ---------- utility bar ---------- */
.utility-bar {
  background: var(--paddy-deep);
  color: var(--cream);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(245, 237, 222, 0.1);
}
.utility-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.625rem;
  flex-wrap: wrap;
}
.utility-bar__contact, .utility-bar__actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.utility-bar__link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: rgba(245, 237, 222, 0.85);
  transition: color 0.2s;
}
.utility-bar__link:hover { color: var(--gold-soft); }

.lang-switch { display: inline-flex; align-items: center; gap: 0.4rem; }
.lang-switch__btn {
  background: none;
  border: none;
  color: rgba(245, 237, 222, 0.55);
  font-weight: 600;
  padding: 0.15rem 0.3rem;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
  transition: color 0.2s;
}
.lang-switch__btn.is-active { color: var(--gold-soft); }
.lang-switch__btn:hover { color: var(--cream); }
.lang-switch__sep { opacity: 0.4; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 234, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid rgba(43, 31, 23, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  display: block;
  height: 44px;
  width: auto;
}
.brand__logo--footer {
  height: 52px;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--earth);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--paddy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: var(--paddy); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 22px;
  position: relative;
  padding: 0;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--earth);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 1.5px solid transparent;
  letter-spacing: 0.005em;
}
.btn--primary {
  background: var(--paddy);
  color: var(--cream);
  border-color: var(--paddy);
}
.btn--primary:hover {
  background: var(--paddy-dark);
  border-color: var(--paddy-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(43, 65, 40, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--earth);
  border-color: rgba(43, 31, 23, 0.25);
}
.btn--ghost:hover {
  background: var(--earth);
  color: var(--cream);
  border-color: var(--earth);
  transform: translateY(-1px);
}
.btn--cream {
  background: var(--cream);
  color: var(--earth);
  border-color: var(--cream);
}
.btn--cream:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-1px);
}
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 70vh, 720px);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--cream);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 55%, rgba(31, 46, 28, 0.55) 0%, rgba(31, 46, 28, 0) 60%),
    linear-gradient(180deg, rgba(31, 46, 28, 0.35) 0%, rgba(31, 46, 28, 0.15) 35%, rgba(31, 46, 28, 0.65) 100%);
}
.hero__paddy { width: 100%; height: 100%; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 4rem;
}
.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(201, 162, 74, 0.5);
  border-radius: 999px;
}
.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero__title span { display: block; }
.hero__title-accent {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}
.hero__lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: rgba(245, 237, 222, 0.9);
  max-width: 55ch;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero__cta .btn--ghost {
  color: var(--cream);
  border-color: rgba(245, 237, 222, 0.4);
}
.hero__cta .btn--ghost:hover {
  background: var(--cream);
  color: var(--earth);
  border-color: var(--cream);
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 237, 222, 0.65);
  margin-top: 0.4rem;
}

/* ---------- brand grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.brand-card {
  background: var(--cream-warm);
  border: 1px solid rgba(43, 31, 23, 0.08);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: var(--shadow-card);
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent, var(--paddy));
}
.brand-card__sack {
  width: 100%;
  height: 220px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.brand-card__sack img {
  max-height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(43, 31, 23, 0.18));
  transition: transform 0.3s ease;
}
.brand-card:hover .brand-card__sack img {
  transform: translateY(-4px) scale(1.02);
}
.brand-card__sack svg {
  max-height: 100%;
  width: auto;
}
.brand-card__name {
  font-size: 1.375rem;
  margin-bottom: 0.6rem;
  color: var(--earth);
}
.brand-card__desc {
  font-size: 0.9375rem;
  color: var(--earth-soft);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.brand-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: auto;
}
.brand-card__sizes li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--earth-soft);
}
.brand-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent, var(--paddy));
  font-size: 0.9375rem;
  transition: gap 0.2s;
}
.brand-card__link:hover { letter-spacing: 0.02em; }

.brand-card--bespoke {
  background: transparent;
  border-style: dashed;
  border-color: rgba(43, 31, 23, 0.25);
}

/* ---------- two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.two-col--reverse .two-col__text { order: 2; }

.value-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-block: 2.25rem;
}
.value-list li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
}
.value-list strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--cream);
}
.value-list span {
  font-size: 0.9375rem;
  color: rgba(245, 237, 222, 0.78);
  line-height: 1.5;
}

.quote-card {
  background: rgba(245, 237, 222, 0.06);
  border: 1px solid rgba(245, 237, 222, 0.15);
  border-radius: 18px;
  padding: 2.25rem;
  color: var(--cream);
  position: relative;
}
.quote-card__mark {
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.quote-card blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-style: italic;
  line-height: 1.4;
}
.quote-card cite {
  font-style: normal;
  font-size: 0.875rem;
  color: rgba(245, 237, 222, 0.65);
  letter-spacing: 0.04em;
}

/* ---------- planta ---------- */
.planta-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-block: clamp(2.5rem, 5vw, 4rem);
}
.planta-stat {
  background: var(--cream-warm);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(43, 31, 23, 0.06);
}
.planta-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  color: var(--paddy);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.planta-stat__label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--earth-soft);
  font-weight: 500;
}
.planta-gallery {
  display: grid;
  gap: 1rem;
}
.planta-gallery__hero {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(43, 31, 23, 0.08);
  box-shadow: var(--shadow-card);
  aspect-ratio: 21 / 9;
}
.planta-gallery__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.planta-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.planta-gallery__thumbs figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(43, 31, 23, 0.08);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
}
.planta-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.planta-gallery__thumbs figure:hover img {
  transform: scale(1.04);
}
.planta-photo__caption {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  background: rgba(43, 31, 23, 0.78);
  color: var(--cream);
  font-size: 0.8125rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  margin: 0;
}
@media (max-width: 760px) {
  .planta-gallery__thumbs { grid-template-columns: 1fr; }
  .planta-gallery__hero { aspect-ratio: 4 / 3; }
}

/* ---------- contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}
.contact-grid__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.contact-grid__value {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--cream);
  line-height: 1.4;
}

.contact-form {
  background: rgba(245, 237, 222, 0.05);
  border: 1px solid rgba(245, 237, 222, 0.12);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form__hp { position: absolute; left: -5000px; }
.contact-form__role {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border: none;
  padding: 0;
  margin: 0 0 0.5rem;
}
.contact-form__radio {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(245, 237, 222, 0.06);
  border: 1px solid rgba(245, 237, 222, 0.18);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: rgba(245, 237, 222, 0.85);
}
.contact-form__radio:has(input:checked) {
  background: var(--gold);
  color: var(--earth);
  border-color: var(--gold);
  font-weight: 600;
}
.contact-form__radio input { display: none; }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(245, 237, 222, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-form__full label { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form input,
.contact-form textarea {
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--earth);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.2);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 0.5rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--paddy-deep);
  color: var(--cream);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 3fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.site-footer__brand .brand { margin-bottom: 1rem; }
.site-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: rgba(245, 237, 222, 0.7);
  max-width: 28ch;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.site-footer__col h5 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__col a, .site-footer__col li {
  font-size: 0.9375rem;
  color: rgba(245, 237, 222, 0.78);
  transition: color 0.2s;
}
.site-footer__col a:hover { color: var(--gold-soft); }

.site-footer__legal {
  border-top: 1px solid rgba(245, 237, 222, 0.08);
  padding-block: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(245, 237, 222, 0.55);
}
.site-footer__legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 960px) {
  .two-col, .site-footer__inner { grid-template-columns: 1fr; }
  .two-col--reverse .two-col__text { order: 0; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .value-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream-warm);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--gutter);
    border-bottom: 1px solid rgba(43, 31, 23, 0.06);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s, transform 0.2s, visibility 0s;
  }
  .nav a {
    padding-block: 0.85rem;
    width: 100%;
    border-bottom: 1px solid rgba(43, 31, 23, 0.06);
  }
  .nav a::after { display: none; }
}

@media (max-width: 640px) {
  .utility-bar__contact { display: none; }
  .utility-bar__inner { justify-content: space-between; }
  .hero__stats { gap: 1.5rem; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

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