/* ============================================================
   ROJAS CIGARS — styles.css
   Structure: Reset → Variables → A11y → Age Gate → Nav →
              Hero → Sections → Genesis → Philosophy →
              Collection → Wrappers → Craft → Packaging →
              Distributors → Footer → Animations → Reveal →
              Responsive
   ============================================================ */

/* === RESET & VARIABLES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #C9A86C;
  --gold-light:  #E8CA8C;
  --gold-dark:   #9A7840;
  --dark:        #0D0A06;
  --dark-2:      #1A1208;
  --dark-3:      #261B0C;
  --dark-4:      #3D2B14;
  --cream:       #F5E8C8;
  --cream-light: #FDF5E6;
  --text-muted:  #8A7A60;
  --serif: 'Cormorant Garant', Georgia, serif;
  --sans:  'Jost', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.7;
}
::selection { background: var(--gold); color: var(--dark); }

/* === SCROLLBAR === */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* === ACCESSIBILITY === */
.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;
}

/* === AGE GATE === */
#agegate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  transition: opacity .6s ease;
}
#agegate.hidden      { opacity: 0; pointer-events: none; }
.ag-inner            { max-width: 520px; width: 100%; text-align: center; }
.ag-logo             { width: 120px; margin: 0 auto 2rem; opacity: .9; }
.ag-logo svg         { width: 100%; height: auto; }
.ag-sub              { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2.5rem; }
.ag-question         { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--cream-light); margin-bottom: .5rem; }
.ag-warn             { font-size: .75rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.ag-btns             { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.ag-btn              { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; padding: .85rem 2.5rem; border: 1px solid; cursor: pointer; transition: all .3s ease; font-weight: 400; }
.ag-btn-yes          { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.ag-btn-yes:hover    { background: var(--gold-light); border-color: var(--gold-light); }
.ag-btn-no           { background: transparent; border-color: var(--text-muted); color: var(--text-muted); }
.ag-btn-no:hover     { border-color: var(--cream); color: var(--cream); }
.ag-legal            { font-size: .65rem; color: var(--text-muted); max-width: 380px; margin: 0 auto; line-height: 1.8; opacity: .7; }
.ag-divider          { width: 60px; height: 1px; background: var(--gold-dark); margin: 1.5rem auto; }

#agegate-blocked {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}
.blocked-msg { font-family: var(--serif); font-size: 1.8rem; color: var(--text-muted); max-width: 400px; }

/* === NAVIGATION === */
/* <header> carries position:fixed so the <nav> stays as flex layout only */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(13, 10, 6, 0.88) 0%, rgba(13, 10, 6, 0) 100%);
}
#main-nav {
  padding: 1.5rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .4s ease;
}
#main-nav.scrolled {
  background: rgba(13, 10, 6, .95);
  padding: 1rem 4%;
  border-bottom: 1px solid rgba(201, 168, 108, .15);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .08em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-logo-mark     { width: 36px; height: 36px; opacity: .9; object-fit: contain; display: block; }
.nav-links         { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a       { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); text-decoration: none; opacity: .75; transition: opacity .3s ease; font-weight: 400; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-cta           { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; padding: .6rem 1.4rem; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; transition: all .3s ease; }
.nav-cta:hover     { background: var(--gold); color: var(--dark); }

/* Groups the CTA, language switcher and hamburger together on the right
   side of the nav so they can wrap/collapse as a single unit. */
.nav-actions       { display: flex; align-items: center; gap: 1.75rem; }

/* Language switcher (EN/ES) — toggles all [data-i18n*] content via js/i18n.js */
.lang-switch       { display: flex; align-items: center; border: 1px solid rgba(201, 168, 108, .25); border-radius: 2px; }
.lang-btn          { font-family: var(--sans); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--cream); opacity: .55; background: none; border: none; padding: .4rem .65rem; cursor: pointer; transition: opacity .3s ease, color .3s ease; }
.lang-btn:hover    { opacity: 1; }
.lang-btn[aria-pressed="true"] { opacity: 1; color: var(--gold); }
.lang-btn + .lang-btn { border-left: 1px solid rgba(201, 168, 108, .25); }

.nav-toggle        { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; z-index: 101; }
.nav-toggle span   { width: 24px; height: 1px; background: var(--cream); display: block; transition: all .3s ease; }
/* Morph the hamburger into a close (X) icon when the mobile menu is open —
   this replaces the separate "mobile-close" button, which used to render
   on top of the hamburger button and look like a broken double icon. */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu       { display: none; position: fixed; inset: 0; background: var(--dark-2); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }
.mobile-menu.open  { display: flex; }
.mobile-menu a     { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--cream); text-decoration: none; letter-spacing: .05em; opacity: .8; transition: opacity .3s; }
.mobile-menu a:hover { opacity: 1; color: var(--gold); }

/* Language switcher repeated inside the mobile menu — larger tap targets,
   set apart from the nav links with extra spacing. */
.lang-switch--mobile { margin-top: .5rem; border-color: rgba(201, 168, 108, .35); }
.lang-switch--mobile .lang-btn { font-size: .85rem; padding: .6rem 1.2rem; }

/* === HERO === */
#hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 8% 8rem;
  overflow: hidden;
}
/* Top-to-bottom dark gradient so the fixed nav blends into the hero
   and hero text near the top doesn't bleed into the nav bar area. */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13,10,6,.92) 0%, rgba(13,10,6,0) 22%);
  pointer-events: none;
}
.hero-bg          { position: absolute; inset: 0; z-index: 0; }

/* NOTE: path is relative to this CSS file (css/styles.css → ../images/) */
.hero-bg-inner {
  width: 100%;
  height: 100%;
  background-image: url("../images/hero-bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-bg-texture  { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A86C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }

/* Reduced left opacity (was .88) so the image shows through while text stays readable */
.hero-overlay     { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,10,6,.72) 0%, rgba(13,10,6,.42) 55%, rgba(13,10,6,.08) 100%); }

.hero-accent-line { position: absolute; top: 0; right: 30%; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(201,168,108,.2), transparent); z-index: 2; }
.hero-content     { position: relative; z-index: 2; max-width: 680px; }

.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp .8s .3s ease forwards;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); display: block; }

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--cream-light);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp .8s .5s ease forwards;
}
.hero-h1 em { font-style: italic; color: var(--gold); }

/* hero-desc replaces hero-h2 (was a <p> styled to look like subtitle) */
.hero-desc {
  font-family: var(--sans);
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--cream);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  letter-spacing: .04em;
  opacity: 0;
  animation: fadeUpSubtle .8s .7s ease forwards;
}

.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .9s ease forwards; }

.btn-primary       { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; padding: .95rem 2.4rem; background: var(--gold); color: var(--dark); text-decoration: none; display: inline-block; font-weight: 500; transition: all .3s ease; border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-ghost         { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; padding: .95rem 2.4rem; background: transparent; color: var(--cream); text-decoration: none; display: inline-block; font-weight: 400; transition: all .3s ease; border: 1px solid rgba(245,232,200,.3); }
.btn-ghost:hover   { border-color: var(--cream); transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: fadeIn 1s 1.4s ease forwards;
}
.hero-scroll span     { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); }
.hero-scroll-line     { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold-dark), transparent); animation: scrollPulse 2s ease-in-out infinite; }

.hero-stats { position: absolute; bottom: 3rem; right: 8%; z-index: 2; display: flex; gap: 3rem; opacity: 0; animation: fadeUp .8s 1.1s ease forwards; }
.hero-stat           { text-align: right; }
.hero-stat-num       { font-family: var(--serif); font-size: 2.5rem; font-weight: 300; color: var(--gold); line-height: 1; }
.hero-stat-label     { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-top: .3rem; }

/* === SECTION COMMON === */
section { padding: 6rem 8%; }

.section-label          { font-size: .65rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.section-label::before  { content: ''; width: 30px; height: 1px; background: var(--gold); display: block; }
.section-label--center  { justify-content: center; }
.section-label--center::before { display: none; }

.section-title      { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.1; letter-spacing: .03em; color: var(--cream-light); margin-bottom: 1.5rem; }
.section-title em   { font-style: italic; color: var(--gold); }
.section-body       { font-size: 1rem; line-height: 1.9; color: var(--cream); opacity: .75; max-width: 680px; font-weight: 300; }
.section-body--sm   { font-size: .9rem; margin-top: 1rem; }
.divider            { width: 60px; height: 1px; background: var(--gold-dark); margin: 2.5rem 0; }
.section-intro-centered { max-width: 600px; margin: 0 auto; text-align: center; }

/* === GENESIS / STORY === */
#genesis { background: var(--dark-2); position: relative; overflow: hidden; }
#genesis::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; border: 1px solid rgba(201,168,108,.06); border-radius: 50%; pointer-events: none; }
#genesis::after  { content: ''; position: absolute; bottom: -150px; right: -50px; width: 700px; height: 700px; border: 1px solid rgba(201,168,108,.04); border-radius: 50%; pointer-events: none; }

.genesis-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.genesis-visual     { position: relative; }
.genesis-img-frame  { aspect-ratio: 3/4; background: linear-gradient(145deg, #261B0C, #3D2B14); position: relative; overflow: hidden; }
.genesis-img-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,10,6,.6), transparent); }
.genesis-img-inner  {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.9);
}
.genesis-badge      { position: absolute; bottom: -1.5rem; right: -1.5rem; width: 100px; height: 100px; background: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.genesis-badge-year { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--dark); line-height: 1; }
.genesis-badge-text { font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; color: var(--dark); opacity: .75; }
.genesis-quote      { font-family: var(--serif); font-size: 1.5rem; font-weight: 300; font-style: italic; color: var(--cream); line-height: 1.6; margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--gold); opacity: .85; }
.genesis-quote cite { display: block; font-size: .85rem; color: var(--text-muted); font-style: italic; margin-top: .75rem; }

/* === PHILOSOPHY === */
#philosophy { background: var(--dark); }
.philosophy-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 3rem; }
.philo-card         { background: var(--dark-3); padding: 3rem 2.5rem; position: relative; overflow: hidden; transition: background .3s ease; }
.philo-card:hover   { background: var(--dark-4); }
.philo-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform .4s ease; }
.philo-card:hover::before { transform: scaleX(1); }
.philo-icon         { width: 48px; height: 48px; margin-bottom: 1.5rem; opacity: .6; }
.philo-icon svg     { width: 100%; height: 100%; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.philo-title        { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--gold); margin-bottom: .8rem; letter-spacing: .03em; }
.philo-text         { font-size: .9rem; line-height: 1.9; color: var(--cream); opacity: .6; font-weight: 300; }

/* === COLLECTION === */
#collection          { background: var(--dark-2); position: relative; }
.collection-intro    { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.collection-grid     { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5px; }
.cigar-card          { background: var(--dark-3); padding: 2.5rem; position: relative; overflow: hidden; transition: all .3s ease; cursor: pointer; }
.cigar-card:hover    { background: var(--dark-4); transform: translateY(-3px); }

/* Replaces the per-card inline <div style="height:160px;margin:…"> */
.cigar-card-image    { height: 160px; margin: -2.5rem -2.5rem 1.5rem; overflow: hidden; position: relative; }
.cigar-card-img      { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); display: block; }

.cigar-card-header  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.cigar-name         { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--cream-light); line-height: 1.2; }
.cigar-size         { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }
.cigar-type-badge   { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; padding: .3rem .8rem; border: 1px solid; display: inline-block; }
.badge-maduro       { border-color: rgba(201,168,108,.4); color: var(--gold); }
.badge-habano       { border-color: rgba(160,130,80,.4); color: #A08240; }
.badge-connecticut  { border-color: rgba(245,232,200,.3); color: var(--cream); }
.cigar-divider      { width: 30px; height: 1px; background: var(--gold-dark); margin: 1rem 0; }
.cigar-desc         { font-size: .85rem; line-height: 1.8; color: var(--cream); opacity: .6; font-weight: 300; margin-bottom: 1.5rem; }
.cigar-anatomy      { font-size: .72rem; letter-spacing: .05em; color: var(--text-muted); line-height: 2; }
.cigar-anatomy strong { color: var(--gold); opacity: .8; font-weight: 400; }

/* Replaces <div style="margin-top:1.2rem"> around gauge rows */
.gauge-group        { margin-top: 1.2rem; }
.gauge-row          { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.gauge-label        { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); width: 50px; flex-shrink: 0; }
.gauge-bar          { flex: 1; height: 3px; background: rgba(201,168,108,.15); border-radius: 1px; overflow: hidden; }

/* Width driven by --fill-width custom property set via JS from data-width attribute */
.gauge-fill         { height: 100%; width: var(--fill-width, 0%); background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 1px; transition: width .8s ease; }

/* === WRAPPERS === */
#wrappers          { background: var(--dark); }
.wrappers-intro    { max-width: 500px; }
.wrappers-grid     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 4rem; }
.wrapper-card      { background: var(--dark-3); padding: 3rem 2.5rem; border-top: 2px solid; transition: background .3s ease; }
.wrapper-card:hover { background: var(--dark-4); }
.wrapper-card.san-andres  { border-color: #6B3A1F; }
.wrapper-card.habano      { border-color: #A08240; }
.wrapper-card.connecticut { border-color: #D4BF7A; }
.wrapper-origin    { font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; }
.wrapper-name      { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; color: var(--cream-light); margin-bottom: .3rem; }
.wrapper-name.san-andres  { color: #C4845A; }
.wrapper-name.habano      { color: var(--gold); }
.wrapper-name.connecticut { color: #E8D898; }
.wrapper-profile   { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.2rem; }
.wrapper-desc      { font-size: .9rem; line-height: 1.9; color: var(--cream); opacity: .6; font-weight: 300; }
.wrapper-notes     { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.note-pill         { font-size: .65rem; letter-spacing: .1em; padding: .3rem .7rem; background: rgba(201,168,108,.08); color: var(--gold); border: 1px solid rgba(201,168,108,.2); }

/* === CRAFT === */
#craft             { background: var(--dark-2); position: relative; overflow: hidden; }
.craft-header      { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.craft-steps       { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; list-style: none; margin: 0; padding: 0; }
.craft-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), rgba(201,168,108,.3));
  z-index: 0;
}
.craft-step       { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.craft-step-num   { width: 44px; height: 44px; border: 1px solid var(--gold-dark); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-family: var(--serif); font-size: 1rem; color: var(--gold); background: var(--dark-2); transition: all .3s ease; }
.craft-step:hover .craft-step-num { background: var(--gold); color: var(--dark); }
.craft-step-title { font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--cream); margin-bottom: .5rem; letter-spacing: .03em; }
.craft-step-desc  { font-size: .78rem; line-height: 1.8; color: var(--cream); opacity: .5; font-weight: 300; }

/* === PACKAGING === */
#packaging          { background: var(--dark-3); position: relative; }
.packaging-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.packaging-visual   { background: linear-gradient(145deg, #261B0C, #3D2B14); aspect-ratio: 4/3; position: relative; overflow: hidden; padding: 0; }
.packaging-img      { width: 100%; height: 100%; object-fit: cover; display: block; }
.packaging-specs    { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2rem; }
.spec-item          { background: var(--dark-2); padding: 1.2rem 1.5rem; }
.spec-label         { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .3rem; }
.spec-value         { font-family: var(--serif); font-size: 1.1rem; color: var(--cream-light); }
.packaging-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.feat-item          { display: flex; align-items: flex-start; gap: 1rem; }
.feat-icon          { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--gold); font-size: 1rem; }
.feat-text          { font-size: .9rem; line-height: 1.7; color: var(--cream); opacity: .7; }

/* === B2B / DISTRIBUTOR === */
#distributors { background: var(--dark); position: relative; overflow: hidden; text-align: center; }
#distributors::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(201,168,108,.05), transparent 70%); }
.distributor-inner    { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.distributor-eyebrow  { font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; gap: .8rem; }
.distributor-eyebrow::before,
.distributor-eyebrow::after { content: ''; width: 30px; height: 1px; background: var(--gold); display: block; }
.distributor-title    { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; line-height: 1.1; color: var(--cream-light); letter-spacing: .03em; margin-bottom: 1.5rem; }
.distributor-title em { font-style: italic; color: var(--gold); }
.distributor-body     { font-size: 1rem; line-height: 1.9; color: var(--cream); opacity: .65; margin-bottom: 3rem; }

.contact-form          { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 1px; }
.contact-form .field-full { grid-column: 1 / -1; }
.form-field            { background: var(--dark-3); }
.form-field input,
.form-field textarea,
.form-field select     { width: 100%; background: transparent; border: none; padding: 1.2rem 1.5rem; font-family: var(--sans); font-size: .85rem; color: var(--cream); font-weight: 300; letter-spacing: .03em; outline: none; border-bottom: 1px solid rgba(201,168,108,.2); transition: border-color .3s ease; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); opacity: .7; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--gold); }
.form-field select     { appearance: none; cursor: pointer; color: var(--text-muted); }
.form-field textarea   { resize: none; height: 120px; line-height: 1.7; }
.form-submit-row       { background: var(--dark-3); padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note             { font-size: .72rem; color: var(--text-muted); letter-spacing: .05em; text-align: left; }
.btn-submit            { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; padding: .9rem 2.2rem; background: var(--gold); color: var(--dark); border: none; cursor: pointer; font-weight: 500; transition: all .3s ease; }
.btn-submit:hover      { background: var(--gold-light); transform: translateY(-2px); }

/* Thank-you message shown after a FormSubmit.co redirect (?sent=true) */
.form-success          { display: none; flex-direction: column; align-items: center; text-align: center; background: var(--dark-3); padding: 3.5rem 2rem; gap: 1rem; }
.form-success.visible  { display: flex; }
.form-success-icon     { width: 52px; height: 52px; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1; color: var(--gold); margin-bottom: .5rem; }
.form-success-title    { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; color: var(--cream-light); letter-spacing: .03em; }
.form-success-body     { font-size: .9rem; line-height: 1.8; color: var(--cream); opacity: .65; max-width: 440px; }

/* === FOOTER === */
footer             { background: var(--dark-2); border-top: 1px solid rgba(201,168,108,.1); padding: 4rem 8% 2rem; }
.footer-grid       { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand      { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; color: var(--gold); letter-spacing: .06em; margin-bottom: .5rem; }
.footer-tagline    { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.2rem; }
.footer-about      { font-size: .82rem; line-height: 1.8; color: var(--cream); opacity: .5; font-weight: 300; }
.footer-col-title  { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; opacity: .8; }
.footer-links      { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a    { font-size: .82rem; color: var(--cream); opacity: .5; text-decoration: none; transition: opacity .3s; font-weight: 300; letter-spacing: .02em; }
.footer-links a:hover { opacity: .9; color: var(--gold); }
.footer-social     { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-link       { width: 36px; height: 36px; border: 1px solid rgba(201,168,108,.25); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; font-size: .75rem; letter-spacing: .05em; font-weight: 400; transition: all .3s ease; }
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* Bug fix: was "flex-wrap:gap" (invalid) → flex-wrap:wrap */
.footer-bottom     { border-top: 1px solid rgba(201,168,108,.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy       { font-size: .72rem; color: var(--text-muted); opacity: .6; letter-spacing: .05em; }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { font-size: .65rem; letter-spacing: .1em; color: var(--text-muted); opacity: .5; text-decoration: none; text-transform: uppercase; transition: opacity .3s; }
.footer-legal-links a:hover { opacity: 1; }
.health-warning    { background: rgba(201,168,108,.06); border: 1px solid rgba(201,168,108,.12); padding: 1rem 1.5rem; margin-top: 1.5rem; font-size: .7rem; line-height: 1.7; color: var(--text-muted); opacity: .6; letter-spacing: .04em; text-align: center; }

/* === KEYFRAMES === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Used for the hero subtitle — fades up and settles at 75% opacity */
@keyframes fadeUpSubtle {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: .75; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50%       { transform: scaleY(1.3); }
}

/* === REVEAL ON SCROLL === */
.reveal           { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible   { opacity: 1; transform: none; }
.reveal-delay-1   { transition-delay: .1s; }
.reveal-delay-2   { transition-delay: .2s; }
.reveal-delay-3   { transition-delay: .3s; }
.reveal-delay-4   { transition-delay: .4s; }

/* === RESPONSIVE — 1200 px breakpoint (nav) ===
   Switches to the hamburger menu earlier than the general 900px
   breakpoint, because the logo + nav links + CTA button + language
   switcher no longer fit on one line below ~1175px and would
   otherwise wrap and overlap the section content underneath the
   fixed header. The Spanish translations (e.g. "Conviértete en
   Distribuidor", "Nuestro Legado") are noticeably longer than their
   English counterparts, so this threshold was raised from 1080px to
   1200px to keep the nav on a single row in both languages. */
@media (max-width: 1200px) {
  .nav-links, .nav-cta, .nav-actions .lang-switch { display: none; }
  .nav-toggle        { display: flex; }
}

/* === RESPONSIVE — 900 px breakpoint === */
@media (max-width: 900px) {
  #main-nav          { padding: 1.2rem 5%; }
  #main-nav.scrolled { padding: .8rem 5%; }
  section            { padding: 4rem 5%; }
  #hero              { padding: 5rem 5% 0; }
  .hero-stats        { display: none; }
  .genesis-grid,
  .craft-header,
  .packaging-grid    { grid-template-columns: 1fr; }
  .collection-intro  { grid-template-columns: 1fr; }
  .philosophy-grid,
  .wrappers-grid,
  .craft-steps       { grid-template-columns: 1fr; gap: 1px; }
  .craft-steps::before { display: none; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .contact-form      { grid-template-columns: 1fr; }
  .genesis-badge     { bottom: -1rem; right: -1rem; width: 80px; height: 80px; }
  .genesis-badge-year { font-size: 1rem; }
}

/* === RESPONSIVE — short viewport height (compact laptop screens) === */
@media (max-height: 820px) and (min-width: 601px) {
  #hero      { padding-top: 4rem; }
  .hero-h1   { font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.0; }
  .hero-desc { margin-bottom: 1.2rem; line-height: 1.6; }
}

/* === RESPONSIVE — 600 px breakpoint === */
@media (max-width: 600px) {
  .hero-h1           { font-size: 2.8rem; }
  .footer-grid       { grid-template-columns: 1fr; }
  .footer-bottom     { flex-direction: column; text-align: center; }
  .footer-legal-links { flex-wrap: wrap; justify-content: center; }
  .ag-btns           { flex-direction: column; align-items: center; }
  .packaging-specs   { grid-template-columns: 1fr; }
}
