/* ============================================================
   HORNITOS — "Naturally Rewarding"
   Campaign Framework v2.0 — Design System
   Tokens derived from: logo, key art, bottle, glass, texture
   ============================================================ */

:root {
  /* --- Brand color ownership --- */
  --green:        #00935A;   /* primary brand green (logo: rgb 0,153,91 / keyart 1,146,89) */
  --green-700:    #0A7A4B;   /* deeper green — text on light, hovers */
  --green-900:    #0A5234;   /* darkest — deep panels */
  --green-tint:   #E4EFE3;   /* faint green wash */

  /* --- Stone / sunlight neutrals (travertine texture) --- */
  --stone-50:  #FBF7EC;
  --stone-100: #F4EEDF;
  --stone-150: #EFE8D7;
  --stone-200: #EBE5D3;
  --stone-300: #E0D8C2;
  --stone-400: #CFC6AD;

  /* --- Warm ink --- */
  --ink:      #25241D;
  --ink-soft: #565143;
  --ink-faint:#8A8472;

  /* --- Functional --- */
  --paper:    #FFFFFF;
  --line:     rgba(37,36,29,.12);
  --line-soft:rgba(37,36,29,.07);

  /* --- Type --- */
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow Condensed", "Arial Narrow", sans-serif;
  --btn: "Saira Condensed", "Arial Narrow", sans-serif;

  /* --- Spacing rhythm --- */
  --gut: clamp(20px, 5vw, 88px);
  --maxw: 1280px;

  --shadow-soft: 0 24px 60px -28px rgba(37,36,29,.28);
  --shadow-card: 0 2px 4px rgba(37,36,29,.04), 0 18px 40px -24px rgba(37,36,29,.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--stone-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: .005em;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* --------- Typography hierarchy --------- */
.eyebrow {
  font-family: var(--btn);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow.on-dark { color: #9FE3B8; }
.eyebrow.muted { color: var(--ink-faint); }

.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.display-xl { font-size: clamp(46px, 5.8vw, 86px); }
.display-lg { font-size: clamp(44px, 6vw, 92px); }
.display-md { font-size: clamp(34px, 4.4vw, 62px); }
.display-sm { font-size: clamp(28px, 3.4vw, 44px); }

h1,h2,h3 { font-family: var(--display); text-transform: uppercase; font-weight: 700; letter-spacing: -.005em; margin: 0; }

.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.45; color: var(--ink-soft); max-width: 48ch; }
.fine { font-size: 13.5px; line-height: 1.55; color: var(--ink-faint); }

.measure { max-width: 60ch; }

/* --------- Layout --------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 10vw, 150px); }
.tex-bg {
  background-color: var(--stone-100);
  background-image: url("assets/hornitos-texture.jpg");
  background-size: cover;
  background-position: center;
}

/* --------- Buttons --------- */
.btn {
  --bg: var(--green);
  --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--bg); color: var(--fg);
  border: none; border-radius: 0;
  font-family: var(--btn); font-weight: 700;
  font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 30px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 22px -12px rgba(0,147,90,.7);
  min-height: 52px; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0,147,90,.75); background: var(--green-700); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  --bg: transparent; --fg: var(--ink);
  box-shadow: none; border: 1.5px solid var(--line);
  padding: 16px 26px;
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

.btn-light { --bg: #fff; --fg: var(--green-700); box-shadow: var(--shadow-card); }
.btn-light:hover { background: #fff; color: var(--green-900); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 40px; font-size: 20px; min-height: 60px; }

.textlink {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--btn); font-weight: 700; font-size: 16px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--green-700);
  text-decoration: none; border-bottom: 2px solid transparent;
  padding-bottom: 2px; transition: border-color .2s; white-space: nowrap;
}
.textlink:hover { border-color: var(--green); }

/* --------- Pills / chips --------- */
.pill {
  display: inline-flex; align-items: center; gap: .55em;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* --------- Forms --------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-faint); }
.input, .select {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--stone-300);
  border-radius: 12px; padding: 15px 16px; width: 100%;
  transition: border-color .16s, box-shadow .16s;
  min-height: 54px;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0,147,90,.14);
}
.input.err, .select.err { border-color: #C0492F; box-shadow: 0 0 0 4px rgba(192,73,47,.12); }
.errmsg { color: #B0432C; font-size: 12.5px; font-weight: 600; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2325241D' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

/* --------- Cards --------- */
.card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); }

/* --------- Utility --------- */
.center { text-align: center; }
.stack-sm > * + * { margin-top: 10px; }
.flex { display: flex; }
.fade-up { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1); }
@keyframes fadeUp { from { transform: translateY(16px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* keep page from jumping when screens swap */
/* screens swap without an opacity fade (kept visible for paused iframes) */
