/*
Theme Name: Burda Theme
Theme URI: https://zageszczaniewlosow.eu
Author: KZB Studio
Description: Dedykowany motyw dla Studio Burda s.c. — salon fryzjerski, zagęszczanie włosów, Katowice.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: burda
*/

/* ============================================================
   BASE
   ============================================================ */
body {
    font-weight:400;
    overflow-x: hidden;
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].animate-in { opacity: 1; transform: translateY(0); }
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

[data-animate="fade-left"] {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate="fade-right"] {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate="fade-left"].animate-in,
[data-animate="fade-right"].animate-in { opacity: 1; transform: translate(0); }

/* ============================================================
   STICKY HEADER
   ============================================================ */
#site-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Przesunięcie headera pod admin bar WordPressa (gdy zalogowany) */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #site-header { top: 46px; }
}
#site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.08);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open { transform: translateX(0); }
#menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
#menu-overlay.open { opacity: 1; pointer-events: auto; }

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO — przyciski i kafelki (wg stylebooka)
   ============================================================ */
/* btn-primary: pill, złote tło, biały tekst — wg stylebooka */
.burda-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #8C7B52;
    color: #fff;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-size: .875rem;
    font-weight: 400;
    letter-spacing: .13em;
    text-transform: uppercase;
    padding: .75rem 1.8rem;
    text-decoration: none;
    border: none;
    transition: opacity .2s, transform .15s;
}
.burda-btn-primary:hover { opacity: .88; transform: translateY(-1px); }

/* btn-ghost: pill, złota obwódka i tekst — wg stylebooka */
.burda-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: #8C7B52;
    border-radius: 50px;
    border: 2px solid #8C7B52;
    font-family: 'Open Sans', sans-serif;
    font-size: .875rem;
    font-weight: 400;
    letter-spacing: .13em;
    text-transform: uppercase;
    padding: .75rem 1.8rem;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.burda-btn-ghost:hover { opacity: .88; transform: translateY(-1px); }

/* Tile: dokładnie jak .tile ze stylebooka */
.burda-tile {
    position: relative;
    overflow: hidden;
    background-color: #6D136C;
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 150px;
    padding: 75px 1.4rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: opacity .2s;
}
.burda-tile:hover { opacity: .9; }
.burda-tile:hover .burda-tile-icon {
    background: #B5A070;
    color: #fff;
    border-color: #B5A070;
    transition: background .2s, color .2s, border-color .2s;
}
.burda-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #401A64 0%, transparent 75%);
    pointer-events: none;
}
.burda-tile > * { position: relative; z-index: 1; }
.burda-tile-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #B5A070;
    color: #B5A070;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.burda-tile-text {
    font-family: 'Open Sans', sans-serif;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    line-height: 1.4;
    color: #fff;
    flex: 1;
}
.burda-tile-arrow {
    margin-left: auto;
    opacity: .6;
    flex-shrink: 0;
}

/* ============================================================
   HEADER — logo przy węższych desktopach
   ============================================================ */
@media (min-width: 1200px) and (max-width: 1330px) {
    .burda-site-logo svg { height: 3.5rem; }
}

/* ============================================================
   HERO — gradient (mobile/tablet vs desktop)
   ============================================================ */
.burda-hero-gradient {
    background: linear-gradient(to bottom,rgba(255,255,255,.82) 0%,rgba(255,255,255,.52) 62%,rgba(255,255,255,.12) 81%,transparent 100%);
}
@media (min-width: 649px) {
    .burda-hero-gradient {
        background: linear-gradient(to left,rgba(255,255,255,.82) 0%,rgba(255,255,255,.52) 62%,rgba(255,255,255,.12) 81%,transparent 100%);
    }
}
@media (min-width: 1200px) {
    .burda-hero-gradient {
        background: linear-gradient(to left,rgba(255,255,255,.82) 0%,rgba(255,255,255,.52) 38%,rgba(255,255,255,.12) 62%,transparent 100%);
    }
}

/* ============================================================
   TRUST BAR — animacje fal (SMIL w SVG, patrz trust-bar.php)
   ============================================================ */
.burda-wave-h-white  { height: 48px; }
.burda-wave-h-purple { height: 64px; }

/* Pojedynczy rząd, węższy desktop — mniejszy font */
@media (min-width: 1230px) and (max-width: 1599px) {
    .burda-trust-item  { padding-left: 1.25rem; padding-right: 1.25rem; gap: 0.5rem; }
    .burda-trust-label { font-size: 0.75rem; letter-spacing: 0.08em; }
}

/* Dwa rzędy 3+2 — poniżej 1230px */
@media (max-width: 1229px) {
    .burda-trust-row {
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
    }
    .burda-trust-item {
        flex: 0 0 33.333%;
        justify-content: center;
        padding: 1rem 1rem;
        gap: 0.5rem;
    }
    .burda-trust-label {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }
    /* Separator poziomy między rzędami */
    .burda-trust-item:nth-child(4),
    .burda-trust-item:nth-child(5) {
        border-top: 1px solid #C8BFB4;
    }
    /* Usuń lewy border z pierwszego elementu drugiego rzędu */
    .burda-trust-item:nth-child(4) {
        border-left: none !important;
    }
}

/* Karuzela — poniżej 850px (nadpisuje reguły 1230px powyżej) */
@media (max-width: 849px) {
    .burda-trust-row {
        position: relative;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-top: 0;
        padding-bottom: 0;
    }
    .burda-trust-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        flex: none;
        justify-content: center;
        padding: 1.75rem 2rem;
        border: none !important;
        border-top: none !important;
        gap: 0.75rem;
        opacity: 0;
        transition: opacity 0.6s ease;
        pointer-events: none;
    }
    .burda-trust-item.trust-active {
        opacity: 1;
        pointer-events: auto;
    }
    .burda-trust-label {
        font-size: 0.875rem;
        letter-spacing: 0.13em;
    }
}

@media (min-width: 640px) {
    .burda-wave-h-white  { height: 58px; }
    .burda-wave-h-purple { height: 78px; }
}
@media (min-width: 1200px) {
    .burda-wave-h-white  { height: 72px; }
    .burda-wave-h-purple { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .burda-trust-wave animate { display: none; }
}

/* ============================================================
   CONTENT — style edytora (page.php)
   ============================================================ */
.burda-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight:400;
    color: #6D136C;
    line-height: 1.2;
    margin-top: 2.5rem;
    margin-bottom: .875rem;
}
.burda-content h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #6D136C;
    margin-top: 2rem;
    margin-bottom: .625rem;
}
.burda-content h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    color: #2A1F18;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}
.burda-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight:400;
    color: #5A5A5A;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.burda-content ul,
.burda-content ol {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight:400;
    color: #5A5A5A;
    line-height: 1.75;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.burda-content ul { list-style: disc; }
.burda-content ol { list-style: decimal; }
.burda-content li { margin-bottom: .35rem; }
.burda-content strong { font-weight: 600; color: #2A1F18; }
.burda-content em { font-style: italic; }
.burda-content a { color: #8C7B52; text-decoration: underline; text-underline-offset: 2px; }
.burda-content a:hover { color: #6D136C; }
.burda-content a.burda-btn-primary { color: #fff; text-decoration: none; }
.burda-content a.burda-btn-primary:hover { color: #fff; }
.burda-content hr { border: none; border-top: 1px solid #C8BFB4; margin: 2rem 0; }
.burda-content img { max-width: 100%; height: auto; display: block; }
.burda-content blockquote {
    border-left: 3px solid #8C7B52;
    margin: 1.75rem 0;
    padding: .75rem 0 .75rem 1.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight:400;
    color: #6D136C;
    font-style: italic;
}

/* ============================================================
   MISC
   ============================================================ */
/* ============================================================
   SHORTCODE — [burda_booksy]
   ============================================================ */
.burda-booksy-block { text-align: center; margin: 1.5rem 0; }

/* Mobile / tablet: ukryj QR, pokaż przycisk */
.burda-booksy-qr     { display: none; }
.burda-booksy-btn    { display: flex; justify-content: center; }

/* Desktop (1200px+): pokaż QR, ukryj przycisk */
@media (min-width: 1200px) {
    .burda-booksy-qr  { display: block; margin-bottom: 1rem; }
    .burda-booksy-qr img { display: block; margin: 0 auto; max-width: 200px; height: auto; }
    .burda-booksy-qr-link {
        display: block;
        margin-top: .625rem;
        font-family: 'Open Sans', sans-serif;
        font-size: .875rem;
        color: #8C7B52;
        text-decoration: none;
    }
    .burda-booksy-qr-link:hover { text-decoration: underline; }
    .burda-booksy-btn { display: none; }
}

::selection { background: #6D136C; color: white; }
:focus-visible { outline: 2px solid #8C7B52; outline-offset: 3px; border-radius: 2px; }

.burda-divider {
    width: 48px;
    height: 2px;
    background: #8C7B52;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
