/*
Theme Name:   Astra Child — Snacker's Point
Template:     astra
Version:      1.0.0
Description:  Custom child theme for Snacker's Point cafe website
*/

/* ── GLOBAL RESET & VARIABLES ─────────────────────────────────── */
:root {
    --sp-red:       #E8372A;
    --sp-red-dark:  #C02E22;
    --sp-yellow:    #FFB703;
    --sp-dark:      #1A1A2E;
    --sp-dark2:     #16213E;
    --sp-grey:      #F7F7F7;
    --sp-white:     #FFFFFF;
    --sp-text:      #333333;
    --sp-muted:     #777777;
    --sp-radius:    12px;
    --sp-shadow:    0 4px 20px rgba(0,0,0,0.10);
    --sp-shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.snackers-home {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--sp-text);
    overflow-x: hidden;
}

/* Hide Astra default title on home template */
body.snackers-home .entry-header,
body.snackers-home .ast-breadcrumbs-wrapper { display: none !important; }

body.snackers-home .site-content,
body.snackers-home #primary,
body.snackers-home .ast-container { max-width: 100% !important; padding: 0 !important; }

/* ── UTILITY ──────────────────────────────────────────────────── */
.sp-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.sp-section    { padding: 70px 0; }
.sp-section-alt { background: var(--sp-grey); }

.sp-badge {
    display: inline-block;
    background: var(--sp-yellow);
    color: var(--sp-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.sp-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--sp-dark);
    margin: 0 0 12px;
    line-height: 1.2;
}

.sp-subtitle {
    font-size: 17px;
    color: var(--sp-muted);
    margin: 0 0 40px;
    line-height: 1.6;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
}

.sp-btn-primary {
    background: var(--sp-red);
    color: #fff;
}
.sp-btn-primary:hover {
    background: var(--sp-red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232,55,42,0.35);
}

.sp-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.sp-btn-outline:hover {
    background: #fff;
    color: var(--sp-red);
    transform: translateY(-2px);
}

.sp-btn-dark {
    background: var(--sp-dark);
    color: #fff;
}
.sp-btn-dark:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.sp-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sp-dark) 0%, var(--sp-dark2) 50%, #0F3460 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(232,55,42,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,183,3,0.10) 0%, transparent 40%);
}

.sp-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 100px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.sp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,183,3,0.15);
    border: 1px solid rgba(255,183,3,0.4);
    color: var(--sp-yellow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.sp-hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 20px;
}

.sp-hero h1 span { color: var(--sp-yellow); }

.sp-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0 0 36px;
}

.sp-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.sp-hero-stats {
    display: flex;
    gap: 40px;
}

.sp-hero-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.sp-hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* Hero right — floating food cards */
.sp-hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sp-food-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s ease;
}
.sp-food-card:nth-child(2) { margin-top: 30px; }
.sp-food-card:nth-child(4) { margin-top: 30px; }
.sp-food-card:hover { transform: translateY(-8px); }

.sp-food-card-emoji { font-size: 40px; display: block; margin-bottom: 10px; }
.sp-food-card-name  { font-size: 13px; font-weight: 700; color: #fff; }
.sp-food-card-price { font-size: 12px; color: var(--sp-yellow); margin-top: 4px; font-weight: 600; }

/* ── ANNOUNCEMENT BAR ─────────────────────────────────────────── */
.sp-announce {
    background: var(--sp-red);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
}
.sp-announce-track {
    display: flex;
    gap: 60px;
    animation: marquee 25s linear infinite;
    width: max-content;
}
.sp-announce-item {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── ORDER TYPE TOGGLE ────────────────────────────────────────── */
.sp-order-type {
    background: var(--sp-dark);
    padding: 28px 0;
}
.sp-order-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sp-order-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}
.sp-order-btn.active,
.sp-order-btn:hover {
    background: var(--sp-red);
    border-color: var(--sp-red);
    color: #fff;
}
.sp-order-sep {
    color: rgba(255,255,255,0.3);
    font-size: 20px;
    font-weight: 300;
}

/* ── TRENDING / SPECIAL ───────────────────────────────────────── */
.sp-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.sp-trending-card {
    background: #fff;
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.sp-trending-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sp-shadow-lg);
}

.sp-trending-img {
    height: 180px;
    background: linear-gradient(135deg, #FFB703 0%, #FF6B35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    position: relative;
}

.sp-trending-badge-hot {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--sp-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.sp-trending-body { padding: 18px; }

.sp-trending-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-dark);
    margin: 0 0 6px;
}

.sp-trending-desc {
    font-size: 13px;
    color: var(--sp-muted);
    margin: 0 0 14px;
    line-height: 1.5;
}

.sp-trending-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--sp-red);
}

.sp-add-btn {
    background: var(--sp-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sp-add-btn:hover {
    background: var(--sp-red-dark);
    color: #fff;
    transform: scale(1.05);
}

/* ── MENU ─────────────────────────────────────────────────────── */
.sp-menu-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.sp-menu-tab {
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #E8E8E8;
    background: #fff;
    color: var(--sp-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sp-menu-tab.active,
.sp-menu-tab:hover {
    background: var(--sp-dark);
    border-color: var(--sp-dark);
    color: #fff;
}

.sp-menu-category { display: none; }
.sp-menu-category.active { display: block; }

.sp-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.sp-menu-item {
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: var(--sp-radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.sp-menu-item:hover {
    box-shadow: var(--sp-shadow);
    transform: translateY(-3px);
}

.sp-menu-item-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--sp-grey);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-menu-item-info { flex: 1; min-width: 0; }

.sp-menu-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-dark);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-menu-item-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.tag-veg   { background: #E8F5E9; color: #2E7D32; }
.tag-nonveg{ background: #FCE4EC; color: #C62828; }

.sp-menu-item-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--sp-red);
}

.sp-menu-item-action { flex-shrink: 0; }

/* ── COUPON BANNER ────────────────────────────────────────────── */
.sp-coupon-section {
    background: linear-gradient(135deg, var(--sp-dark) 0%, #0F3460 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sp-coupon-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,183,3,0.1) 0%, transparent 60%);
}
.sp-coupon-inner { position: relative; z-index: 2; }
.sp-coupon-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
}
.sp-coupon-title span { color: var(--sp-yellow); }
.sp-coupon-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 32px;
}
.sp-coupon-codes {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.sp-coupon-pill {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,183,3,0.6);
    border-radius: 10px;
    padding: 14px 24px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.sp-coupon-pill:hover {
    background: rgba(255,183,3,0.2);
    border-color: var(--sp-yellow);
}
.sp-coupon-code {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--sp-yellow);
    display: block;
}
.sp-coupon-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────── */
.sp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.sp-step { position: relative; }
.sp-step-num {
    width: 56px; height: 56px;
    background: var(--sp-red);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.sp-step-icon { font-size: 32px; margin-bottom: 12px; }
.sp-step-title { font-size: 16px; font-weight: 700; color: var(--sp-dark); margin-bottom: 8px; }
.sp-step-desc  { font-size: 14px; color: var(--sp-muted); line-height: 1.6; }

/* connector line between steps on desktop */
.sp-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 20px;
    right: -20px;
    font-size: 22px;
    color: #DDD;
}

/* ── REVIEWS ──────────────────────────────────────────────────── */
.sp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.sp-review-card {
    background: #fff;
    border-radius: var(--sp-radius);
    padding: 28px;
    box-shadow: var(--sp-shadow);
    position: relative;
}
.sp-review-card::before {
    content: '"';
    position: absolute;
    top: 16px; right: 24px;
    font-size: 72px;
    color: var(--sp-red);
    opacity: 0.12;
    font-family: Georgia, serif;
    line-height: 1;
}
.sp-review-stars { color: var(--sp-yellow); font-size: 18px; margin-bottom: 14px; }
.sp-review-text  { font-size: 15px; color: var(--sp-text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.sp-review-author { display: flex; align-items: center; gap: 12px; }
.sp-review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.sp-review-name  { font-weight: 700; font-size: 14px; color: var(--sp-dark); }
.sp-review-meta  { font-size: 12px; color: var(--sp-muted); }

/* ── INFO / LOCATION ──────────────────────────────────────────── */
.sp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.sp-info-card {
    background: #fff;
    border-radius: var(--sp-radius);
    padding: 32px;
    box-shadow: var(--sp-shadow);
}
.sp-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #F5F5F5;
}
.sp-info-row:last-child { border-bottom: none; }
.sp-info-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.sp-info-label { font-size: 12px; color: var(--sp-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.sp-info-value { font-size: 15px; font-weight: 600; color: var(--sp-dark); line-height: 1.5; }
.sp-map-placeholder {
    background: linear-gradient(135deg, #E8F4F8 0%, #D5E8F0 100%);
    border-radius: var(--sp-radius);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border: 2px dashed #C0D8E0;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.sp-footer {
    background: var(--sp-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}
.sp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.sp-footer-brand { font-size: 26px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.sp-footer-brand span { color: var(--sp-yellow); }
.sp-footer-tagline { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.sp-footer-social { display: flex; gap: 10px; }
.sp-social-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}
.sp-social-btn:hover { background: var(--sp-red); }
.sp-footer-heading { font-size: 13px; font-weight: 800; color: #fff; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.sp-footer-links { list-style: none; margin: 0; padding: 0; }
.sp-footer-links li { margin-bottom: 10px; }
.sp-footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.sp-footer-links a:hover { color: var(--sp-yellow); }
.sp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ── TODAY'S OFFERS ───────────────────────────────────────────── */
.sp-offers-section {
    background: linear-gradient(135deg, #FF6B35 0%, var(--sp-red) 50%, var(--sp-red-dark) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.sp-offers-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,183,3,0.2) 0%, transparent 50%);
}
.sp-offers-inner { position: relative; z-index: 2; }
.sp-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.sp-offer-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
}
.sp-offer-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.22);
}
.sp-offer-card-icon { font-size: 36px; margin-bottom: 10px; }
.sp-offer-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}
.sp-offer-card-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin: 0 0 12px;
}
.sp-offer-card-tag {
    display: inline-block;
    background: var(--sp-yellow);
    color: var(--sp-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sp-offer-empty {
    text-align: center;
    padding: 32px;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

/* ── LOYALTY POINTS CALLOUT ──────────────────────────────────── */
.sp-loyalty-section {
    background: var(--sp-dark);
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sp-loyalty-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,183,3,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(232,55,42,0.12) 0%, transparent 50%);
}
.sp-loyalty-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.sp-loyalty-icon {
    font-size: 60px;
    flex-shrink: 0;
}
.sp-loyalty-text h3 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
}
.sp-loyalty-text h3 span { color: var(--sp-yellow); }
.sp-loyalty-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 16px;
    line-height: 1.6;
}
.sp-loyalty-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.sp-loyalty-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}
.sp-loyalty-feat-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,183,3,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sp-hero-inner  { grid-template-columns: 1fr; gap: 40px; }
    .sp-hero-visual { display: none; }
    .sp-info-grid   { grid-template-columns: 1fr; }
    .sp-footer-grid { grid-template-columns: 1fr 1fr; }
    .sp-step:not(:last-child)::after { display: none; }
}

@media (max-width: 600px) {
    .sp-section { padding: 48px 0; }
    .sp-hero-stats { gap: 24px; }
    .sp-hero-actions { flex-direction: column; }
    .sp-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .sp-menu-tabs { gap: 6px; }
    .sp-menu-tab  { font-size: 12px; padding: 8px 14px; }
}
