/* ============================================
   Perky's Pizza of Durham — Stylesheet
   Plum + Amber | Playfair Display + Inter
   ============================================ */

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

:root {
    --plum-deep: #1A0A1E;
    --plum-dark: #2D1035;
    --plum-mid: #7B2D8E;
    --plum-light: #A855C4;
    --plum-pale: #F3E5F5;
    --amber: #F5A623;
    --amber-dark: #D4891A;
    --amber-light: #FDD87A;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --text-dark: #1A0A1E;
    --text-muted: #6B5A70;
    --text-light: #F3E5F5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(26, 10, 30, 0.08);
    --shadow-md: 0 8px 30px rgba(26, 10, 30, 0.12);
    --shadow-lg: 0 16px 60px rgba(26, 10, 30, 0.18);
    --shadow-glow: 0 0 40px rgba(123, 45, 142, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.text-amber {
    color: var(--amber);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--amber);
    color: var(--plum-deep);
    border-color: var(--amber);
}

.btn-primary:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.05rem;
}

.btn-nav {
    padding: 10px 22px;
    font-size: 0.875rem;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 10, 30, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.2);
    transition: all var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.logo-accent {
    color: var(--amber);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.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);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--plum-deep);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(123, 45, 142, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(245, 166, 35, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: var(--amber);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.05;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(243, 229, 245, 0.75);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-main-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 520px;
}

.hero-main-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-card-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(26, 10, 30, 0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.stat-card--top {
    top: -20px;
    right: -30px;
}

.stat-card--bottom {
    bottom: 30px;
    left: -40px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--plum-mid);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.3;
}

/* ---------- DIVIDER ---------- */
.section-divider {
    background: var(--plum-deep);
    margin-top: -1px;
}

/* ---------- SECTION COMMON ---------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--plum-mid);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--plum-deep);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- MENU ---------- */
.menu-section {
    background: var(--cream);
    padding: 100px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.menu-card-img {
    overflow: hidden;
    height: 220px;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.05);
}

.menu-card-body {
    padding: 24px;
}

.menu-card-body h3 {
    font-size: 1.4rem;
    color: var(--plum-deep);
    margin-bottom: 8px;
}

.menu-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.menu-cta {
    text-align: center;
}

/* ---------- ABOUT ---------- */
.about-section {
    background: var(--plum-deep);
    padding: 100px 0;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--plum-deep);
}

.about-img-secondary img {
    width: 400px;
    height: 300px;
    object-fit: cover;
}

.about-content .section-tag {
    color: var(--amber);
}

.about-content .section-title {
    color: var(--white);
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.05rem;
    color: rgba(243, 229, 245, 0.7);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-stat-num {
    font-size: 1.8rem;
}

.about-stat-label {
    font-size: 0.8rem;
    color: rgba(243, 229, 245, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-section {
    background: var(--cream);
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

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

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--plum-light);
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 24px;
    opacity: 0.4;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--plum-deep);
}

/* ---------- LOCATION ---------- */
.location-section {
    background: var(--white);
    padding: 100px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.location-info .section-tag {
    color: var(--amber);
}

.location-info .section-title {
    text-align: left;
    margin-bottom: 32px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.location-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(245, 166, 35, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--plum-mid);
    margin-bottom: 4px;
}

.location-item p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.location-item a {
    color: var(--amber-dark);
    font-weight: 600;
    transition: color var(--transition);
}

.location-item a:hover {
    color: var(--plum-mid);
}

.location-map {
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-visual img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.location-overlay-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(26, 10, 30, 0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    color: var(--white);
}

.overlay-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.overlay-stat-num {
    font-size: 1.4rem;
}

.overlay-stat span:last-child {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
    background: var(--plum-deep);
    padding: 100px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum-mid) 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

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

.cta-content .section-tag {
    color: var(--amber);
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(243, 229, 245, 0.7);
    line-height: 1.7;
    max-width: 420px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--plum-deep);
    border-top: 1px solid rgba(123, 45, 142, 0.2);
    padding: 64px 0 32px;
}

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

.footer-brand .logo-text {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(243, 229, 245, 0.5);
    line-height: 1.6;
    max-width: 280px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links strong,
.footer-contact strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--amber);
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(243, 229, 245, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(243, 229, 245, 0.5);
    line-height: 1.6;
}

.footer-contact a {
    color: var(--amber);
    font-weight: 500;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--amber-light);
}

.footer-bottom {
    border-top: 1px solid rgba(123, 45, 142, 0.15);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(243, 229, 245, 0.35);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sub {
        margin: 0 auto 36px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 48px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-tag {
        display: block;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-info .section-title {
        text-align: center;
    }

    .location-info .section-tag {
        display: block;
        text-align: center;
    }

    .location-visual {
        max-width: 560px;
        margin: 0 auto;
    }

    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 32px;
    }

    .cta-desc {
        margin: 0 auto;
    }

    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(26, 10, 30, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        transform: translateY(-120%);
        transition: transform var(--transition);
        border-bottom: 1px solid rgba(123, 45, 142, 0.2);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .about-img-secondary {
        right: 0;
        bottom: -20px;
    }

    .about-img-secondary img {
        width: 260px;
        height: 200px;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-card {
        padding: 36px 24px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }
}

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

    .hero {
        padding: 90px 0 50px;
    }

    .menu-section,
    .about-section,
    .testimonials-section,
    .location-section,
    .cta-section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .menu-card-img {
        height: 180px;
    }

    .about-img-main img {
        height: 400px;
    }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
