/* =========================================================
   La Boheme — Via Cattedrale 6, Lugano
   Aesthetic: Editorial Bohemian / Kiosk-Bento
   Fonts: Cormorant Garamond (display) + Lora (body)
   ========================================================= */

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

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --brand:        #6b8a9b;
  --brand-dark:   #4a6475;
  --brand-light:  #9bb5c4;

  --bg:           #f5f0e8;
  --bg-card:      #faf7f2;
  --bg-muted:     #ede8df;
  --surface:      #ffffff;

  --text-primary: #1c1915;
  --text-body:    #2e2a24;
  --text-muted:   #5c5448;
  --text-light:   #8a8178;

  --border:       #d4cdc2;
  --border-light: #e4dfd6;

  --accent:       #b84a2e;
  --accent-hover: #9a3d25;

  --radius:       4px;
  --radius-lg:    8px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', 'Times New Roman', serif;

  --shadow-sm:    0 1px 3px rgba(28,25,21,0.08);
  --shadow-md:    0 4px 16px rgba(28,25,21,0.10);
  --shadow-lg:    0 8px 32px rgba(28,25,21,0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #1a1714;
    --bg-card:      #201d1a;
    --bg-muted:     #252220;
    --surface:      #2a2622;

    --text-primary: #f0ebe2;
    --text-body:    #d8d2c7;
    --text-muted:   #a09890;
    --text-light:   #6e6760;

    --border:       #3a3530;
    --border-light: #302c28;

    --brand:        #7fa0b2;
    --brand-dark:   #9bb5c4;
    --brand-light:  #5a7a8a;

    --accent:       #d4614a;
    --accent-hover: #e07560;

    --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg:    0 8px 32px rgba(0,0,0,0.45);
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.menu-open {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-dark);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; font-style: italic; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

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

strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.nav-links a.active {
  color: var(--brand);
  font-weight: 600;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  position: fixed;
  top: 10px;
  right: 1.25rem;
  z-index: 300;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: var(--bg-muted);
  border-color: var(--brand);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}

/* Hamburger → X transition */
body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}
body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.nav-overlay-links a {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  padding: 0.5rem 2rem;
  text-align: center;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-overlay-links a:hover,
.nav-overlay-links a.active {
  color: var(--brand);
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-overlay { display: block; }
}

/* ── Intro Strip ──────────────────────────────────────────── */
/* hardcoded dark as required — NOT a CSS variable */
.intro-strip {
  background: #111111;
  color: #f0ebe2;
  padding: 0.6rem 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

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

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.5rem 1.25rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero h1 {
  color: #f5f0e8;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(245,240,232,0.85);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

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

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1;
}

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

.btn-primary {
  background: var(--brand);
  color: #f5f0e8;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #f5f0e8;
}

.btn-outline {
  background: transparent;
  color: #f5f0e8;
  border-color: rgba(245,240,232,0.55);
}
.btn-outline:hover {
  background: rgba(245,240,232,0.12);
  border-color: #f5f0e8;
  color: #f5f0e8;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline-dark:hover {
  background: var(--bg-muted);
  border-color: var(--brand);
  color: var(--brand);
}

/* ── Bento Grid ───────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.bento-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bento-card-body {
  padding: 1.25rem 1.5rem;
}

.bento-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.bento-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Span helpers */
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8 { grid-column: span 12; }
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-brand {
  background: rgba(107,138,155,0.12);
  color: var(--brand-dark);
  border-color: rgba(107,138,155,0.3);
}

@media (prefers-color-scheme: dark) {
  .badge-brand {
    color: var(--brand-light);
  }
}

/* ── Star Rating ──────────────────────────────────────────── */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #b8882a;
  font-size: 1rem;
}

/* ── Services Flags ───────────────────────────────────────── */
.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Hours Table ──────────────────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

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

.hours-table td {
  padding: 0.55rem 0;
  vertical-align: top;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 110px;
  padding-right: 1rem;
  text-transform: capitalize;
}

.hours-table td:last-child {
  color: var(--text-muted);
}

/* ── Review Cards ─────────────────────────────────────────── */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.review-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--brand);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
  pointer-events: none;
}

.review-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 0.75rem;
  padding-top: 1.25rem;
  line-height: 1.65;
}

.review-author {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Drinks Page ──────────────────────────────────────────── */
.drinks-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.drinks-divider {
  width: 48px;
  height: 2px;
  background: var(--brand);
  margin-bottom: 1.75rem;
  border: none;
  display: block;
}

.drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.drink-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.drink-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.drink-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.drink-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
}

.drink-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}

/* ── About Split ──────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

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

.about-text .eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  .about-text .eyebrow { color: var(--brand-light); }
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 0.975rem;
  color: var(--text-body);
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-block h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-style: italic;
}

.contact-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-row:last-child { margin-bottom: 0; }

.contact-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(107,138,155,0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 0.9rem;
  margin-top: 2px;
}

@media (prefers-color-scheme: dark) {
  .contact-icon { color: var(--brand-light); }
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
}

.contact-value a {
  color: var(--text-body);
}

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

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

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

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0 2.5rem;
}

.page-hero .eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.6rem;
}

@media (prefers-color-scheme: dark) {
  .page-hero .eyebrow { color: var(--brand-light); }
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-top: 0.75rem;
}

/* ── Section Label ────────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .section-label { color: var(--brand-light); }
}

/* ── Dark card variant ────────────────────────────────────── */
.card-dark {
  background: #1a1714;
  color: #f0ebe2;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}

.card-dark h3 {
  color: #f0ebe2;
}

.card-dark .hours-table td:first-child {
  color: rgba(240,235,226,0.92);
}

.card-dark .hours-table td:last-child {
  color: rgba(240,235,226,0.62);
}

.card-dark .hours-table tr {
  border-color: rgba(240,235,226,0.08);
}

/* ── Rating Block ─────────────────────────────────────────── */
.rating-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rating-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.rating-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rating-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-muted);
  padding: 1rem 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  font-family: var(--font-body);
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .site-footer a { color: var(--brand-light); }
}

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

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 0.65s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.34s; }
.fade-up-4 { animation-delay: 0.48s; }

/* ── Focus (WCAG) ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted) !important; }
.text-brand  { color: var(--brand) !important; }
.mt-1  { margin-top: 1rem; }
.mt-2  { margin-top: 2rem; }
.mb-1  { margin-bottom: 1rem; }
.mb-2  { margin-bottom: 2rem; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-1 { gap: 1rem; }
