/*
Theme Name: 4Page
Theme URI:
Author: BUŁA
Description: Szablon OnePage dla BUŁA Zapiekanki – programowany od zera
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: 4page
*/

/* ─── Grandstander – lokalna czcionka ─── */

@font-face {
    font-family: 'Grandstander';
    src: url('assets/czcionka/Grandstander/Grandstander-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grandstander';
    src: url('assets/czcionka/Grandstander/Grandstander-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #fe5f1f;
    --text: #1d1d1d;
    --bg: #fff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Grandstander', cursive;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* ─── NAV ─── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
}

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

.site-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.site-logo a {
    display: block;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ─── HERO ─── */

.hero-section {
    width: 100%;
}

.hero-inner {
    position: relative;
    height: 800px;
    background: #222 center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 2.5rem 3rem;
    text-align: right;
}

.hero-text p {
    color: #fff;
    font-size: min(5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-text p span {
    display: block;
    white-space: nowrap;
}

/* ─── SECTIONS ─── */

.section {
    padding: 5rem 0 3.5rem;
}

.section--alt {
    background: #fafafa;
}

h2 {
    color: var(--primary);
    font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* ─── MAP TAGLINE ─── */

.map-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* ─── ABOUT ─── */

.about-text {
    max-width: 800px;
}

.about-text p {
    margin: 0 0 1rem;
}

/* ─── WSPÓŁPRACA ─── */

.wspolpraca-text {
    max-width: 700px;
}

.wspolpraca-text p {
    margin: 0 0 1rem;
}

.wspolpraca-text ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
    list-style: disc;
}

.wspolpraca-text ul li {
    margin-bottom: 0.4rem;
}

/* ─── SOCIAL GRID ─── */

.social-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.social-item:hover {
    opacity: 0.7;
}

.social-thumb {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #eee;
    display: block;
}

.social-thumb--placeholder {
    background: #e8e8e8;
    border-radius: 10px;
    width: 150px;
    height: 150px;
}

/* ─── CONTACT ─── */

#contact p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

#contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

#contact a:hover {
    text-decoration: underline;
}

/* ─── FOOTER ─── */

.site-footer {
    background: #1d1d1d;
    color: #888;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.82rem;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
    .hero-inner {
        height: 520px;
    }

    .hero-text {
        padding: 1.5rem;
        max-width: 100%;
        text-align: center;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #eee;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .site-header {
        position: sticky;
    }

    .social-grid {
        gap: 1.5rem;
    }

    .social-thumb,
    .social-thumb--placeholder {
        width: 110px;
        height: 110px;
    }

    .section {
        padding: 3.5rem 0 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        height: 380px;
    }
}
