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

/* Variables */
:root {
    --color-bg: #f5f0e8;
    --color-text: #4b4848;
    --color-text-light: #6b6767;
    --color-accent: #c0392b;
    --color-border: #d4cfc5;
    --color-input-bg: #faf8f4;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    padding-top: 128px;
}

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

a {
    color: var(--color-text);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    z-index: 1000;
    padding: 16px 0;
    transition: padding 0.3s ease;
}

.site-header.scrolled {
    padding: 6px 0;
    border-bottom: 3px solid var(--color-text);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-script {
    height: 96px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo-script {
    height: 56px;
}

.logo-pizza {
    font-family: 'Avenir Next Condensed', 'Avenir Next', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: 96px;
    letter-spacing: 0.08em;
    color: var(--color-text);
    transition: font-size 0.3s ease;
}

.site-header.scrolled .logo-pizza {
    font-size: 56px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    padding: 80px 0 64px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--color-text);
}

/* About */
.about {
    padding: 64px 0;
}

.about h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.about p {
    margin-bottom: 16px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact {
    padding: 64px 0;
    border-top: 1px solid var(--color-border);
}

.contact h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact > .container > p {
    margin-bottom: 32px;
}

.contact-form {
    max-width: 480px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    color: var(--color-text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot */
.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* Button */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 32px;
    color: var(--color-bg);
    background: var(--color-text);
    border: 2px solid var(--color-text);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    color: var(--color-text);
    background: transparent;
}

/* Simple pages (thanks, 404) */
.simple-page {
    padding: 120px 0 80px;
    text-align: center;
}

.simple-page h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 16px;
}

.simple-page p {
    margin-bottom: 12px;
}

/* Footer */
.site-footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.site-footer p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding-top: 98px;
    }

    .logo-script {
        height: 66px;
    }

    .logo-pizza {
        font-size: 50px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 240px;
        height: 100vh;
        background: var(--color-bg);
        padding: 100px 40px 40px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 24px;
    }

    .main-nav a {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        z-index: 200;
    }

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

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

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

    .hero {
        padding: 48px 0 40px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .about,
    .contact {
        padding: 48px 0;
    }

    .about h2,
    .contact h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }

    .logo-script {
        height: 48px;
    }

    .logo-pizza {
        font-size: 36px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }
}
