/* LULAC Adelante PAC — base tokens, resets, shared components */

:root {
  --ink: #0e0e10;
  --paper: #f4f2ec;
  --blue: #1a3cff;
  --red: #ff3b1f;
  --orange: #ff8a1f;
  --white: #ffffff;
  --charcoal: #2b2b30;
  --card: #16161a;
  --line: #3a3a40;
  --gray: #55555c;
  --muted: #b9b6ae;
  --muted-2: #d9d6ce;
  --sand: #e6e2d8;
  --whatsapp: #25d366;
  --err-light: #ff8a70;
  --err-dark: #d42a10;

  --sans: Archivo, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(48px, 7vw, 96px);
  --nav-h: 65px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-wipe: cubic-bezier(.7, 0, .2, 1);
}
@media (min-width: 780px) { :root { --nav-h: 100px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper) url(/media/site/site-background-pattern.webp) repeat;
  background-size: 400px 400px;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.page-plain { background: var(--paper); }
a { color: inherit; }
a:hover { color: var(--blue); }
input, select, button, textarea { font: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: var(--red); color: var(--ink); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Type */
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kicker--red { color: var(--red); }
.kicker--blue { color: var(--blue); }
.display {
  margin: 0; font-weight: 900; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(48px, 8vw, 120px); line-height: .86; overflow-wrap: anywhere;
}
.display--md { font-size: clamp(40px, 5.5vw, 88px); line-height: .88; }
.mono-label { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.req { color: var(--red); font-weight: 900; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; padding: 10px 18px; font-weight: 800; font-size: 15px;
  text-transform: uppercase; text-decoration: none; cursor: pointer; flex: none;
}
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--paper); color: var(--ink); }
.btn--red { background: var(--red); color: var(--ink); }
.btn--red:hover { background: var(--paper); color: var(--ink); }
.btn--to-red:hover { background: var(--red); color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 22px; }
.btn--xl { padding: 16px; font-weight: 900; font-size: 18px; }
.btn--bordered { border: 2px solid var(--ink); padding: 14px 22px; }
.btn--outline-light { background: transparent; color: var(--paper); border: 2px solid currentColor; padding: 12px 20px; }
.btn--outline-light:hover { color: var(--red); }

/* Language toggle */
.lang-toggle { display: flex; border: 2px solid var(--paper); flex: none; }
.lang-toggle a {
  padding: 6px 10px; font-family: var(--mono); font-weight: 700; font-size: 12px;
  text-decoration: none; color: var(--paper);
}
.lang-toggle a:hover { color: var(--red); }
.lang-toggle a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.lang-toggle--lg a { padding: 10px 14px; font-size: 13px; }

/* Compact nav (Join / Apply / Contact / candidate) */
.sub-nav-spacer { height: 64px; }
.sub-nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); background: var(--ink); color: var(--paper);
  border-bottom: 3px solid var(--blue);
}
.sub-nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.sub-nav__brand img { height: 40px; width: auto; display: block; }
.sub-nav__brand span { font-weight: 900; font-stretch: 75%; font-size: 18px; text-transform: uppercase; line-height: 1; }
.sub-nav__end { display: flex; align-items: center; gap: 14px; }
.sub-nav__back { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--paper); }
.sub-nav__back:hover { color: var(--red); }

/* Disclaimer box */
.paid-box { display: flex; gap: 14px; flex-wrap: wrap; border: 2px solid var(--paper); color: var(--paper); padding: 10px 14px; font-weight: 700; font-size: 15px; }

.foot-small { background: var(--ink); color: var(--muted); border-top: 3px solid var(--red); padding: 24px var(--gutter); display: flex; flex-direction: column; gap: 14px; }
.foot-small__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-small__copy { font-family: var(--mono); font-size: 12px; }
.foot-small__disc { margin: 0; font-size: 13px; line-height: 1.5; max-width: 900px; text-wrap: pretty; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 14px 20px; background: var(--ink); color: var(--paper);
  border: 3px solid var(--red); font-weight: 700;
}

/* Error page */
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: var(--gutter); max-width: 1100px; }

/* Motion */
@keyframes lp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lp-drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
@keyframes lp-slide-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes lp-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

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