/* ==========================================
   THE GREAT AMERICAN PIZZA
   Premium Italian-American Design
   ========================================== */

:root {
    /* American */
    --usa-red: #B22234;
    --usa-blue: #3C3B6E;

    /* Italian */
    --italia-green: #008C45;
    --italia-red: #CD212A;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --cream: #F8F6F3;
    --charcoal: #1C1C1C;
    --text: #2D2D2D;
    --text-light: #6B6B6B;

    /* Accent blend */
    --accent: #B22234;
    --accent-dark: #8B1A28;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

p {
    letter-spacing: 0.01em;
}

/* ==========================================
   NAVIGATION
   ========================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    padding: 0;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

#navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}

#navbar.scrolled .nav-logo {
    height: 55px;
}

#navbar.scrolled .nav-container {
    height: 70px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 20px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    border-radius: 2px;
    margin-left: 16px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--accent-dark);
    color: var(--white) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   HERO
   ========================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, var(--charcoal) 0%, #2a2a2a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero.JPG') center center/cover no-repeat;
    opacity: 0.4;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--charcoal), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    margin-top: 40px;
}

.hero-logo {
    max-width: 380px;
    width: 90%;
    height: auto;
    margin-bottom: 40px;
    background: var(--white);
    padding: 24px 32px;
    border-radius: 4px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    animation: fadeUp 0.8s ease;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: var(--white);
    margin-bottom: 50px;
    letter-spacing: 0.02em;
    opacity: 0.9;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: inline-block;
    padding: 18px 48px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero-cta:hover {
    background: var(--white);
    color: var(--charcoal);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 120px 20px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 24px;
}

.section-intro {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.7;
}

/* ==========================================
   ABOUT
   ========================================== */
.about-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--usa-red) 0%,
        var(--usa-red) 33%,
        var(--white) 33%,
        var(--white) 66%,
        var(--usa-blue) 66%,
        var(--usa-blue) 100%
    );
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    font-size: 17px;
    margin-bottom: 24px;
    color: var(--text);
    line-height: 1.8;
}

.about-content p:first-of-type {
    font-size: 20px;
    color: var(--charcoal);
    line-height: 1.7;
}

.about-content strong {
    color: var(--charcoal);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    border: 2px solid var(--italia-green);
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: -20px;
    left: -20px;
    border: 2px solid var(--accent);
    z-index: -1;
}

/* ==========================================
   TRAILER / EVENTS
   ========================================== */
.trailer-section {
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.trailer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--italia-green) 0%,
        var(--italia-green) 33%,
        var(--white) 33%,
        var(--white) 66%,
        var(--italia-red) 66%,
        var(--italia-red) 100%
    );
}

.trailer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.trailer-content {
    order: 2;
}

.trailer-image {
    order: 1;
}

.trailer-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.event-list {
    list-style: none;
    margin: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}

.event-list li {
    font-size: 15px;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text);
}

.event-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.highlight-box {
    background: var(--white);
    padding: 24px 28px;
    border-left: 4px solid var(--usa-blue);
    margin-top: 32px;
}

.highlight-box p {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-section {
    background: var(--charcoal);
    color: var(--white);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--usa-blue) 0%,
        var(--usa-blue) 20%,
        var(--white) 20%,
        var(--white) 40%,
        var(--usa-red) 40%,
        var(--usa-red) 60%,
        var(--white) 60%,
        var(--white) 80%,
        var(--italia-green) 80%,
        var(--italia-green) 100%
    );
}

.contact-section .section-label {
    color: var(--usa-red);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-intro {
    color: rgba(255,255,255,0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item .label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.contact-item .value {
    font-size: 22px;
    font-weight: 400;
    color: var(--white);
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--usa-red);
}

.contact-cta-box {
    background: rgba(255,255,255,0.05);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-cta-box h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 16px;
}

.contact-cta-box p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    font-size: 16px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 48px;
    background: var(--usa-red);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #141414;
    padding: 60px 20px 40px;
    text-align: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 32px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 4px;
}

.footer p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 16px !important;
    color: rgba(255,255,255,0.6) !important;
    margin-top: 16px !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 24px;
        height: 80px;
    }

    .nav-logo {
        height: 60px;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 12px;
    }

    .section {
        padding: 80px 20px;
    }

    .about-grid,
    .trailer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image img,
    .trailer-image img {
        height: 400px;
    }

    .trailer-content,
    .trailer-image {
        order: unset;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }

    .nav-logo {
        height: 50px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: 20px 40px;
        font-size: 14px;
        letter-spacing: 0.1em;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: var(--cream);
    }

    .nav-cta {
        margin: 20px 40px 0;
        width: calc(100% - 80px);
        text-align: center;
        border-bottom: none;
    }

    .hero-section {
        min-height: 600px;
    }

    .hero-logo {
        max-width: 300px;
        padding: 20px 24px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-image::before,
    .about-image::after {
        display: none;
    }

    .event-list {
        grid-template-columns: 1fr;
    }

    .trailer-section::before,
    .about-section::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-logo {
        height: 45px;
    }

    .hero-logo {
        max-width: 260px;
        padding: 16px 20px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .hero-cta {
        padding: 16px 36px;
    }

    .about-image img,
    .trailer-image img {
        height: 300px;
    }

    .contact-cta-box {
        padding: 32px 24px;
    }

    .contact-item .value {
        font-size: 18px;
    }
}
