/*
Theme Name: 3x3 Factory
Description: Child téma GeneratePress pre 3x3 Factory Slovakia.
Author: Digitalka
Author URI: https://www.digitalka.sk
Template: generatepress
Version: 0.1.0
Text Domain: x3
*/

:root {
    --x3-blue: #217698;
    --x3-teal: #00A6B6;
    --x3-pink: #B4245C;
    --x3-dark: #070803;
    --x3-dark-2: #11171a;
    --x3-gray: #1c2326;
    --x3-light: #eef6f7;
    --x3-text: #2b3a40;
    --x3-display: 'Unbounded', sans-serif;
    --x3-body: 'DM Sans', sans-serif;
}

/* ---------- Základ ---------- */
body,
button,
input,
select,
textarea {
    font-family: var(--x3-body);
}

body {
    color: var(--x3-text);
    background: #fff;
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: var(--x3-blue);
}

h1, h2, h3, h4 {
    font-family: var(--x3-display);
    line-height: 1.1;
    color: var(--x3-blue);
}

.x3-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* Klasická téma: WP obaľuje obsah Skupiny do __inner-container – zrušíme ho pre layout. */
.entry-content .wp-block-group > .wp-block-group__inner-container {
    display: contents;
}

/* ---------- Hlavička ---------- */
.site-header {
    background: var(--x3-dark);
}

.x3-front .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
}

.site-header .inside-header {
    max-width: 1200px;
    height: 104px;
    padding: 0 32px;
    align-items: center;
}

.site-header .header-image {
    height: 72px;
    width: auto;
}

body .main-navigation,
body .main-navigation ul ul {
    background: transparent;
}

body .main-navigation .main-nav ul li a {
    color: #fff;
    font-family: var(--x3-body);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 0 17px;
    line-height: 104px;
}

#site-navigation .main-nav ul li a:hover,
#site-navigation .main-nav ul li:hover > a,
#site-navigation .main-nav ul li:focus-within > a,
#site-navigation .main-nav ul li.sfHover > a,
#site-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--x3-teal);
    background: transparent;
}

body .main-navigation .menu-toggle,
body .main-navigation .menu-bar-item > a {
    color: #fff;
}

.x3-soc {
    display: flex;
    gap: 10px;
}

.x3-soc--header {
    margin-left: 8px;
    align-items: center;
}

.x3-soc a,
body .main-navigation .menu-bar-items .x3-soc a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .5);
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    color: #fff;
}

.x3-soc a:hover,
body .main-navigation .menu-bar-items .x3-soc a:hover {
    border-color: var(--x3-teal);
    color: var(--x3-teal);
}

/* V hlavičke plné ružové kruhy (ako hamburger), aby nezanikali na fotke. */
body .x3-soc--header a {
    border: 0;
    background: var(--x3-pink);
    color: #fff;
}

body .x3-soc--header svg {
    width: 18px;
    height: 18px;
}

body .x3-soc--header a:hover {
    background: var(--x3-pink);
    color: #fff;
    opacity: .85;
}

.x3-soc svg,
body .main-navigation .menu-bar-items .x3-soc svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ---------- Homepage: plná šírka ---------- */
.x3-front .site-content,
.x3-front .inside-article {
    padding: 0;
}

.x3-front .site.grid-container,
.x3-front .site-content {
    max-width: none;
}

.x3-front .entry-content {
    margin: 0;
}

.x3-front .entry-content > * {
    margin-top: 0;
    margin-bottom: 0;
}


/* ---------- Podujatia ([x3_podujatia]) ---------- */
.x3-ev-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.x3-ev {
    background: var(--x3-dark-2);
    border-top: 4px solid var(--x3-teal);
    padding: 44px 34px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
}

.x3-ev__date {
    font-family: var(--x3-display);
    font-weight: 900;
    font-size: 40px;
    color: var(--x3-teal);
    line-height: 1;
    margin-bottom: 18px;
}

.x3-ev .x3-ev__title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

.x3-ev__place {
    font-size: 15px;
    opacity: .7;
}

.x3-ev__reg {
    margin-top: auto;
    padding-top: 32px;
    font-family: var(--x3-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}

.x3-ev a.x3-ev__reg {
    color: var(--x3-pink);
}

/* ---------- Partneri ([x3_partneri]) ---------- */
.x3-partners {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.x3-partners__item {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.x3-partners__item img {
    height: 80px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: .9;
}

.x3-partners__name {
    white-space: nowrap;
    font-family: var(--x3-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
}

/* ---------- Pätička ---------- */
.x3-footer {
    background: var(--x3-dark);
    color: #fff;
    padding: 80px 0 30px;
}

.x3-footer__top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.x3-footer__logo img {
    height: 96px;
    width: auto;
}

.x3-footer h4 {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--x3-teal);
    margin: 0 0 18px;
}

.x3-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.x3-footer li {
    margin-bottom: 10px;
    opacity: .8;
    font-size: 15px;
}

.x3-footer a {
    color: #fff;
    text-decoration: none;
}

.x3-footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 26px;
    font-size: 13px;
    opacity: .55;
}

/* ---------- Mobilné menu (do 1200 px) – na celú obrazovku ---------- */
@media (max-width: 1200px) {
    .site-header .inside-header {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .site-header .site-logo,
    #mobile-menu-control-wrapper {
        position: relative;
        z-index: 1001;
    }

    .site-header #site-navigation {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
    }

    body #mobile-menu-control-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        margin-left: auto;
        gap: 10px;
    }

    #mobile-menu-control-wrapper .menu-bar-items {
        display: flex;
        align-items: center;
    }

    #mobile-menu-control-wrapper .x3-soc--header {
        margin-left: 0;
    }

    body #mobile-menu-control-wrapper .x3-soc--header a {
        width: 44px;
        height: 44px;
    }

    body #mobile-menu-control-wrapper .x3-soc--header svg {
        width: 22px;
        height: 22px;
    }

    body #mobile-menu-control-wrapper .menu-toggle {
        box-sizing: border-box;
        flex: 0 0 44px;
        width: 44px;
        min-width: 0;
        height: 44px;
        margin-left: 0;
        padding: 0;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--x3-pink);
        color: #fff;
        line-height: 1;
    }

    body #mobile-menu-control-wrapper .menu-toggle:hover,
    body #mobile-menu-control-wrapper .menu-toggle:focus {
        background: var(--x3-pink);
        color: #fff;
        opacity: .9;
    }

    #mobile-menu-control-wrapper .menu-toggle .gp-icon {
        display: flex;
        line-height: 0;
    }

    #mobile-menu-control-wrapper .menu-toggle .gp-icon svg {
        position: static;
        top: 0;
        width: 22px;
        height: 22px;
    }

    #site-navigation.toggled .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        padding: 120px 24px 60px;
        background: var(--x3-dark);
    }

    #site-navigation.toggled .main-nav > ul {
        display: block;
        width: 100%;
        text-align: center;
        background: transparent;
    }

    #site-navigation.toggled .main-nav ul li {
        float: none;
        display: block;
        text-align: center;
    }

    #site-navigation.toggled .main-nav ul li a {
        font-family: var(--x3-display);
        font-weight: 800;
        font-size: 26px;
        line-height: 1.2;
        letter-spacing: .02em;
        padding: 14px 0;
    }

    html.mobile-menu-open {
        overflow: hidden;
    }
}

/* ---------- Textové stránky (Ochrana osobných údajov) ---------- */
.x3-prose h2 {
    margin: 44px 0 14px;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

.x3-prose p,
.x3-prose ul {
    margin: 0 0 16px;
}

.x3-prose ul {
    padding-left: 22px;
}

.x3-prose li {
    margin-bottom: 6px;
}

/* ---------- Stránka 404 (štýly ako hero podstránky a „Nadpis s čiarou“) ---------- */
.x3-404 {
    flex: 1 1 100%;
    width: 100%;
}

.x3-404__hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.x3-404__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 8, 3, .92) 0%, rgba(7, 8, 3, .75) 50%, rgba(33, 118, 152, .35) 100%);
}

.x3-404__wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 104px 32px 0;
}

.x3-404__hero h1 {
    margin: 0;
    max-width: 900px;
    font-family: var(--x3-display);
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
}

.x3-404__hero h1 em {
    font-style: normal;
    color: var(--x3-teal);
}

.x3-404__body {
    padding: 120px 32px;
    text-align: center;
}

.x3-404__body h2 {
    margin: 0;
    font-family: var(--x3-display);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--x3-blue);
}

.x3-404__line {
    width: 64px;
    height: 5px;
    margin: 20px auto 40px;
    background: var(--x3-pink);
}

.x3-404__btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--x3-pink);
    color: #fff;
    font-family: var(--x3-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .2s;
}

.x3-404__btn:hover {
    color: #fff;
    opacity: .85;
}

@media (max-width: 1024px) {
    .x3-404__hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .x3-404__hero {
        min-height: 440px;
    }

    .x3-404__wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .x3-404__hero h1 {
        font-size: 34px;
    }

    .x3-404__body {
        padding: 70px 16px;
    }

    .x3-404__body h2 {
        font-size: 30px;
    }
}

/* Lišta partnerov sa do jedného riadka zmestí až od 1200 px. */
@media (max-width: 1200px) {
    .x3-partners {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px 40px;
    }
}

/* ---------- Mobil ---------- */
@media (max-width: 1024px) {
    .x3-ev-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 767px) {
    .x3-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header .inside-header {
        height: 80px;
        padding: 0 16px;
    }

    .site-header .header-image {
        height: 56px;
    }


    .x3-ev-grid,
    .x3-footer__top {
        grid-template-columns: 1fr;
    }

    .x3-footer__bottom {
        flex-direction: column;
        gap: 8px;
    }
}

/* „f“ je úzky znak – opticky ho zväčšiť, aby sedel s Instagramom a hamburgerom. */
.x3-soc a[aria-label="Facebook"] svg {
    transform: scale(1.25);
}
