/* ============================================================
   PIZZA KING — STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cream: #faf7f2;
  --warm-white: #fffef9;
  --charcoal: #1a1a1a;
  --dark: #111;
  --orange: #e8520a;
  --orange-light: #f07030;
  --muted: #888;
  --border: #e8e0d4;
  --card-bg: #ffffff;
  --section-alt: #f5f1eb;
  --green: #25D366;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--charcoal); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,242,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.4rem; color: var(--charcoal); }
.nav__logo span { color: var(--orange); }
.nav__links { display: flex; gap: 2rem; list-style: none; }
.nav__links a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav__links a:hover { color: var(--orange); }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__order { background: var(--orange); color: #fff; padding: 0.5rem 1.2rem; border-radius: 2rem; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; transition: background 0.2s; white-space: nowrap; }
.nav__order:hover { background: var(--orange-light); }
.cart-trigger { position: relative; background: var(--section-alt); border: 1px solid var(--border); padding: 0.45rem 1rem; border-radius: 2rem; font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; transition: all 0.2s; }
.cart-trigger:hover { border-color: var(--orange); color: var(--orange); }
.cart-trigger .cart-badge { background: var(--orange); color: #fff; font-size: 0.68rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: absolute; top: -6px; right: -6px; opacity: 0; transform: scale(0); transition: all 0.2s; }
.cart-trigger .cart-badge.show { opacity: 1; transform: scale(1); }

/* ── FLOATING BUTTONS ── */
.floating-btns { position: fixed; bottom: 2rem; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: 0.75rem; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: var(--shadow-lg); transition: transform 0.2s; }
.float-btn:hover { transform: scale(1.1); }
.float-btn--wa { background: var(--green); }
.float-btn--call { background: var(--orange); }

/* ── HERO ── */
.hero { min-height: 100vh; background: var(--charcoal); display: flex; align-items: center; padding: 6rem 2rem 4rem; position: relative; overflow: hidden; }
.hero__bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: 'Playfair Display', serif; font-size: 22vw; font-weight: 900; color: rgba(255,255,255,0.03); white-space: nowrap; pointer-events: none; user-select: none; }
.hero__inner { max-width: 1100px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(232,82,10,0.15); border: 1px solid rgba(232,82,10,0.3); color: var(--orange); padding: 0.35rem 0.9rem; border-radius: 2rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero__title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -1px; margin-bottom: 1.2rem; }
.hero__title .accent { color: var(--orange); display: block; }
.hero__sub { color: rgba(255,255,255,0.55); font-size: 1rem; font-weight: 300; max-width: 400px; margin-bottom: 2rem; line-height: 1.7; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero__stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--orange); line-height: 1; }
.hero__stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pizza-visual { width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(232,82,10,0.15), transparent 60%); border: 1px solid rgba(232,82,10,0.2); display: flex; align-items: center; justify-content: center; font-size: 7rem; animation: float 4s ease-in-out infinite; position: relative; margin: 0 auto; }
.pizza-visual::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(232,82,10,0.2); animation: spin 20s linear infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: 2rem; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; border: none; cursor: pointer; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,82,10,0.3); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.6); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #1db954; transform: translateY(-2px); }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: #333; transform: translateY(-2px); }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.section__inner { max-width: 1100px; margin: 0 auto; }
.section__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
.section__title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--charcoal); line-height: 1.15; letter-spacing: -0.5px; }
.section__sub { color: var(--muted); margin-top: 0.8rem; max-width: 500px; font-size: 0.95rem; font-weight: 300; line-height: 1.7; }

/* ── ABOUT ── */
.about { background: var(--warm-white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about__image { background: var(--section-alt); border-radius: 16px; height: 380px; display: flex; align-items: center; justify-content: center; font-size: 6rem; overflow: hidden; }
.about__image img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.about__features { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.feature { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; background: var(--section-alt); border-radius: 10px; }
.feature__icon { font-size: 1.3rem; margin-top: 2px; }
.feature__title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.feature__desc { font-size: 0.82rem; color: var(--muted); }

/* ── MENU ── */
.menu-section { background: var(--cream); }
.menu__tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2.5rem 0 2rem; }
.tab-btn { padding: 0.5rem 1.2rem; border-radius: 2rem; border: 1px solid var(--border); background: transparent; font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.2s; color: var(--charcoal); }
.tab-btn.active, .tab-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.menu__panel { display: none; }
.menu__panel.active { display: block; }

/* Pizza tables */
.pizza-header { display: grid; grid-template-columns: 1fr 80px 80px 80px 120px; gap: 0.5rem; padding: 0.6rem 1rem; background: var(--charcoal); color: #fff; border-radius: 8px 8px 0 0; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1.5rem; }
.pizza-header .sz { text-align: center; }
.pizza-tier { background: var(--card-bg); border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; margin-bottom: 1rem; overflow: hidden; }
.tier-price-row { display: grid; grid-template-columns: 1fr 80px 80px 80px 120px; background: rgba(232,82,10,0.07); padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); align-items: center; }
.tier-price { text-align: center; font-weight: 700; font-size: 0.95rem; color: var(--orange); }
.pizza-item { display: grid; grid-template-columns: 1fr auto 120px; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); align-items: center; gap: 1rem; }
.pizza-item:last-child { border-bottom: none; }
.item__name { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.15rem; }
.item__desc { font-size: 0.78rem; color: var(--muted); }
.item__tag { font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 1rem; font-weight: 600; white-space: nowrap; }
.tag--veg { background: #e8f5e9; color: #2e7d32; }
.tag--nonveg { background: #fce4ec; color: #b71c1c; }

/* Grid items */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--border); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.menu-card { background: var(--card-bg); padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background 0.15s; }
.menu-card:hover { background: #fdfaf6; }
.menu-card__info { flex: 1; }
.menu-card__name { font-weight: 600; font-size: 0.88rem; }
.menu-card__sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.menu-card__right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.menu-card__price { font-weight: 700; color: var(--orange); font-size: 0.9rem; white-space: nowrap; }
.multi-price { font-size: 0.78rem; color: var(--muted); display: flex; flex-direction: column; gap: 1px; text-align: right; }
.multi-price span { color: var(--orange); font-weight: 700; }

/* Add to cart button */
.add-btn { background: var(--orange); color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; flex-shrink: 0; font-weight: 700; line-height: 1; }
.add-btn:hover { background: var(--orange-light); transform: scale(1.1); }
.add-btn:active { transform: scale(0.95); }
.add-btn.added { background: #2e7d32; animation: pop 0.3s ease; }
@keyframes pop { 0%{transform:scale(1)} 50%{transform:scale(1.3)} 100%{transform:scale(1)} }

.sub-heading { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--charcoal); margin: 1.8rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--orange); display: inline-block; }

/* ── GALLERY ── */
.gallery-section { background: var(--section-alt); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 200px 200px; gap: 1rem; margin-top: 2rem; }
.gallery__item { background: var(--card-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; border: 1px solid var(--border); transition: transform 0.2s; position: relative; overflow: hidden; }
.gallery__item:hover { transform: scale(1.02); }
.gallery__item--tall { grid-row: span 2; font-size: 5rem; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff; padding: 1rem 0.8rem 0.6rem; font-size: 0.8rem; font-weight: 600; }

/* ── HOURS ── */
.hours-section { background: var(--charcoal); }
.hours-section .section__title { color: #fff; }
.hours__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.hours-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.5rem 2rem; }
.hours-card h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.hours-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.88rem; }
.hours-row:last-child { border-bottom: none; }
.hours-day { color: rgba(255,255,255,0.5); }
.hours-time { color: #fff; font-weight: 500; }
.hours-time--open { color: #4ade80; }
.delivery-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(232,82,10,0.15); border: 1px solid rgba(232,82,10,0.3); color: var(--orange); padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 0.85rem; font-weight: 600; margin-top: 2rem; }

/* ── CONTACT ── */
.contact { background: var(--warm-white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2.5rem; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.5rem; background: var(--section-alt); border-radius: 12px; border: 1px solid var(--border); }
.contact-card__icon { font-size: 1.5rem; }
.contact-card__label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.25rem; }
.contact-card__value { font-size: 0.95rem; font-weight: 500; }
.contact-card__value a { color: var(--charcoal); }
.contact-card__value a:hover { color: var(--orange); }
.map-box { background: var(--section-alt); border-radius: 12px; border: 1px solid var(--border); height: 180px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; }
.contact__actions { display: flex; flex-direction: column; gap: 1rem; }
.action-btn { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem 2rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.action-btn:hover { transform: translateY(-2px); }
.action-btn--wa { background: var(--green); color: #fff; }
.action-btn--wa:hover { background: #1db954; box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.action-btn--call { background: var(--orange); color: #fff; }
.action-btn--call:hover { background: var(--orange-light); box-shadow: 0 8px 24px rgba(232,82,10,0.3); }
.action-btn--dark { background: var(--charcoal); color: #fff; }
.order-tip { background: var(--section-alt); border-radius: 12px; padding: 1.2rem 1.5rem; border: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ── FOOTER ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.4); padding: 2rem; text-align: center; font-size: 0.82rem; }
.footer strong { color: var(--orange); }
.footer a { color: var(--orange); }
.footer a.wa { color: var(--green); }

/* ── CART DRAWER ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 100vw; background: var(--warm-white); z-index: 301; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,0.15); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-drawer__title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; }
.cart-close { background: var(--section-alt); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.cart-close:hover { background: var(--border); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 1rem; color: var(--muted); }
.cart-empty span { font-size: 3rem; }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item__info { flex: 1; }
.cart-item__name { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.1rem; }
.cart-item__price { font-size: 0.82rem; color: var(--orange); font-weight: 600; }
.cart-item__qty { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn { background: var(--section-alt); border: 1px solid var(--border); width: 26px; height: 26px; border-radius: 50%; font-size: 0.9rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.qty-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.qty-num { font-weight: 600; font-size: 0.88rem; min-width: 20px; text-align: center; }
.cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--border); background: var(--warm-white); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 1rem; }
.cart-total__label { font-weight: 600; }
.cart-total__value { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; color: var(--orange); }
.cart-note { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; resize: none; background: var(--section-alt); color: var(--charcoal); margin-bottom: 1rem; outline: none; }
.cart-note:focus { border-color: var(--orange); }
.whatsapp-order-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem; background: var(--green); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.whatsapp-order-btn:hover { background: #1db954; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.cart-clear { width: 100%; background: none; border: none; color: var(--muted); font-size: 0.82rem; cursor: pointer; margin-top: 0.75rem; padding: 0.4rem; transition: color 0.2s; }
.cart-clear:hover { color: #e53935; }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .pizza-visual { width: 200px; height: 200px; font-size: 5rem; }
  .about__grid, .hours__grid, .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--tall { grid-row: span 1; }
  .pizza-header, .tier-price-row { grid-template-columns: 1fr 68px 68px 68px 100px; font-size: 0.7rem; }
  .pizza-item { grid-template-columns: 1fr auto 90px; }
}
@media (max-width: 600px) {
  .pizza-header { grid-template-columns: 1fr 56px 56px 56px 80px; }
  .tier-price-row { grid-template-columns: 1fr 56px 56px 56px 80px; }
  .pizza-item { grid-template-columns: 1fr auto; }
  .pizza-item .add-btn { display: none; }
}
