/* =========================================
   ELOTE TOWN - GLOBAL STYLES
   ========================================= */

:root {
  /* Brand Colors */
  --brand-orange: #e37325;
  --bg-cream: #fff4e3;
  --text-dark: #2c2c2c;
  --text-light: #ffffff;
  
  /* Typography */
  --font-heading: 'Lobster', cursive;
  --font-body: 'Fredoka', sans-serif;
  --font-nav: 'Lexend', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream); 
  color: var(--text-light);
  overflow-x: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.main-nav {
  width: 100%;
  background-color: var(--brand-orange);
  padding: 22px 0 56px 0; 
  position: relative;
  z-index: 100; 
}

.main-nav.transparent {
  background-color: transparent;
  padding-bottom: 20px;
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px; 
  max-width: 1200px;
  margin: 0 auto;
}

.nav-item {
  width: 160px; 
  height: 115px; 
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-nav);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-item:hover {
  opacity: 0.7;
}

.nav-item.active {
  color: var(--text-light);
}

.main-nav.transparent .nav-item.active {
  color: var(--brand-orange);
}

/* Interactive Logo States */
.interactive-logo {
  display: block;
  width: 260px; 
  height: 115px;
  background-image: url('assets/images/Menu-Logo_default.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.1s ease;
}

.interactive-logo:hover {
  background-image: url('assets/images/Menu-Logo_hover.svg');
  opacity: 1; 
}

.interactive-logo:active {
  background-image: url('assets/images/Menu-Logo_Push.svg');
  transform: scale(0.96);
}

/* Mobile Nav Structure (Hidden on Desktop) */
.mobile-nav-bar {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* =========================================
   GLOBAL SECTIONS & BACKGROUNDS
   ========================================= */

.top-section-wrapper {
  background-image: url('assets/images/hero-bg-1.png');
  background-size: cover;
  background-position: center top;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  margin-bottom: 40px;
  margin-top: -30px; 
  padding-top: 30px;
  position: relative;
  z-index: 10;
}

.page-bg-cream {
  background-image: url('assets/images/hero-bg-2.png');
  background-size: cover;
  background-position: center top;
  background-repeat: repeat-y;
}

/* Global Buttons */
.order-btn {
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-top: 20px;
  transition: transform 0.2s ease;
}

.order-btn:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-light);
}

.btn-outline:hover {
  background: var(--text-light);
  color: var(--brand-orange);
}

/* =========================================
   ABOUT US PAGE SPECIFICS
   ========================================= */

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 5% 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  width: 100%;
}

.about-hero-top img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}

.about-hero-top h1 {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1.1;
  font-weight: normal;
}

.about-hero-bottom {
  max-width: 1000px;
  width: 100%;
}

.about-hero-bottom p {
  font-size: 32px; 
  line-height: 1.4;
  margin-bottom: 30px;
  text-align: left;
}

/* =========================================
   FRANCHISING PAGE SPECIFICS
   ========================================= */

.franchising-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 5% 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.franchising-hero img {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-bottom: 50px;
  object-fit: contain;
}

.franchising-text-container {
  max-width: 850px;
  text-align: left;
}

.franchising-text-container p {
  color: var(--text-dark);
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 30px;
}

/* =========================================
   CONTACT PAGE SPECIFICS
   ========================================= */

.contact-page-wrapper {
  background-color: var(--brand-orange);
  padding: 40px 5% 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-page-wrapper img {
  max-width: 600px;
  width: 100%;
  margin-bottom: 40px;
}

.contact-page-form {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-row .form-group {
  flex: 1;
}

.contact-page-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-page-form label {
  color: var(--text-light);
  font-weight: 500;
  font-size: 14px;
}

.contact-page-form input,
.contact-page-form select,
.contact-page-form textarea {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.2s ease;
}

.contact-page-form input::placeholder,
.contact-page-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-page-form select {
  color: var(--text-light);
}

.contact-page-form select option {
  color: var(--text-dark); 
}

.contact-page-form input:focus,
.contact-page-form select:focus,
.contact-page-form textarea:focus {
  outline: none;
  border-color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.25);
}

.contact-page-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-page-form .submit-btn {
  background: transparent;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  width: 200px;
  margin: 20px auto 0;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-page-form .submit-btn:hover {
  background: var(--text-dark);
  color: var(--brand-orange);
}

/* =========================================
   HOMEPAGE SPECIFICS & ANIMATIONS
   ========================================= */

.slide-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity ease-out, transform ease-out;
}

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

.speed-fast { transition-duration: 0.5s; }
.speed-normal { transition-duration: 0.8s; }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

.home-hero-s1 {
  position: relative;
  height: 802px; 
  display: grid;
  place-items: center; 
  overflow: hidden;
  width: 100%;
  margin-top: -120px; 
  padding-top: 120px;
}

.hero-cup-wrapper, .parallax-wrapper {
  grid-area: 1 / 1; 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-cup-wrapper {
  z-index: 1;
  max-width: 400px; 
}

.parallax-wrapper {
  z-index: 2;
  max-width: 800px; 
  will-change: transform;
}

.home-s2-flavor {
  background-image: url('assets/images/hero-bg-1.png');
  background-size: cover;
  background-position: center top;
  border-radius: 56px 56px 0 0;
  padding: 100px 5%;
  position: relative;
  z-index: 10;
}

.s2-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 6%;
}

.s2-images {
  flex: 1;
  position: relative;
  aspect-ratio: 0.8; 
  max-width: 450px;
  width: 100%;
}

.s2-elote-red, .s2-elote-white {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.s2-elote-red { z-index: 1; }
.s2-elote-white { z-index: 2; }

.s2-text {
  flex: 1;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

.s2-text img {
  max-width: 400px;
  margin-bottom: 25px;
}

.s2-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.home-s3-craft {
  background-image: url('assets/images/Home-S3-bg.png');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 56px 56px; 
  padding: 140px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.craft-glass-box {
  background-color: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 70px 50px;
  max-width: 800px;
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.craft-glass-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
}

/* =========================================
   MENU PAGE SPECIFICS
   ========================================= */

.menu-page-wrapper {
  background-image: url('assets/images/hero-bg-2.png');
  background-size: cover;
  background-position: center top;
  background-repeat: repeat-y;
  padding: 40px 0 0;
  width: 100%;
}

.menu-title-container {
  display: flex;
  justify-content: center;
  padding: 0 5% 60px;
}

.menu-title-img {
  width: 100%;
  max-width: 650px;
  height: auto;
}

.menu-section-transparent {
  padding: 20px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.menu-category {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-category-title {
  font-family: var(--font-heading);
  font-weight: normal;
  color: var(--brand-orange);
  font-size: clamp(2.5rem, 5vw, 3.5rem); 
  margin-bottom: 10px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.menu-item-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  text-transform: uppercase;
}

.menu-item-price {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.menu-section-orange {
  position: relative;
  padding: 60px 5%;
  display: flex;
  justify-content: center;
}

.menu-section-orange::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-orange);
  mix-blend-mode: multiply;
  z-index: 1;
  border-radius: inherit; /* Curves with the parent section */
}

.orange-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.orange-item {
  display: flex;
  align-items: center;
  gap: 30px;
}

.orange-item img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.orange-text-block {
  flex: 1;
}

.orange-text-block .menu-category-title {
  color: var(--text-light); 
  font-size: clamp(2rem, 4vw, 3rem);
}

.orange-text-block .menu-item-name,
.orange-text-block .menu-item-price {
  color: var(--text-light);
  font-size: 1.1rem;
}

.orange-text-block .menu-item-desc {
  color: rgba(255, 255, 255, 0.9);
}

/* Thin bottom strip version */
.menu-section-orange.thin-strip {
  padding: 40px 5%;
  margin-top: 40px;
  border-radius: 0 0 56px 56px; /* 56px rounded bottom corners */
}

.menu-section-orange.thin-strip .orange-content-wrapper {
  grid-template-columns: 1fr;
  text-align: center;
}

.menu-section-orange.thin-strip .menu-category-title {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 0;
}

.menu-section-orange.thin-strip .menu-item {
  display: inline-block;
  margin-right: 20px;
}

/* =========================================
   DELIVERY SECTION (Reused globally)
   ========================================= */

.delivery-section {
  background-image: url('assets/images/section-bg-tall.png'); /* Added background to match the rest */
  background-size: cover;
  background-position: center;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
  padding: 60px 5% 100px;
  width: 100%;
}

.delivery-text {
  flex: 1;
  max-width: 500px;
}

.delivery-text h2 {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--brand-orange);
  font-weight: normal;
}

.delivery-text p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.delivery-image {
  flex: 1;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

/* =========================================
   FOOTER (Reused globally)
   ========================================= */

.site-footer {
  height: 277px;
  background-color: var(--bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px; 
  padding: 0 5%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--brand-orange);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  color: var(--text-dark);
  font-size: 20px;
  text-decoration: none; 
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  color: var(--brand-orange);
  transform: translateY(-2px);
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media screen and (max-width: 900px) {
  /* Nav Overrides */
  .main-nav {
    padding: 0;
    background-color: transparent;
  }
  .nav-inner {
    display: none; 
  }
  .mobile-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: max(20px, env(safe-area-inset-top)) 5% 20px;
    background-color: var(--brand-orange);
  }
  .mobile-nav-bar.transparent {
    background-color: transparent;
  }
  .mobile-logo img {
    height: 70px; 
    width: auto;
    border-radius: 8px;
  }
  .hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
  }
  .hamburger-line {
    width: 35px;
    height: 4px;
    background-color: #ffffff; 
    border-radius: 2px;
  }
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-cream);
    z-index: 1000;
    display: none; 
    flex-direction: column;
    align-items: center;
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .mobile-menu-overlay.active {
    display: flex;
  }
  .mobile-menu-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5% 40px;
  }
  .mobile-menu-header img {
    height: 80px;
    width: auto;
    border-radius: 8px;
  }
  .close-btn {
    background: transparent;
    border: 3px solid #003b73;
    color: #003b73;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
  }
  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
    margin-top: 40px;
  }
  .mobile-menu-links a {
    font-family: var(--font-nav);
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* Global Section Overrides */
  .top-section-wrapper {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-top: 0;
    padding-top: 0;
  }
  .about-hero {
    padding: 40px 5% 60px;
  }
  .about-hero-top {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .about-hero-top img {
    max-width: 300px;
  }
  .about-hero-top h1 {
    font-size: 3.5rem;
  }
  .about-hero-bottom p, .franchising-text-container p {
    font-size: 18px; 
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .franchising-hero img {
    margin-bottom: 30px;
  }
  .delivery-section {
    flex-direction: column;
    text-align: center;
  }
  .delivery-image {
    order: -1; 
    margin-bottom: 40px;
    max-width: 300px;
  }
  .delivery-text h2 {
    font-size: 3.5rem;
  }
  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  /* Homepage Index Overrides */
  .home-hero-s1 {
    height: auto;
    min-height: 600px;
    padding: 100px 5% 60px;
  }
  .s2-inner {
    flex-direction: column;
    text-align: center;
  }
  .s2-text {
    align-items: center;
  }
  .s2-images {
    margin: 0 auto 40px;
  }
  .craft-glass-box {
    padding: 40px 25px;
    border-radius: 30px;
  }

  /* Menu Overrides */
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .orange-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .orange-item {
    flex-direction: column;
    text-align: center;
  }
  .menu-section-orange.thin-strip .menu-category-title {
    display: block;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .menu-section-orange.thin-strip .menu-item {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
  }
}
/* =========================================
   SUCCESS MODAL STYLES
   ========================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  padding: 40px 30px;
  border-radius: 30px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-card h3 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--brand-orange);
  margin-bottom: 15px;
  font-weight: normal;
}

.modal-card p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modal-btn.primary {
  background-color: var(--brand-orange);
  color: #ffffff;
  border: none;
}

.modal-btn.primary:hover {
  transform: scale(1.05);
}

.modal-btn.secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.modal-btn.secondary:hover {
  background-color: var(--text-dark);
  color: var(--bg-cream);
}