/* ============ CAFEL COFFEE - MAIN SITE STYLES ============ */

/* CSS Variables */
:root {
  --orange: #E8842C;
  --orange-light: #F5A623;
  --orange-dark: #C66A1A;
  --brown: #2C1810;
  --brown-light: #5D4037;
  --brown-medium: #8D6E63;
  --cream: #FFF8F0;
  --cream-dark: #F5EDDE;
  --white: #FFFFFF;
  --text: #2C1810;
  --text-light: #8D6E63;
  --text-muted: #A0887C;
  --border: #E8DDD4;
  --shadow: 0 4px 24px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 12px 48px rgba(44, 24, 16, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ============ NAVBAR ============ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(44, 24, 16, 0.08);
  padding: 0.6rem 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--orange);
  object-fit: cover;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 800; color: var(--brown);
  letter-spacing: 2px;
}
.nav-logo-text span { color: var(--orange); font-weight: 600; }
.nav-links {
  display: flex; align-items: center; gap: 0.3rem;
}
.nav-links li a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--brown);
  transition: var(--transition);
}
.nav-links li a:hover {
  background: rgba(232, 132, 44, 0.08); color: var(--orange);
}
.nav-cta {
  background: var(--orange) !important; color: var(--white) !important;
  border-radius: 30px !important; padding: 8px 20px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; z-index: 1001;
}
.hamburger span {
  width: 24px; height: 2.5px; background: var(--brown);
  border-radius: 4px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, #FFF1E0 50%, var(--cream-dark) 100%);
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(232,132,44,0.06) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(93,64,55,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,132,44,0.1); color: var(--orange);
  padding: 8px 20px; border-radius: 30px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(232,132,44,0.15);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; line-height: 1.2;
  color: var(--brown); margin-bottom: 1.5rem;
}
.hero-title .highlight {
  color: var(--orange);
  position: relative;
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-light);
  margin-bottom: 2rem; max-width: 500px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 16px rgba(232,132,44,0.3);
}
.btn-primary:hover {
  background: var(--orange-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,132,44,0.4);
}
.btn-outline {
  background: transparent; color: var(--brown);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-white {
  background: var(--white); color: var(--orange);
  font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Hero Stats */
.hero-stats {
  display: flex; gap: 2rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 800; color: var(--orange);
}
.stat-label { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }

/* Hero Image */
.hero-image-wrapper {
  position: relative;
}
.hero-image-main {
  width: 100%; border-radius: 24px;
  box-shadow: var(--shadow-lg);
  object-fit: cover; aspect-ratio: 4/5; max-height: 560px;
}
.hero-floating-card {
  position: absolute; background: var(--white);
  padding: 14px 18px; border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.hero-floating-card.card-1 { top: 10%; left: -30px; }
.hero-floating-card.card-2 { bottom: 15%; right: -30px; animation-delay: 2s; }
.floating-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.floating-icon.orange { background: rgba(232,132,44,0.1); color: var(--orange); }
.floating-icon.brown { background: rgba(93,64,55,0.1); color: var(--brown-light); }
.floating-text strong { display: block; font-size: 0.85rem; color: var(--text); }
.floating-text span { font-size: 0.75rem; color: var(--text-light); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
}
.section-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; color: var(--brown);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1rem; color: var(--text-light);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ============ ABOUT ============ */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-image-stack { position: relative; min-height: 500px; }
.about-img-1 {
  width: 65%; border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.about-img-2 {
  width: 55%; border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: absolute; bottom: 0; right: 0; z-index: 3;
  border: 4px solid var(--white);
}
.about-accent {
  position: absolute; top: 40%; left: 35%;
  background: var(--orange); border-radius: 50%;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  z-index: 4; box-shadow: 0 8px 24px rgba(232,132,44,0.3);
}
.about-accent img { width: 50px; height: 50px; border-radius: 50%; }
.about-content h3 {
  color: var(--orange); font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 600; margin-bottom: 0.5rem;
}
.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800;
  color: var(--brown); margin-bottom: 1.5rem;
}
.about-text {
  color: var(--text-light); margin-bottom: 1rem;
  line-height: 1.8;
}
.about-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2rem;
}
.about-feature {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--cream);
  font-size: 0.9rem; font-weight: 600; color: var(--brown);
}
.about-feature i { color: var(--orange); font-size: 1.1rem; width: 20px; }

/* ============ MENU ============ */
.menu { background: var(--cream); }
.menu-categories {
  display: flex; justify-content: center;
  gap: 0.5rem; margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.menu-cat-btn {
  padding: 10px 24px; border-radius: 30px;
  border: 2px solid var(--border);
  background: var(--white); color: var(--text-light);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.menu-cat-btn:hover { border-color: var(--orange); color: var(--orange); }
.menu-cat-btn.active {
  background: var(--orange); color: var(--white);
  border-color: var(--orange);
}
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.menu-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(232,132,44,0.2);
}
.menu-card-icon {
  min-width: 56px; width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.menu-card-info { flex: 1; min-width: 0; }
.menu-card-name {
  font-weight: 700; font-size: 0.95rem; color: var(--brown);
  margin-bottom: 2px;
}
.menu-card-desc {
  font-size: 0.8rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.menu-card-price {
  font-weight: 800; color: var(--orange);
  font-size: 1rem; margin-top: 4px;
}

/* ============ GALLERY ============ */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.7) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 1.2rem;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text {
  color: var(--white); font-weight: 600; font-size: 0.9rem;
}

/* ============ FEATURES ============ */
.features {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  color: var(--white);
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  text-align: center; padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(232, 132, 44, 0.15);
  color: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 1.2rem;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.75rem; color: var(--white);
}
.feature-card p {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--cream); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white); padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
}
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; color: var(--orange);
  line-height: 1; margin-bottom: 0.5rem; opacity: 0.3;
}
.testimonial-stars { color: #F5A623; margin-bottom: 1rem; font-size: 0.85rem; }
.testimonial-stars i { margin-right: 2px; }
.testimonial-text {
  font-size: 0.92rem; color: var(--text-light);
  line-height: 1.7; margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 1rem;
}
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--brown); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white); text-align: center;
  padding: 80px 2rem;
}
.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem;
}
.cta-banner p {
  font-size: 1.05rem; opacity: 0.9; margin-bottom: 2rem;
  max-width: 500px; margin-left: auto; margin-right: auto;
  margin-bottom: 2rem;
}

/* ============ CONTACT ============ */
.contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.contact-info h3 {
  color: var(--orange); font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 600; margin-bottom: 0.3rem;
}
.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 800;
  color: var(--brown); margin-bottom: 1rem;
}
.contact-info > p {
  color: var(--text-light); margin-bottom: 2rem;
  line-height: 1.7;
}
.contact-item {
  display: flex; gap: 16px; margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 14px;
  background: rgba(232,132,44,0.08);
  color: var(--orange); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.contact-item h4 {
  font-size: 0.9rem; font-weight: 700; color: var(--brown);
  margin-bottom: 2px;
}
.contact-item p, .contact-item a {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.5;
}
.contact-item a:hover { color: var(--orange); }
.social-links {
  display: flex; gap: 0.75rem; margin-top: 1.5rem;
}
.social-link {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(232,132,44,0.08);
  color: var(--orange); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--orange); color: var(--white);
  transform: translateY(-2px);
}
.contact-map {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.contact-map iframe {
  width: 100%; height: 100%; border: none;
}

/* ============ FOOTER ============ */
footer {
  background: var(--brown); color: rgba(255,255,255,0.7);
  padding: 0;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem; padding: 4rem 0 3rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1rem;
}
.footer-logo img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--orange);
}
.footer-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--white);
  letter-spacing: 2px;
}
.footer-brand p {
  font-size: 0.88rem; line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0; text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.3);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90%; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-wrapper { max-width: 500px; margin: 0 auto; }
  .hero-floating-card.card-1 { left: -10px; }
  .hero-floating-card.card-2 { right: -10px; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-stack { min-height: 400px; max-width: 500px; margin: 0 auto; }

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

  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 300px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: 280px; height: 100vh;
    background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 80px 2rem 2rem;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block; width: 100%;
    padding: 12px 0; border-bottom: 1px solid var(--border);
  }
  .nav-cta {
    margin-top: 1rem;
    text-align: center !important;
    display: block !important;
  }

  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 2rem; }
  .hero-floating-card { display: none; }

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

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

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

  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .about-features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .menu-categories { gap: 0.3rem; }
  .menu-cat-btn { padding: 8px 16px; font-size: 0.8rem; }
}
