﻿/* ==============================================
   BREW & BITE CAFE � PREMIUM DEMO
   Warm Editorial Magazine Aesthetic
   ============================================== */

/* --- Custom Properties --- */
:root {
  --color-primary: oklch(38% 0.06 170);
  --color-primary-fallback: #2d6a4f;
  --color-accent: oklch(68% 0.14 85);
  --color-accent-fallback: #c77d2e;
  --color-bg: #faf9f6;
  --color-bg-alt: #f2efea;
  --color-text: #1b2e28;
  --color-text-secondary: #5a6e66;
  --color-card-border: rgba(45, 106, 79, 0.08);
  --color-star: #c77d2e;
  --color-footer-bg: #1b2e28;
  --color-footer-text: #f2efea;

  --font-display: 'Cormorant Infant', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-accent: 'Caveat', cursive;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);

  --shadow-sm: 0 2px 8px rgba(27, 46, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 46, 40, 0.08);

  --container: 1080px;
  --radius: 6px;
  --radius-lg: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1rem);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

ul { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-fallback);
  margin-bottom: 12px;
}
.section-tag.center { display: block; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  color: var(--color-text);
}
.section-title--left { text-align: center; }

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 106, 79, 0.15), transparent);
  max-width: 600px;
  margin: 0 auto;
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  transition: background-color 0.3s var(--ease-out-quart),
              color 0.3s var(--ease-out-quart),
              transform 0.3s var(--ease-out-quart),
              border-color 0.3s var(--ease-out-quart);
  white-space: nowrap;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--color-primary-fallback);
  color: #faf9f6;
}
.btn--primary:hover {
  background-color: #5a3e2b;
}

.btn--outline-light {
  border: 1.5px solid rgba(250, 249, 246, 0.5);
  color: #faf9f6;
  background: transparent;
}
.btn--outline-light:hover {
  background: rgba(250, 249, 246, 0.12);
  border-color: rgba(250, 249, 246, 0.8);
}

.btn--full { width: 100%; }

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-accent-fallback);
  z-index: 1000;
  transition: none;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0 24px;
  transition: background-color 0.4s var(--ease-out-quart),
              box-shadow 0.4s var(--ease-out-quart),
              padding 0.3s var(--ease-out-quart);
}
.navbar--scrolled {
  background-color: rgba(250, 249, 246, 0.97);
  box-shadow: 0 1px 8px rgba(27, 46, 40, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #faf9f6;
  transition: color 0.4s var(--ease-out-quart);
}
.navbar--scrolled .navbar__logo { color: var(--color-text); }
.navbar__logo span {
  font-style: italic;
  color: var(--color-accent-fallback);
}

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

.navbar__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 249, 246, 0.8);
  transition: color 0.3s var(--ease-out-quart);
  position: relative;
}
.navbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--color-accent-fallback);
  transition: width 0.3s var(--ease-out-quart);
}
.navbar__link:hover::after { width: 100%; }
.navbar--scrolled .navbar__link { color: var(--color-text-secondary); }
.navbar--scrolled .navbar__link:hover { color: var(--color-text); }

.navbar__cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-fallback);
  color: #faf9f6;
  transition: background-color 0.3s var(--ease-out-quart),
              transform 0.3s var(--ease-out-quart);
}
.navbar__cta:hover {
  background-color: #c26a00;
  transform: translateY(-2px);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 910;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #faf9f6;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-quart),
              opacity 0.3s var(--ease-out-quart),
              background-color 0.3s var(--ease-out-quart);
}
.navbar--scrolled .navbar__hamburger span { background: var(--color-text); }
.navbar__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 55vh;
  min-height: 55dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s linear;
}
.hero.loaded .hero__bg { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 46, 40, 0.55) 0%,
    rgba(27, 46, 40, 0.7) 50%,
    rgba(27, 46, 40, 0.8) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(250, 249, 246, 0.75);
  background: rgba(250, 249, 246, 0.08);
  border: 1px solid rgba(250, 249, 246, 0.12);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2rem + 4vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #faf9f6;
  margin-bottom: 20px;
  max-width: 680px;
  margin-inline: auto;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.1rem);
  color: rgba(250, 249, 246, 0.75);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}

.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  justify-content: center;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #faf9f6;
  line-height: 1;
}
.hero__stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-fallback);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(250, 249, 246, 0.55);
  margin-top: 4px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(250, 249, 246, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__mouse-wheel {
  width: 3px;
  height: 8px;
  background: rgba(250, 249, 246, 0.5);
  border-radius: 3px;
  animation: mouseScroll 1.8s var(--ease-out-quart) infinite;
}
@keyframes mouseScroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* --- Marquee --- */
.marquee {
  background: var(--color-text);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
}
.marquee__content {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-bg);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  padding-right: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Story / About --- */
.story {
  padding: 72px 0;
  background: var(--color-bg);
}
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
.story__image-col { position: relative; }
.story__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 3px solid var(--color-accent-fallback);
}
.story__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.story__image-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(27, 46, 40, 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #faf9f6;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.3;
}
.story__image-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent-fallback);
}
.story__image-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
}

.story__text-col p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.story__quote {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
}
.story__quote p {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.story__quote cite {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  font-style: normal;
}

.story__highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  align-items: center;
}
.story__highlight {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-direction: column;
  text-align: center;
  max-width: 30rem;
}
.story__highlight img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.story__highlight strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}
.story__highlight span {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- Menu Section --- */
.menu-section {
  padding: 72px 0;
  background: var(--color-bg-alt);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.menu-tab {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 100px;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1.5px solid var(--color-card-border);
  transition: all 0.3s var(--ease-out-quart);
  min-height: 44px;
}
.menu-tab:hover {
  border-color: var(--color-primary-fallback);
  color: var(--color-text);
}
.menu-tab.active {
  background: var(--color-primary-fallback);
  color: #faf9f6;
  border-color: var(--color-primary-fallback);
}

.menu-panels { position: relative; }
.menu-panel {
  display: none;
  animation: fadePanel 0.4s var(--ease-out-quart);
}
.menu-panel.active { display: block; }
@keyframes fadePanel {
  from { opacity: 0; }
  to { opacity: 1; }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-card-border);
  transition: transform 0.3s var(--ease-out-quart),
              box-shadow 0.3s var(--ease-out-quart);
}
.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.menu-item img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.menu-item__info { flex: 1; min-width: 0; }
.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.menu-item__header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.menu-item__price {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-fallback);
  flex-shrink: 0;
  white-space: nowrap;
}
.menu-item__info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- Parallax Break --- */
.parallax-break {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.parallax-break__bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.parallax-break__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 46, 40, 0.75);
}
.parallax-break__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 24px;
}
.parallax-break__quote {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 600;
  color: #faf9f6;
  line-height: 1.2;
  margin-bottom: 12px;
}
.parallax-break__cite {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: rgba(250, 249, 246, 0.6);
  font-style: normal;
}

/* --- Gallery --- */
.gallery {
  padding: 72px 0;
  background: var(--color-bg);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  margin: 0;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(27, 46, 40, 0.8));
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: #faf9f6;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-quart);
}
.gallery__item:hover figcaption { transform: translateY(0); }

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__instagram-link {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-fallback);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-out-quart);
}
.gallery__instagram-link:hover {
  color: var(--color-accent-fallback);
}

/* --- Reviews --- */
.reviews {
  padding: 72px 0;
  background: var(--color-bg-alt);
}
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.reviews__featured {
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.reviews__badge-wrap { margin-bottom: 16px; }
.reviews__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(199, 125, 46, 0.1);
  color: var(--color-accent-fallback);
}
.reviews__stars {
  font-size: 1.1rem;
  color: var(--color-star);
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.reviews__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  border: none;
  padding: 0;
}
.reviews__featured .reviews__text {
  font-size: 1.1rem;
  color: var(--color-text);
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.8;
}
.reviews__author {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.reviews__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.reviews__author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.reviews__author span {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.reviews__small-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.reviews__small {
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 24px;
}

/* --- Instagram --- */
.instagram {
  padding: 72px 0;
  background: var(--color-bg);
}
.instagram__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.instagram__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
}
.instagram__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-quart);
}
.instagram__item:hover img { transform: scale(1.06); }
.instagram__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 46, 40, 0.5);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-quart);
}
.instagram__item:hover .instagram__overlay { opacity: 1; }
.instagram__overlay span {
  color: #faf9f6;
  font-weight: 600;
  font-size: 1rem;
}

/* --- Visit --- */
.visit {
  padding: 72px 0;
  background: var(--color-bg-alt);
}
.visit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.visit__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  justify-items: center;
  text-align: center;
}
.visit__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.visit__info-item strong {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-fallback);
}
.visit__info-item span,
.visit__info-item a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.visit__info-item a {
  transition: color 0.2s var(--ease-out-quart);
}
.visit__info-item a:hover { color: var(--color-text); }
.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
}
.visit__map img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* --- Contact --- */
.contact {
  padding: 72px 0;
  background: var(--color-bg);
}
.contact__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-top: -32px;
  margin-bottom: 48px;
}
.contact__form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}
.contact__field label span {
  font-weight: 400;
  color: var(--color-text-secondary);
}
.contact__field input,
.contact__field select,
.contact__field textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  border: 1.5px solid rgba(45, 106, 79, 0.15);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s var(--ease-out-quart);
  min-height: 44px;
}
.contact__field input:focus,
.contact__field select:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--color-primary-fallback);
}
.contact__field textarea { resize: vertical; }
.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: rgba(107, 91, 78, 0.5);
}

/* --- Footer --- */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 249, 246, 0.08);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #faf9f6;
  display: inline-block;
  margin-bottom: 12px;
}
.footer__logo span {
  font-style: italic;
  color: var(--color-accent-fallback);
}
.footer__tagline {
  font-size: 0.9rem;
  color: rgba(250, 249, 246, 0.5);
  margin-bottom: 20px;
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  font-size: 1.4rem;
  transition: transform 0.3s var(--ease-out-quart);
}
.footer__social a:hover { transform: translateY(-2px); }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links strong {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 249, 246, 0.4);
  margin-bottom: 4px;
}
.footer__links a {
  font-size: 0.9rem;
  color: rgba(250, 249, 246, 0.65);
  transition: color 0.2s var(--ease-out-quart);
}
.footer__links a:hover { color: #faf9f6; }

.footer__hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__hours strong {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 249, 246, 0.4);
  margin-bottom: 4px;
}
.footer__hours span {
  font-size: 0.9rem;
  color: rgba(250, 249, 246, 0.65);
}
.footer__hours-gap { margin-top: 8px; }

.footer__bottom {
  padding-top: 24px;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(250, 249, 246, 0.35);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 800;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #faf9f6;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s var(--ease-out-quart),
              box-shadow 0.3s var(--ease-out-quart);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- Demo Banner --- */
.demo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  background: var(--color-text);
  padding: 12px 24px;
  text-align: center;
}
.demo-banner p {
  font-size: 0.8rem;
  color: rgba(250, 249, 246, 0.7);
}
.demo-banner strong {
  color: var(--color-accent-fallback);
}
.demo-banner a {
  color: var(--color-accent-fallback);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-out-quart);
}
.demo-banner a:hover { color: #d4a042; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-quart),
              transform 0.6s var(--ease-out-quart);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__bg { transform: scale(1) !important; }
  .parallax-break__bg { background-attachment: scroll !important; }
}

/* ==============================================
   RESPONSIVE � Mobile First
   ============================================== */

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

  .hero__stats {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .hero__stat {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(250, 249, 246, 0.12);
  }

  .hero__stat:last-child {
    border-bottom: 0;
  }

  .btn {
    width: 100%;
    white-space: normal;
  }

  .menu-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-tab {
    width: 100%;
    white-space: normal;
    padding: 12px 14px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .menu-item {
    padding: 16px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-card-border);
    border-radius: 0;
    box-shadow: none;
  }

  .menu-item:hover {
    transform: none;
    box-shadow: none;
  }

  .reviews__small-wrap {
    gap: 0;
  }

  .reviews__featured,
  .reviews__small {
    padding: 20px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-card-border);
    border-radius: 0;
  }

  .visit__info-grid,
  .contact__row {
    grid-template-columns: 1fr;
  }
}

/* 640px+ */
@media (min-width: 640px) {
  .reviews__small-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__grid {
    grid-auto-rows: 280px;
  }
}

/* 768px+ */
@media (min-width: 768px) {
  .story__grid {
    grid-template-columns: 45% 1fr;
    gap: 64px;
  }
  .visit__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .reviews__grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
}

/* 1024px+ */
@media (min-width: 1024px) {
  .navbar__hamburger { display: none !important; }
  .navbar__menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    width: auto;
    height: auto;
    box-shadow: none;
  }
  .navbar__link,
  .navbar__cta {
    opacity: 1 !important;
    transform: none !important;
  }

  .gallery__grid {
    grid-auto-rows: 260px;
    gap: 20px;
  }

  .hero__stats { gap: 64px; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .navbar__hamburger {
    display: flex;
  }
  .navbar__menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(250, 249, 246, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 905;
  }
  .navbar__menu.open {
    display: flex;
  }
  .navbar__menu .navbar__link {
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 600;
  }
  .navbar__menu .navbar__link::after { display: none; }
  .navbar__menu .navbar__cta {
    font-size: 1rem;
    padding: 14px 32px;
  }
  .navbar__hamburger.active span { background: var(--color-text) !important; }

  /* Reduce section padding for mobile */
  .story,
  .menu-section,
  .gallery,
  .reviews,
  .visit,
  .contact { padding: 48px 0; }

  .section-title { margin-bottom: 28px; }

  /* Shorter hero */
  .hero { min-height: 50vh; min-height: 50dvh; }
  .hero__content { padding: 96px 24px 48px; }
  .hero__subtitle { margin-bottom: 24px; }
  .hero__actions { margin-bottom: 32px; }
  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 24px;
  }
  .hero__stat-number, .hero__stat-suffix { font-size: 1.5rem; }
  .hero__scroll { display: none; }

  /* Marquee tighter */
  .marquee { padding: 10px 0; }

  /* Smaller story gap */
  .story__grid { gap: 32px; }
  .story__quote { margin: 16px 0; padding: 12px 0 12px 16px; }
  .story__highlights { gap: 16px; margin-top: 20px; }

  /* Menu compact */
  .menu-tabs { margin-bottom: 24px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-item { padding: 14px; gap: 12px; }
  .menu-item img { width: 48px; height: 48px; }

  /* Gallery compact */
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 8px;
  }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }

  /* Reviews compact */
  .reviews__featured { padding: 20px; }
  .reviews__small { padding: 16px; }

  /* Visit compact */
  .visit__info-grid { gap: 16px; }
  .visit__map img { height: 200px; }

  /* Contact compact */
  .contact__subtitle { margin-top: -16px; margin-bottom: 28px; }
  .contact__form { gap: 16px; }
  .contact__row { grid-template-columns: 1fr; }

  /* Footer compact */
  .footer { padding: 40px 0 16px; }
  .footer__grid { gap: 28px; padding-bottom: 24px; }
}

/* Small mobile (<400px) */
@media (max-width: 400px) {
  .story,
  .menu-section,
  .gallery,
  .reviews,
  .visit,
  .contact { padding: 36px 0; }

  .hero { min-height: 45vh; min-height: 45dvh; }
  .hero__content { padding: 80px 16px 40px; }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 1; }

  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn { width: 100%; }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .demo-banner {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .whatsapp-float {
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
  }
}
