/* Small Cider — site styles. Brand hexes from the SmallCider_Logotypes files. */

:root {
  --cream: #fff7ee;
  --black: #2c2b2f;
  --green: #316d1a;
  --yellow: #efe857;
  --pink: #ffb6db;
  --red: #b53c21;
  --lightblue: #c7e6ff;
  --blue: #5da8f4;
  --brown: #422f2e;
  --khaki: #686800;
  --muted: var(--cream);

  /* Hero colour pair. Every value on this site is one of the brand hexes above. Other brand pairings: yellow/red, blue/yellow, pink/green. */
  --hero-bg: var(--lightblue);
  --hero-fg: var(--green);

  --mono: "Inconsolata", "Courier New", monospace;
  --pad: 20px;
  --header-h: 64px;
  --section-pad: 56px;
}

@media (min-width: 900px) {
  :root { --pad: 64px; --header-h: 84px; --section-pad: 104px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Anchored sections land with their heading just under the sticky header, not their top padding. */
main > section[id] { scroll-margin-top: calc(var(--header-h) + 24px - var(--section-pad)); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) { body { font-size: 17px; } }

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
p { margin: 0; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }

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

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.menu :focus-visible, .fact :focus-visible { outline-color: var(--yellow); }
.hero :focus-visible { outline-color: var(--hero-fg); }

.skip-link { position: absolute; left: var(--pad); top: -60px; background: var(--black); color: var(--cream); padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* Type helpers */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 900px) { .eyebrow { font-size: 13px; } }

.lead { font-size: 18px; line-height: 1.45; font-weight: 600; }
@media (min-width: 900px) { .lead { font-size: 20px; } }

/* Planta headlines: outlined SVG lines from tools/build.py. Font-size scales the em-sized SVGs. */
/* --fs-d / --fs-m are unitless px values designed at 1440 and 390 wide; scale with the viewport below those. */
.planta { margin: 0; font-size: calc(var(--fs-m) * min(100vw, 390px) / 390); line-height: 1; }
.hl { display: flex; flex-direction: column; align-items: flex-start; }
.hl svg { display: block; height: auto; max-width: 100%; fill: currentColor; }
.hl-d { display: none; }
@media (min-width: 900px) {
  .planta { font-size: calc(var(--fs-d) * min(100vw, 1440px) / 1440); }
  .hl-d { display: flex; }
  .hl-m { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 22px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--green); background: var(--green); color: var(--cream);
  cursor: pointer;
}
.btn:hover { opacity: 0.88; color: var(--cream); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { color: var(--green); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-hero { background: var(--hero-fg); border-color: var(--hero-fg); color: var(--hero-bg); }
.btn-hero:hover { color: var(--hero-bg); }
.btn-hero-outline { background: transparent; border-color: var(--hero-fg); color: var(--hero-fg); }
.btn-hero-outline:hover { color: var(--hero-fg); }
@media (min-width: 900px) { .btn { font-size: 14px; padding: 0 26px; } }

/* Age gate: shown by an inline head script until the visitor confirms (localStorage "ageVerified"). */
.age-gate { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; padding: var(--pad); background: var(--green); color: var(--yellow); }
html.needs-age .age-gate { display: flex; }
html.needs-age body { overflow: hidden; }
.age-card { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 720px; }
.age-logo { display: block; width: 172px; height: 27px; fill: currentColor; }
.age-gate .planta { color: var(--yellow); }
.age-actions { display: flex; flex-direction: column; gap: 12px; }
.age-gate .btn { background: var(--yellow); border-color: var(--yellow); color: var(--green); }
.age-gate .btn:hover { color: var(--green); }
.age-gate .btn-outline { background: transparent; color: var(--yellow); }
.age-gate .btn-outline:hover { color: var(--yellow); }
.age-gate :focus-visible { outline-color: var(--yellow); }
@media (min-width: 900px) {
  .age-card { gap: 32px; }
  .age-actions { flex-direction: row; gap: 14px; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
  background: var(--cream); border-bottom: 2px solid var(--green);
}
.logo { display: block; color: var(--green); text-decoration: none; }
.logo svg { display: block; width: 134px; height: 21px; fill: currentColor; }
.site-nav { display: none; gap: 36px; }
.site-nav a { color: var(--black); text-decoration: none; }
.site-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-link { display: inline-flex; color: var(--black); }
.icon-link svg { width: 22px; height: 22px; }
.btn-trade { display: none; height: 44px; padding: 0 20px; }
.menu-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; color: var(--black); font-family: var(--mono); cursor: pointer;
}
.menu-button svg { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .logo svg { width: 172px; height: 27px; }
  .site-nav { display: flex; }
  .btn-trade { display: inline-flex; }
  .menu-button { display: none; }
}

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  background: var(--green); color: var(--yellow);
}
.menu[hidden] { display: none; }
.menu-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--pad);
  border-bottom: 2px solid var(--yellow);
}
.menu-bar .logo { color: var(--yellow); }
.menu-close { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: var(--yellow); font-family: var(--mono); cursor: pointer; }
.menu-close svg { width: 24px; height: 24px; }
.menu-list { list-style: none; margin: 0; padding: 8px var(--pad) 0; }
.menu-list li { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--yellow); }
.menu-list li:first-child { border-top: 0; }
.menu-list li:last-child { border-bottom: 1px solid var(--yellow); }
.menu-list a { color: var(--yellow); text-decoration: none; }
.menu-list .eyebrow { padding-bottom: 10px; }
.menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 18px; padding: 24px var(--pad) 32px; }
.menu-foot .btn { background: var(--yellow); border-color: var(--yellow); color: var(--green); }
.menu-foot .btn:hover { color: var(--green); }
.menu-meta { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.menu-meta a { color: var(--yellow); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.menu-meta svg { width: 20px; height: 20px; }
.menu-meta .eyebrow { color: var(--lightblue); }
body.menu-open { overflow: hidden; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding-top: 40px; }
.hero-grid { display: grid; gap: 36px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-copy p { font-size: 16px; line-height: 1.5; max-width: 560px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
.hero-cans { display: flex; align-items: flex-end; justify-content: center; gap: 20px; }
.hero-cans img { height: 320px; width: auto; filter: drop-shadow(0 16px 16px rgba(44, 43, 47, 0.18)); }
.hero-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding: 14px 0 16px; border-top: 2px solid var(--hero-fg);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
  .hero-copy { gap: 32px; padding-bottom: 72px; }
  .hero-copy p { font-size: 20px; }
  .hero-actions { flex-direction: row; gap: 14px; flex-wrap: wrap; }
  .hero-cans { gap: 28px; }
  .hero-cans img { height: 540px; filter: drop-shadow(0 24px 24px rgba(44, 43, 47, 0.18)); }
  .hero-strip { flex-wrap: nowrap; gap: 24px; padding: 18px 0 20px; font-size: 14px; }
}

.pattern-strip {
  height: 40px; background-color: var(--green);
  background-image: url("img/pattern.webp"); background-size: auto 100%; background-repeat: repeat-x;
}
.pattern-strip.dark { background-color: var(--black); }
@media (min-width: 900px) { .pattern-strip { height: 64px; } }

/* Ciders */
.ciders { padding-block: 56px 48px; }
.ciders-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ciders-head p { font-size: 14px; max-width: 360px; }
.product { display: flex; flex-direction: column; gap: 22px; }
.product + .product { margin-top: 56px; }
.product-panel {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 440px; color: var(--cream);
}
.product-panel .eyebrow { position: absolute; top: 16px; }
.product-panel .eyebrow:first-child { left: 16px; }
.product-panel .eyebrow:nth-child(2) { right: 16px; }
.product-panel img { height: 360px; width: auto; }
.panel-pink { background: var(--pink); color: var(--brown); }
.panel-pink img { filter: drop-shadow(0 16px 16px rgba(181, 60, 33, 0.25)); }
.panel-green { background: var(--green); color: var(--lightblue); }
.panel-green img { filter: drop-shadow(0 16px 16px rgba(44, 43, 47, 0.3)); }
.product-body { display: flex; flex-direction: column; gap: 22px; }
.product-red { color: var(--red); }
.product-green { color: var(--green); }
.product-body .eyebrow, .product-body .planta, .product-body .tag { color: inherit; }
.product-body p { color: var(--black); }
.awards { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--black); }
.awards div { display: flex; align-items: flex-start; gap: 10px; }
.awards svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.specs { display: flex; flex-direction: column; color: var(--black); }
.spec { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; padding: 10px 0; border-top: 1px solid var(--black); font-size: 14px; line-height: 1.4; }
.spec:last-child { border-bottom: 1px solid var(--black); }
.spec dt { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; padding-top: 3px; margin: 0; }
.spec dd { margin: 0; }
.product-cta { display: flex; flex-direction: column; gap: 12px; }
.tag { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; text-decoration: none; }
.tag:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .ciders { padding-block: 104px 96px; }
  .ciders-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
  .ciders-head p { font-size: 15px; text-align: right; margin-bottom: 10px; }
  .product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: stretch; }
  .product + .product { margin-top: 40px; }
  .product-panel { min-height: 680px; height: auto; }
  .product-panel .eyebrow { top: 24px; }
  .product-panel .eyebrow:first-child { left: 24px; }
  .product-panel .eyebrow:nth-child(2) { right: 24px; }
  .product-panel img { height: 560px; filter: drop-shadow(0 20px 20px rgba(44, 43, 47, 0.25)); }
  .product-body { justify-content: center; gap: 24px; padding: 24px 0; }
  .product-reverse .product-panel { order: 2; }
  .awards { gap: 10px; font-size: 15px; }
  .awards svg { width: 22px; height: 22px; }
  .spec { grid-template-columns: 140px minmax(0, 1fr); gap: 0 24px; padding: 12px 0; font-size: 15px; }
  .spec dt { font-size: 12px; }
  .product-cta { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
  .tag { font-size: 14px; text-align: left; }
}

/* Where to find us */
.find { background: var(--lightblue); color: var(--green); padding-block: 56px; }
.find-grid { display: flex; flex-direction: column; gap: 20px; }
.find-intro { display: flex; flex-direction: column; gap: 20px; }
.find-intro p { color: var(--black); }
.find-actions { display: flex; flex-direction: column; gap: 10px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--black); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--black); display: inline-block; }
.dot-pink { background: var(--pink); }
.dot-green { background: var(--green); }
.venues { display: flex; flex-direction: column; gap: 8px; }
.venue-group { display: flex; flex-direction: column; margin-top: 8px; }
.venue-group .planta { margin-bottom: 8px; }
.venue { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--green); font-size: 15px; }
.venue:last-child { border-bottom: 1px solid var(--green); }
.venue a { color: inherit; }
.venue .dots { display: flex; gap: 6px; }
.venue.small { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
@media (min-width: 900px) {
  .find { padding-block: 104px; }
  .find-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .find-intro { gap: 24px; }
  .find-actions { flex-direction: row; gap: 14px; flex-wrap: wrap; }
  .legend { gap: 20px; font-size: 14px; padding-top: 8px; }
  .venues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .venue-group { margin-top: 0; }
  .venue-group .planta { margin-bottom: 12px; }
  .venue { font-size: 16px; }
  .venue.small { font-size: 14px; }
}

/* Story */
.story { padding-block: 56px; display: flex; flex-direction: column; gap: 22px; }
.story-photo { position: relative; padding: 0 14px 14px 0; }
.story-photo::before { content: ""; position: absolute; top: 14px; left: 14px; right: 0; bottom: 0; background: var(--green); }
.story-photo img { position: relative; width: 100%; height: auto; }
.story-copy { display: flex; flex-direction: column; gap: 22px; }
.story-copy p { line-height: 1.6; }
.story-copy .eyebrow { color: var(--green); }
@media (min-width: 900px) {
  .story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; padding-block: 104px; }
  .story-photo { padding: 0 20px 20px 0; }
  .story-photo::before { top: 20px; left: 20px; }
  .story-copy { gap: 28px; }
  .story-copy p { font-size: 18px; }
}

/* Did you know */
.fact { position: relative; overflow: hidden; background: var(--green); color: var(--pink); padding-block: 56px 200px; }
.fact-inner { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.fact p { color: var(--cream); font-size: 20px; font-weight: 600; line-height: 1.4; }
.fact a { color: var(--cream); font-size: 13px; }
.fact-horn { position: absolute; right: -30px; bottom: -40px; width: 240px; height: auto; color: var(--pink); fill: currentColor; }
@media (min-width: 900px) {
  .fact { padding-block: 104px; }
  .fact-inner { gap: 28px; }
  .fact p { font-size: 24px; }
  .fact a { font-size: 14px; }
  .fact-horn { right: 56px; bottom: -48px; width: 440px; }
}

/* Merch */
.merch { padding-block: 56px; display: flex; flex-direction: column; gap: 20px; }
.merch-photo { display: flex; align-items: flex-end; justify-content: center; background: var(--yellow); padding: 32px 32px 0; }
.merch-photo img { width: 260px; height: auto; }
.merch-copy { display: flex; flex-direction: column; gap: 20px; }
.merch-copy .eyebrow { color: var(--green); }
.price small { font-weight: 400; font-size: 14px; }
@media (min-width: 900px) {
  .merch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding-block: 104px; }
  .merch-photo { order: 2; padding: 56px 56px 0; }
  .merch-photo img { width: 440px; }
  .merch-copy { gap: 24px; }
  .price small { font-size: 15px; }
}

/* Contact */
.contact { background: var(--pink); color: var(--black); padding-block: 56px; }
.contact-grid { display: flex; flex-direction: column; gap: 22px; }
.contact-copy { display: flex; flex-direction: column; gap: 22px; }
.contact-copy .eyebrow, .contact-copy .planta { color: var(--red); }
.asks { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.asks li { padding: 12px 0; border-top: 1px solid var(--red); }
.asks li:last-child { border-bottom: 1px solid var(--red); }
.contact-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--cream); border: 2px solid var(--red); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: var(--red); }
.field input, .field textarea {
  width: 100%; height: 50px; border: 2px solid var(--red); background: var(--cream); padding: 0 14px;
  font-family: var(--mono); font-size: 15px; color: var(--black);
}
.field textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 2px; }
.field ::placeholder { color: var(--khaki); opacity: 1; }
.form-row { display: grid; gap: 16px; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--green); font-weight: 700; }
.form-status.error { color: var(--red); font-weight: 700; }
@media (min-width: 900px) {
  .contact { padding-block: 104px; }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
  .contact-copy { gap: 28px; }
  .asks { font-size: 17px; }
  .asks li { padding: 14px 0; }
  .contact-form { gap: 20px; padding: 40px; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .field input { height: 52px; padding: 0 16px; }
  .field textarea { height: 160px; }
}

/* Footer */
.site-footer { background: var(--black); color: var(--cream); padding-block: 40px 32px; }
.footer-grid { display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand svg { display: block; width: 200px; height: 31px; color: var(--yellow); fill: currentColor; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 420px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .eyebrow { color: var(--yellow); }
.footer-col address { font-style: normal; margin: 0; line-height: 1.5; }
.footer-col a { color: var(--cream); text-decoration: none; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--brown); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .site-footer { padding-block: 64px 48px; }
  .footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: start; }
  .footer-brand svg { width: 260px; height: 41px; }
  .footer-brand p { font-size: 15px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; font-size: 15px; }
  .footer-col { gap: 12px; }
  .footer-bottom { margin-top: 56px; padding-top: 20px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
