/* Left Bank Beer Festival
   CAMRA 2025 brand palette, multi-colour festive direction.
   Typeface: Arboria where available, Arial as the web safe fallback. */

:root {
  /* Brand palette (decorative use) */
  --amber: #F9B13C;
  --slate: #41495A;
  --aqua: #00B3C4;
  --tango: #EB5B25;
  --lilac: #9D4A96;
  --blue: #5B6FB3;
  --emerald: #60BB9B;
  --watermelon: #E8335E;

  /* Accessible variants for text, links and buttons (AA on white) */
  --tango-ink: #C2410C;
  --watermelon-ink: #CE1F49;

  --ink: #2b3038;
  --paper: #ffffff;
  --paper-tint: #fbf6ee;
  --line: rgba(65, 73, 90, 0.14);

  --font: "Arboria", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --maxw: 1080px;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(43, 48, 56, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.4em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--tango-ink); }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.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;
}

/* Honeypot field: kept in the DOM but moved off screen */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--slate); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--tango-ink); color: #fff;
  font-weight: 700; text-decoration: none; padding: 0.85rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #a8370a; }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn[disabled] { opacity: 0.65; cursor: default; transform: none; box-shadow: none; }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--slate); font-weight: 800; }
.brand-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; color: #fff; background: var(--slate);
  font-size: 0.95rem; letter-spacing: 0.02em;
}
.brand-name { font-size: 1.05rem; }

.primary-nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--slate); text-decoration: none; font-weight: 600; }
.primary-nav a:not(.btn):hover { color: var(--tango-ink); }
.primary-nav a.btn { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: transparent;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--slate); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--slate);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.85; z-index: 0;
}
.hero::before {
  width: 480px; height: 480px; top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--amber), var(--tango));
}
.hero::after {
  width: 380px; height: 380px; bottom: -160px; left: -120px;
  background: radial-gradient(circle at 60% 40%, var(--aqua), var(--blue));
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; font-size: 0.8rem; color: var(--amber); margin-bottom: 0.6rem; }
.rebooted {
  display: inline-block; font-size: 0.4em; vertical-align: middle;
  background: var(--watermelon-ink); color: #fff; padding: 0.25em 0.7em;
  border-radius: 999px; transform: rotate(-3deg); font-weight: 800;
  text-transform: lowercase; letter-spacing: 0.02em;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 56ch; color: rgba(255,255,255,0.92); }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; list-style: none; margin: 1.8rem 0; padding: 0; }
.hero-facts li { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 1rem; }
.hero-facts strong { display: block; font-size: 1.1rem; }
.hero-facts span { color: rgba(255,255,255,0.82); font-size: 0.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; max-width: 460px; }
.countdown > div {
  background: rgba(255,255,255,0.12); border-radius: 12px; padding: 0.8rem 0.4rem; text-align: center;
}
.count { display: block; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
.count-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.85); }

/* Partner bar (endorsed brand lockup) */
.partner-bar { background: var(--paper-tint); border-bottom: 1px solid var(--line); padding: 1.8rem 0; }
.partner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; text-align: center; }
.partner-text { margin: 0; font-weight: 600; color: var(--slate); max-width: 42ch; }
.partner-logos { display: flex; align-items: center; gap: 2rem; }
.partner-logo { width: 120px; height: 120px; object-fit: contain; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tinted { background: var(--paper-tint); }
.section-dark { background: var(--slate); color: #fff; }
.section-dark .section-kicker { color: var(--amber); }
.section-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; font-size: 0.78rem; color: var(--tango-ink); margin-bottom: 0.4rem; }
.section-intro { max-width: 60ch; font-size: 1.08rem; }
.prose { max-width: 64ch; }
.pull-quote { font-size: 1.4rem; font-weight: 800; font-style: italic; color: var(--tango-ink); margin-top: 1.5rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); border-top: 5px solid var(--slate);
}
.card h3 { margin-top: 0.2rem; }
.card p { margin-bottom: 0; }
.card-amber { border-top-color: var(--amber); }
.card-tango { border-top-color: var(--tango); }
.card-aqua { border-top-color: var(--aqua); }
.card-blue { border-top-color: var(--blue); }
.card-lilac { border-top-color: var(--lilac); }
.card-emerald { border-top-color: var(--emerald); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.6rem 0 1rem; }
.tag-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1.1rem; font-weight: 600; }
.note { margin-top: 1.75rem; font-size: 0.92rem; color: #5d6373; font-style: italic; }
.section-dark .note { color: rgba(255,255,255,0.75); }

/* Signup */
.signup { display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 460px; margin-top: 1.4rem; }
.signup input[type="email"] {
  flex: 1 1 220px; padding: 0.85rem 1rem; border-radius: 999px; border: none;
  font-family: inherit; font-size: 1rem; color: var(--ink);
}
.signup input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.form-message { margin-top: 0.8rem; font-weight: 600; min-height: 1.2em; }
.contact { margin-top: 1.2rem; color: rgba(255,255,255,0.9); }
.section-dark a { color: var(--amber); }

/* Footer */
.site-footer { background: #353b48; color: rgba(255,255,255,0.88); padding: 3rem 0; }
.footer-inner { display: grid; gap: 1.2rem; }
.footer-fest { font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0; }
.footer-tag { margin: 0.2rem 0 0; color: var(--amber); font-weight: 600; }
.footer-camra { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.2rem; }
.footer-logos { display: flex; align-items: center; gap: 1rem; flex: none; }
.footer-logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; }
.footer-camra p { margin: 0; max-width: 60ch; }
.footer-legal, .footer-site, .footer-credit { font-size: 0.85rem; margin: 0; }
.footer-site a, .footer-credit a { color: #fff; text-decoration: underline; }

/* Reveal on scroll (progressive enhancement) */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: scaleY(0); transform-origin: top; transition: transform 0.2s ease;
  }
  .primary-nav.open { transform: scaleY(1); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .primary-nav li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav .btn { text-align: center; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .partner-logo { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}