/* ============================================================
   BERMONDSEY BEER MILE — Style System
   Brand: illustrated, hand-drawn, warm, community-run zine
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,600&family=Nunito:wght@400;500;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colours */
  --color-bg:         #FDFAF4;
  --color-text:       #2C2416;
  --color-accent:     #D4581A;
  --color-secondary:  #4A7C59;
  --color-sky:        #5B8DB8;
  --color-muted:      #9C8E7A;
  --color-card-bg:    #F5EFE0;

  /* Derived tints */
  --color-accent-light:    #F5DDD0;
  --color-secondary-light: #D6E8DC;
  --color-sky-light:       #D5E5F2;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1.0625rem; /* 17px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.75rem;   /* 44px */
  --text-4xl:  3.5rem;    /* 56px */

  --leading-body:    1.7;
  --leading-heading: 1.15;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Shadows — hand-stamped / sketch quality */
  --shadow-card:   3px 4px 0px rgba(44, 36, 22, 0.12),
                   6px 8px 16px rgba(44, 36, 22, 0.07);
  --shadow-card-hover: 4px 6px 0px rgba(44, 36, 22, 0.18),
                       8px 12px 24px rgba(44, 36, 22, 0.10);
  --shadow-btn:    2px 2px 0px rgba(44, 36, 22, 0.35);
  --shadow-btn-hover: 3px 3px 0px rgba(44, 36, 22, 0.45);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;

  /* Layout */
  --max-width: 1160px;
  --page-gutter: clamp(1rem, 5vw, 3rem);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-text);
}

ul, ol {
  padding-left: var(--space-6);
}

p {
  max-width: 68ch;
}

strong { font-weight: 700; }
em     { font-style: italic; }

/* Heading defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--leading-heading);
}

h1 { font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  padding-block: var(--space-20);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}


/* ============================================================
   NAVIGATION — .nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 2px solid rgba(44, 36, 22, 0.10);
  /* Subtle warm shadow below nav bar */
  box-shadow: 0 2px 12px rgba(44, 36, 22, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: var(--space-4);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-accent);
}


/* ============================================================
   HERO — .hero
   ============================================================ */
.hero {
  padding-block-start: clamp(var(--space-16), 10vw, var(--space-24));
  padding-block-end: clamp(var(--space-8), 5vw, var(--space-12));
  text-align: center;
  /* Faint paper texture feel — very subtle dot pattern */
  background-image: radial-gradient(circle, rgba(44,36,22,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-6);
  max-width: 16ch;
  margin-inline: auto;
}

.hero__title em {
  color: var(--color-accent);
  font-style: italic;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}


/* ============================================================
   SECTION TITLE — .section-title
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.section-title__heading {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.section-title__body {
  color: var(--color-muted);
  font-size: var(--text-lg);
  max-width: 56ch;
  margin-inline: auto;
}


/* ============================================================
   BREWERY CARD — .brewery-card
   ============================================================ */
.brewery-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  /* Hand-stamped shadow — slightly asymmetric */
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border: 1.5px solid rgba(44, 36, 22, 0.08);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  cursor: default;
}

.brewery-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px) rotate(-0.3deg);
}

.brewery-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.brewery-card__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background-color: var(--color-bg);
  border: 1.5px solid rgba(44, 36, 22, 0.10);
  padding: var(--space-2);
  flex-shrink: 0;
}

.brewery-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.brewery-card__address {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.4;
}

.brewery-card__description {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-body);
  flex: 1;
}

.brewery-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.brewery-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1.5px dashed rgba(44, 36, 22, 0.12);
}

.brewery-card__open-status {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brewery-card__open-status--open   { color: var(--color-secondary); }
.brewery-card__open-status--closed { color: var(--color-muted); }


/* ============================================================
   ARCH PILL — .arch-pill
   A pill badge styled like a railway arch marker
   ============================================================ */
.arch-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background-color: var(--color-sky-light);
  color: var(--color-sky);
  border: 1.5px solid var(--color-sky);
  /* slight physicality */
  box-shadow: 1px 1px 0 rgba(91, 141, 184, 0.35);
  white-space: nowrap;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.arch-pill:hover {
  background-color: var(--color-sky);
  color: #fff;
  box-shadow: 2px 2px 0 rgba(44, 36, 22, 0.20);
}

/* Colour variants */
.arch-pill--accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 1px 1px 0 rgba(212, 88, 26, 0.30);
}
.arch-pill--accent:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.arch-pill--green {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 1px 1px 0 rgba(74, 124, 89, 0.30);
}
.arch-pill--green:hover {
  background-color: var(--color-secondary);
  color: #fff;
}


/* ============================================================
   TAG — .tag
   Smaller, quieter label for categories / styles
   ============================================================ */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(44, 36, 22, 0.07);
  color: var(--color-muted);
  border: 1px solid rgba(44, 36, 22, 0.12);
  white-space: nowrap;
}

.tag--accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border-color: rgba(212, 88, 26, 0.25);
}

.tag--green {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  border-color: rgba(74, 124, 89, 0.25);
}


/* ============================================================
   BUTTONS — .btn-primary, .btn-outline
   Physical feel: 2px offset shadow, solid border
   ============================================================ */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 0.65em 1.5em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  /* Slightly raised / physical default */
  box-shadow: var(--shadow-btn);
  position: relative;
  white-space: nowrap;
}

/* Primary — filled terracotta */
.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: #bd4d17;
  border-color: #bd4d17;
  color: #fff;
  box-shadow: var(--shadow-btn-hover);
  transform: translate(-1px, -1px);
}

.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* Outline — warm brown border, transparent fill */
.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(44, 36, 22, 0.40);
}

.btn-outline:hover {
  background-color: var(--color-card-bg);
  border-color: var(--color-text);
  color: var(--color-text);
  box-shadow: var(--shadow-btn-hover);
  transform: translate(-1px, -1px);
}

.btn-outline:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* Sizes */
.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5em 1.1em;
  border-radius: var(--radius-sm);
}

.btn--lg {
  font-size: var(--text-base);
  padding: 0.8em 2em;
  border-radius: var(--radius-lg);
}


/* ============================================================
   WAVY DIVIDER — .wavy-divider
   SVG wave as a section separator
   ============================================================ */
.wavy-divider {
  display: block;
  width: 100%;
  height: 40px;
  margin-block: var(--space-12);
  overflow: visible;
}

/* SVG is inlined via background-image so it scales with width */
.wavy-divider--light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C100 5, 200 35, 300 20 C400 5, 500 35, 600 20 C700 5, 800 35, 900 20 C1000 5, 1100 35, 1200 20' stroke='%239C8E7A' stroke-width='2' stroke-opacity='0.35' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.wavy-divider--accent {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C100 5, 200 35, 300 20 C400 5, 500 35, 600 20 C700 5, 800 35, 900 20 C1000 5, 1100 35, 1200 20' stroke='%23D4581A' stroke-width='2.5' stroke-opacity='0.40' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Fallback HR-style (no SVG background support) */
hr {
  border: none;
  border-top: 2px dashed rgba(44, 36, 22, 0.12);
  margin-block: var(--space-12);
}


/* ============================================================
   MAP PAGE HELPERS
   ============================================================ */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(44, 36, 22, 0.08);
  overflow: hidden;
}

.map-embed iframe,
.map-embed #map {
  width: 100%;
  height: 100%;
  border: none;
}

.map-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .map-sidebar {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

.stop-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stop-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 0 rgba(44, 36, 22, 0.08);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.stop-list__item:hover {
  box-shadow: 3px 3px 0 rgba(44, 36, 22, 0.14);
  transform: translateX(2px);
}

.stop-list__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ============================================================
   ABOUT PAGE HELPERS
   ============================================================ */
.about-intro {
  max-width: 72ch;
  margin-inline: auto;
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.8;
}

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose p + p {
  margin-top: var(--space-4);
}

.prose ul {
  color: var(--color-text);
  margin-top: var(--space-4);
}

.prose li {
  margin-bottom: var(--space-2);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-card-bg);
  border-top: 2px solid rgba(44, 36, 22, 0.10);
  padding-block: var(--space-12) var(--space-8);
  margin-top: var(--space-24);
}

.footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-8);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
}

.footer__brand span {
  color: var(--color-accent);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2);
  max-width: 32ch;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  align-items: center;
}

.footer__nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1.5px dashed rgba(44, 36, 22, 0.12);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-muted);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .nav__links {
    display: none; /* swap for hamburger in JS */
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .brewery-card {
    padding: var(--space-4);
  }

  .footer__top {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================================
   HERO LAYOUT (two-column with illustration)
   ============================================================ */
.hero__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  text-align: center;
}

@media (min-width: 768px) {
  .hero__layout {
    flex-direction: row;
    text-align: left;
    gap: var(--space-16);
    justify-content: center;
  }

  .hero__text {
    flex: 1;
    max-width: 560px;
  }

  .hero__text .hero__actions {
    justify-content: flex-start;
  }

  .hero__subtitle {
    margin-inline: 0;
  }
}

.hero__illustration {
  flex-shrink: 0;
  width: 220px;
}

.arch-svg {
  width: 100%;
  height: auto;
  /* Slight wobble feel */
  filter: drop-shadow(3px 4px 0px rgba(44,36,22,0.10));
}


/* ============================================================
   HOW IT WORKS — steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
}

.step {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(44, 36, 22, 0.08);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
  align-items: center;
}

.step__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  font-style: italic;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.85;
}

.step__icon {
  /* circle surround */
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px dashed rgba(44, 36, 22, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 700;
}

.step__body {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: var(--leading-body);
  max-width: 28ch;
  margin-inline: auto;
}


/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background-color: var(--color-accent);
  padding-block: var(--space-16);
  text-align: center;
  /* Slightly uneven top/bottom borders for hand-printed feel */
  border-top: 3px solid rgba(44, 36, 22, 0.15);
  border-bottom: 3px solid rgba(44, 36, 22, 0.15);
}

.cta-band__link {
  display: inline-block;
  text-decoration: none;
}

.cta-band__text {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  font-weight: 800;
  font-style: italic;
  color: #fff;
  transition: opacity var(--transition-fast);
}

.cta-band__link:hover .cta-band__text {
  opacity: 0.85;
}


/* ============================================================
   FOOTER — centred variant
   ============================================================ */
.footer--centred {
  margin-top: 0;
}

.footer__icons {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  opacity: 0.6;
}

.footer__made-with {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  max-width: 100%;
}

.footer__small {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 52ch;
  margin-inline: auto;
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-accent    { color: var(--color-accent); }
.text-green     { color: var(--color-secondary); }
.text-sky       { color: var(--color-sky); }
.text-muted     { color: var(--color-muted); }
.text-center    { text-align: center; }
.text-italic    { font-style: italic; }
.text-display   { font-family: var(--font-display); }

.bg-card        { background-color: var(--color-card-bg); }

.mt-auto        { margin-top: 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;
}

/* ============================================================
   NEWS & BREWS — NEWSLETTER SECTION
   ============================================================ */

.news-brews {
  background-color: var(--color-text);   /* #2C2416 dark chocolate */
  color: #FDFAF4;
  padding-block: var(--space-20);
  overflow: hidden;
  position: relative;
}

/* subtle hop-leaf watermark */
.news-brews::before {
  content: "🍃";
  position: absolute;
  font-size: 14rem;
  opacity: 0.04;
  top: -2rem;
  right: -2rem;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.news-brews__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 700px) {
  .news-brews__inner {
    grid-template-columns: 1fr;
  }
}

/* ---- editorial copy (left column) ---- */
.news-brews__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.news-brews__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.news-brews__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: #FDFAF4;
  margin: 0;
}

.news-brews__intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #C8BFB0;
  margin: 0;
}

.news-brews__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.news-brews__perks li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #C8BFB0;
}

.news-brews__perks li::before {
  content: "✦";
  color: var(--color-accent);
  font-size: 0.6rem;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

/* ---- signup card (right column) ---- */
.newsletter-card {
  background: rgba(253, 250, 244, 0.06);
  border: 1px solid rgba(253, 250, 244, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  position: relative;
}

.newsletter-card__badge {
  position: absolute;
  top: -1.1rem;
  right: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.35);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.newsletter-form__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9C8E7A;
  display: block;
  margin-bottom: 0.25rem;
}

.newsletter-form__input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(253, 250, 244, 0.08);
  border: 1px solid rgba(253, 250, 244, 0.18);
  border-radius: 8px;
  color: #FDFAF4;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.newsletter-form__input::placeholder {
  color: rgba(253, 250, 244, 0.3);
}

.newsletter-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(253, 250, 244, 0.12);
}

.newsletter-form__input.is-error {
  border-color: #E05050;
}

.newsletter-form__error {
  font-size: 0.78rem;
  color: #E08080;
  margin-top: 0.15rem;
  display: none;
}

.newsletter-form__error.visible {
  display: block;
}

.newsletter-form__submit {
  margin-top: 0.25rem;
  width: 100%;
  justify-content: center;
}

.newsletter-form__privacy {
  font-size: 0.72rem;
  color: rgba(156, 142, 122, 0.8);
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* ---- success state ---- */
.newsletter-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}

.newsletter-success.visible {
  display: flex;
}

.newsletter-success__icon {
  font-size: 2.5rem;
  line-height: 1;
}

.newsletter-success__heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0;
}

.newsletter-success__body {
  font-size: 0.9rem;
  color: #C8BFB0;
  margin: 0;
}

/* ---- footer mini widget ---- */
.footer-newsletter {
  border-top: 1px solid rgba(253, 250, 244, 0.1);
  padding-top: var(--space-6);
  margin-top: var(--space-6);
}

.footer-newsletter__label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #FDFAF4;
  margin: 0 0 0.5rem;
}

.footer-newsletter__sub {
  font-size: 0.8rem;
  color: #9C8E7A;
  margin: 0 0 0.8rem;
}

.footer-newsletter__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-newsletter__input {
  flex: 1 1 180px;
  padding: 0.5rem 0.75rem;
  background: rgba(253, 250, 244, 0.08);
  border: 1px solid rgba(253, 250, 244, 0.15);
  border-radius: 8px;
  color: #FDFAF4;
  font-family: var(--font-body);
  font-size: 0.85rem;
  box-sizing: border-box;
}

.footer-newsletter__input::placeholder {
  color: rgba(253, 250, 244, 0.3);
}

.footer-newsletter__input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.footer-newsletter__btn {
  flex-shrink: 0;
}

.footer-newsletter__done {
  font-size: 0.82rem;
  color: var(--color-accent);
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.footer-newsletter__done.visible {
  display: flex;
}
