/* Mokamo Coffee House — menu-inspired design */

:root {
  --latte: #d4b896;
  --latte-light: #e8d4bc;
  --cream: #f5ebe0;
  --cream-dark: #ede0d0;
  --espresso: #3e2723;
  --mocha: #5c3d2e;
  --caramel: #a67c52;
  --terracotta: #c4785a;
  --white: #fffaf5;
  --shadow: rgba(62, 39, 35, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --nav-height: 76px;
  --nav-dark: #2a1812;
  --nav-dark-mid: #3e2723;
  --nav-gold: #c9a06c;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--latte);
  color: var(--espresso);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

/* Coffee bean edge decorations */
.bean-corner {
  position: fixed;
  width: clamp(80px, 14vw, 140px);
  height: clamp(80px, 14vw, 140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  background: url("../assets/coffee-beans.svg") center / contain no-repeat;
}

.bean-tl { top: 0.5rem; left: 0.5rem; }
.bean-tr { top: 0.5rem; right: 0.5rem; transform: scaleX(-1); }
.bean-bl { bottom: 0.5rem; left: 0.5rem; transform: scaleY(-1); }
.bean-br { bottom: 0.5rem; right: 0.5rem; transform: scale(-1); }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(42, 24, 18, 0.96) 0%,
    rgba(62, 39, 35, 0.92) 100%
  );
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 160, 108, 0.22);
  box-shadow: 0 4px 30px rgba(26, 14, 10, 0.28);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--nav-gold) 20%,
    var(--terracotta) 50%,
    var(--nav-gold) 80%,
    transparent 100%
  );
  opacity: 0.65;
}

.nav.scrolled {
  background: rgba(42, 24, 18, 0.98);
  box-shadow: 0 8px 40px rgba(26, 14, 10, 0.4);
  border-bottom-color: rgba(201, 160, 108, 0.35);
}

.nav-inner {
  width: min(1140px, 92%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-logo:hover {
  transform: translateY(-1px);
  background: rgba(255, 250, 245, 0.06);
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-logo:hover img {
  opacity: 0.95;
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 235, 224, 0.78);
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 250, 245, 0.08);
  border-color: rgba(201, 160, 108, 0.25);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--white);
  background: linear-gradient(135deg, rgba(196, 120, 90, 0.35), rgba(166, 124, 82, 0.25));
  border-color: rgba(201, 160, 108, 0.45);
  box-shadow: 0 4px 16px rgba(196, 120, 90, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  background: rgba(255, 250, 245, 0.08);
  border: 1px solid rgba(201, 160, 108, 0.3);
  border-radius: 12px;
  cursor: pointer;
  padding: 0.65rem 0.7rem;
  color: var(--cream);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 250, 245, 0.14);
  border-color: rgba(201, 160, 108, 0.5);
}

.nav-toggle.open {
  background: rgba(196, 120, 90, 0.25);
  border-color: rgba(201, 160, 108, 0.55);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.nav-toggle span:nth-child(2) {
  width: 16px;
  margin-left: auto;
}

.nav-toggle.open span:nth-child(2) {
  width: 22px;
  margin-left: 0;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Layout */
.page {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Hero */
.hero-banner {
  position: relative;
  height: min(72vh, 640px);
  overflow: hidden;
  background: var(--espresso);
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62, 39, 35, 0.75) 0%, rgba(62, 39, 35, 0.2) 55%, rgba(62, 39, 35, 0.35) 100%);
}

.hero-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2.5rem 0 3.5rem;
  color: var(--cream);
  max-width: 640px;
}

.hero-slide-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-slide-content p {
  margin-bottom: 1.25rem;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
  background: var(--cream);
  transform: scale(1.15);
}

.hero-intro {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero-intro-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-intro .hero-cta {
  justify-content: center;
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 3rem 0;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--espresso);
  color: var(--cream);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 span {
  display: block;
  color: var(--mocha);
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--mocha);
  max-width: 420px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.btn-primary {
  background: var(--espresso);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--mocha);
}

.btn-outline {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}

.btn-outline:hover {
  background: var(--espresso);
  color: var(--cream);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 20px 60px var(--shadow);
  transform: rotate(2deg);
}

.hero-card img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  bottom: -1rem;
  left: -1.5rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(196, 120, 90, 0.35);
  transform: rotate(-3deg);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--mocha);
}

/* Highlight strip */
.highlight-strip {
  background: var(--espresso);
  color: var(--cream);
  padding: 3rem 0;
  text-align: center;
}

.highlight-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.highlight-strip p {
  opacity: 0.85;
  font-size: 1.05rem;
}

/* Story cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.story-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow);
}

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

.story-card-body {
  padding: 1.75rem;
}

.story-card-body p {
  color: var(--mocha);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.passion-strip {
  background: var(--espresso);
  color: var(--cream);
  padding: 4rem 0;
  text-align: center;
}

.passion-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.35;
}

/* Moment sections */
.moment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.moment-section--reverse .moment-grid {
  direction: rtl;
}

.moment-section--reverse .moment-copy,
.moment-section--reverse .moment-media {
  direction: ltr;
}

.moment-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3/2;
  object-fit: cover;
  box-shadow: 0 16px 48px var(--shadow);
}

.moment-copy .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.moment-copy p {
  color: var(--mocha);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Preview menu cards on home */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.preview-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.preview-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px var(--shadow);
}

.preview-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.preview-card-body {
  padding: 1rem;
}

.preview-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.preview-card .price {
  font-weight: 600;
  color: var(--caramel);
  font-size: 0.9rem;
}

/* Contact / Info */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--latte);
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.info-list .icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--latte);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  background: var(--cream-dark);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-logo {
  height: 48px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

/* ========== MENU PAGE ========== */
.menu-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.menu-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
}

.menu-hero p {
  color: var(--mocha);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.menu-note {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  background: rgba(62, 39, 35, 0.08);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
}

/* Category filter tabs */
.menu-filters {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: rgba(212, 184, 150, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

.filter-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--cream);
  color: var(--espresso);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--espresso);
  color: var(--cream);
}

/* Menu sections */
.menu-section {
  padding: 3rem 0 1rem;
  scroll-margin-top: calc(var(--nav-height) + 70px);
}

.menu-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--mocha), transparent);
  opacity: 0.3;
}

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

.menu-item {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.5s ease both;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
}

.menu-item-img {
  position: relative;
  overflow: hidden;
  background: var(--latte-light);
}

.menu-item-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.menu-item-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.menu-item-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.menu-item-body .price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--caramel);
}

.menu-item-body .desc {
  font-size: 0.85rem;
  color: var(--mocha);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Savoury items — taller images */
.menu-item.savoury .menu-item-img img {
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #1a1a1a;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-banner {
    height: min(58vh, 480px);
  }

  .hero-slide-content {
    padding-bottom: 3rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .moment-grid,
  .moment-section--reverse .moment-grid {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .moment-copy .section-title {
    text-align: center;
  }

  .moment-copy {
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
    background: linear-gradient(
      180deg,
      rgba(42, 24, 18, 0.98) 0%,
      rgba(62, 39, 35, 0.97) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 160, 108, 0.25);
    box-shadow: 0 20px 50px rgba(26, 14, 10, 0.45);
    transform: translateY(calc(-100% - var(--nav-height)));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 1.15rem;
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  .nav-links a:hover {
    transform: none;
  }

  .bean-corner {
    width: 60px;
    height: 60px;
    opacity: 0.45;
  }

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

  .section {
    padding: 3.5rem 0;
  }
}

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

  .hero h1 {
    font-size: 2.25rem;
  }
}
