:root {
  --terracotta: #E19F65;
  --sage: #81B29A;
  --mustard: #F2CC8F;
  --cream: #F4F1DE;
  --charcoal: #3D405B;
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Arial', sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: var(--charcoal);
  overflow-x: hidden;
  min-height: 100vh;
  padding: 20px;
}

/* Buttons */
.btn-primary {
  background: var(--sage);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #6e9783;
}

/* Darker Place Order button */
.btn-place-order {
  background: #5a8d76;
}

.btn-place-order:hover {
  background: #4a7863;
}

/* Small qty +/- buttons (cart) */
.btn-qty {
  padding: .45rem .8rem;
  border-radius: 10px;
  line-height: 1;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  background: rgba(244, 241, 222, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--terracotta);
}

.points-display {
  margin-left: 1rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--terracotta);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 4rem;
  padding: 8rem 5% 4rem;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #666;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.hero-image:hover img {
  transform: scale(1.05);
}

/* Menu */
.menu {
  padding: 6rem 5%;
  background: white;
}

.menu h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.menu-filter {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--cream);
  border: 2px solid var(--mustard);
  color: var(--mustard);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: var(--mustard);
  color: var(--cream);
}

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

.menu-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(129, 75, 21, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(187, 182, 153, 0.9);
}

.menu-card img {
  width: 100%;
  object-fit: cover;
}

.menu-card-content {
  padding: 1.5rem;
}

.menu-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.menu-card p {
  font-size: 1rem;
  color: var(--sage);
  margin-bottom: 1rem;
}

.menu-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mustard);
}

.builder-buttons {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* Custom Pizza Builder inputs (used in modal) */
.builder-input {
  width: 100%;
  padding: .6rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin: .35rem 0 1rem;
}

.builder-toppings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .35rem;
  margin-top: .5rem;
}

.builder-summary {
  margin-top: 1rem;
  background: var(--cream);
  padding: .8rem;
  border-radius: 12px;
}

.builder-summary-text {
  color: #444;
  font-size: .95rem;
}

/* Modal (CSS :target) */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 2000;
}

.modal:target {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(680px, 92vw);
  max-height: 88vh;
  overflow: auto;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
}

.modal-close {
  position: absolute;
  top: .6rem;
  right: .8rem;
  text-decoration: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  background: var(--cream);
  color: #333;
}

.modal-close:hover {
  background: #eadfcb;
}

.builder-modal-cta {
  margin-top: 1rem;
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

.builder-modal-price {
  font-weight: 600;
  color: #333;
}

/* Features */
.features {
  padding: 6rem 5%;
  background: var(--sage);
  color: floralwhite;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.feature-card {
  padding: 2rem;
  background: rgba(129, 75, 21, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.feature-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--terracotta);
}

/* About */
.about {
  padding: 6rem 5%;
  background: white;
}

/* Footer */
footer {
  background: var(--charcoal);
  color: white;
  padding: 4rem 5%;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  border-bottom: 1px solid rgba(34, 52, 70, 0.3);
  padding-bottom: 3rem;
}

.footer-col h3 {
  color: var(--mustard);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--sage);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--sage);
}

.copyright {
  margin-top: 2rem;
  opacity: 0.8;
}

/* Scroll-to-Top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
}

/* ---------- Order Page (shared styles) ---------- */
.order-now {
  padding: 2rem 5%;
  background: white;
}

.cart-summary {
  margin-top: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  border-radius: 8px;
}

.cart-item-info {
  color: #333;
}

.qty-controls {
  display: flex;
  gap: .5rem;
}

.total-price {
  margin-top: 1rem;
  display: inline-block;
}

.order-form {
  display: grid;
  gap: .6rem;
  margin-top: 1.2rem;
}

.order-form input {
  padding: .7rem;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* Redeem box on order page */
.redeem-box {
}

/* Tracking/Progress */
.tracking-section {
  padding: 2rem 5%;
  background: white;
}

.tracking-card {
  max-width: 900px;
  margin: 0 auto;
}

.order-status {
  margin-bottom: 20px;
}

.order-status p {
  margin: 5px 0;
}

.progress-container {
  width: 100%;
  background-color: #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  display: flex;
  width: 100%;
}

.progress-indicator {
  flex: 1;
  padding: 10px;
  text-align: center;
  background-color: #f4f4f4;
  color: #666;
  position: relative;
}

.progress-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #ddd;
}

.progress-indicator:last-child::before {
  display: none;
}

.progress-indicator.active {
  background-color: #4CAF50;
  color: white;
}

.progress-indicator.active::before {
  border-left-color: #4CAF50;
}

/* ---------- Auth page shared look (optional) ---------- */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  background-color: transparent;
}

.login-box {
  background: var(--cream);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-image {
    order: -1;
  }

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

  .nav-links {
    display: none;
  }

  .menu-filter {
    flex-wrap: wrap;
  }

  .modal-dialog {
    width: min(96vw, 720px);
  }
}
