/**
 * Greco Theme - About Hero (Photo Background)
 * 4 image variants handled via JS (light/dark × desktop/mobile)
 * Transparent header support — same pattern as lokalizacja
 */

/* ========================================
   Transparent header on o-nas page
   ======================================== */

body.page-o-nas {
    padding-top: 0 !important;
}

body.page-o-nas .wp-site-blocks > * {
    margin-block-start: 0 !important;
}

body.page-o-nas .wp-site-blocks {
    gap: 0 !important;
}

body.page-o-nas .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-o-nas .site-main > * {
    margin-block-start: 0 !important;
}

/* Hero must break out of constrained container */
body.page-o-nas .about-hero--photo {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

body.page-o-nas .site-header:not(.header-scrolled) {
    background: transparent !important;
    box-shadow: none;
    border-bottom-color: transparent;
}

body.page-o-nas .site-header:not(.header-scrolled) .header-wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

body.page-o-nas .site-header:not(.header-scrolled) .site-logo {
    filter: brightness(0) invert(1);
}

body.page-o-nas .site-header:not(.header-scrolled) .main-navigation .menu-item > a:not(.sub-menu a),
body.page-o-nas .site-header:not(.header-scrolled) .nav-menu > li > a,
body.page-o-nas .site-header:not(.header-scrolled) .nav-menu > li > .menu-item-label {
    color: #FFFFFF;
}

body.page-o-nas .site-header:not(.header-scrolled) .nav-menu > li > a:hover,
body.page-o-nas .site-header:not(.header-scrolled) .nav-menu > li > .menu-item-label:hover {
    color: rgba(255, 255, 255, 0.7);
}

body.page-o-nas .site-header:not(.header-scrolled) .dropdown-trigger {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

body.page-o-nas .site-header:not(.header-scrolled) .dropdown-icon,
body.page-o-nas .site-header:not(.header-scrolled) .dropdown-chevron {
    color: #FFFFFF;
}

body.page-o-nas .site-header:not(.header-scrolled) .dropdown-text {
    color: #FFFFFF;
}

body.page-o-nas .site-header:not(.header-scrolled) .theme-toggle {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

body.page-o-nas .site-header:not(.header-scrolled) .mobile-menu-toggle {
    color: #FFFFFF;
}

/* ========================================
   Photo Hero — Container
   ======================================== */

.about-hero--photo {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--wp--preset--spacing--60, 3rem);
    padding-top: 80px;
}

/* ========================================
   Background image layer
   ======================================== */

.about-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}

/* ========================================
   Overlay
   ======================================== */

.about-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(10, 31, 51, 0.55) 0%,
        rgba(10, 31, 51, 0.40) 40%,
        rgba(10, 31, 51, 0.30) 100%
    );
}

.dark-mode .about-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(5, 12, 22, 0.60) 0%,
        rgba(5, 12, 22, 0.45) 40%,
        rgba(5, 12, 22, 0.35) 100%
    );
}

/* ========================================
   Content wrapper
   ======================================== */

.about-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--wp--style--global--content-size, 1200px);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
}

/* ========================================
   Two-column layout
   ======================================== */

.about-hero__columns {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}

.about-hero__text {
    flex: 0 0 60%;
    max-width: 60%;
}

.about-hero__stats {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Label (gold, uppercase)
   ======================================== */

.about-hero__label {
    font-size: var(--wp--preset--font-size--small, 0.85rem);
    color: #C9A227;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

/* ========================================
   Title
   ======================================== */

.about-hero__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    font-style: normal;
    color: #FFFFFF;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.about-hero__title strong {
    color: #1A8CFF;
    font-weight: 700;
    font-style: normal;
}

/* ========================================
   Description
   ======================================== */

.about-hero__desc {
    font-size: var(--wp--preset--font-size--medium, 1.05rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    max-width: 500px;
    margin: 0 0 1.25rem;
}

/* ========================================
   Gold subtitle
   ======================================== */

.about-hero__subtitle {
    font-size: var(--wp--preset--font-size--large, 1.25rem);
    color: #FFFFFF;
    font-weight: 700;
    margin: 0;
}

/* ========================================
   Stats override inside hero
   ======================================== */

.about-hero--photo .about-hero__stats .greco-stats-bar {
    background: rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px;
    padding: 1.25rem 1.5rem !important;
    flex-direction: row !important;
    gap: 0 !important;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-top: 0;
}

.about-hero--photo .about-hero__stats .greco-stat-item {
    min-width: 0 !important;
    padding: 0 1.25rem !important;
    flex: 1;
    flex-direction: column !important;
    align-items: center !important;
    width: auto !important;
}

.about-hero--photo .about-hero__stats .greco-stat-number {
    color: #FFFFFF;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    min-width: 0 !important;
}

.about-hero--photo .about-hero__stats .greco-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-align: center !important;
}

.about-hero--photo .about-hero__stats .greco-stat-separator {
    width: 1px !important;
    height: 40px !important;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25), transparent) !important;
}

/* ========================================
   Responsive — Tablet
   ======================================== */

@media (max-width: 768px) {
    .about-hero--photo {
        min-height: 550px;
        padding-top: 70px;
    }

    .about-hero__content {
        padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
        text-align: center;
    }

    .about-hero__desc {
        max-width: 100%;
    }
}

/* ========================================
   Responsive — Small mobile
   ======================================== */

@media (max-width: 480px) {
    .about-hero--photo {
        min-height: 500px;
    }

    .about-hero__content {
        padding: 2rem 1rem;
    }

    .about-hero__title {
        font-size: 1.8rem;
    }

    .about-hero__desc {
        font-size: 0.95rem;
    }
}
