/* ========================================= */
/* GLOBAL RESET + ROOT COLORS (BRIGHT THEME) */
/* ========================================= */

:root {
  --brand-red: #e63946;
  --brand-yellow: #fbbf24;
  --brand-green: #16a34a;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --bg-light: #ffffff;
  --bg-soft: #f9fafb;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg-soft);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ============================= */
/* GLOBAL CONTAINER */
/* ============================= */

main {
  width: 100%;
  margin: 0 auto;
}

section {
  width: 100%;
}

/* ============================= */
/* TOP NAV (MOBILE-FIRST) */
/* ============================= */

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-logo {
  height: 48px;
  width: auto;
}

.nav-center {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link.active {
  color: var(--text-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.nav-phone {
  color: var(--text-dark);
  font-weight: 600;
}

.nav-order-btn {
  padding: 8px 16px;
  background: var(--brand-red);
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================= */
/* FIXED HEADER LAYOUT (ALL DEVICES) */
/* ============================= */

.top-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative; /* allows cart to float right */
  padding: 20px 16px;
  gap: 12px;
}

.nav-left {
  order: 1;
}

.nav-center {
  order: 2;
  display: flex;
  gap: 20px;
}

.nav-right {
  order: 3;
}

/* Cart button on the right */
.nav-cart-btn,
#view-cart-btn {
  position: absolute;
  right: 16px;
  top: 16px;
}

/* ============================= */
/* HERO SECTION (MOBILE-FIRST) */
/* ============================= */

.hero-bright {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 16px;
  background: linear-gradient(135deg, #111827, #0f172a);
  color: white;
  box-sizing: border-box;
}

.hero-text {
  max-width: 520px;
}

.hero-bright h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-bright p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 18px;
}

.hero-cta {
  display: inline-block;
  padding: 12px 22px;
  background: var(--brand-red);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 260px;
  width: 100%;
}

/* ========================================= */
/* HOME + DEALS — BRIGHT SECTIONS & CARDS    */
/* ========================================= */

/* ============================= */
/* FEATURED SECTIONS (HOME PAGE) */
/* ============================= */

.featured-section {
  padding: 24px 16px;
}

.featured-section h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: var(--text-dark);
}

/* Mobile-first: stacked cards */
.featured-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Bright card style */
.featured-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
  text-align: center;
  color: var(--text-dark);
}

.deal-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: white;
}

.placeholder-img {
  background: #fee2e2;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-price {
  font-weight: 700;
  margin: 6px 0 10px;
  color: var(--brand-red);
}

.featured-img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 12px;
}

.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-cta {
  display: inline-block;
  padding: 8px 16px;
  background: var(--brand-red);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================= */
/* DEALS PAGE — GRID + CARDS     */
/* ============================= */

.menu-section-block {
  margin-bottom: 40px;
}

.deal-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile-first */
  gap: 20px;
}

.deal-card {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.deal-card:hover {
  transform: translateY(-5px);
}

.deal-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.deal-content {
  padding: 16px;
  flex: 1;
}

.deal-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.deal-content p {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--brand-red);
}

.deal-content button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--brand-red);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================= */
/* BRIGHT FOOTER                 */
/* ============================= */

.bright-footer {
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-soft);

  .bright-footer {
    background: var(--bg-soft);
    padding: 16px 0;
  }

  .bright-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }
}

/* ========================================= */
/* PIZZA BUILDER PAGE — BRIGHT THEME         */
/* ========================================= */

/* PAGE WRAPPER */
.pizza-builder-page {
  background: var(--bg-soft);
  color: var(--text-dark);
}

/* PAGE LAYOUT */
.page {
  padding: 16px 12px;
  max-width: 1100px;
  margin: 0 auto;
}

/* MOBILE-FIRST LAYOUT */
.order-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto;
}

.menu-section,
.cart-section {
  width: 100%;
  height: auto;
}

/* ============================= */
/* BRIGHT CARDS (BUILDER)        */
/* ============================= */

.card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--card-shadow);
  height: auto;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-dark);
}

/* ============================= */
/* FORM FIELDS (BRIGHT INPUTS)   */
/* ============================= */

.field-group {
  margin-bottom: 12px;
}

.field-group.inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

label,
.field-group p {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.95rem;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.25);
}

/* ERROR STATE */
select:invalid {
  border-color: var(--brand-red);
}

/* ============================= */
/* OPTIONS LIST                  */
/* ============================= */

.options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  font-size: 0.9rem;
}

/* ============================= */
/* COUNTER LIST (Dips & Drinks)  */
/* ============================= */

.counter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.counter-label {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: var(--brand-red);
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.counter-btn:active {
  transform: scale(0.95);
}

.counter-value {
  min-width: 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

/* ============================= */
/* BUTTONS (RED BRAND STYLE)     */
/* ============================= */

.btn-primary {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: var(--brand-red);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
  transition: 0.1s ease;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================= */
/* CART (BRIGHT THEME)           */
/* ============================= */
@media (max-width: 768px) {
  .featured-img-wrapper {
    height: 200px;
  }

  .cart-items {
    max-height: none;
    overflow-y: visible;
    padding-right: 4px;
  }
}

.cart-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-title {
  font-weight: 600;
}

.cart-item-meta {
  color: var(--text-muted);
  margin: 2px 0 4px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--brand-red);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

.cart-summary {
  border-top: 1px dashed #d1d5db;
  margin-top: 10px;
  padding-top: 10px;
  font-size: 0.95rem;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

.empty-cart {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* PRICE PREVIEW */
.price-preview {
  text-align: right;
}

#item-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-red);
}

/* ORDER TYPE */
.hidden {
  display: none;
}

/* ========================================= */
/* RESPONSIVE — MOBILE-FIRST + DESKTOP FIXES */
/* ========================================= */

/* ============================= */
/* MOBILE-FIRST (already default) */
/* ============================= */
/* Your entire CSS above is mobile-first.
   This section only adds desktop enhancements. */

/* ============================= */
/* DESKTOP OVERRIDES (≥ 768px)   */
/* ============================= */

@media (min-width: 768px) {
  .top-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 40px;
    position: relative;
  }

  .nav-left {
    grid-column: 2; /* center */
    display: flex;
    justify-content: center;
  }

  .nav-center {
    grid-column: 2; /* stays centered under logo */
    margin-top: 10px;
  }

  .nav-right {
    grid-column: 3; /* right side */
    justify-self: end;
  }

  #view-cart-btn {
    position: static; /* no absolute positioning on desktop */
  }

  /* HERO */
  .hero-bright {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
  }

  .hero-image img {
    max-width: 340px;
  }

  /* FEATURED SECTIONS */
  .featured-section {
    padding: 32px 40px;
  }

  .featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .featured-card {
    text-align: center;
  }
  .featured-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* DEALS PAGE */
  .deal-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  /* Center deal cards */
  .deal-card {
    text-align: center;
  }

  /* Center text inside deal content */
  .deal-content h3,
  .deal-content p {
    text-align: center;
  }

  /* BUILDER PAGE LAYOUT */
  .order-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .menu-section {
    flex: 3;
  }

  .cart-section {
    flex: 2;
  }

  /* BUILDER BUTTONS */
  .btn-primary {
    width: auto;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* COUNTER BUTTONS */
  .counter-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  /* INPUTS */
  input,
  select,
  textarea {
    font-size: 1rem;
  }

  /* PAGE PADDING */
  .page {
    padding: 24px 20px;
  }
}

/* ============================= */
/* ORDER MODE CARD (BRIGHT THEME) */
/* ============================= */

.card label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin: 6px 0;
  cursor: pointer;
}

.card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-red);
}

#schedule-fields {
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
}

#schedule-fields label {
  margin-top: 8px;
}

#schedule-fields input[type="date"],
#schedule-fields input[type="time"] {
  margin-bottom: 10px;
}

/* Smooth reveal animation */
.hidden {
  display: none;
}

.show {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* international pizza */

/* Section subtitle */
.section-subtitle {
  text-align: center;
  margin-top: -10px;
  margin-bottom: 30px;
  color: #555;
  font-size: 1rem;
}

/* Grid for 18+ pizzas */
.deal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .deal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .deal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card styling (same as Deals page) */
.deal-card {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  text-align: center;
}

.deal-card:hover {
  transform: translateY(-5px);
}

.deal-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.deal-content {
  padding: 16px;
}

.deal-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.deal-content p {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--brand-red);
}

.deal-content button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--brand-red);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

/* =============================== */
/* MOBILE FIXES FOR INTERNATIONAL PAGE */
/* =============================== */

@media (max-width: 768px) {
  /* HEADER FIX */
  .top-nav {
    flex-direction: column;
    height: auto;
    padding: 16px;
    gap: 12px;
    text-align: center;
  }

  .featured-img {
    height: 150px;
    object-fit: cover;
  }

  .nav-left {
    flex-direction: column;
    height: auto;
    gap: 8px;
  }

  .nav-logo {
    height: 80px; /* perfect mobile size */
  }

  .nav-left-info {
    align-items: center;
  }

  .nav-center {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* HERO FIX */
  .hero-bright {
    flex-direction: column;
    text-align: center;
    padding: 30px 16px;
  }

  .hero-image img {
    max-width: 260px;
  }

  /* GRID FIX */
  .deal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
  }

  /* CARD FIX */
  .deal-card img {
    height: 140px;
  }

  .menu-section-block h2 {
    background: #2ecc71; /* green box */
    color: rgb(0, 0, 0); /* white text */
    padding: 10px 16px; /* space inside the box */
    border-radius: 6px; /* smooth rounded corners */
    display: inline-block; /* box fits the text width */
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }
}

.nav-cart-btn {
  background: #16a34a;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
}
.deal-card img,
.hero-image img,
.deal-grid img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ensures full image is visible */
  display: block;
}

.counter-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.counter-controls button {
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
}

.counter-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.counter-controls button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #e63946;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.counter-controls button:hover {
  background: #c62839;
}

.counter-value {
  font-weight: bold;
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

.deal-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.deal-content {
  padding: 14px;
  text-align: center;
}

.deal-content h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.deal-content p {
  font-weight: bold;
  color: #e63946;
  margin-bottom: 10px;
}

.add-simple-cart {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #e63946;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.add-simple-cart:hover {
  background: #c62839;
}
