/* ==========================================================================
   Header — Domek na trawie
   Wzorowany 1:1 na prototypie index.html
   ========================================================================== */

/* ── Reset Kadence header ───────────────────────────────────────────────────── */
#site-header,
.site-header {
    all: unset;
    display: block;
}

/* ── Nav wrapper ────────────────────────────────────────────────────────────── */
.site-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(248, 247, 245, 0.95); /* stone-50/95 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-top: 1.25rem;    /* py-5 */
    padding-bottom: 1.25rem;
    transition: padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header__nav.is-sticky {
    padding-top: 0.75rem;    /* py-3 */
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(45, 69, 56, 0.1); /* forest/10 */
}

/* ── Inner container ────────────────────────────────────────────────────────── */
.site-header__inner {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Logo ───────────────────────────────────────────────────────────────────── */
.site-header__logo {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;     /* text-2xl */
    color: var(--global-palette3, #2d4538);
    letter-spacing: -0.025em; /* tracking-tight */
    text-decoration: none;
    line-height: 1;
}

.site-header__logo:hover {
    color: var(--global-palette3, #2d4538);
    text-decoration: none;
}

.site-header__logo-text {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: var(--global-palette3, #2d4538);
    letter-spacing: -0.025em;
}

/* Logo — prototyp ma "Domek <em>na trawie</em>" z italic + light */
.site-header__logo-text::after {
    content: '';
}

/* Jeśli logo to obrazek */
.site-header__logo-img {
    height: 2.5rem;
    width: auto;
    display: block;
}

/* ── Desktop nav ────────────────────────────────────────────────────────────── */
.site-header__desktop-nav {
    display: none;
    align-items: center;
    gap: 2.5rem; /* gap-10 */
}

@media (min-width: 768px) {
    .site-header__desktop-nav {
        display: flex;
    }
}

/* Nav menu generated by wp_nav_menu */
.site-header__menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__menu a {
    font-size: 0.75rem;      /* text-xs */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;   /* tracking-[0.2em] */
    color: var(--global-palette3, #2d4538);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header__menu a:hover {
    color: var(--global-palette1, #b55e45); /* rust */
    text-decoration: none;
}

/* ── CTA button ─────────────────────────────────────────────────────────────── */
.site-header__cta {
    background-color: var(--global-palette3, #2d4538); /* forest */
    color: var(--global-palette8, #f8f7f5);            /* stone-50 */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}

.site-header__cta:hover {
    background-color: var(--global-palette1, #b55e45); /* rust */
    color: var(--global-palette8, #f8f7f5);
    text-decoration: none;
}

/* ── Mobile toggle ──────────────────────────────────────────────────────────── */
.site-header__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--global-palette3, #2d4538);
    padding: 0.5rem;
    margin-right: -0.5rem;
    z-index: 50;
    position: relative;
}

@media (min-width: 768px) {
    .site-header__mobile-toggle {
        display: none;
    }
}

/* ── Mobile menu overlay ────────────────────────────────────────────────────── */
.site-header__mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--global-palette8, #f8f7f5);
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__mobile-menu.is-open {
    transform: translateX(0);
}

/* Mobile menu nav list */
.site-header__mobile-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__mobile-menu-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__mobile-menu-list a {
    font-family: 'Fraunces', serif;
    font-size: 1.875rem; /* text-3xl */
    color: var(--global-palette3, #2d4538);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header__mobile-menu-list a:hover {
    color: var(--global-palette1, #b55e45);
    text-decoration: none;
}

/* Mobile CTA */
.site-header__mobile-cta {
    background-color: var(--global-palette3, #2d4538);
    color: var(--global-palette8, #f8f7f5);
    padding: 1rem 2.5rem; /* py-4 px-10 */
    font-size: 0.875rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.site-header__mobile-cta:hover {
    background-color: var(--global-palette1, #b55e45);
    color: var(--global-palette8, #f8f7f5);
    text-decoration: none;
}

/* ── Kadence body padding — kompensacja fixed headera ───────────────────────── */
.site-main,
#main,
.content-container {
    padding-top: 0;
}

/* Kadence wrapper — push content below fixed nav (approx 76px) */
body {
    padding-top: 0 !important;
}

/* Kompensacja: first section / hero powinien mieć własny padding-top w prototypie */
