/*
Theme Name: Colliefields Pizza – Front Page
Author: Colliefields Pizza
Version: 1.0.0
*/

/* ================================
   TOKENS / BASE
   ================================ */
:root{
  --bg:#f6f7f9;
  --surface:#ffffff;
  --text:#111214;
  --muted:#6b7280;
  --stroke:rgba(17,18,20,.10);
  --shadow:0 10px 28px rgba(0,0,0,.08);

  --red:#c51b1b;
  --green:#1f8f3a;
  --yellow:#f1b90b;
  --blue:#1b63d1;

  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body.welcome-page{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

a{color:inherit;text-decoration:none}

/* ================================
   BUTTONS (REUSED)
   ================================ */
.btn{
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
}

.btn--large{font-size:16px;padding:14px 18px}
.btn--green{background:var(--green);color:#fff}
.btn--red{background:var(--red);color:#fff}

/* ================================
   WELCOME HEADER
   ================================ */
.welcome-header{
  background:#fff;
  border-bottom:1px solid var(--stroke);
}

.welcome-header__inner{
  max-width:1200px;
  margin:0 auto;
  height:92px;
  padding:0 18px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.welcome-header__logo{
  flex:0 0 auto;
}

.welcome-header__logo img{
  height:clamp(52px,6vw,64px);
  width:auto;
  display:block;
}

.welcome-header__nav{
  font-weight:900;
  color:var(--muted);
  opacity:.5;
}

.welcome-header__location{
  font-weight:800;
}

/* ================================
   MAIN WRAPPER
   ================================ */
.welcome-main{
  max-width:1100px;
  margin:0 auto;
  padding:60px 16px 40px;
}

/* ================================
   ORDER GATE
   ================================ */
.order-gate{
  text-align:center;
  margin-bottom:60px;
}

.order-gate__title{
  font-size:28px;
  font-weight:900;
  margin:0 0 22px;
}

.order-gate__actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.order-gate__or{
  font-weight:900;
  opacity:.6;
}

/* ================================
   COMBO OFFERS
   ================================ */
.welcome-combos{
  margin-top:40px;
}

.section-title{
  font-size:20px;
  font-weight:900;
  margin-bottom:14px;
}

/* horizontal scroll row */
.deals-row{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(240px,1fr);
  gap:14px;
  overflow-x:auto;
  padding-bottom:8px;
}

.deal-card{
  background:var(--surface);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.deal-img{
  height:140px;
  background:linear-gradient(135deg,rgba(0,0,0,.06),rgba(0,0,0,.02));
}

.deal-meta{
  padding:14px;
}

.deal-title{
  font-size:16px;
  font-weight:900;
}

.deal-sub{
  margin-top:4px;
  color:var(--muted);
  font-weight:700;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #0f0f0f;
  color: #ddd;
  padding: 60px 0 0;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 30px 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
}

.footer-col h4 {
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #fff;
}

.footer-logo {
  width: 120px;
  margin-bottom: 15px;
}

.footer-tagline {
  color: #aaa;
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-block;
  margin-right: 15px;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  transition: 0.3s ease;
}

.footer-social a:hover {
  color: #e63946;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.hours {
  color: #aaa;
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid #1f1f1f;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width:599px){
  .order-gate__title{font-size:24px}
  .welcome-header__inner{height:80px}
}
/* =====================================================
 * ORDER TYPE GATE MODAL
 * ===================================================== */

.cp-order-gate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-order-gate-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cp-order-gate-modal__content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cpModalSlideIn 0.3s ease-out;
}

@keyframes cpModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cp-order-gate__header {
  text-align: center;
  margin-bottom: 28px;
}

.cp-order-gate__header h2 {
  font-size: 24px;
  font-weight: 900;
  color: #111214;
  margin: 0 0 8px 0;
}

.cp-order-gate__header p {
  font-size: 15px;
  color: #6b7280;
  font-weight: 600;
  margin: 0;
}

/* Order Options */
.cp-order-gate__options {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.cp-order-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cp-order-option:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cp-order-option.selected {
  border-color: #1f8f3a;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(31, 143, 58, 0.1);
}

.cp-order-option__icon {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.cp-order-option__content {
  flex: 1;
}

.cp-order-option__content h3 {
  font-size: 18px;
  font-weight: 900;
  color: #111214;
  margin: 0 0 4px 0;
}

.cp-order-option__content p {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  margin: 2px 0;
}

.cp-order-option__note {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 700;
}

/* Delivery Postcode Section */
.cp-delivery-postcode {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e5e7eb;
}

.cp-delivery-postcode label {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #111214;
}

.cp-postcode-note {
  display: block;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 4px;
}

.cp-postcode-input-group {
  display: flex;
  gap: 12px;
}

.cp-delivery-postcode input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
  transition: all 0.2s ease;
}

.cp-delivery-postcode input:focus {
  outline: none;
  border-color: #1f8f3a;
  box-shadow: 0 0 0 3px rgba(31, 143, 58, 0.1);
}

.cp-delivery-postcode input.error {
  border-color: #c51b1b;
  box-shadow: 0 0 0 3px rgba(197, 27, 27, 0.1);
}

.cp-btn {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cp-btn--primary {
  background: #1f8f3a;
  color: #fff;
}

.cp-btn--primary:hover {
  background: #16692a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 143, 58, 0.3);
}

.cp-btn--primary:active {
  transform: translateY(0);
}

.cp-btn--primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cp-error-message {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #c51b1b;
  font-size: 14px;
  font-weight: 700;
}

/* =====================================================
 * ORDER CONFIRMATION BANNER
 * ===================================================== */

.cp-order-confirmation {
  background: linear-gradient(135deg, #1f8f3a 0%, #16692a 100%);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 998;
}

.cp-order-confirmation__icon {
  font-size: 18px;
}

.cp-order-confirmation__text {
  flex: 1;
  text-align: center;
}

.cp-order-confirmation__change {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cp-order-confirmation__change:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
 * CART MINIMUM WARNING
 * ===================================================== */

.cp-cart-minimum-warning {
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

/* =====================================================
 * DISABLED MENU INTERACTIONS
 * ===================================================== */

.cp-open-product.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* =====================================================
 * RESPONSIVE ADJUSTMENTS
 * ===================================================== */

@media (max-width: 600px) {
  .cp-order-gate-modal__content {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .cp-order-gate__header h2 {
    font-size: 20px;
  }

  .cp-order-gate__header p {
    font-size: 14px;
  }

  .cp-order-option {
    padding: 16px;
    gap: 12px;
  }

  .cp-order-option__icon {
    font-size: 32px;
  }

  .cp-order-option__content h3 {
    font-size: 16px;
  }

  .cp-order-option__content p {
    font-size: 13px;
  }

  .cp-postcode-input-group {
    flex-direction: column;
  }

  .cp-btn--primary {
    width: 100%;
  }

  .cp-order-confirmation {
    padding: 10px 16px;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .cp-order-confirmation__text {
    width: 100%;
    order: -1;
    margin-bottom: 8px;
  }
}