/* ============================================
   DARK BEANS — Design System & Styles
   Luxury Minimal Cafe Landing Page
   ============================================ */

/* --- Google Fonts ---
   Fraunces: modern variable serif with optical-sizing — same warm
              editorial feel as Playfair but more contemporary character.
   Inter:    geometric sans for body & UI, multiple weights. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors — Tuned to logo: dark coffee-bean brown + caramel + cream */
  --color-primary:          #2A1A10;   /* Coffee-bean brown — hero bg, dark sections */
  --color-primary-light:    #3D2818;   /* Coffee-cup brown */
  --color-accent:           #C8915B;   /* Caramel — matches logo circle */
  --color-accent-dark:      #8B5E2F;   /* Roasted caramel — accessible for text */
  --color-accent-light:     #E8C9A0;   /* Light caramel tint */
  --color-background:       #FAF5EC;   /* Cream page bg — matches ribbon */
  --color-surface:          #FFFFFF;   /* White cards, nav */
  --color-surface-warm:     #F0E6D4;   /* Warm ribbon-cream card bg */
  --color-text:             #1F1410;   /* Primary text — deep brown-black */
  --color-text-muted:       #6E5B4C;   /* Supporting / caption text */
  --color-border:           #E5D9C5;   /* Warm dividers */
  --color-footer-bg:        #1A0F08;   /* Deepest roast footer */
  --color-footer-text:      #D4BC9A;   /* Warm light caramel footer text */
  --color-hero-overlay:     rgba(42, 26, 16, 0.65);

  /* Typography */
  --font-serif:     'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans:      'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-8:   48px;
  --space-10:  64px;
  --space-12:  80px;
  --space-16:  120px;

  /* Border Radius */
  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-lg:    6px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.12);

  /* Animation */
  --duration-fast:    200ms;
  --duration-normal:  350ms;
  --duration-slow:    600ms;
  --ease-default:     ease-out;
  --ease-smooth:      cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-default);
}

ul, ol {
  list-style: none;
}

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

/* --- Typography --- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  line-height: 1.4;
}

h1, .h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.3;
}

h4, .h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

p.lead {
  font-size: 18px;
  line-height: 1.6;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-10);
  }
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-12) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-10);
}

.section-header .eyebrow {
  margin-bottom: var(--space-4);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.section-header p {
  font-size: 17px;
}

/* --- Gold Divider --- */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border: none;
  margin: var(--space-5) auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-5) 0;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3) 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-surface);
  transition: color var(--duration-fast) var(--ease-default);
  letter-spacing: 0.02em;
}

.navbar.scrolled .nav-logo-text {
  color: var(--color-text);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  position: relative;
  padding: var(--space-1) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.navbar.scrolled .nav-links a {
  color: var(--color-text-muted);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--color-accent-dark);
}

.nav-cta {
  display: none;
}

@media (min-width: 992px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-cta .btn-primary {
  padding: 10px 24px;
  font-size: 13px;
}

/* Mobile hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 992px) {
  .nav-hamburger {
    display: none;
  }
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-surface);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled .nav-hamburger span {
  background: var(--color-text);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-surface);
  padding: var(--space-16) var(--space-6) var(--space-8);
  z-index: 999;
  transition: right var(--duration-slow) var(--ease-smooth);
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-default);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:hover {
  color: var(--color-accent-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  /* Continuous slow ambient zoom + pan (Ken Burns style).
     Alternate direction = goes back and forth without snapping. */
  animation: heroKenburns 32s ease-in-out infinite alternate;
}

@keyframes heroKenburns {
  0%   { transform: scale(1.06) translate(0%, 0%); }
  100% { transform: scale(1.18) translate(-2%, -1.5%); }
}

.hero.loaded .hero-bg img {
  /* Kept for backwards compat with the load class — animation continues. */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 12, 8, 0.78) 0%,
    rgba(20, 16, 12, 0.55) 50%,
    rgba(15, 12, 8, 0.72) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: var(--space-16) 0;
}

.hero-content .eyebrow {
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-smooth) 0.3s forwards;
}

.hero-content h1 {
  color: var(--color-surface);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-smooth) 0.5s forwards;
}

.hero-content h1 span {
  color: var(--color-accent);
  font-style: italic;
}

.hero-content .hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-8);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-smooth) 0.7s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-smooth) 0.9s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-smooth) 1.2s forwards;
}

.scroll-indicator span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-surface);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-surface);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(201, 169, 110, 0.08);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  transition: all var(--duration-fast) var(--ease-default);
}

.btn-text:hover {
  color: var(--color-accent);
  gap: var(--space-3);
}

.btn-text svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-default);
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* ============================================
   ABOUT / STORY SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

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

/* Gold corner accent */
.about-image::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100px;
  height: 100px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  border-radius: 0 var(--radius-md) 0 0;
  pointer-events: none;
}

.about-content .eyebrow {
  margin-bottom: var(--space-4);
}

.about-content h2 {
  margin-bottom: var(--space-5);
}

.about-content p {
  margin-bottom: var(--space-5);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--color-accent-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ============================================
   SERVICES / OFFERINGS SECTION
   ============================================ */
.services-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.services-section .section-header h2 {
  color: var(--color-surface);
}

.services-section .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-primary-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 110, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.service-card:hover .service-card-image img {
  transform: scale(1.06);
}

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

.service-card-body .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.service-card-body .card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.service-card-body h3 {
  color: var(--color-surface);
  margin-bottom: var(--space-3);
}

.service-card-body p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  margin-bottom: var(--space-5);
}

/* ============================================
   BARISTA TRAINING SECTION (Feature Highlight)
   ============================================ */
.training-section {
  background: var(--color-background);
}

.training-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 992px) {
  .training-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-16);
  }
}

.training-content .eyebrow {
  margin-bottom: var(--space-4);
}

.training-content h2 {
  margin-bottom: var(--space-5);
}

.training-content p {
  margin-bottom: var(--space-6);
}

.training-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.training-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.training-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.training-feature-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.training-feature-text h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.training-feature-text p {
  font-size: 14px;
  margin-bottom: 0;
}

.training-image-wrapper {
  position: relative;
}

.training-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

/* Experience badge */
.experience-badge {
  position: absolute;
  bottom: -20px;
  left: 30px;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.experience-badge .badge-number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.experience-badge .badge-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
  display: block;
}

/* ============================================
   MENU HIGHLIGHTS
   ============================================ */
.menu-section {
  background: var(--color-surface-warm);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-category {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.menu-category:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 169, 110, 0.2);
}

.menu-category h3 {
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.menu-category h3 svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.menu-category .cat-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px dotted var(--color-border);
}

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

.menu-item-name {
  font-weight: 500;
  color: var(--color-text);
  font-size: 15px;
}

.menu-item-price {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-accent-dark);
  font-size: 16px;
  white-space: nowrap;
  margin-left: var(--space-4);
}

/* ============================================
   GALLERY / AMBIANCE
   ============================================ */
.gallery-section {
  background: var(--color-background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item.tall {
  aspect-ratio: 4 / 5;
}

@media (min-width: 1100px) {
  .gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 8, 0.6), transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--color-surface);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: var(--color-primary);
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.testimonials-section .section-header h2 {
  color: var(--color-surface);
}

.testimonials-section .section-header p {
  color: rgba(255, 255, 255, 0.55);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .testimonials-slider {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--color-primary-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
}

.testimonial-author-info h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-surface);
}

.testimonial-author-info span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.testimonial-stars {
  margin-bottom: var(--space-5);
  display: flex;
  gap: 2px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* ============================================
   VISIT / CONTACT SECTION
   ============================================ */
.visit-section {
  background: var(--color-surface-warm);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 992px) {
  .visit-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.visit-info h2 {
  margin-bottom: var(--space-5);
}

.visit-info > p {
  margin-bottom: var(--space-8);
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.visit-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.visit-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visit-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-dark);
}

.visit-detail-text h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.visit-detail-text p {
  font-size: 15px;
  margin-bottom: 0;
}

.visit-detail-text a {
  color: var(--color-accent-dark);
  font-weight: 500;
}

.visit-detail-text a:hover {
  color: var(--color-accent);
}

.visit-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 400px;
  background: var(--color-border);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-footer-bg);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .nav-logo-text {
  color: var(--color-surface);
  font-size: 28px;
  margin-bottom: var(--space-4);
  display: block;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  max-width: 280px;
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-default);
}

.footer-social a:hover {
  border-color: var(--color-accent);
  background: rgba(201, 169, 110, 0.1);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast);
}

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

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-surface);
  margin-bottom: var(--space-5);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  padding: var(--space-2) 0;
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ============================================
   SCROLL-TO-TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-dark);
  color: var(--color-surface);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   ANIMATIONS — Scroll Reveal
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              transform var(--duration-slow) var(--ease-smooth);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-smooth),
              transform 0.5s var(--ease-smooth);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 500ms; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.count-up {
  display: inline-block;
}

/* ============================================
   RESPONSIVE FINE-TUNING
   ============================================ */
@media (max-width: 767px) {
  .hero-content {
    padding: 100px 0 80px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    text-align: center;
    justify-content: center;
  }

  .about-image::after {
    display: none;
  }

  .experience-badge {
    bottom: -16px;
    left: 16px;
    padding: var(--space-4) var(--space-5);
  }

  .experience-badge .badge-number {
    font-size: 28px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .scroll-indicator {
    display: none;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}

/* --- Loading screen --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-5);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.loader-logo-img {
  width: 140px;
  height: auto;
  display: block;
  object-fit: contain;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 2px;
  animation: loaderFill 1.5s ease forwards;
}

@keyframes loaderFill {
  0%   { width: 0; }
  50%  { width: 70%; }
  100% { width: 100%; }
}

/* ============================================================
   MODERN MOBILE-FIRST REFINEMENTS
   ------------------------------------------------------------
   Borrows polish from the TechNotes (note.iothub.online)
   reference — clean sans-serif nav, gradient CTAs, generous
   tap targets, fluid type, soft cards — while keeping the
   warm Dark Beans coffee identity.
   Everything below intentionally OVERRIDES earlier rules so
   it can be tuned or removed without touching the original
   design system.
   ============================================================ */

/* --- Global polish --- */
html { -webkit-tap-highlight-color: transparent; }
body { text-rendering: optimizeLegibility; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
section[id] { scroll-margin-top: 80px; }

/* --- Hero: restore horizontal padding (was overridden to 0) --- */
.hero-content {
  padding: clamp(80px, 18vw, 120px) var(--space-5);
}
@media (min-width: 768px) {
  .hero-content {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* --- Fluid typography --- */
.hero-content h1 {
  font-size: clamp(40px, 10vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(16px, 4vw, 24px);
}
.hero-content .hero-desc {
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.65;
  margin-bottom: clamp(28px, 6vw, 48px);
}
.hero-content .eyebrow {
  font-size: clamp(10px, 2.8vw, 11px);
  letter-spacing: 0.14em;
}
.section h2,
.section-header h2 {
  font-size: clamp(28px, 7vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.section p,
.section-header p {
  font-size: clamp(15px, 3.6vw, 17px);
}

/* Let headings flow naturally on small screens (suppress hard breaks) */
@media (max-width: 600px) {
  .hero-content h1 br,
  .section h2 br,
  .section-header h2 br { display: none; }
}

/* --- Section vertical rhythm tighter on mobile --- */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
}

/* --- Logo: hide redundant "Dark Beans" wordmark on small screens --- */
@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .nav-logo-img { height: 36px; }
}
.nav-logo-img {
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.footer-logo-img {
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Modern hamburger (chip-style, blurred backdrop) --- */
.nav-hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
}
.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.navbar.scrolled .nav-hamburger {
  background: rgba(31, 20, 16, 0.06);
}
.navbar.scrolled .nav-hamburger:hover {
  background: rgba(31, 20, 16, 0.12);
}
.nav-hamburger span { width: 20px; }

/* --- Mobile menu: compact, modern, refined --- */
.mobile-menu {
  max-width: 296px;
  padding: 80px 22px 28px;
  background: var(--color-background);
  border-left: 1px solid var(--color-border);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.14);
}
.mobile-menu a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-text);
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: color var(--duration-fast) var(--ease-default),
              padding-left var(--duration-fast) var(--ease-default);
}
.mobile-menu a::after {
  content: '→';
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-accent-dark);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}
.mobile-menu a:hover,
.mobile-menu a:active {
  color: var(--color-accent-dark);
  padding-left: 6px;
}
.mobile-menu a:hover::after { opacity: 1; transform: translateX(0); }

/* Enroll Now CTA inside the drawer = gradient pill */
.mobile-menu .mobile-menu-cta {
  margin-top: 20px;
  padding: 13px 18px;
  font-size: 13px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-surface);
  border: none;
  border-radius: 10px;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(139, 94, 47, 0.28);
}
.mobile-menu .mobile-menu-cta::after { content: none; }
.mobile-menu .mobile-menu-cta:hover {
  padding-left: 18px;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(139, 94, 47, 0.36);
}

/* --- Buttons: bigger touch targets, gradient primary --- */
.btn-primary {
  min-height: 52px;
  padding: 16px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  box-shadow: 0 10px 28px rgba(139, 94, 47, 0.28);
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  box-shadow: 0 14px 36px rgba(139, 94, 47, 0.40);
  transform: translateY(-2px);
}
.btn-outline {
  min-height: 52px;
  padding: 16px 28px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

/* On phones, stack CTAs and let them fill the padded container */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* --- Cards: softer borders, gentle lift --- */
.service-card {
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(42, 26, 16, 0.14);
}

/* --- Menu category card + items: modern tabular prices --- */
.menu-category {
  border-radius: 16px;
}
.menu-item-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
}
.menu-item-price {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-accent-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* --- Testimonial cards a touch softer --- */
.testimonial-card { border-radius: 16px; }

/* NOTE: Earlier had a prefers-reduced-motion override here that killed
   the hero's slow Ken Burns motion when the OS had reduced-motion enabled.
   Removed — motion is part of the brand experience. */

/* --- Fraunces optical-size polish for display headings --- */
.hero-content h1,
.section h2,
.section-header h2,
.menu-category h3,
.service-card h3,
.testimonial-card .testimonial-author-info h4 {
  font-family: var(--font-serif);
  /* opsz 144 = display optical size (refined letterforms for big text) */
  font-variation-settings: 'opsz' 144;
  font-feature-settings: 'ss01', 'ss02';
}
/* For smaller serif use cases, drop to text optical size */
.menu-item-name,
.menu-item-price,
.eyebrow,
.nav-links a,
.mobile-menu a,
.btn-primary,
.btn-outline,
.btn-text,
.footer-col h4,
.footer-col a,
.footer-bottom {
  font-family: var(--font-sans);
}

