/* ===========================================================
   Sussex Brewing Co. — shared stylesheet
   Palette + type pulled from the launch flyer.
   =========================================================== */

:root {
  --green-dark: #1e3a2d;
  --green-darker: #16291f;
  --cream: #f4ead9;
  --cream-soft: #ece0c9;
  --amber: #c8842e;
  --amber-light: #e0a94f;
  --ink: #23301f;
  --white: #fffaf0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 41, 31, 0.15);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-light);
  margin-bottom: 0.75em;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream);
  opacity: 0.9;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--dark {
  background: var(--green-dark);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--soft {
  background: var(--cream-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--amber {
  background: var(--amber);
  color: var(--white);
}

.btn--amber:hover {
  background: var(--amber-light);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1.75em;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(30, 58, 45, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  font-family: var(--font-display);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
}

.brand-name span {
  color: var(--amber);
}

.brand-sub {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--amber);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--amber);
  border-color: var(--amber);
}

.nav-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--green-dark);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--green-dark);
  color: var(--cream);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
}

.hero h1 .amber {
  color: var(--amber-light);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 132, 46, 0.18);
  border: 1px solid rgba(224, 169, 79, 0.5);
  color: var(--amber-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-light);
}

/* ---------- Feature / info cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.card--flat {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-darker);
  color: var(--cream-soft);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 234, 217, 0.15);
}

.footer-grid h4 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.6em;
}

.footer-grid a {
  text-decoration: none;
  color: var(--cream-soft);
  opacity: 0.85;
}

.footer-grid a:hover {
  opacity: 1;
  color: var(--amber-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ---------- Forms ---------- */

.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 460px;
  margin-top: 1.5em;
}

.signup-form input[type="email"] {
  flex: 1 1 220px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 234, 217, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.signup-form input[type="email"]::placeholder {
  color: rgba(244, 234, 217, 0.6);
}

.form-note {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 0.75em;
}

.form-status {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.75em 0 0;
  min-height: 1.2em;
}

.form-status--success {
  color: var(--amber-light);
}

.form-status--error {
  color: #e2725b;
}

/* ---------- Misc utilities ---------- */

.text-center { text-align: center; }
.max-w { max-width: 640px; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.section-head { margin-bottom: 48px; }

.divider {
  height: 1px;
  background: rgba(30, 58, 45, 0.12);
  border: none;
  margin: 0;
}

table.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

table.hours-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 58, 45, 0.12);
}

table.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--green-dark);
}

.map-card {
  background: var(--cream-soft);
  border: 1px dashed rgba(30, 58, 45, 0.35);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--green-dark);
}

.tag {
  display: inline-block;
  background: rgba(200, 132, 46, 0.15);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.beer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.beer-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.beer-abv {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--amber);
  white-space: nowrap;
  font-size: 0.9rem;
}

.beer-style {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.event-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}

.event-when {
  flex: 0 0 120px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--amber);
  font-size: 1.05rem;
}

.notice-banner {
  background: var(--amber);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
}

.notice-banner a {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(30, 58, 45, 0.12);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(30, 58, 45, 0.08);
  }

  .nav-cta { display: none; }

  .nav-toggle {
    display: block;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .event-card {
    flex-direction: column;
    gap: 8px;
  }
}
