/* ═══════════════════════════════════════════════════════════
   B&J Beverage Co. — bjbev.com
   Monochrome editorial · Fraunces + Archivo · amber pour accent
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #121110;
  --ink-soft: #2a2826;
  --paper: #f2efe9;
  --paper-dim: #e7e3da;
  --grey: #8d8a83;
  --line: rgba(18, 17, 16, 0.14);
  --line-light: rgba(242, 239, 233, 0.16);
  --amber: #c9903a;
  --amber-deep: #a5732b;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 4.5rem; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: var(--ink); }

/* ── Grain overlay ─────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 3%); }
  50%  { transform: translate(3%, -2%); }
  75%  { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ── Shared type helpers ───────────────────────────────────── */
.ital {
  font-style: italic;
  font-weight: 340;
  color: inherit;
}
.amber { color: var(--amber); font-style: normal; }

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.5rem;
}
.label--light { color: rgba(242, 239, 233, 0.5); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--nav {
  padding: 0.65rem 1.25rem;
  font-size: 0.72rem;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--nav:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.btn--light {
  color: var(--ink);
  border-color: rgba(18, 17, 16, 0.35);
}
.btn--light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out), color 0.4s var(--ease-out);
  color: var(--ink);
}
.nav.is-scrolled {
  color: var(--paper);
  background: rgba(18, 17, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem var(--pad);
  box-shadow: 0 1px 0 var(--line-light);
}
.nav__brand { display: flex; align-items: center; }
.nav__logo {
  display: block;
  width: 4.9rem;
  aspect-ratio: 579.64 / 340.24;
  background: currentColor;
  -webkit-mask: url("images/logo-lockup.svg") no-repeat center / contain;
  mask: url("images/logo-lockup.svg") no-repeat center / contain;
  transition: background 0.4s var(--ease-out);
}
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  position: relative;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(6rem, 12vh, 8rem) clamp(2rem, 6vw, 6rem) clamp(2.5rem, 5.5vh, 4rem) clamp(1.25rem, 5vw, 5rem);
}
.hero__kicker {
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(18, 17, 16, 0.6);
  margin-bottom: 1.5rem;
}
.rule { width: 3.5rem; height: 1px; background: var(--amber); flex: none; }

.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 3.9vw, 3.9rem);
  font-weight: 420;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-align: right;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__word { display: inline-block; }

.hero__foot {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.75rem;
}
.hero__lede {
  display: none;
  max-width: 24rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: right;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero__media img { object-position: center 78%; }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 420;
  letter-spacing: 0.01em;
  padding-right: 0.5rem;
}
.marquee__track i {
  font-style: normal;
  color: var(--amber);
  font-size: 0.85em;
  padding: 0 0.9rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Story / dry hire ──────────────────────────────────────── */
.story { padding: clamp(5rem, 12vh, 9rem) var(--pad); }

.story__head { max-width: 62rem; }
.story__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 420;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.story__lede {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: clamp(3rem, 7vh, 5.5rem);
  border-top: 1px solid var(--line);
}
.step { padding-top: 2rem; position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--amber);
}
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: 1rem;
  color: var(--amber-deep);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 480;
  margin: 0.5rem 0 0.75rem;
}
.step p { font-size: 0.93rem; line-height: 1.7; color: var(--ink-soft); }

.story__strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.25rem;
  margin-top: clamp(3.5rem, 8vh, 6rem);
  align-items: end;
}
.story__img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.story__img--tall { aspect-ratio: 3 / 4; }
.story__img img {
  transition: transform 0.9s var(--ease-out);
}
.story__img:hover img { transform: scale(1.04); }

.included {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3rem;
}
.included li {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s, color 0.3s;
}
.included li:hover { border-color: var(--amber); color: var(--amber-deep); }

/* ── Occasions ─────────────────────────────────────────────── */
.occasions {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
}
.occasions__head { margin-bottom: clamp(3rem, 8vh, 5.5rem); }
.occasions__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 420;
  line-height: 1.1;
  max-width: 22ch;
}

.occasion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-top: 1px solid var(--line-light);
}
.occasion--flip .occasion__img { order: 2; }
.occasion--flip .occasion__body { order: 1; }

.occasion__img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.occasion__img img {
  transform: scale(1.03);
  transition: transform 1s var(--ease-out);
}
.occasion:hover .occasion__img img {
  transform: scale(1.08);
}

.occasion__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  color: var(--amber);
  font-size: 1.1rem;
}
.occasion__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 460;
  margin: 0.5rem 0 1rem;
}
.occasion__body p {
  max-width: 30rem;
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(242, 239, 233, 0.7);
}

/* ── Service area ──────────────────────────────────────────── */
.area { padding: clamp(5rem, 12vh, 9rem) var(--pad); }
.area__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 420;
  line-height: 1.1;
}
.towns {
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
}
.town {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease-out), background 0.45s var(--ease-out);
  cursor: default;
}
.town:hover { padding-left: 1.5rem; background: var(--paper-dim); }
.town__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 420;
  transition: color 0.3s;
}
.town:hover .town__name { color: var(--amber-deep); font-style: italic; font-weight: 360; }
.town__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.area__note {
  margin-top: 2.25rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.area__note a {
  color: var(--amber-deep);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s;
}
.area__note a:hover { opacity: 0.7; }

/* ── Book / contact ────────────────────────────────────────── */
.book {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
}
.book__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  font-weight: 420;
  line-height: 1.1;
}
.book__lede {
  margin-top: 1.5rem;
  max-width: 26rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(242, 239, 233, 0.7);
}
.book__email {
  display: inline-block;
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 360;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: var(--amber);
  border-bottom: 1px solid rgba(201, 144, 58, 0.4);
  padding-bottom: 0.2rem;
  transition: border-color 0.3s;
}
.book__email:hover { border-color: var(--amber); }

.form { display: flex; flex-direction: column; gap: 1.6rem; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.55);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--paper);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-light);
  padding: 0.6rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c9903a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  cursor: pointer;
}
.field select option { background: var(--ink); color: var(--paper); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 239, 233, 0.28); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }
.field input[type="date"] { color-scheme: dark; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.btn--submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.btn--submit:hover { background: var(--paper); border-color: var(--paper); }
.btn--submit:disabled { opacity: 0.55; cursor: wait; }

.form__status {
  min-height: 1.4rem;
  font-size: 0.88rem;
  color: rgba(242, 239, 233, 0.75);
}
.form__status.is-error { color: #d98a7a; }
.form__status.is-success { color: var(--amber); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 0 var(--pad) 2.5rem;
  border-top: 1px solid var(--line-light);
  overflow: hidden;
}
.footer__logo {
  width: clamp(12rem, 20vw, 17rem);
  aspect-ratio: 579.64 / 673.55;
  margin: clamp(3.5rem, 8vh, 5.5rem) auto clamp(2.5rem, 6vh, 4rem);
  background: var(--paper);
  opacity: 0.92;
  -webkit-mask: url("images/logo-mark.svg") no-repeat center / contain;
  mask: url("images/logo-mark.svg") no-repeat center / contain;
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.5);
}
.footer__meta a { transition: color 0.3s; }
.footer__meta a:hover { color: var(--amber); }

/* ── Reveal animations ─────────────────────────────────────── */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in,
.reveal-up.is-in { opacity: 1; transform: translateY(0); }

.hero__word {
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.7s var(--ease-out), transform 1.1s var(--ease-out);
}
.is-loaded .hero__word { opacity: 1; transform: translateY(0); }
.is-loaded .hero__line:nth-child(1) .hero__word { transition-delay: 0.15s; }
.is-loaded .hero__line:nth-child(2) .hero__word { transition-delay: 0.3s; }
.is-loaded .hero__line:nth-child(3) .hero__word { transition-delay: 0.45s; }
.is-loaded .hero__line:nth-child(4) .hero__word { transition-delay: 0.6s; }

.hero .reveal { transition-delay: 0.7s; }
.hero__media.reveal { transform: none; transition: opacity 1.6s var(--ease-out); transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .marquee__track { animation: none; }
  .reveal, .reveal-up, .hero__word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }

  .hero { min-height: auto; }
  .hero__media {
    position: static;
    aspect-ratio: 4 / 3;
  }
  .hero__media img { object-position: center 55%; }
  .hero__inner {
    min-height: auto;
    align-items: flex-start;
    padding-bottom: 3rem;
  }
  .hero__title { text-align: left; }
  .hero__kicker { display: flex; }
  .hero__lede { display: block; text-align: left; }
  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2.75rem;
  }

  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .story__strip { grid-template-columns: 1fr 1fr; }
  .story__strip .story__img:last-child { display: none; }

  .occasion { grid-template-columns: 1fr; gap: 1.5rem; }
  .occasion--flip .occasion__img { order: 0; }
  .occasion--flip .occasion__body { order: 1; }

  .book { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .hero__foot { gap: 1.5rem; }
  .marquee__track span { font-size: 1.05rem; }
  .story__strip { grid-template-columns: 1fr; }
  .story__strip .story__img:last-child { display: block; }
  .town { flex-direction: column; gap: 0.15rem; }
}
