/* ==========================================================================
   Pampushka — styles.css
   Artisan donut shop & specialty coffee, Budapest VI.
   Two fonts: Playfair Display 700 + DM Sans 400/500
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Playfair+Display:wght@700&display=swap');

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-cream:      #F8F6F2;  /* Page background */
  --color-dough:      #F0EBE1;  /* Alt section background */
  --color-ink:        #1A1814;  /* Footer, CTA buttons */
  --color-rye:        #1E1812;  /* Body text, headings on light */
  --color-taupe:      #7A6E62;  /* Captions, meta, secondary text */
  --color-terracotta: #7B3B2A;  /* Accent — eyebrows, hovers, icons */
  --color-green:      #4A5E40;  /* Savory tag, seasonal badge */
  --color-wood:       #C8A97A;  /* Pull quote accent (15% opacity) */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-display: 4.5rem;      /* 72px — hero h1 */
  --text-h2:      3rem;        /* 48px — section titles */
  --text-h3:      1.5rem;      /* 24px — donut names */
  --text-h4:      1.25rem;     /* 20px — card meta */
  --text-body-lg: 1.125rem;    /* 18px — about lead */
  --text-body:    1rem;        /* 16px */
  --text-small:   0.8125rem;   /* 13px */
  --text-label:   0.6875rem;   /* 11px — eyebrows, nav */

  /* Spacing (base-8) */
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --max-width: 1200px;
  --nav-height-desktop: 64px;
  --nav-height-mobile:  56px;
  --radius-sm:  4px;
  --radius-md:  6px;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-rye);
  background-color: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Skip link (accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: 10px 20px;
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 200ms;
}
.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Focus states
   -------------------------------------------------------------------------- */
*:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* On dark backgrounds (Coffee section, Footer) */
.section-dark *:focus-visible {
  outline-color: var(--color-cream);
}

/* --------------------------------------------------------------------------
   Utility: eyebrow label
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Utility: section wrapper
   -------------------------------------------------------------------------- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* --------------------------------------------------------------------------
   1. NAVIGATION
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height-desktop);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 300ms ease, box-shadow 300ms ease;
}

.site-nav.scrolled {
  background: var(--color-cream);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

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

/* Logo / brand */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-rye);
  letter-spacing: 0.04em;
  /* PLACEHOLDER: Replace with actual SVG logo when supplied by client */
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-rye);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms, color 200ms;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-rye);
  border-radius: 1px;
  transition: transform 250ms ease, opacity 250ms ease;
  transform-origin: center;
}

/* Hamburger open state */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

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

.nav-overlay-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--color-rye);
  text-decoration: none;
  transition: color 200ms;
}

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

.nav-overlay-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-rye);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   2. HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  background: var(--color-cream);
  padding-top: var(--nav-height-desktop);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-10) var(--space-16) max(var(--space-10), calc((100vw - var(--max-width)) / 2 + var(--space-5)));
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 1.0;
  color: var(--color-rye);
  margin-bottom: var(--space-6);
  max-width: 12ch;
}

.hero-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--color-taupe);
  max-width: 44ch;
  margin-bottom: var(--space-10);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 200ms ease;
  min-height: 44px;
}

.btn-primary:hover {
  background: #2C2420;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-rye);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms, color 200ms;
  min-height: 44px;
}

.btn-secondary:hover {
  border-bottom-color: var(--color-rye);
}

.hero-founders {
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-small);
  color: var(--color-taupe);
}

.hero-image {
  position: relative;
  overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   3. TODAY'S MENU
   -------------------------------------------------------------------------- */
.section-menu {
  background: var(--color-dough);
  padding: var(--space-20) 0;
}

.section-menu .section-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-menu h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.1;
  color: var(--color-rye);
  margin-bottom: var(--space-10);
}

/* Donut grid */
.donut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  width: 100%;
  margin-bottom: var(--space-10);
}

/* Donut card */
.donut-card {
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 24, 18, 0.07);
  overflow: hidden;
}

.donut-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.donut-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.donut-card:hover .donut-card-image img {
  transform: scale(1.03);
}

.donut-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

.donut-tag.sweet {
  background: var(--color-ink);
  color: var(--color-cream);
}

.donut-tag.savory {
  background: var(--color-green);
  color: var(--color-cream);
}

.donut-card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.donut-card-body h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-h3);
  letter-spacing: 0.02em;
  color: var(--color-rye);
  margin-bottom: var(--space-2);
  line-height: 1.25;
}

.donut-card-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--color-taupe);
  line-height: 1.5;
}

.donut-seasonal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-label);
  color: var(--color-green);
}

.donut-seasonal::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
}

/* Instagram live menu CTA */
.menu-instagram-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 24, 18, 0.07);
  width: 100%;
  flex-wrap: wrap;
}

.menu-instagram-cta-icon {
  flex-shrink: 0;
  color: var(--color-terracotta);
  display: flex;
  align-items: center;
}

.menu-instagram-cta-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--color-rye);
  flex: 1;
}

.menu-instagram-cta-text a {
  font-weight: 500;
  color: var(--color-terracotta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}

.menu-instagram-cta-text a:hover {
  border-bottom-color: var(--color-terracotta);
}

/* --------------------------------------------------------------------------
   4. ABOUT
   -------------------------------------------------------------------------- */
.section-about {
  background: var(--color-cream);
  padding: var(--space-20) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-16);
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.1;
  color: var(--color-rye);
  margin-bottom: var(--space-8);
}

.about-lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--color-rye);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}

.about-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-taupe);
  max-width: 58ch;
  margin-bottom: var(--space-8);
}

.about-pullquote {
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-7);
  border-left: 3px solid var(--color-terracotta);
  background: rgba(200, 169, 122, 0.15);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-6);
}

.about-pullquote p {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--color-rye);
}

.about-founders {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-taupe);
  letter-spacing: 0.01em;
}

.about-image {
  position: relative;
}

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

/* --------------------------------------------------------------------------
   5. COFFEE (dark section)
   -------------------------------------------------------------------------- */
.section-coffee {
  background: var(--color-ink);
  padding: var(--space-20) 0;
}

.section-coffee .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-coffee h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.1;
  color: var(--color-cream);
  margin-bottom: var(--space-6);
}

.coffee-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.7;
  color: rgba(248, 246, 242, 0.85);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

.coffee-image {
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.coffee-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   6. GALLERY
   -------------------------------------------------------------------------- */
.section-gallery {
  background: var(--color-dough);
  padding: var(--space-20) 0;
}

.section-gallery h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.1;
  color: var(--color-rye);
  margin-bottom: var(--space-10);
}

/* CSS masonry grid approximation */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
  margin-bottom: var(--space-8);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: opacity 250ms ease, transform 250ms ease;
}

.gallery-item:hover img {
  opacity: 0.92;
  transform: scale(1.01);
}

/* Feature item — double height */
.gallery-item.feature {
  /* Natural tall aspect — no forced span needed in columns layout */
}

.gallery-instagram-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-terracotta);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: opacity 200ms;
}

.gallery-instagram-cta:hover {
  opacity: 0.8;
}

.gallery-instagram-cta svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. ORDER & DELIVERY
   -------------------------------------------------------------------------- */
.section-order {
  background: var(--color-cream);
  padding: var(--space-20) 0;
}

.section-order h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.1;
  color: var(--color-rye);
  margin-bottom: var(--space-10);
}

.delivery-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  max-width: 720px;
  width: 100%;
}

.delivery-card {
  background: var(--color-dough);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.delivery-card-logo {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-card-logo img {
  max-width: 80px;
  max-height: 40px;
  object-fit: contain;
}

.delivery-platform-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-h3);
  color: var(--color-rye);
  line-height: 1.25;
}

.delivery-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-taupe);
  line-height: 1.5;
}

.delivery-card .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   8. FIND US
   -------------------------------------------------------------------------- */
.section-findus {
  background: var(--color-dough);
  padding: var(--space-20) 0;
}

.findus-grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: var(--space-12);
  align-items: start;
}

.findus-info h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.1;
  color: var(--color-rye);
  margin-bottom: var(--space-8);
}

.findus-address {
  margin-bottom: var(--space-8);
}

.findus-address p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--color-rye);
  line-height: 1.7;
}

.findus-address a {
  color: var(--color-terracotta);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}

.findus-address a:hover {
  border-bottom-color: var(--color-terracotta);
}

.findus-hours {
  margin-bottom: var(--space-8);
}

.findus-hours h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-4);
}

.hours-table {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--color-taupe);
  gap: var(--space-4);
}

.hours-row .day {
  font-weight: 500;
  color: var(--color-rye);
  min-width: 120px;
}

.hours-row.closed .time {
  color: var(--color-taupe);
}

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

.findus-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-rye);
  transition: color 200ms;
}

.findus-social a:hover {
  color: var(--color-terracotta);
}

.findus-map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
}

.findus-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  padding: var(--space-12) 0;
  border-top: 1px solid rgba(248, 246, 242, 0.12);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.footer-brand-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-cream);
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-small);
  color: rgba(248, 246, 242, 0.70);
  line-height: 1.5;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 246, 242, 0.50);
  margin-bottom: var(--space-4);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 246, 242, 0.80);
  text-decoration: none;
  transition: color 200ms;
}

.footer-links a:hover {
  color: var(--color-terracotta);
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(248, 246, 242, 0.80);
  transition: color 200ms;
}

.footer-social a:hover {
  color: var(--color-terracotta);
}

.footer-copy {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-small);
  color: rgba(248, 246, 242, 0.50);
  line-height: 1.6;
}

.footer-copy a {
  color: rgba(248, 246, 242, 0.50);
  border-bottom: 1px solid transparent;
  transition: color 200ms, border-color 200ms;
}

.footer-copy a:hover {
  color: rgba(248, 246, 242, 0.80);
  border-bottom-color: rgba(248, 246, 242, 0.40);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 24, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
  padding: var(--space-10);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: 1.75rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Tablet (600–959px)
   -------------------------------------------------------------------------- */
@media (min-width: 600px) and (max-width: 959px) {
  .donut-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    columns: 2;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Mobile (max 599px)
   -------------------------------------------------------------------------- */
@media (max-width: 959px) {
  /* Nav */
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .site-nav {
    height: var(--nav-height-mobile);
  }

  /* Hero — stacked: image top, text below */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    padding-top: var(--nav-height-mobile);
  }

  .hero-image {
    order: -1;
    height: 40svh;
    max-height: 40svh;
  }

  .hero-image img {
    height: 100%;
  }

  .hero-text {
    padding: var(--space-9, 36px) var(--space-5) var(--space-12);
  }

  .hero h1 {
    font-size: 2.75rem;
    max-width: none;
  }

  .hero-sub {
    font-size: 1.0625rem;
    max-width: none;
  }

  .hero-founders {
    display: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    aspect-ratio: 4 / 3;
  }

  /* Coffee */
  .section-coffee h2 {
    font-size: 2.125rem;
  }

  /* Find Us */
  .findus-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .findus-map iframe {
    height: 280px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }

  /* Delivery cards */
  .delivery-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  /* Section headings */
  :root {
    --text-display: 2.75rem;
    --text-h2:      2.125rem;
  }

  .section-menu,
  .section-about,
  .section-coffee,
  .section-gallery,
  .section-order,
  .section-findus {
    padding: var(--space-12) 0;
  }

  .donut-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .gallery-grid {
    columns: 2;
    column-gap: 8px;
  }

  .gallery-item {
    margin-bottom: 8px;
  }

  .menu-instagram-cta {
    padding: var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   Motion safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   Wide screens — lock to max-width
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hero-text {
    padding-left: calc((100vw - var(--max-width)) / 2 + var(--space-5));
    padding-right: var(--space-16);
  }
}
