/* ============================================================
   The Local Latte — styles.css
   Mobile-first, responsive, accessible.
   Palette echoes the printed menu: charcoal bg + warm cream text.
============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --charcoal:   #1a1a1a;   /* near-black background */
  --charcoal-2: #232322;   /* raised surfaces / cards */
  --cream:      #f5f0e6;   /* primary text */
  --cream-dim:  #cfc8ba;   /* secondary text */
  --line:       #3a3a37;   /* thin dividers / borders */
  --accent:     #b7c4a6;   /* muted matcha green for small accents */
  --gold:       #c9a86a;   /* warm coffee-gold accent */

  --font-serif:  "Marcellus", Georgia, serif;
  --font-script: "Cormorant Garamond", Georgia, serif;
  --font-body:   "Poppins", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* keep anchors clear of sticky nav */
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: .02em; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Skip link becomes visible on focus */
.skip-link:focus {
  position: fixed;
  top: .75rem; left: .75rem;
  width: auto; height: auto;
  clip: auto; margin: 0;
  padding: .6rem 1rem;
  background: var(--cream);
  color: var(--charcoal);
  z-index: 1000;
  border-radius: 4px;
}

/* Visible, consistent focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Thin divider line accent (matches menu) */
.divider {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 1.25rem auto 0;
  opacity: .8;
}
.divider--left { margin-inline: 0; }

/* ---------- Section headers ---------- */
.section__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.25rem); }

.section__eyebrow {
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .5rem;
}

.section__title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0;
  line-height: 1.1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .85rem 1.75rem;
  border: 1px solid var(--cream);
  border-radius: 2px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
}
.btn--solid { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }
.btn--solid:hover,
.btn--solid:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

.btn--ghost { background: transparent; color: var(--cream); }
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--cream); color: var(--charcoal); }

.btn--lg { padding: 1rem 2.5rem; font-size: .85rem; }

/* ---------- Brand logo (nav + footer) ---------- */
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__script {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: -.1rem;
  margin-left: .1rem;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ============================================================
   STICKY NAV
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, .9);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0; padding: 0;
}
.nav__menu a {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color .2s ease;
}
.nav__menu a:hover,
.nav__menu a:focus-visible { color: var(--cream); }

.nav__cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: .55rem 1.1rem;
  border-radius: 2px;
}
.nav__cta:hover,
.nav__cta:focus-visible { background: var(--gold); color: var(--charcoal) !important; }

/* Hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px;
  cursor: pointer;
}
.nav__toggle-bar {
  display: block;
  height: 1.5px;
  background: var(--cream);
  transition: transform .25s ease, opacity .2s ease;
}

/* Mobile nav */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0 1rem;
    /* Collapsed by default */
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav__menu.is-open { transform: translateY(0); }

  .nav__menu li { width: 100%; text-align: center; }
  .nav__menu a { display: block; padding: 1rem; font-size: .85rem; }
  .nav__cta { display: inline-block; margin: .5rem auto 0; }

  /* Hamburger → X when open */
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Background photo — replace /images/hero.jpg */
  background: #000 url("images/hero.jpg") center / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  /* Heavier shade so the cream text stays legible over any photo.
     Tweak these alpha values (0 = clear, 1 = solid black) to taste. */
  background:
    radial-gradient(ellipse at center, rgba(26,26,26,.45), rgba(26,26,26,.72) 90%),
    linear-gradient(180deg, rgba(26,26,26,.72), rgba(26,26,26,.85));
}
.hero__content {
  position: relative;
  padding: var(--gutter);
  max-width: 720px;
}
.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.hero__title { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.hero__script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  color: var(--gold);
}
.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 12vw, 6rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero__tagline {
  margin: 1.25rem auto 2rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--cream-dim);
  font-weight: 300;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   MENU
============================================================ */
.menu__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .menu__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
}

.menu__cat-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.5rem;
  letter-spacing: .06em;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.menu__cat-sub {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: auto;
  align-self: flex-end;
  padding-bottom: .28rem;
}

/* Small line-art drink icon */
.icon {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__item + .menu__item { margin-top: 1.35rem; }

/* Name / dotted leader / price row */
.menu__row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.menu__name { font-size: 1.02rem; color: var(--cream); }
.menu__price { font-size: 1.02rem; color: var(--gold); white-space: nowrap; }
.menu__dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-.2rem);
}
.menu__desc {
  margin: .2rem 0 0;
  font-size: .85rem;
  color: var(--cream-dim);
  max-width: 34ch;
}
.menu__desc em { font-style: italic; color: var(--accent); }

/* Customizations */
.menu__custom {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.menu__custom-title {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: .06em;
  margin: 0 0 1.75rem;
}
.menu__custom-grid {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 720px) {
  .menu__custom-grid { grid-template-columns: repeat(3, 1fr); }
}
.menu__custom-label {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .4rem;
}
.menu__custom-value { margin: 0; color: var(--cream-dim); font-size: .95rem; }

.menu__order { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ============================================================
   FULL-WIDTH IMAGE BANDS
============================================================ */
.band {
  height: clamp(240px, 45vw, 460px);
  background-size: cover;
  background-position: center;
  background-color: var(--charcoal-2);
}

/* ============================================================
   FULL-WIDTH IMAGE CAROUSEL
   Crossfade between slides. No dependencies.
============================================================ */
.carousel {
  position: relative;
  height: clamp(240px, 45vw, 460px);
  overflow: hidden;
  background-color: var(--charcoal-2);
  isolation: isolate;
}
.carousel__viewport { position: absolute; inset: 0; }

.carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.carousel__slide.is-active { opacity: 1; pointer-events: auto; }

/* Prev / next arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 240, 230, .5);
  border-radius: 50%;
  background: rgba(26, 26, 26, .4);
  color: var(--cream);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.carousel__arrow:hover,
.carousel__arrow:focus-visible { background: rgba(26, 26, 26, .75); border-color: var(--gold); }
.carousel__arrow--prev { left: clamp(.75rem, 2vw, 1.5rem); }
.carousel__arrow--next { right: clamp(.75rem, 2vw, 1.5rem); }
.carousel__arrow svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Dot indicators */
.carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: clamp(.75rem, 2vw, 1.25rem);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: .6rem;
}
.carousel__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 1px solid var(--cream);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.carousel__dot.is-active { background: var(--cream); transform: scale(1.15); }
.carousel__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   ABOUT
============================================================ */
.about__grid,
.visit__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .about__grid { grid-template-columns: 1.1fr 1fr; }
}
.about__text p { color: var(--cream-dim); margin: 0 0 1.1rem; max-width: 56ch; }
.about__media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 3px;
}

/* ============================================================
   VISIT / HOURS
============================================================ */
@media (min-width: 880px) {
  .visit__grid { grid-template-columns: 1fr 1.1fr; }
}
.visit__address {
  font-style: normal;
  color: var(--cream-dim);
  margin: 0 0 1.75rem;
  line-height: 1.8;
}
.visit__address a:hover { color: var(--gold); }

.hours { width: 100%; border-collapse: collapse; max-width: 360px; }
.hours th,
.hours td {
  text-align: left;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
}
.hours th { color: var(--cream); }
.hours td { color: var(--cream-dim); text-align: right; }

.visit__map {
  min-height: 320px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; }
.visit__map-placeholder {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  color: var(--cream-dim);
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,.02) 12px 24px),
    var(--charcoal-2);
  padding: 1.5rem;
}
.visit__map-placeholder span { font-family: var(--font-serif); font-size: 1.15rem; color: var(--cream); }
.visit__map-placeholder small { font-size: .78rem; }

/* ============================================================
   SHOP / MERCH
============================================================ */
.shop { background: var(--charcoal-2); border-block: 1px solid var(--line); text-align: center; }
.shop__inner { max-width: 640px; margin-inline: auto; }
.shop__inner .divider { margin-inline: auto; }
.shop__lead { color: var(--cream-dim); margin: 1.25rem 0 2rem; }
.shop__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   CAREERS
============================================================ */
.careers { text-align: center; }
.careers__inner { max-width: 640px; margin-inline: auto; }
.careers__inner .divider { margin-inline: auto; }
.careers__lead { color: var(--cream-dim); margin: 1.25rem 0 2rem; }
.careers__actions { display: flex; justify-content: center; }
.careers__note { color: var(--cream-dim); font-size: .82rem; margin: 1.5rem 0 0; }

/* ============================================================
   ORDER ONLINE
============================================================ */
.order { background: var(--charcoal-2); border-block: 1px solid var(--line); text-align: center; }
.order__inner { max-width: 640px; margin-inline: auto; }
.order__inner .divider { margin-inline: auto; }
.order__lead { color: var(--cream-dim); margin: 1.25rem 0 2rem; }
.order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   FOOTER
============================================================ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); }
.footer__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.2fr 1.4fr auto; align-items: start; }
}
.footer__brand .brand__script { font-size: 1.25rem; }
.footer__brand .brand__name { font-size: 1.3rem; }
.footer__tag { color: var(--cream-dim); margin: .75rem 0 0; max-width: 30ch; font-size: .9rem; }

/* Newsletter */
.newsletter__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.newsletter__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter__input {
  flex: 1;
  min-width: 200px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: .8rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  border-radius: 2px;
}
.newsletter__input::placeholder { color: #8f887b; }
.newsletter__input:focus-visible { border-color: var(--gold); outline: none; }
.newsletter__note { color: var(--cream-dim); font-size: .78rem; margin: .75rem 0 0; }

/* Social */
.social { display: flex; gap: 1rem; }
.social__link {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .2s ease, color .2s ease;
  color: var(--cream-dim);
}
.social__link:hover,
.social__link:focus-visible { border-color: var(--gold); color: var(--gold); }
.social__link svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--gutter);
  text-align: center;
}
.footer__bottom p { margin: 0; color: var(--cream-dim); font-size: .8rem; letter-spacing: .04em; }
