/* =========================================
   OvenBerries – O'n'B Café | Boutique Roastery Aesthetic
   Palette: Espresso, Latte, Roasted Bean, Gold
   Animations: Liquid Transitions & Smooth Parallax
   ========================================= */

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

:root {
  /* Color Palette */
  --espresso: #1b1212;
  --latte: #f5e6d3;
  --bean: #4b3621;
  --gold: #d4af37;
  --cream: #faf7f2;
  --text-primary: #f5e6d3;
  --text-secondary: rgba(245, 230, 211, 0.7);
  --glass-bg: rgba(27, 18, 18, 0.7);
  --glass-border: rgba(245, 230, 211, 0.1);

  /* Spacing & Radius */
  --radius-xl: 40px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Base Styles ───────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--espresso);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ── Custom Cursor ─────────────────────── */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.cursor-outline {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(245, 230, 211, 0.4);
}

/* ── Typography ─────────────────────────── */
.h-xl {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--latte);
}

.h-lg {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--latte);
}

.h-md {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--latte);
}

.p-lg {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 650px;
}

.p-sm {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ── Layout ────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-v {
  padding: 160px 0;
}

/* ── Navbar ────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 32px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(75, 54, 33, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.25rem;
  color: var(--latte);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--latte);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* ── Hero Section ───────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  padding-top: 120px;
  /* Space for the taller navbar */
}

.hero-content {
  z-index: 2;
  position: relative;
  margin-top: 80px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bean);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero h1 {
  margin-bottom: 32px;
}

.hero-img-parallax {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  z-index: 1;
  pointer-events: none;
}

.hero-img-parallax img {
  width: 100%;
  filter: drop-shadow(0 50px 100px rgba(75, 54, 33, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

.btn {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--bean);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(75, 54, 33, 0.2);
}

.btn-primary:hover {
  transform: translateY(-5px);
  background: var(--espresso);
  box-shadow: 0 20px 40px rgba(75, 54, 33, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--latte);
  color: var(--latte);
}

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

/* ── Bento Grid ─────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 450px);
  gap: 32px;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bean);
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.bento-item:hover {
  transform: scale(1.02) translateY(-10px);
  box-shadow: 0 30px 60px rgba(75, 54, 33, 0.1);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.bento-item:hover img {
  transform: scale(1.1);
}

.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px;
  background: linear-gradient(to top, rgba(27, 18, 18, 0.9) 0%, rgba(27, 18, 18, 0.4) 60%, transparent 100%);
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bento-content h3 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.bento-content p {
  font-size: 1.125rem;
  opacity: 1;
  font-weight: 500;
}

.bento-1 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-2 {
  grid-column: span 2;
}

.bento-3 {
  grid-column: span 1;
}

.bento-4 {
  grid-column: span 1;
}

/* ── Reveal Animations ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1), transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ── Footer ─────────────────────────────── */
footer {
  padding: 100px 0;
  background: var(--espresso);
  color: var(--latte);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.copyright {
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 0.05em;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .hero-img-parallax {
    display: none;
    /* Hide parallax image on mobile for better alignment */
  }

  .hero {
    min-height: 100vh;
    padding: 160px 0 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-content>div {
    padding: 40px 24px !important;
    width: 100%;
    max-width: 600px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 24px;
  }

  .bento-1,
  .bento-2 {
    grid-column: span 2;
    height: 450px;
  }

  .bento-3,
  .bento-4 {
    grid-column: span 1;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
  }

  .mobile-nav-toggle {
    display: flex;
    justify-self: start;
  }

  .nav-logo {
    justify-self: center;
    gap: 4px;
    margin: 0;
  }

  .nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .nav-logo img {
    width: 32px;
    height: 32px;
  }

  .nav-logo span {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.7rem;
  }

  .h-xl {
    font-size: 2.75rem;
  }

  .h-lg {
    font-size: 2rem;
  }

  .h-md {
    font-size: 1.35rem;
  }

  .p-lg {
    font-size: 0.95rem;
  }

  .section-v {
    padding: 60px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bento-1,
  .bento-2,
  .bento-3,
  .bento-4 {
    grid-column: span 1;
    height: 380px;
  }

  .bento-content {
    padding: 32px 24px;
  }

  .bento-content h3 {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 40px 20px;
  }

  .reveal {
    transform: translateY(20px);
  }
}

/* ── Modal Popup ────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-content {
  background: var(--espresso);
  padding: 60px;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  transform: translateY(40px);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--latte);
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.order-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.order-card {
  background: var(--bean);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  border: 1px solid rgba(75, 54, 33, 0.05);
  text-decoration: none;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(75, 54, 33, 0.1);
  border-color: var(--gold);
}

.order-card i {
  font-size: 1.5rem;
  color: var(--gold);
}

.order-card-text {
  text-align: left;
}

.order-card-title {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}

.order-card-value {
  font-weight: 600;
  color: var(--latte);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 40px 24px;
  }
}

/* ── Mobile Navigation ──────────────────── */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2001;
  padding: 0;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--latte);
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--espresso);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin-bottom: 32px;
}

.mobile-nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--latte);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav-links a.active {
  color: var(--gold);
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

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

  .nav-links {
    display: none;
  }
}