/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #d32f2f;
  --primary-dark: #b71c1c;
  --secondary-color: #ff6f00;
  --accent-color: #ffa726;
  --bg-light: #fff8e1;
  --bg-cream: #ffecb3;
  --text-dark: #3e2723;
  --text-light: #6d4c41;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.2);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==================== UTILITIES ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-small {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  box-shadow: 0 2px 10px var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo img {
  height: 80px;
  transition: height 0.3s ease;
}

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

.nav-link {
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fff8ee;
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-overlay i {
  position: absolute;
  color: rgba(0, 0, 0, 0.06);
}

.hero-overlay i:nth-child(1) {
  top: 5%;
  left: 3%;
  font-size: 3rem;
  transform: rotate(-25deg);
}
.hero-overlay i:nth-child(2) {
  top: 12%;
  left: 25%;
  font-size: 5rem;
  transform: rotate(40deg);
}
.hero-overlay i:nth-child(3) {
  top: 8%;
  left: 55%;
  font-size: 2.5rem;
  transform: rotate(-60deg);
}
.hero-overlay i:nth-child(4) {
  top: 5%;
  right: 8%;
  font-size: 4.5rem;
  transform: rotate(15deg);
}
.hero-overlay i:nth-child(5) {
  top: 30%;
  left: 8%;
  font-size: 4rem;
  transform: rotate(70deg);
}
.hero-overlay i:nth-child(6) {
  top: 35%;
  left: 40%;
  font-size: 3rem;
  transform: rotate(-35deg);
}
.hero-overlay i:nth-child(7) {
  top: 28%;
  right: 5%;
  font-size: 3.5rem;
  transform: rotate(50deg);
}
.hero-overlay i:nth-child(8) {
  top: 50%;
  left: 2%;
  font-size: 4.5rem;
  transform: rotate(-45deg);
}
.hero-overlay i:nth-child(9) {
  top: 55%;
  left: 30%;
  font-size: 2.5rem;
  transform: rotate(20deg);
}
.hero-overlay i:nth-child(10) {
  top: 48%;
  right: 12%;
  font-size: 5rem;
  transform: rotate(-70deg);
}
.hero-overlay i:nth-child(11) {
  top: 70%;
  left: 10%;
  font-size: 3.5rem;
  transform: rotate(30deg);
}
.hero-overlay i:nth-child(12) {
  top: 72%;
  left: 45%;
  font-size: 4rem;
  transform: rotate(-15deg);
}
.hero-overlay i:nth-child(13) {
  top: 68%;
  right: 3%;
  font-size: 3rem;
  transform: rotate(55deg);
}
.hero-overlay i:nth-child(14) {
  top: 88%;
  left: 18%;
  font-size: 4.5rem;
  transform: rotate(-40deg);
}
.hero-overlay i:nth-child(15) {
  top: 90%;
  right: 20%;
  font-size: 3.5rem;
  transform: rotate(10deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==================== HERO CAROUSEL ==================== */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  cursor: grab;
  user-select: none;
}

.hero-carousel:active {
  cursor: grabbing;
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--white);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 111, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 1.2rem 2rem;
}

/* ==================== INFO SECTION ==================== */
.info-section {
  padding: 5rem 0;
  background: var(--white);
}

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

.info-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-cream);
  border-radius: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-lg);
}

.info-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.info-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.info-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ==================== ORDER SECTION ==================== */
.menu-page {
  background: var(--bg-light);
}

.order-section {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 60px;
  background: #fff8ee;
  overflow: hidden;
}

.order-section .container-small {
  position: relative;
  z-index: 1;
}

.order-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px var(--shadow-lg);
}

.order-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ==================== FORM STYLES ==================== */
#saboresContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

#saboresContainer:has(.pizza-group) {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pizza-group {
  background: var(--bg-light);
  border: 2px solid var(--bg-cream);
  border-radius: 15px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.pizza-group-title {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pizza-group-title i {
  font-size: 0.95rem;
}

.pizza-group-sabores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

@media (max-width: 480px) {
  #saboresContainer {
    grid-template-columns: 1fr;
  }

  .pizza-group-sabores {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label i {
  color: var(--primary-color);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--bg-cream);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-light);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: var(--white);
}

.form-group select {
  cursor: pointer;
}

/* ==================== ORDER SUMMARY ==================== */
.order-summary {
  background: var(--bg-cream);
  padding: 1.5rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.summary-line.total {
  border-top: 2px solid var(--secondary-color);
  margin-top: 1rem;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--text-dark);
  color: var(--bg-light);
  padding: 3rem 0 1rem;
}

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

.footer-logo {
  height: 70px;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-col p {
  line-height: 1.8;
  color: var(--bg-cream);
}

.footer-col p i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

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

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

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

.ifood-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  padding: 0.6rem 1.2rem;
  background: var(--white);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.ifood-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ifood-logo {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  object-fit: cover;
}

.ifood-link span {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 112px;
    flex-direction: column;
    background: var(--primary-dark);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px var(--shadow-lg);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-description {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-carousel {
    order: -1;
    max-width: 300px;
    margin-top: 2rem;
  }

  .order-card {
    padding: 2rem 1.5rem;
  }

  .order-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .order-card {
    padding: 1.5rem 1rem;
  }

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

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}
