/* ===========================
   OTTO COFFEE — FULL RESPONSIVE STYLES
   =========================== */

:root {
  --cream: #F3E4D7;
  --caramel: #E6CDB7;
  --brown: #4B2E2B;
  --dark: #2E1A17;
  --accent: #7A4B3A;
  --card: #5A332A;
  --white: #FFFFFF;
  --muted: #BFA79A;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 24px;
  --radius-lg: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: url('./img/background_image.png') center/cover no-repeat fixed;
  background-color: #3B1F1A;
  color: var(--brown);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, .nav-logo, .footer-logo { font-family: 'Baloo 2', cursive; }

/* ====== NAVBAR ====== */
.navbar {


  



  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.4s, box-shadow 0.4s;
  background: rgba(240, 209, 179, 0.20);
}



.navbar.scrolled {
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 4px;
}

/* Small tagline under brand */
.nav-logo .tagline,
.logo .tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  color: rgba(255,255,255,0.9);
  font-family: 'Poppins', sans-serif;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: width 0.3s;
}


.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--dark);
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 999;
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 14px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.abstract-shape {
  position: absolute;
  top: -30px; right: -30px;
  width: 100%; max-width: 600px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  width: 180px; height: 130px;
  border-radius: 50px;
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-sub {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.hero-headline {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-block;
  background: #5B3624;
  color: #FFFFFF;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.otto-truck-img {
  width: 100%; max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transform: scale(1.15);
  transform-origin: center center;
}

/* ====== POPULAR SECTION ====== */
.popular {
  padding: 80px 20px 60px;
  position: relative;
  z-index: 1;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 20px;
}
.section-tag {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--accent);
  letter-spacing: 3px;
}
.section-sub {
  color: #FFFFFF;
  font-size: 1rem;
  margin-top: 8px;
}

/* ====== SLIDER — FULLY FIXED ====== */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* NO overflow:hidden here — buttons must be visible */
}

.slider-btn {
  width: 46px;
  height: 46px;
  min-width: 46px; /* prevent shrinking */
  border-radius: 50%;
  border: 2px solid var(--brown);
  background: var(--white);
  color: var(--brown);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.slider-btn:hover {
  background: var(--brown);
  color: var(--white);
  transform: scale(1.05);
}
.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* The viewport window — clips the scrolling track */
.slider-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden; /* THIS is where clipping happens */
}

/* The scrolling track — must NOT have overflow:hidden */
.cards-track {
  display: flex;
  gap: 20px;
  padding: 20px 4px;
  /* width is set by JS to fit all cards */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Coffee cards */
.coffee-card {
  background: transparent;
  border-radius: var(--radius);
  padding: 28px 22px;
  min-height: 300px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
  position: relative;
  /* width set by JS */
}
.coffee-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("./img/popular_box.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 0;
  border-radius: var(--radius);
}
.coffee-card h3,
.coffee-card .price,
.coffee-card .card-actions {
  position: relative;
  z-index: 1;
}
/* stagger even cards down slightly on desktop */
.coffee-card.stagger { transform: translateY(14px); }
.coffee-card:hover { transform: translateY(-6px) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.coffee-card.stagger:hover { transform: translateY(8px) !important; }

.coffee-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.price {
  color: var(--caramel);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
}
.card-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.fav-btn, .cart-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  background: transparent;
}
.fav-btn:hover, .cart-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* Dot indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.slider-dot.active {
  background: var(--brown);
  transform: scale(1.3);
}

.explore-wrap {
  text-align: center;
  margin-top: 32px;
}
.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--brown);
  border-radius: 50px;
  color: var(--brown);
  text-decoration: none;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-2px);
}

/* ====== REWARDS PROMO ====== */
.rewards-promo {
  width: 100%;
  margin-top: 60px;
  overflow: visible;
}
.rewards-promo-inner {
  background-image: url("./img/rewards_rectangle.png");
  background-color: #5A3525;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding: 60px 20px;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
}
.rewards-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.rewards-text h2 em { font-style: normal; color: var(--caramel); }
.rewards-text p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.rewards-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 200px;
  overflow: visible;
}
.rewards-coffee-img {
  width: 130%; max-width: 580px;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 3;
  top: -130px;
  transform: scale(1.25);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45));
}
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--brown);
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }

/* ====== ABOUT ====== */
.about {
  margin-top: 120px;
  position: relative;
  padding: 80px 20px;
  overflow: visible;
  z-index: 1;
}
.about-heading {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}
.about-inner {
  max-width: 1100px;
  margin: 100px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.barista-card {
  background: var(--brown);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 380px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
}
.about-us-img {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 85%; height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.25));
}


.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 28px;
  line-height: 1.3;
}
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.about-list li { display: flex; gap: 16px; align-items: flex-start; }
.ab-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--brown);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-list strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.about-list p { font-size: 0.85rem; color: var(--accent); line-height: 1.5; }
.about-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brown);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--brown);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.about-share:hover { color: var(--accent); border-color: var(--accent); }

/* ====== SIP AND EARN ====== */
.sip-earn {
  padding: 80px 20px;
  background-image: url("./img/sip_section_bg_image.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #5A3525;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  box-shadow: 0 -20px 40px rgba(91,54,36,0.54), 0 20px 40px rgba(91,54,36,0.54);
}
.sip-earn .section-tag {
  font-size: clamp(2.5rem, 6vw, 55px);
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
}
.earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.earn-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.earn-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.earn-icon {
  width: 70px; height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: -55px auto 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border: 3px solid var(--white);
  background: var(--cream);
}
.earn-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.earn-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.earn-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brown);
  background: transparent;
  color: var(--brown);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.earn-arrow:hover { background: var(--brown); color: var(--white); }

/* ====== TESTIMONIALS ====== */
.testimonials { padding: 80px 20px; position: relative; z-index: 1; }
.testimonials .section-tag {
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 3px;
}
.testi-container {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 20px;
}
.testi-track {
  display: flex;
  gap: 20px;
  flex: 1;
  align-items: center;
  overflow: hidden;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  flex: 1;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: 0.3s;
  opacity: 0.5;
  transform: scale(0.92);
  flex-shrink: 0;
}
.testi-card.active { opacity: 1; transform: scale(1); flex: 1.4; }
.quote-icon { font-size: 2rem; color: var(--accent); margin-bottom: 12px; display: block; }
.testi-card p { font-size: 0.92rem; line-height: 1.7; color: var(--brown); margin-bottom: 16px; }
.testi-stars { margin-bottom: 12px; font-size: 0.9rem; }
.testi-name { font-weight: 700; font-size: 0.9rem; }
.testi-name span { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.testi-btn {
  width: 50px; height: 50px;
  border-radius: 12px;
  border: 2px solid var(--brown);
  background: var(--white);
  color: var(--brown);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.testi-btn:hover { background: var(--brown); color: var(--white); }

/* ====== FOOTER ====== */
.footer {
    background: url(./img/footer.png);
    background-repeat: no-repeat;
    background-size: cover;
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 20px 30px;
    position: relative;
    z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-logo { font-size: 2.2rem; font-weight: 900; color: var(--white); letter-spacing: 4px; margin-bottom: 12px; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 6px; }
.footer-col h4 { font-family: 'Baloo 2', cursive; color: var(--white); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  outline: none;
}
.newsletter-form button {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.newsletter-form button:hover { background: var(--brown); transform: scale(1.05); }
.nl-msg { font-size: 0.82rem; color: #98c379; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .about-inner { grid-template-columns: 1fr; margin-top: 80px; }
  .rewards-promo-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; gap: 30px; }
  .rewards-coffee-img {
        width: 100%;
        max-width: 280px;
        top: 0;
        transform: scale(1.05);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr; /* 3 columns on tablets */
    gap: 30px;
  }
  .about-us-img {
  
  width: 350px; 
}
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-headline { font-size: 2.1rem; }
  .testi-card.side { display: none; }
  .rewards-visual { height: auto; margin-top: 20px; }
  .rewards-coffee-img { width: 100%; max-width: 280px; top: 0; transform: scale(1.05); }
  .slider-wrapper { padding: 0 8px; gap: 8px; }
  .coffee-card.stagger { transform: none !important; }
  .footer-inner {
    grid-template-columns: 1fr; 
    text-align: left; /* Changed from center to left */
    gap: 40px;
    padding-left: 20px; /* Ensures consistent padding on the left */
  }

  .footer-logo {
    margin: 0 0 12px 0; /* Reset margin-auto which was centering it */
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns all flex children to the left */
  }

  /* Keep the list items left-aligned */
  .footer-col ul {
    text-align: left;
    display: block; 
  }

  /* Align Newsletter input and button to the left */
  .newsletter-form {
    justify-content: flex-start; /* Changed from center to flex-start */
  }

  .footer-bottom {
    text-align: left; /* Keep copyright notice left-aligned too */
    padding-left: 20px;
  }
}
@media (max-width: 480px) {
  .section-tag { font-size: 1.9rem; }
}

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Container adjustment to ensure the first row of images isn't cut off */
.popular {
    padding-top: 140px; 
    overflow: visible;
}
/* FIXED COFFEE CARD */
.coffee-card {
  position: relative;
  border-radius: 20px;

  /* Balanced padding */
  padding: 90px 20px 25px 20px; 

  margin-top: 40px; /* reduced so layout looks tight */
  overflow: hidden; /* IMPORTANT: keeps everything inside */

  text-align: center;
  color: #FFFFFF;
}

/* IMAGE — NOW PERFECTLY INSIDE */
.pop-out-img {
  position: absolute;
  top: -40px;   /* was -110px → TOO MUCH */
  left: 50%;
  transform: translateX(-50%);

  width: 180px;   /* slightly bigger but clean */
  height: 220px;

  object-fit: contain;
  z-index: 5;

  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

/* Hover effect */
.coffee-card:hover .pop-out-img {
  transform: translateX(-50%) translateY(-5px) scale(1.05);
}

/* TEXT MOVED UP */
.coffee-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  margin-top: 20px;
}

.coffee-card .price {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ICON FIX — INSIDE THE CARD */
.card-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}