/* ============================================================
   Csupor Specialty Coffee — styles.css
   Revised 2026-03-31 per design_spec_v2.md
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:          #FAFAF8;
  --color-charcoal:    #2D2926;
  --color-stone:       #6B635B;
  --color-gold:        #B8943E;
  --color-warm-grey:   #F0EDEA;
  --color-sage:        #7A8C6E;
  --color-pampas:      #DDD8CE;
  --color-footer-bg:   #2D2926;
  --color-footer-text: #FAFAF8;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --max-width:        1100px;
  --section-padding:  96px;
  --side-padding:     80px;
  --radius:           8px;
  --gap:              24px;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-indicator {
    animation: none !important;
    opacity: 1;
  }
}

/* ── Utility ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--side-padding);
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--color-charcoal);
  margin-bottom: 24px;
}

/* ── Navigation ───────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, border-bottom 0.25s ease;
}

.site-nav.scrolled {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-pampas);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-footer-text);
  line-height: 1;
  transition: color 0.2s ease;
}

.site-nav.scrolled .nav-wordmark {
  color: var(--color-charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.9);
  transition: color 0.2s ease;
}

.site-nav.scrolled .nav-links a {
  color: var(--color-charcoal);
}

.nav-links a:hover {
  color: var(--color-gold);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-footer-text);
  transition: background-color 0.2s ease;
}

.site-nav.scrolled .nav-toggle span {
  background-color: var(--color-charcoal);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  transition: color 0.2s ease;
}

.nav-overlay a:hover {
  color: var(--color-gold);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 41, 38, 0.55) 0%, transparent 50%);
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  padding-inline: var(--side-padding);
  max-width: var(--max-width);
  margin-inline: auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1.1;
  color: var(--color-footer-text);
  max-width: 680px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-footer-text);
  animation: bounce-fade 2s ease-in-out infinite;
  line-height: 1;
  user-select: none;
}

@keyframes bounce-fade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(5px); }
}

/* ── About ────────────────────────────────────────────────────── */
.about {
  padding-block: var(--section-padding);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image-wrap {
  overflow: hidden;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  background-color: var(--color-warm-grey);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.about-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  margin-bottom: 16px;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.pull-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-charcoal);
  border-left: 2px solid var(--color-gold);
  padding-left: 16px;
  margin-top: 28px;
  margin-bottom: 0;
}

/* ── Coffee & Menu ────────────────────────────────────────────── */
.coffee {
  padding-block: var(--section-padding);
  background-color: var(--color-bg);
}

.coffee-inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--side-padding);
}

.coffee-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.coffee-rule {
  display: block;
  width: 48px;
  height: 1px;
  background-color: var(--color-gold);
  flex-shrink: 0;
}

.coffee-heading {
  margin-bottom: 40px;
}

/* Menu list */
.menu-list {
  margin-bottom: 0;
}

.menu-item {
  padding-block: 18px;
  border-bottom: 1px solid var(--color-pampas);
}

.menu-item:first-child {
  border-top: 1px solid var(--color-pampas);
}

.menu-item-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}

.menu-item-notes {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-stone);
}

/* Menu category divider */
.menu-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: 36px 8px;
}

.menu-divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--color-pampas);
}

.menu-divider-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  white-space: nowrap;
}

.menu-food-note {
  margin-top: 28px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--color-stone);
  line-height: 1.6;
}

/* ── Gallery ──────────────────────────────────────────────────── */
.gallery {
  padding-block: var(--section-padding);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
  background-color: var(--color-pampas); /* visible in 4px gaps */
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* First row: large left, tall right spanning both rows */
.gallery-item-large {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 4 / 3;
}

.gallery-item-tall {
  grid-column: 2;
  grid-row: 1 / 3; /* spans both rows */
}

.gallery-item-narrow {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 4 / 3;
}

/* photo_7 wide — for 4-item layout it sits at row2 right but we need a different approach */
/* With the tall item spanning rows, we use a 3-item main grid + 4th below as a row */
/* Layout:
     [large col1 row1] [tall col2 row1+2]
     [narrow col1 row2]
   4th image: full-width below
*/
.gallery-item-wide {
  grid-column: 1 / 3;
  grid-row: 3;
  aspect-ratio: 16 / 7;
}

/* ── Visit ────────────────────────────────────────────────────── */
.visit {
  padding-block: var(--section-padding);
  background-color: var(--color-warm-grey);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-heading {
  margin-bottom: 32px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-pampas);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding-block: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-charcoal);
  line-height: 1.5;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
}

.visit-address {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-charcoal);
  line-height: 1.6;
  margin-bottom: 20px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-charcoal);
  margin-bottom: 28px;
  transition: opacity 0.2s ease;
}

.map-link:hover {
  opacity: 0.7;
}

.map-link-arrow {
  color: var(--color-gold);
  font-style: normal;
}

.visit-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.visit-social-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-charcoal);
  transition: color 0.2s ease;
}

.visit-social-link:hover {
  color: var(--color-gold);
}

/* Map placeholder */
.map-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-pampas);
  min-height: 340px;
  position: relative;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 400px;
  max-height: 400px;
  border: none;
  display: block;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-stone);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  text-align: center;
  padding: 24px;
}

.map-placeholder-icon {
  font-size: 2rem;
  color: var(--color-gold);
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-footer-bg);
  padding-block: 40px 32px;
  border-top: 1px solid rgba(250, 250, 248, 0.1);
}

.footer-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-footer-text);
  line-height: 1;
}

.footer-address {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: rgba(250, 250, 248, 0.6);
  text-align: center;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  color: var(--color-footer-text);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: opacity 0.15s ease;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-row-2 {
  border-top: 1px solid rgba(250, 250, 248, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-copyright {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(250, 250, 248, 0.4);
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet: 600–959px ────────────────────────────────────────── */
@media (min-width: 600px) and (max-width: 959px) {
  :root {
    --side-padding: 32px;
    --section-padding: 72px;
  }

  /* Gallery: 2-col alternating pairs */
  .gallery-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .gallery-item-large {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 3;
  }

  .gallery-item-tall {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .gallery-item-narrow {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 4 / 3;
  }

  .gallery-item-wide {
    grid-column: 1 / 3;
    grid-row: 3;
    aspect-ratio: 16 / 7;
  }

  /* About: single column */
  .about-grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .about-image-wrap {
    height: 340px;
  }

  .about-text {
    padding: 40px 32px;
  }

  /* Visit: single column */
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .map-embed-wrap iframe {
    height: 320px;
    max-height: 320px;
  }
}

/* ── Mobile: < 600px ──────────────────────────────────────────── */
@media (max-width: 599px) {
  :root {
    --side-padding:    24px;
    --section-padding: 64px;
  }

  /* Nav */
  .site-nav {
    height: 56px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-content {
    bottom: 60px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .about-image-wrap {
    height: 280px;
  }

  .about-text {
    padding: 32px 24px;
  }

  .pull-quote {
    font-size: 1.125rem;
  }

  /* Section headings */
  .section-heading {
    font-size: 1.75rem;
  }

  /* Coffee */
  .coffee-inner {
    padding-inline: var(--side-padding);
  }

  /* Gallery: single column */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gallery-item-large,
  .gallery-item-tall,
  .gallery-item-narrow,
  .gallery-item-wide {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  /* Visit */
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .map-embed-wrap iframe {
    height: 280px;
    max-height: 280px;
  }

  /* Footer */
  .footer-row-1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
}

/* ── Desktop nav — hide hamburger ─────────────────────────────── */
@media (min-width: 600px) {
  .nav-toggle {
    display: none;
  }
}
