:root {
  --bg: #0f0a08;
  --surface: #18110d;
  --surface-2: #231913;
  --text: #f7efe7;
  --muted: #bda996;
  --accent: #c67c3f;
  --accent-2: #e2a86f;
  --header-bg: rgba(15, 10, 8, 0.78);
  --header-border: rgba(255,255,255,0.07);
  --nav-bg: rgba(255,255,255,0.08);
  --nav-panel-bg: rgba(24, 17, 13, 0.94);
  --nav-panel-border: rgba(255,255,255,0.08);
  --hero-card-bg: rgba(15, 10, 8, 0.6);
  --hero-copy-text: #efe0d1;
  --toggle-bg: rgba(255,255,255,0.12);
  --toggle-thumb: #c67c3f;
  --toggle-border: rgba(255,255,255,0.18);
  --price-color: #f6dfc5;
  --hours-card-bg: linear-gradient(135deg, rgba(35, 25, 19, 0.8) 0%, rgba(24, 17, 13, 0.6) 100%);
  --hours-card-border: rgba(226, 168, 111, 0.3);
  --hours-accent: #e2a86f;
  --hours-muted: #bda996;
  --hours-gradient: linear-gradient(135deg, #f7efe7 0%, #e2a86f 50%, #c67c3f 100%);
}

body.theme-matcha,
html.theme-matcha {
  --bg: #f3f7f1;
  --surface: #edf8ee;
  --surface-2: #f9fbf7;
  --text: #173223;
  --muted: #53715f;
  --accent: #4fae6d;
  --accent-2: #2d7a4b;
  --header-bg: rgba(255, 255, 255, 0.76);
  --header-border: rgba(69, 117, 82, 0.15);
  --nav-bg: rgba(19, 108, 67, 0.08);
  --nav-panel-bg: rgba(246, 251, 247, 0.96);
  --nav-panel-border: rgba(45, 122, 75, 0.2);
  --hero-card-bg: rgba(255, 255, 255, 0.66);
  --hero-copy-text: #173223;
  --toggle-bg: rgba(79, 174, 109, 0.15);
  --toggle-thumb: #2d7a4b;
  --toggle-border: rgba(45, 122, 75, 0.2);
  --price-color: #1d4d32;
  --hours-card-bg: linear-gradient(135deg, rgba(225, 236, 228, 0.9) 0%, rgba(203, 222, 208, 0.8) 100%);
  --hours-card-border: rgba(45, 122, 75, 0.25);
  --hours-accent: #2d7a4b;
  --hours-muted: #3d6c52;
  --hours-gradient: #1d4d32;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-2) var(--surface);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-2);
  border: 2px solid var(--surface);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f0bd89;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(198, 124, 63, 0.14), transparent 30%),
    linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, #17110c 18%) 45%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
  transition: background 220ms ease, color 220ms ease;
}

img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  transition: transform 240ms ease, background 220ms ease, border-color 220ms ease;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  border-bottom: 1px solid var(--header-border);
}

.site-header.is-scrolling {
  transform: translateY(-100%);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
}

.theme-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
}

.theme-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease;
}

.theme-label-matcha {
  opacity: 0.7;
}

.theme-toggle {
  position: relative;
  width: 3.7rem;
  height: 2rem;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  padding: 0.2rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.toggle-thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--toggle-thumb);
  box-shadow: 0 0.25rem 0.8rem rgba(0,0,0,0.16);
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle.is-matcha {
  background: rgba(79, 174, 109, 0.18);
}

.theme-toggle.is-matcha .toggle-thumb {
  transform: translateX(1.65rem);
}

.theme-toggle.is-matcha ~ .theme-label-matcha,
.theme-toggle:not(.is-matcha) ~ .theme-label-coffee {
  color: var(--text);
  opacity: 1;
}

.theme-toggle:not(.is-matcha) ~ .theme-label-matcha,
.theme-toggle.is-matcha ~ .theme-label-coffee {
  opacity: 0.7;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--muted);
  background: transparent;
  border: 0;
}

body.theme-matcha .site-nav {
  color: var(--text);
}

body.theme-matcha .site-nav a {
  color: var(--text);
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0.7rem;
  border-radius: 0;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-2);
  transition: width 180ms ease, left 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 70%;
  left: 15%;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  position: relative;
  padding: 6rem 0 4rem;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero-bg-coffee {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.75), rgba(0,0,0,0.35)),
    url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1600&q=80');
  opacity: 1;
}

.hero-bg-matcha {
  background-image:
    linear-gradient(90deg, rgba(238, 249, 241, 0.52), rgba(142, 183, 152, 0.28)),
    url('https://images.unsplash.com/photo-1515823064-d6e0c04616a7?auto=format&fit=crop&w=1600&q=80');
  opacity: 0;
}

body.theme-matcha .hero-bg-coffee {
  opacity: 0;
}

body.theme-matcha .hero-bg-matcha {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-copy {
  max-width: 620px;
  padding: 2rem;
  border-radius: 24px;
  background: var(--hero-card-bg);
  backdrop-filter: blur(10px);
  transition: background 220ms ease;
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.8rem;
}

.hero p {
  color: var(--hero-copy-text);
  font-size: 1rem;
}

.hero-actions,
.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

.section {
  padding: 5rem 0;
}

.alt-section {
  background: rgba(255,255,255,0.03);
}

.section-heading {
  margin-bottom: 2rem;
}

.menu-grid,
.best-sellers-grid,
.instagram-grid {
  display: grid;
  gap: 1.2rem;
}

.menu-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.product-card,
.map-card,
.reservation-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.3rem;
}

.product-card {
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(226, 168, 111, 0.65);
  box-shadow: 0 16px 34px rgba(198, 124, 63, 0.32), 0 0 24px rgba(226, 168, 111, 0.18);
}

.product-card img {
  height: 190px;
  margin: -1.3rem -1.3rem 1.25rem;
  width: calc(100% + 2.6rem);
  border-radius: 18px 18px 0 0;
  object-fit: cover;
}

.card .price {
  position: absolute;
  right: 1.3rem;
  bottom: 1.3rem;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
  color: var(--price-color);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  opacity: 0.98;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

body.theme-matcha .card .price {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.card::after {
  content: 'Click me';
  position: absolute;
  left: 1.3rem;
  bottom: 1.4rem;
  padding: 0.2rem 0.55rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-family: 'Indie Flower', cursive;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.card:hover::after,
.card:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.card {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-9px);
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(226, 168, 111, 0.7);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.36), 0 0 30px rgba(226, 168, 111, 0.16);
}

.card:hover img,
.card:focus-within img {
  filter: brightness(0.92) saturate(1.08);
}

.card img {
  height: 240px;
  margin: -1.3rem -1.3rem 1.25rem;
  width: calc(100% + 2.6rem);
  border-radius: 18px 18px 0 0;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.card:hover img,
.card:focus-within img {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.08);
}

.menu-card {
  min-height: 425px;
  padding: 0;
  perspective: 1200px;
  cursor: pointer;
  background: transparent;
}

.menu-card:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.menu-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 425px;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(.2, .75, .25, 1);
}

.menu-card.is-flipped .menu-card-inner {
  transform: rotateY(180deg);
}

.menu-card-front,
.menu-card-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: var(--surface);
}

.menu-card-front img {
  height: 260px;
  width: 100%;
  margin: 0;
  border-radius: 18px 18px 0 0;
}

.menu-card-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.15rem 1.3rem;
}

.menu-card-summary h3 {
  margin: 0;
}

.menu-card-price {
  color: var(--accent-2);
  font-weight: 700;
  white-space: nowrap;
}

.menu-card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #2b1b11, #17100c);
}

.menu-card-back > span {
  color: var(--accent-2);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-card-back p {
  margin: 1rem 0;
  font-size: 1.5rem;
}

.menu-card-back small {
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
}

.card h3,
.product-card h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card p,
.product-card p {
  margin: 0.65rem 0 0;
  color: #d9c7b5;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.best-sellers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-photo-stack {
  position: relative;
  min-height: 540px;
}

.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: opacity 500ms ease, transform 500ms ease;
}

.about-photo-coffee {
  opacity: 1;
}

.about-photo-matcha {
  opacity: 0;
}

body.theme-matcha .about-photo-coffee {
  opacity: 0;
}

body.theme-matcha .about-photo-matcha {
  opacity: 1;
}

.hours-container {
  text-align: center;
  padding: 3rem 0;
}

.hours-container h2 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: initial;
  background-clip: border-box;
}

body.theme-matcha .hours-container h2 {
  color: #1d4d32;
  background: none;
  -webkit-text-fill-color: initial;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hours-list li {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem;
  border: 1px solid var(--hours-card-border);
  border-radius: 20px;
  background: var(--hours-card-bg);
  backdrop-filter: blur(12px);
  transition: all 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.hours-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(226, 168, 111, 0.1), transparent);
  transition: left 500ms ease;
}

.hours-list li:hover {
  border-color: rgba(226, 168, 111, 0.55);
  background: linear-gradient(135deg, rgba(31, 21, 16, 0.98) 0%, rgba(48, 31, 20, 0.94) 100%);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34), 0 0 30px rgba(198, 124, 63, 0.16);
}

body.theme-matcha .hours-list li::before {
  background: linear-gradient(90deg, transparent, rgba(45, 122, 75, 0.1), transparent);
}

body.theme-matcha .hours-list li:hover {
  border-color: rgba(45, 122, 75, 0.6);
  background: linear-gradient(135deg, rgba(205, 228, 213, 0.95) 0%, rgba(173, 204, 181, 0.9) 100%);
  box-shadow: 0 20px 50px rgba(79, 174, 109, 0.18), 0 0 30px rgba(45, 122, 75, 0.12);
}

.hours-list li:hover::before {
  left: 100%;
}

.hours-list li span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hours-muted);
  letter-spacing: 0.02em;
}

.hours-list li strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--hours-accent);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(45, 122, 75, 0.12);
}

.instagram-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 16px;
}

.reservation-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 30;
  background: #25d366;
  color: white;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25);
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .best-sellers-grid,
  .instagram-grid,
  .about-grid,
  .hours-grid,
  .reservation-card {
    grid-template-columns: 1fr;
  }

  .reservation-card {
    display: grid;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-actions {
    margin-left: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    flex-direction: column;
    background: var(--nav-panel-bg);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--nav-panel-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  }

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

  .hero {
    padding-top: 4rem;
  }

  .menu-grid,
  .best-sellers-grid,
  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 1.25rem;
  }
}
