/* =============================================
   CHATPATA CHAT — Shared Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden;   
  margin: 0;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Variables ---- */
:root {
  --primary: #D62828;
  --primary-dark: #B71C1C;
  --secondary: #F77F00;
  --secondary-dark: #E06800;
  --accent: #2D9D5F;
  --accent-dark: #1E7A47;
  --bg: #FFFDF7;
  --bg-alt: #FFF5E6;
  --surface: #FFFFFF;
  --text: #2B1E16;
  --text-muted: #5C4A3D;
  --border: #F0E1D3;
  --shadow-soft: 0 8px 30px rgba(247, 127, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(214, 40, 40, 0.14);
  --shadow-card: 0 4px 24px rgba(43, 30, 22, 0.09);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1280px;
}

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.section-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.section-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-subtitle { max-width: 560px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(247,127,0,0.25); }
.btn-accent { background: var(--secondary); color: #fff; }
.btn-accent:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45,157,95,0.25); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.84rem; }
.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.05rem; }

/* ---- Scroll Reveal ---- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(43, 30, 22, 0.08);
  padding: 0.85rem 0;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-logo .c1 { color: var(--primary); }
.nav-logo .c2 { color: var(--secondary); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.show { opacity: 1; }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--text); color: rgba(255,253,247,0.85); }
.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--primary); }
.footer-logo em { color: var(--secondary); font-style: italic; }
.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,253,247,0.5);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,253,247,0.55);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,253,247,0.5); transition: var(--transition); }
.footer-col ul a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 0.85rem; font-size: 0.875rem; color: rgba(255,253,247,0.5);
}
.footer-contact-item i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; font-size: 0.9rem; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,253,247,0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 270px; height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.1rem; }
  /* .nav-overlay { display: block; } */
  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
  .btn { padding: 0.75rem 1.4rem; font-size: 0.88rem; }
  .btn-lg { padding: 0.9rem 1.75rem; font-size: 0.95rem; }
}

/* ===============================
   ORDER POPUP — Chatpata Chat
================================= */

.order-popup {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.order-popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.order-popup-box {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 26px;
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(229, 57, 53, 0.08);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: #d8d8d8 transparent;
}

.order-popup.show .order-popup-box {
  transform: translateY(0) scale(1);
}

.order-popup-box::-webkit-scrollbar {
  width: 8px;
}

.order-popup-box::-webkit-scrollbar-track {
  background: transparent;
}

.order-popup-box::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 999px;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f7f3ef;
  color: #221813;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: #efe6df;
  transform: rotate(90deg);
}

.order-popup-box h3 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  color: #221813;
  font-weight: 800;
  padding-right: 52px;
}

.popup-subtext {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b625b;
}

.popup-field {
  margin-bottom: 18px;
}

.popup-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 700;
  color: #2a2019;
}

.popup-field input,
.popup-field textarea {
  width: 100%;
  border: 1px solid #e5ddd6;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  color: #221813;
  background: #fffdfb;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.popup-field input:focus,
.popup-field textarea:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.08);
  background: #ffffff;
}

.popup-field input[readonly] {
  background: #f8f5f2;
  color: #3a302a;
  cursor: default;
}

.popup-field textarea {
  min-height: 110px;
  resize: vertical;
}

.popup-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.popup-qty button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: #f3efea;
  color: #221813;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.popup-qty button:hover {
  background: #eadfd6;
}

.popup-qty input {
  width: 96px;
  min-width: 96px;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  background: #fff;
}

.popup-total {
  margin: 10px 0 22px;
  font-size: 20px;
  font-weight: 800;
  color: #e53935;
}

.confirm-order-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #e53935, #ff6b35);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(229, 57, 53, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.confirm-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(229, 57, 53, 0.28);
}

.confirm-order-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .order-popup {
    padding: 14px;
    align-items: flex-start;
  }

  .order-popup-box {
    max-width: 100%;
    max-height: 92vh;
    margin-top: 6px;
    border-radius: 22px;
    padding: 22px 18px 20px;
  }

  .order-popup-box h3 {
    font-size: 24px;
  }

  .popup-subtext {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .popup-field {
    margin-bottom: 16px;
  }

  .popup-field input,
  .popup-field textarea {
    padding: 13px 14px;
    font-size: 14px;
    border-radius: 14px;
  }

  .popup-qty {
    gap: 10px;
  }

  .popup-qty button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
  }

  .popup-qty input {
    width: 82px;
    min-width: 82px;
  }

  .popup-total {
    font-size: 18px;
    margin: 8px 0 18px;
  }

  .confirm-order-btn {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .order-popup {
    padding: 10px;
  }

  .order-popup-box {
    max-height: 94vh;
    padding: 20px 15px 18px;
    border-radius: 18px;
  }

  .popup-close {
    width: 38px;
    height: 38px;
    font-size: 24px;
    top: 10px;
    right: 10px;
  }

  .order-popup-box h3 {
    font-size: 22px;
    padding-right: 44px;
  }

  .popup-field label {
    font-size: 14px;
  }

  .popup-field input,
  .popup-field textarea {
    font-size: 14px;
  }

  .popup-qty input {
    width: 74px;
    min-width: 74px;
  }
}