/* Coal Train Coffee Depot — site styles */
:root {
  --ink: #14110f;
  --soot: #1e1a17;
  --rail: #2f2924;
  --steel: #5c534c;
  --fog: #c9c2b8;
  --steam: #efeae3;
  --paper: #f6f1ea;
  --brass: #c49a5a;
  --ember: #a84f2f;
  --ember-deep: #7e351c;
  --track: rgba(196, 154, 90, 0.35);

  --font-display: "Big Shoulders Display", Impact, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --header-h: 4.5rem;
  --widget-h: 0px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ember-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember);
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.1;
  font-weight: 700;
}

h1, .display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* —— Global widget —— */
.site-widget {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, #1a1512 0%, #2a211b 55%, #3a271c 100%);
  color: var(--steam);
  border-bottom: 1px solid rgba(196, 154, 90, 0.35);
}

.site-widget.is-hidden {
  display: none;
}

.site-widget__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-widget__rail {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex: 1;
  min-width: 16rem;
}

.site-widget__badge {
  flex-shrink: 0;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--brass);
  padding: 0.35rem 0.55rem;
}

.site-widget__copy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fog);
}

.site-widget__copy strong {
  color: var(--steam);
  font-weight: 600;
}

.site-widget__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.site-widget__close {
  border: 0;
  background: transparent;
  color: var(--fog);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.site-widget__close:hover {
  color: var(--steam);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 17, 15, 0.08);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 241, 234, 0.98);
  box-shadow: 0 8px 24px rgba(20, 17, 15, 0.06);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, transparent 42%, var(--ink) 43% 48%, transparent 49%),
    linear-gradient(var(--brass), var(--brass));
  background-size: 100% 100%, 70% 2px;
  background-position: center, center;
  background-repeat: no-repeat;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__sub {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.2rem;
}

.site-nav__list {
  display: flex;
  gap: 0.15rem 1.4rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--rail);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 0.35rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(20, 17, 15, 0.15);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle__bar {
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: var(--ember);
  color: #fff;
  border-color: var(--ember);
}

.btn--primary:hover {
  background: var(--ember-deep);
  color: #fff;
  border-color: var(--ember-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 241, 234, 0.55);
}

.btn--ghost:hover {
  background: rgba(246, 241, 234, 0.1);
  color: #fff;
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--dark:hover {
  background: var(--rail);
  color: var(--paper);
}

.btn--light {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn--light:hover {
  background: #d4ad70;
  color: var(--ink);
}

.btn--ghost-light {
  background: transparent;
  color: var(--steam);
  border-color: rgba(239, 234, 227, 0.35);
}

.btn--ghost-light:hover {
  background: rgba(239, 234, 227, 0.08);
  color: #fff;
}

.btn--sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Layout —— */
.section {
  padding: var(--space-5) 1.25rem;
}

.section--tight {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
}

.section__lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--steel);
  max-width: 38rem;
}

.section--dark {
  background: linear-gradient(160deg, #171310 0%, #2a211c 55%, #1c1714 100%);
  color: var(--steam);
}

.section--dark .section__lead,
.section--dark p {
  color: var(--fog);
}

.section--muted {
  background:
    linear-gradient(180deg, rgba(20, 17, 15, 0.03), transparent 40%),
    radial-gradient(ellipse at top right, rgba(168, 79, 47, 0.08), transparent 45%),
    var(--steam);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.split--reverse > :first-child {
  order: 2;
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  background: var(--rail);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.06);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(246, 241, 234, 0.12);
  mix-blend-mode: soft-light;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.35) 0%, rgba(12, 10, 8, 0.2) 35%, rgba(12, 10, 8, 0.78) 100%),
    linear-gradient(90deg, rgba(12, 10, 8, 0.55) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 1.25rem clamp(3rem, 8vh, 5rem);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  animation: rise 0.9s var(--ease) both;
}

.hero__brand span {
  display: block;
  color: var(--brass);
  font-size: 0.42em;
  letter-spacing: 0.18em;
  margin-top: 0.35rem;
}

.hero__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  max-width: 22ch;
  margin: 0 0 0.9rem;
  animation: rise 1s 0.12s var(--ease) both;
}

.hero__text {
  max-width: 34rem;
  color: rgba(246, 241, 234, 0.88);
  margin-bottom: 1.6rem;
  animation: rise 1s 0.22s var(--ease) both;
}

.hero .cta-group {
  animation: rise 1s 0.32s var(--ease) both;
}

.page-hero {
  position: relative;
  min-height: 38vh;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.25), rgba(12, 10, 8, 0.82));
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 5rem 1.25rem 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin: 0;
}

.page-hero p {
  max-width: 36rem;
  color: var(--fog);
  margin: 0.75rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

/* —— Feature strips —— */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(20, 17, 15, 0.12);
}

.pillar__label {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

.pillar p {
  color: var(--steel);
  margin: 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.menu-item {
  border-top: 1px solid rgba(20, 17, 15, 0.12);
  padding: 1.25rem 0 0.5rem;
}

.menu-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.menu-item p {
  color: var(--steel);
  margin: 0;
  font-size: 0.98rem;
}

.menu-board {
  display: grid;
  gap: 2rem;
}

.menu-board__group h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(20, 17, 15, 0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.menu-board__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(20, 17, 15, 0.12);
}

.menu-board__list strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.menu-board__list span {
  color: var(--steel);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.menu-board__list em {
  font-style: normal;
  color: var(--ember-deep);
  font-weight: 600;
  white-space: nowrap;
}

.locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.location {
  background: rgba(246, 241, 234, 0.04);
  border: 1px solid rgba(246, 241, 234, 0.12);
  padding: 1.75rem;
}

.location h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.hours-list li,
.location .hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(20, 17, 15, 0.08);
  font-size: 0.95rem;
}

.section--dark .hours-list li {
  border-bottom-color: rgba(246, 241, 234, 0.1);
}

.hours-list--compact li {
  border: 0;
  padding: 0.2rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.45;
  max-width: 28ch;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: var(--fog);
  padding: var(--space-5) 1.25rem var(--space-3);
}

.site-footer a {
  color: var(--steam);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steam);
  margin: 0 0 0.5rem;
}

.site-footer__tagline {
  font-family: var(--font-serif);
  max-width: 24ch;
}

.site-footer__heading {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--brass);
  margin-bottom: 0.85rem;
}

.site-footer__links {
  display: grid;
  gap: 0.45rem;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 241, 234, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.site-footer__bottom p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .split,
  .split--reverse,
  .pillars,
  .menu-grid,
  .locations,
  .team-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(20, 17, 15, 0.08);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .site-widget__inner {
    align-items: flex-start;
  }

  .hero {
    min-height: 88vh;
  }
}
