/* Global Variables */
:root {
  --color-bg: #FDFBF7;
  --color-text-main: #2C2420;
  --color-text-light: #6D5D55;
  --color-coffee-dark: #3E2723;
  --color-caramel: #D8B58A;
  --color-caramel-light: #EBD4B6;
  --color-soft-green: #6F8F72;
  --color-white: #FFFFFF;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 4px 12px rgba(62, 39, 35, 0.05);
  --shadow-md: 0 8px 24px rgba(62, 39, 35, 0.08);
  --shadow-lg: 0 12px 40px rgba(62, 39, 35, 0.12);

  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-coffee-dark);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-coffee-dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-coffee-dark);
  color: var(--color-caramel);
  box-shadow: 0 4px 15px rgba(62, 39, 35, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(62, 39, 35, 0.4);
  background-color: #2a1a17;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-coffee-dark);
  color: var(--color-coffee-dark);
}

.btn-secondary:hover {
  background-color: var(--color-coffee-dark);
  color: var(--color-caramel);
}

/* Header */
.header {
  background-color: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-coffee-dark);
}

.hamburger {
  display: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  /* Center align items vertically */
}

/* Hide mobile-specific button on desktop */
.mobile-only-btn {
  display: none;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-caramel);
  transition: width 0.3s ease;
}

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

.nav-menu .nav-link:hover {
  color: var(--color-coffee-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: url('https://images.unsplash.com/photo-1610632380989-680fe40816c6?q=80&w=687&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(62, 39, 35, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  color: #c6c6c5;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-buttons .btn-primary {
  color: white;
}

.hero-buttons .btn-secondary {
  color: white;
}

.hero .btn-secondary {
  border-color: var(--color-caramel);
}

.hero .btn-secondary:hover {
  background-color: var(--color-caramel);
  color: var(--color-coffee-dark);
}

/* AI Button */
.ai-recommendation-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.btn-ai {
  background-color: var(--color-soft-green);
  color: var(--color-white);
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(111, 143, 114, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-ai:hover {
  background-color: #5d7a60;
  transform: scale(1.05);
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

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

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 143, 114, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(111, 143, 114, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(111, 143, 114, 0);
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  /* JS handles reveal, but initial load needs this */
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

.float-anim.delay-1 {
  animation-delay: 2s;
}

.pulse-glow {
  animation: pulse 2s infinite;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Scroll Reveals (JS Triggered) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* About Us Section */
.about {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1/1;
  max-height: 480px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.about-subtitle {
  font-size: 1rem;
  color: #D8B58A;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-title {
  font-size: 2.5rem;
  color: var(--color-coffee-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.about-description {
  font-size: 1.1rem;
  color: var(--color-text-main);
  line-height: 1.8;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  opacity: 0;
  /* Initially hidden */
}

.slide-in-left.active {
  animation: slideInLeft 1s ease-out forwards;
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

.pulse-delayed {
  animation: bounce 5s infinite;
}

@keyframes bounce {

  0%,
  90% {
    transform: scale(1);
  }

  92% {
    transform: scale(1.1);
  }

  95% {
    transform: scale(1);
  }

  98% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Menu Section */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

.menu-tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-light);
  transition: color 0.3s ease;
  position: relative;
}

.menu-tab.active {
  color: var(--color-coffee-dark);
}

.menu-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-caramel);
  transition: width 0.3s ease;
}

.menu-tab.active::after {
  width: 100%;
}

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

.menu-item {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.menu-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.menu-img-wrapper {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.menu-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.menu-details {
  padding: 1.5rem;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.menu-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.price {
  color: var(--color-coffee-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.menu-details p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: none;
  cursor: pointer;
  color: var(--color-coffee-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.add-to-cart:hover {
  background-color: var(--color-caramel);
  color: var(--color-white);
}


/* Combo Section */
.combo-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  background-color: var(--color-coffee-dark);
  padding: 4rem;
  border-radius: 30px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.combo-image {
  flex: 1;
  position: relative;
}

.combo-image img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.discount-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: var(--color-caramel);
  color: var(--color-coffee-dark);
  font-weight: 800;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(15deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.combo-text {
  flex: 1;
}

.combo-text .tag {
  background-color: rgba(216, 181, 138, 0.2);
  color: var(--color-caramel);
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.combo-text h2 {
  color: var(--color-white);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.price-box {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.original-price {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 1.2rem;
}

.new-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-caramel);
}

.combo-text .btn-primary {
  background-color: var(--color-caramel);
  color: var(--color-coffee-dark);
}

.combo-text .btn-primary:hover {
  background-color: var(--color-white);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(216, 181, 138, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-coffee-dark);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.feature-card:hover .icon-box {
  background-color: var(--color-caramel);
  transform: scale(1.1) rotate(5deg);
}

.feature-card p {
  line-height: 1.8;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Stats Counter Section */
.stats {
  padding: 2rem 0;
  /* Reduced padding since container has padding */
  background-color: transparent;
  /* Remove background from full section */
}

.stats-container {
  background-color: var(--color-coffee-dark);
  /* Color moved to container */
  color: var(--color-white);
  padding: 4rem;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon-box {
  font-size: 3rem;
  color: var(--color-caramel);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  color: white;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
  color: var(--color-caramel-light);
}

/* Testimonials */
.testimonial-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

/* About Us Features */
.about-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  width: 100px;
}

.af-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(216, 181, 138, 0.2);
  /* Caramel transparent */
  color: var(--color-coffee-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.about-feature:hover .af-icon {
  background-color: var(--color-caramel);
  color: var(--color-white);
  transform: translateY(-5px);
}

.about-feature span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-coffee-dark);
  line-height: 1.2;
}

.user-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--color-caramel-light);
}

.testimonial-card p {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.testimonial-card h4 {
  color: var(--color-coffee-dark);
}

/* Footer */
.footer {
  background-color: var(--color-coffee-dark);
  color: var(--color-caramel-light);
  padding: 4rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col p {
  margin-bottom: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--color-caramel);
  font-size: 1.5rem;
}

.social-links a:hover {
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.built-with {
  margin-top: 0.5rem;
  font-weight: 500;
  opacity: 0.8;
}

.antigravity {
  background: linear-gradient(90deg, #D8B58A, #6F8F72);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* FAB */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 900;
}

.fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.fab-btn.phone {
  background-color: var(--color-caramel);
}

.fab-btn:hover {
  transform: scale(1.1);
}

/* Media Queries (Mobile First approach means this is for larger screens primarily, but checks for smaller) */
@media (max-width: 900px) {
  .combo-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .price-box {
    justify-content: center;
  }

  .combo-image {
    width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-coffee-dark);
    z-index: 1001;
    /* Above mobile menu */
  }

  /* Mobile Menu Container */
  .nav-menu {
    position: absolute;
    /* Changed from fixed to absolute to sit below header */
    top: 100%;
    /* Start just below the header */
    left: 0;
    width: 100%;
    /* Full width */
    height: 0;
    /* Animated height */
    overflow: hidden;
    /* Hide content when closed */
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: height 0.4s ease-in-out;
    z-index: 1000;
  }

  .nav-menu.active {
    height: 400px;
    /* Increased height to fit button */
  }

  .nav-menu li {
    width: 100%;
    margin-left: 0;
    opacity: 0;
    /* Fade in items */
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    /* Center content */
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
    /* Stagger slightly */
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    /* Center align for better mobile look */
  }

  .nav-link:hover {
    background-color: var(--color-bg);
    color: var(--color-caramel);
  }

  /* Show mobile button */
  .mobile-only-btn {
    display: flex !important;
    /* Force flex on mobile */
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .nav {
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    /* Ensure generous side padding */
    position: relative;
    /* For absolute menu positioning */
  }

  .nav .btn-primary {
    display: none;
    /* Hide 'Dalbo Hadda' button on mobile header to save space, or move into menu if preferred */
  }


  .menu-tabs {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .menu-tab {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2rem;
    /* Reduced from 2.5rem for better mobile fit */
  }

  .fab-container {
    bottom: 1.5rem;
    right: 1rem;
    gap: 0.8rem;
    /* Slightly tighter gap */
  }

  .fab-btn {
    /* Fixed class name from .fab */
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}