@import url("fonts/fonts.css");

/* ------------------------------------------------------------------
   Bean & Brew — mobile-first
   ------------------------------------------------------------------ */

:root {
  --espresso: #1c120c;
  --coffee: #2f1c12;
  --mocha: #6b4226;
  --caramel: #c4a35a;
  --gold: #d4b06a;
  --gold-deep: #b48b3c;
  --cream: #f6efe4;
  --ivory: #fbf7f1;
  --latte: #e8d9c4;
  --foam: #fffdf9;
  --ink: #2a1d14;
  --muted: #6e5a4a;
  --line: rgba(42, 29, 20, 0.12);
  --error: #9c2f22;
  --success: #2f5d38;
  --overlay: linear-gradient(180deg, rgba(28, 18, 12, 0.28) 0%, rgba(28, 18, 12, 0.55) 55%, rgba(28, 18, 12, 0.78) 100%);

  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px rgba(28, 18, 12, 0.12);
  --header-h: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mocha);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--espresso);
}

h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

address { font-style: normal; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--foam);
  color: var(--espresso);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
}

.section-head {
  max-width: 36rem;
  margin-bottom: var(--space-6);
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  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 { color: inherit; }

.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--caramel);
  color: var(--espresso);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--espresso);
}

.btn-ghost {
  background: transparent;
  color: var(--foam);
  border-color: rgba(255, 253, 249, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 253, 249, 0.1);
  color: var(--foam);
}

.btn-block { width: 100%; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--foam);
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(28, 18, 12, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(28, 18, 12, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.logo:hover { color: inherit; }

.logo-mark {
  display: grid;
  place-items: center;
  color: var(--caramel);
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo-word em {
  font-style: italic;
  font-weight: 400;
  color: var(--caramel);
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  background: var(--espresso);
  padding: 1.25rem 1rem 1.75rem;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid rgba(246, 239, 228, 0.08);
}

.site-nav.is-open { display: flex; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.nav-list a {
  display: block;
  padding: 0.7rem 0.4rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--foam);
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--gold);
}

.nav-cta { align-self: flex-start; }

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--foam);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero-overlay { background: var(--overlay); }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7.5rem 0 6.5rem;
}

.hero .eyebrow { color: var(--gold); }

.hero h1 {
  color: var(--foam);
  max-width: 12ch;
  margin-bottom: 0.7rem;
}

.hero-lead {
  max-width: 32rem;
  font-size: 1.05rem;
  color: rgba(255, 253, 249, 0.82);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scroll-hint {
  position: absolute;
  right: 1.25rem;
  bottom: 1.4rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 253, 249, 0.7);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint:hover { color: var(--foam); }

.scroll-hint i {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: drip 1.8s var(--ease) infinite;
}

@keyframes drip {
  0% { transform: scaleY(0.4); transform-origin: top; opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* Highlight strip */

.strip {
  background: var(--espresso);
  color: var(--cream);
  padding: var(--space-7) 0;
}

.strip-grid {
  display: grid;
  gap: 2rem;
}

.strip-item h2 {
  color: var(--foam);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.strip-item p {
  color: rgba(246, 239, 228, 0.7);
  max-width: 28ch;
}

.strip-num {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--caramel);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

/* Menu */

.menu-section {
  padding: var(--space-8) 0;
  background: var(--ivory);
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-6);
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  min-height: 2.4rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--espresso);
  color: var(--foam);
  border-color: var(--espresso);
}

.menu-grid {
  display: grid;
  gap: 1.25rem;
}

.menu-card {
  background: var(--foam);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease);
}

.menu-card.is-hidden { display: none; }

.menu-card:hover { transform: translateY(-4px); }

.menu-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.menu-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.menu-card:hover img { transform: scale(1.05); }

.menu-card-body { padding: 1.15rem 1.2rem 1.3rem; }

.menu-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.menu-card h3 { margin-bottom: 0.35rem; }

.price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--mocha);
  white-space: nowrap;
}

.menu-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-note {
  margin-top: var(--space-6);
  padding: 1.15rem 1.25rem;
  border-left: 2px solid var(--caramel);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-note strong { color: var(--espresso); font-weight: 600; }

/* About */

.about-section {
  padding: var(--space-8) 0 var(--space-7);
  background: var(--cream);
}

.about-grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-7);
}

.about-media {
  margin: 0;
  position: relative;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about-media figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.7rem;
  background: rgba(28, 18, 12, 0.72);
  color: var(--foam);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.about-copy p { color: var(--muted); }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.4rem 0 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--espresso);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.values {
  display: grid;
  gap: 1.25rem;
}

.value-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 22rem;
  color: var(--foam);
}

.value-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(28, 18, 12, 0.78) 100%);
}

.value-card > div {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.value-card h3 { color: var(--foam); }

.value-list {
  display: grid;
  gap: 1rem;
}

.value-list article {
  background: var(--foam);
  padding: 1.3rem 1.25rem;
  border-radius: var(--radius);
}

.value-list p { color: var(--muted); }

/* Contact */

.contact-section {
  padding: var(--space-8) 0;
  background: var(--ivory);
}

.contact-grid {
  display: grid;
  gap: var(--space-6);
}

.contact-details {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.contact-details h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.35rem;
}

.contact-details p { color: var(--muted); }

.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: var(--foam);
  padding: 1.4rem 1.2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 1rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.22);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field-error {
  min-height: 1.1em;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--error);
}

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}

.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Footer */

.site-footer {
  background: var(--espresso);
  color: rgba(246, 239, 228, 0.72);
  padding: var(--space-7) 0 var(--space-5);
}

.site-footer .logo { color: var(--foam); margin-bottom: 0.8rem; }

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(246, 239, 228, 0.08);
}

.footer-brand p { max-width: 28ch; }

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.8rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  text-decoration: none;
  color: rgba(246, 239, 228, 0.78);
}

.site-footer a:hover { color: var(--gold); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
}

/* Larger phones / small tablets */

@media (min-width: 640px) {
  .container { width: min(100% - 2.5rem, var(--max)); }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* Tablets */

@media (min-width: 768px) {
  .strip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .about-media img { aspect-ratio: 5 / 6; }

  .values {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }

  .value-card { min-height: 100%; }
}

/* Desktop */

@media (min-width: 960px) {
  :root { --header-h: 4.75rem; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    background: transparent;
    padding: 0;
    border: 0;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-list a {
    padding: 0.4rem 0.7rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 400;
  }

  .hero-content { padding: 9rem 0 7.5rem; }

  .hero-lead { font-size: 1.15rem; }

  .scroll-hint { right: 2.5rem; bottom: 2rem; }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .about-media img { aspect-ratio: 4 / 5; }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }

  .contact-form { padding: 2rem; }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  }
}

@media (min-width: 1200px) {
  .hero-content { padding-bottom: 8.5rem; }

  .strip { padding: 4.5rem 0; }

  .menu-section,
  .about-section,
  .contact-section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
