/* ============================================
   DRIP COFFEE & BAKED GOODS
   Brand: warm, minimal, lowercase, boutique
   Palette: Blush #f4d7ca, Cream #faf4f1,
            Sage #7d8a6e, Near-black #2b2b2b
   Vibe: quietly confident, everything lowercase
   ============================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-hero: clamp(3rem, 1rem + 5vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand colors */
  --color-cream: #faf4f1;
  --color-warm-tan: #c9a96e;
  --color-sage: #7d8a6e;
  --color-footer-bg: var(--color-sage);
  --color-sage-dark: #5f6b53;
  --color-nearblack: #2b2b2b;
  --color-warm-brown: #3d3028;

  /* Semantic tokens */
  --color-bg: var(--color-cream);
  --color-surface: #fff8f5;
  --color-surface-2: #ffffff;
  --color-text: var(--color-nearblack);
  --color-text-muted: #786e67;
  --color-text-faint: #a89e97;
  --color-primary: var(--color-sage);
  --color-primary-hover: var(--color-sage-dark);
  --color-border: oklch(from #2b2b2b l c h / 0.08);
  --color-warm-brown: #3d3028;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px oklch(0.25 0.02 50 / 0.05);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 50 / 0.07);

  /* Transition */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'Didact Gothic', 'Work Sans', sans-serif;

  /* Widths */
  --content-narrow: 600px;
  --content-default: 900px;
  --content-wide: 1100px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-cream) l c h / 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-blush);
}

.logo-img {
  height: 40px;
  width: 40px;
  display: block;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.main-nav a:hover {
  color: var(--color-text);
}

.mobile-menu-btn {
  display: none;
  color: var(--color-text);
  padding: var(--space-2);
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ---- MOBILE NAV ---- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-close-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  padding: var(--space-2);
  color: var(--color-text);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.mobile-nav a {
  font-size: var(--text-xl);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-full);
  min-height: 44px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  min-height: 36px;
}

.btn-primary {
  background: var(--color-nearblack);
  color: var(--color-cream);
}

.btn-primary:hover {
  background: var(--color-warm-brown);
}

.btn-primary:active {
  background: #1a1a1a;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.btn-outline:hover {
  box-shadow: inset 0 0 0 1px var(--color-text);
}

.btn-light {
  background: var(--color-cream);
  color: var(--color-nearblack);
}

.btn-light:hover {
  background: #fff;
}

.btn-full {
  width: 100%;
}

.main-nav .btn-sm {
  background: var(--color-nearblack);
  color: var(--color-cream);
  border-radius: var(--radius-full);
}

.main-nav .btn-sm:hover {
  background: var(--color-warm-brown);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(from var(--color-cream) l c h / 0.0) 0%,
    oklch(from var(--color-cream) l c h / 0.1) 25%,
    oklch(from var(--color-cream) l c h / 0.55) 50%,
    oklch(from var(--color-cream) l c h / 0.88) 65%,
    var(--color-cream) 80%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-narrow);
  padding: var(--space-16) var(--space-5) var(--space-12);
  padding-top: 42vh;
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--space-3);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-est {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

@media (max-width: 640px) {
  .hero {
    min-height: 85vh;
  }
  .hero-content {
    padding-top: 38vh;
    padding-bottom: var(--space-8);
  }
  .hero-actions {
    margin-top: var(--space-4);
  }
  .hero-actions .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-xs);
  }
}

/* ---- ABOUT STRIP ---- */
.about-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-5);
}

.about-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-8);
}

.about-item {
  flex: 1;
  max-width: 280px;
}

.about-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.about-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.6;
}

.about-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
  margin-top: var(--space-1);
}

@media (max-width: 640px) {
  .about-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
  }
  .about-divider { display: none; }
  .about-item { max-width: none; }
}

/* ---- SECTION SHARED ---- */
.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-5);
}

.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  text-transform: lowercase;
  margin-bottom: var(--space-2);
}

.section-label--light {
  color: oklch(1 0 0 / 0.5);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-8);
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.section-heading--light {
  color: var(--color-cream);
}

/* ---- LOCATIONS BAR ---- */
.locations-bar {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.locations-bar-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.loc-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.loc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-interactive);
  min-height: 40px;
}

.loc-btn:hover {
  border-color: var(--color-text-muted);
  background: oklch(from var(--color-sage) l c h / 0.04);
}

.loc-btn[aria-expanded="true"] {
  background: var(--color-sage);
  color: #fff;
  border-color: var(--color-sage);
}

.loc-btn-name {
  font-weight: 500;
}

.loc-btn-status {
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.loc-btn-status--open {
  color: var(--color-sage-dark);
  background: oklch(from var(--color-sage) l c h / 0.12);
}

.loc-btn-status--soon {
  color: #8a7040;
  background: oklch(from #c9933a l c h / 0.12);
}

.loc-btn[aria-expanded="true"] .loc-btn-status--open {
  color: #fff;
  background: oklch(from #fff l c h / 0.2);
}

.loc-btn[aria-expanded="true"] .loc-btn-status--soon {
  color: #fff;
  background: oklch(from #fff l c h / 0.2);
}

.loc-hours {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 300;
  flex-wrap: wrap;
}

.loc-hours-sep {
  opacity: 0.4;
}

@media (max-width: 700px) {
  .locations-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .loc-hours {
    font-size: 0.7rem;
  }
}

/* Expandable detail panels */
.loc-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--color-bg);
}

.loc-detail.is-open {
  max-height: 500px;
  border-top: 1px solid var(--color-border);
}

.loc-detail-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.loc-detail-photo {
  flex: 0 0 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.loc-detail-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.loc-detail-info {
  flex: 1;
}

.loc-detail-info--full {
  flex: 1;
}

.loc-detail-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.loc-detail-address {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.loc-detail-phone {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.loc-detail-coming {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  margin-top: var(--space-2);
}

.loc-detail-info .btn {
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
}

@media (max-width: 700px) {
  .loc-detail-inner {
    flex-direction: column;
    gap: var(--space-4);
  }
  .loc-detail-photo {
    flex: none;
    width: 100%;
  }
  .loc-detail-photo img {
    height: 180px;
  }
}

/* ---- THE SPACE ---- */
.the-space {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.the-space-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.the-space-text {
  max-width: 42ch;
}

.the-space-body {
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-top: var(--space-4);
}

.the-space-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.the-space-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg, 12px);
}

@media (max-width: 768px) {
  .the-space-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .the-space-text {
    text-align: center;
    max-width: none;
  }
  .the-space-photos {
    grid-template-columns: 1fr 1fr;
  }
  .the-space-photo {
    height: 240px;
  }
}

/* ---- HIRING ---- */
.hiring {
  background: var(--color-nearblack);
}

.hiring-inner {
  text-align: center;
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.hiring-body {
  color: oklch(1 0 0 / 0.6);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.hiring .btn-light {
  margin-top: var(--space-4);
}

/* ---- EVENTS ---- */
.events {
  background: var(--color-bg);
  overflow: hidden;
}

.events-inner {
  text-align: center;
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.events-layout {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  text-align: left;
  max-width: var(--content-wide);
}

.events-text {
  flex: 1;
  min-width: 0;
}

.events-text .section-label,
.events-text .section-heading,
.events-text .events-body {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.events-polaroid-wrap {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  justify-content: center;
}

.polaroid {
  position: relative;
  background: #fff;
  padding: 10px 10px 36px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.polaroid:hover {
  transform: rotate(1deg) scale(1.02);
}

.polaroid img {
  width: 240px;
  height: 200px;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.polaroid-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4534a, #a03028);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 2px rgba(255,255,255,0.3);
  z-index: 2;
}

.polaroid-pin::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}

@media (max-width: 700px) {
  .events-layout {
    flex-direction: column;
    text-align: center;
  }
  .events-text .section-label,
  .events-text .section-heading,
  .events-text .events-body {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .events-polaroid-wrap {
    width: auto;
    margin-top: var(--space-4);
  }
  .polaroid img {
    width: 200px;
    height: 160px;
  }
}

.events-body {
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-footer-bg);
  padding: var(--space-12) var(--space-5) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.footer-submark {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--color-cream);
  font-weight: 500;
  line-height: 1.5;
}

.footer-logo-img {
  width: 64px;
  height: 64px;
  display: block;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-cream);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: var(--color-cream);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-cream);
  opacity: 0.5;
}

/* ---- MENU PAGE ---- */
.menu-hero {
  padding: var(--space-16) var(--space-5) var(--space-8);
  text-align: center;
}

.menu-hero-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.menu-title {
  margin-bottom: var(--space-4);
}

.menu-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
  font-weight: 300;
}

.nav-active {
  color: var(--color-text) !important;
  font-weight: 500 !important;
}

.menu-content {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-12);
}

.menu-section {
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.menu-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.menu-cat {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  text-transform: lowercase;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.menu-section--seasonal .menu-cat {
  color: var(--color-sage);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-1);
}

.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from #2b2b2b l c h / 0.04);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.menu-item-name {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  text-transform: lowercase;
}

.menu-item--signature .menu-item-name {
  font-weight: 500;
  color: var(--color-sage-dark);
}

.menu-item-desc {
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 300;
  font-style: italic;
  order: 3;
}

.menu-item-price {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.menu-cta {
  text-align: center;
  padding: var(--space-10) var(--space-5) var(--space-16);
}

.menu-cta p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  text-transform: lowercase;
}

/* ---- ANIMATIONS ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-sub,
  .hero-est,
  .hero-actions {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-sub { animation-delay: 0.15s; }
  .hero-est { animation-delay: 0.3s; }
  .hero-actions { animation-delay: 0.45s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .about-item {
    opacity: 0;
    transform: translateY(16px);
  }
  .about-item.is-visible {
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .about-item:nth-child(3).is-visible { animation-delay: 0.08s; }
  .about-item:nth-child(5).is-visible { animation-delay: 0.16s; }
}
