/* ============================================
   City Pizza Delivery Guide - Main Stylesheet
   Bright Lifestyle Design: Yellow + Red + White
   ============================================ */

/* CSS Variables */
:root {
    --primary-yellow: #FFD93D;
    --primary-red: #E63946;
    --white: #FFFFFF;
    --light-yellow: #FFF8E1;
    --dark-red: #C62828;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-red);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFC107 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary-red);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 10px 18px;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--primary-red);
    color: var(--white);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: var(--primary-red);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--white);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        width: 100%;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li a {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--white) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: var(--primary-yellow);
    border-radius: 50%;
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero h1 span {
    color: var(--primary-red);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background: var(--dark-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
}

.btn-yellow {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-yellow:hover {
    background: #FFC107;
    transform: translateY(-3px);
}

/* ============================================
   CARDS - App-like Design
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFC107 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-red);
}

.card-link:hover {
    gap: 12px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-header p {
    max-width: 600px;
    margin: 20px auto 0;
}

/* Alternating Background */
.bg-light {
    background: var(--light-yellow);
}

.bg-white {
    background: var(--white);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.feature-card {
    text-align: center;
    padding: 40px 30px;
}

.feature-card .card-icon {
    margin: 0 auto 20px;
}

/* ============================================
   PIZZA STYLES SECTION
   ============================================ */
.style-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
}

.style-card .style-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.style-card .style-content h4 {
    margin-bottom: 8px;
}

.style-card .style-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============================================
   HOW TO ORDER STEPS
   ============================================ */
.steps-container {
    counter-reset: step;
}

.step-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 10px;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
    overflow: hidden;
}

.blog-card .blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: -30px -30px 20px -30px;
}

.blog-card .blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.25rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--white);
    margin: 40px 0;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 25px;
}

.cta-banner .btn {
    margin: 5px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-about h3 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p span {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-yellow);
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFC107 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 15px;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-light);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: 60px 0;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    margin-bottom: 20px;
}

.content-block ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-block ul li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* ============================================
   CATEGORY PAGE SPECIFIC
   ============================================ */
.category-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .category-intro {
        grid-template-columns: 1fr;
    }
}

.category-image {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-red) 100%);
    height: 300px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-card h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-yellow);
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    margin-bottom: 10px;
}

.sidebar-card ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.sidebar-card ul li a:hover {
    color: var(--primary-red);
}

@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    text-align: center;
    padding: 40px 30px;
}

.contact-card .contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFC107 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.contact-card h4 {
    margin-bottom: 10px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .cta-banner {
        padding: 40px 25px;
    }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    margin-bottom: 30px;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-content ul li {
    margin-bottom: 8px;
    color: var(--text-light);
}