/* ==========================================================================
   The Cozy Cup — Cozy Luxurious Cafe Design
   Inspired by Airbnb warmth + Apple luxury
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Primary Palette — warm, rich, luxurious */
  --espresso: #2C1810;
  --dark-roast: #3D2317;
  --warm-brown: #5C3A2E;
  --mocha: #7B5544;
  --caramel: #C4956A;
  --gold: #D4A574;
  --cream: #F5EDE4;
  --latte: #FAF6F1;
  --ivory: #FDFBF8;
  --white: #FFFFFF;

  /* Accent */
  --accent: #B8784E;
  --accent-hover: #A06840;
  --accent-light: rgba(184, 120, 78, 0.1);

  /* Text */
  --text-primary: #2C1810;
  --text-secondary: #7B5544;
  --text-tertiary: #A08979;
  --text-inverse: #FAF6F1;

  /* Shadows — Airbnb-inspired three-layer warm shadows */
  --shadow-sm: rgba(44, 24, 16, 0.02) 0px 0px 0px 1px,
               rgba(44, 24, 16, 0.04) 0px 1px 3px,
               rgba(44, 24, 16, 0.08) 0px 2px 4px;
  --shadow-md: rgba(44, 24, 16, 0.02) 0px 0px 0px 1px,
               rgba(44, 24, 16, 0.05) 0px 2px 8px,
               rgba(44, 24, 16, 0.1) 0px 4px 12px;
  --shadow-lg: rgba(44, 24, 16, 0.03) 0px 0px 0px 1px,
               rgba(44, 24, 16, 0.06) 0px 4px 16px,
               rgba(44, 24, 16, 0.12) 0px 8px 32px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radius — generous, Airbnb-inspired */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 980px;
  --radius-circle: 50%;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-inverse);
  letter-spacing: -0.3px;
  transition: color 0.4s ease;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

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

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

.nav-cta {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.25);
}

.nav.scrolled .nav-cta {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.nav.scrolled .nav-cta:hover {
  background: var(--dark-roast);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
  background: var(--espresso);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--espresso);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 24, 16, 0.85) 0%,
    rgba(61, 35, 23, 0.75) 40%,
    rgba(92, 58, 46, 0.7) 100%
  );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4956a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: var(--space-4xl) var(--space-lg);
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 237, 228, 0.75);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
  letter-spacing: -0.2px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--caramel);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 237, 228, 0.35);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-hint span {
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 237, 228, 0.4);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(212, 165, 116, 0.5), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(4px); }
}

/* --- Section Common --- */
.section-tag {
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--espresso);
  margin-bottom: var(--space-lg);
}

/* --- Story Section --- */
.story {
  padding: var(--space-5xl) 0;
  background: var(--ivory);
}

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

.story-text {
  max-width: 480px;
}

.story-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.1px;
}

.story-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(44, 24, 16, 0.08);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.story-img-1 {
  grid-row: 1 / 3;
}

/* Story Images */
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.story-img-1 img {
  aspect-ratio: 3/4;
}

.story-img-2 img {
  aspect-ratio: 1/1;
}

/* --- Menu Section --- */
.menu {
  padding: var(--space-5xl) 0;
  background: var(--cream);
}

.menu-header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto var(--space-3xl);
}

.menu-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.menu-tab {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
}

.menu-tab:hover {
  color: var(--text-primary);
  border-color: rgba(44, 24, 16, 0.1);
}

.menu-tab.active {
  color: var(--cream);
  background: var(--espresso);
  border-color: var(--espresso);
}

.menu-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  animation: fadeInUp 0.4s ease;
}

.menu-grid.active {
  display: grid;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.menu-card.featured {
  border: 1.5px solid var(--gold);
}

.menu-card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.menu-card-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.menu-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card-content {
  flex: 1;
  min-width: 0;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.menu-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.063rem;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: -0.2px;
}

.menu-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.menu-card-content p {
  font-size: 0.813rem;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* --- Experience Section --- */
.experience {
  padding: var(--space-5xl) 0;
  background: var(--espresso);
}

.experience .section-tag {
  color: var(--gold);
}

.experience .section-title {
  color: var(--cream);
}

.experience-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.experience-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
}

.experience-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.experience-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.experience-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.experience-card:hover .experience-card-img img {
  transform: scale(1.05);
}

.experience-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
  letter-spacing: -0.2px;
}

.experience-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(245, 237, 228, 0.55);
  padding: 0 var(--space-lg) var(--space-lg);
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--latte);
  overflow: hidden;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.testimonial-stars span {
  color: var(--gold);
  font-size: 1rem;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.063rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--espresso);
  margin-bottom: var(--space-md);
  letter-spacing: -0.1px;
}

.testimonial cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.2px;
}

/* --- Visit Section --- */
.visit {
  padding: var(--space-5xl) 0;
  background: var(--ivory);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.visit-detail h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: var(--space-xs);
}

.visit-detail p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.visit-map {
  position: sticky;
  top: 100px;
}

.visit-map-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* --- Footer --- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--espresso);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(245, 237, 228, 0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(245, 237, 228, 0.5);
  max-width: 300px;
  margin-bottom: var(--space-lg);
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: rgba(245, 237, 228, 0.6);
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  font-size: 0.813rem;
  color: rgba(245, 237, 228, 0.45);
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(245, 237, 228, 0.3);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .story-grid {
    gap: var(--space-2xl);
  }

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

  .experience-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Tablet Small */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile Menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ivory);
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    z-index: 1000;
  }

  .nav-links.open a {
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--espresso);
    font-weight: 500;
  }

  .hero-title {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .story-images {
    order: -1;
  }

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

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

  .experience-card:last-child {
    max-width: none;
  }

  .testimonial-track {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .story-stats {
    gap: var(--space-xl);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-content {
    padding: var(--space-4xl) var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .menu-tabs {
    gap: var(--space-xs);
  }

  .menu-tab {
    padding: 8px 16px;
    font-size: 0.813rem;
  }

  .menu-card {
    padding: var(--space-md);
  }

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

  .story-img-1 {
    grid-row: auto;
  }

  .story-img-1 .img-placeholder {
    aspect-ratio: 1/1;
  }
}
