/* ============================================================
   Canvas Café — Via Nassa, Lugano
   Aesthetic: Minimalist-Airy / Editorial
   Palette: Ivory white + Warm sand #c8a882
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:            #faf8f5;
  --bg-alt:        #f2ede6;
  --text:          #1e1a17;
  --text-muted:    #6b5f55;
  --sand:          #c8a882;
  --sand-light:    #e0cdb6;
  --sand-dark:     #9e7f5e;
  --border:        #e2d9ce;
  --border-light:  #ece5db;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', Helvetica, sans-serif;

  --max-w:         76rem;
  --transition:    0.22s ease;
  --nav-h:         4rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #181410;
    --bg-alt:       #211d18;
    --text:         #f0e8dc;
    --text-muted:   #9d8d7c;
    --sand:         #c8a882;
    --sand-light:   #a08060;
    --sand-dark:    #d4b896;
    --border:       #302820;
    --border-light: #2a2218;
  }
}

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

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

html.menu-open {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Subtle grain texture ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-logo:hover { color: var(--sand); }

.nav-logo span {
  color: var(--sand);
  font-style: italic;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.75rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sand);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

/* Hamburger button — fixed top-right on mobile */
.nav-hamburger {
  display: none;
  position: fixed;
  top: 0.75rem;
  right: 1.25rem;
  z-index: 1001;
  background: var(--bg);
  border: 1px solid var(--border);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

.hamburger-icon,
.close-icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: stroke var(--transition);
}

/* Icon toggle */
.nav-hamburger[aria-expanded="true"]  .hamburger-icon { display: none; }
.nav-hamburger[aria-expanded="false"] .close-icon     { display: none; }

/* Mobile full-screen overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  padding: 0;
  margin: 0;
}

/* NO border-top / border-bottom between overlay links */
.nav-overlay ul li {
  border: none;
  padding: 0;
  margin: 0;
}

.nav-overlay ul a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--bg);
  transition: color var(--transition);
  display: block;
}

.nav-overlay ul a:hover,
.nav-overlay ul a[aria-current="page"] {
  color: var(--sand);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: min(90vh, 760px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 10, 4, 0.78) 0%,
    rgba(16, 10, 4, 0.22) 52%,
    rgba(16, 10, 4, 0.06) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
  animation: fadeUp 0.8s 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: #f5f0e8;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s 0.4s both;
}

.hero-title em {
  font-style: italic;
  color: var(--sand);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.76);
  max-width: 40ch;
  animation: fadeUp 0.8s 0.6s both;
}

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

/* ── Intro Strip — HARDCODED dark, NOT a CSS variable ──────── */
.intro-strip {
  background: #111111;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.intro-strip-item {
  font-family: var(--font-body);
  font-size: 0.77rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
}

.intro-strip-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.45;
  flex-shrink: 0;
}

/* ── Section utility ────────────────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

.section-sm {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--sand);
}

.section-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.85;
}

.divider {
  width: 3rem;
  height: 1px;
  background: var(--sand);
  margin: 1.5rem 0;
}

/* ── Feature grid ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 4rem;
}

.feature-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.feature-cell--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.feature-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-cell:hover img {
  transform: scale(1.04);
}

.feature-cell-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(16,10,4,0.72), transparent);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: #f5f0e8;
}

/* ── Pull quote / editorial band ───────────────────────────── */
.pull-quote-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}

.pull-quote-section blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
  max-width: 55ch;
  margin: 0 auto 1.25rem;
}

.pull-quote-section .quote-author {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-dark);
}

/* ── Photo row ──────────────────────────────────────────────── */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.photo-row figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.photo-row figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-row figure:hover img {
  transform: scale(1.05);
}

/* ── Reviews ────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  position: relative;
}

.review-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--sand);
  opacity: 0.22;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
}

.review-card blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}

.review-card .review-author {
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.star {
  width: 12px;
  height: 12px;
  fill: var(--sand);
}

/* ── Rating badge ───────────────────────────────────────────── */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  margin-top: 1.75rem;
}

.rating-badge .rating-score {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.rating-badge .rating-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.77rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border: 1px solid var(--sand);
  color: var(--sand-dark);
  background: transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  margin-top: 1.75rem;
}

.btn:hover {
  background: var(--sand);
  color: var(--bg);
  border-color: var(--sand);
}

.btn-solid {
  background: var(--sand);
  color: var(--bg);
  border-color: var(--sand);
}

.btn-solid:hover {
  background: var(--sand-dark);
  border-color: var(--sand-dark);
  color: var(--bg);
}

/* ── Drinks page ────────────────────────────────────────────── */
.drinks-hero {
  position: relative;
  height: min(56vh, 480px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

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

.drinks-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,10,4,0.80) 0%, rgba(16,10,4,0.2) 60%);
}

.drinks-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 2rem 3rem;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.drinks-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: #f5f0e8;
  line-height: 1.1;
}

.drinks-hero-content h1 em {
  font-style: italic;
  color: var(--sand);
}

/* Menu sections */
.menu-section {
  margin-bottom: 3.5rem;
}

.menu-section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-light);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  flex: 1;
}

.menu-item-desc {
  display: block;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.menu-note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border-left: 2px solid var(--sand);
  background: var(--bg-alt);
}

/* ── About page ─────────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  margin-top: 2rem;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: -1.5rem;
  bottom: -1.5rem;
  border: 1px solid var(--sand-light);
  z-index: -1;
  pointer-events: none;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.about-text h2 em {
  font-style: italic;
  color: var(--sand);
}

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 52ch;
}

/* ── Contact page ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-info h2 em {
  font-style: italic;
  color: var(--sand);
}

.contact-block {
  margin-bottom: 2rem;
}

.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-dark);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
}

.contact-value a {
  color: var(--text);
  transition: color var(--transition);
  text-decoration: underline;
  text-decoration-color: var(--sand-light);
  text-underline-offset: 3px;
}

.contact-value a:hover {
  color: var(--sand-dark);
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

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

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

.hours-table th {
  text-align: left;
  font-weight: 400;
  color: var(--text);
  padding: 0.6rem 1rem 0.6rem 0;
  white-space: nowrap;
}

.hours-table td {
  color: var(--text-muted);
  font-weight: 300;
  padding: 0.6rem 0;
  text-align: right;
}

/* Map */
.map-wrap {
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--border);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 3.5rem;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
}

.page-hero-inner h1 em {
  font-style: italic;
  color: var(--sand);
}

.page-hero-inner p {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 52ch;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
  text-align: center;
  font-size: 0.77rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-wrap::after { display: none; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .feature-grid { grid-template-columns: 1fr; }
  .feature-cell--tall { grid-row: auto; aspect-ratio: 4/3; }

  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row figure:last-child { display: none; }
}

@media (max-width: 767px) {
  /* Hide desktop nav links */
  .nav-links { display: none; }

  /* Show hamburger */
  .nav-hamburger { display: flex; }

  .nav-inner { padding: 0 1.25rem; }

  .hero-content { padding: 0 1.25rem 2.5rem; }

  .section { padding: 3.5rem 1.25rem; }
  .section-sm { padding: 2.25rem 1.25rem; }

  .intro-strip { gap: 1.25rem; padding: 1rem 1.25rem; }
  .intro-strip-dot { display: none; }

  .photo-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .photo-row figure:last-child { display: block; }

  .page-hero { padding: 4rem 1.25rem 2.5rem; }

  .drinks-hero-content { padding: 0 1.25rem 2rem; }

  .pull-quote-section { padding: 3.5rem 1.25rem; }

  .contact-grid,
  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
  :root { --nav-h: 3.5rem; }

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

  .hero { height: min(85vh, 640px); }
}

@media (min-width: 1400px) {
  :root { --max-w: 82rem; }
}
