/* ======================================================
   Sportidia Home V5 — Landing Page Styles
   Font: Sora (loaded via Google Fonts in functions.php)
   Colors: --blue #233D7F | --orange #FF992D
====================================================== */

/* --- Variables ---------------------------------------- */
:root {
    --sv5-blue:        #233D7F;
    --sv5-blue-light:  #2d50a8;
    --sv5-orange:      #FF992D;
    --sv5-dark:        #0e1624;
    --sv5-dark-card:   #162035;
    --sv5-text:        #f0f4ff;
    --sv5-text-muted:  #8a9cc8;
    --sv5-white:       #ffffff;
    --sv5-font:        'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --sv5-radius:      16px;
    --sv5-max-width:   1120px;
    --sv5-section-gap: 96px;
}

/* --- Reset for this page only ------------------------- */
body.sportidia-home-v5 {
    margin: 0;
    padding: 0;
    background: var(--sv5-dark);
    color: var(--sv5-text);
    font-family: var(--sv5-font);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.sportidia-home-v5 *,
body.sportidia-home-v5 *::before,
body.sportidia-home-v5 *::after {
    box-sizing: border-box;
}

body.sportidia-home-v5 img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.sportidia-home-v5 a {
    color: inherit;
    text-decoration: none;
}

/* Hide default WP header/footer from the theme */
body.sportidia-home-v5 .site-header,
body.sportidia-home-v5 .site-footer,
body.sportidia-home-v5 .ct-header,
body.sportidia-home-v5 .ct-footer {
    display: none !important;
}

/* --- NAV ---------------------------------------------- */
.sv5-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(14, 22, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

header.sv5-nav .sv5-nav__logo img,
.sv5-nav .sv5-nav__logo img {
    height: 44px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
}

.sv5-nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Polylang language switcher inside nav */
.sv5-nav__links .lang-item a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sv5-text-muted);
    transition: color 0.2s;
}

.sv5-nav__links .lang-item.current-lang a,
.sv5-nav__links .lang-item a:hover {
    color: var(--sv5-white);
}

/* --- BUTTONS ------------------------------------------ */
.sv5-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sv5-btn--outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--sv5-white);
    background: transparent;
}

.sv5-btn--outline:hover {
    border-color: var(--sv5-orange);
    color: var(--sv5-orange);
}

/* --- SECTION COMMONS ---------------------------------- */
.sv5-section {
    padding: var(--sv5-section-gap) 32px;
}

.sv5-section--dark {
    background: var(--sv5-dark-card);
}

.sv5-section__inner {
    max-width: var(--sv5-max-width);
    margin: 0 auto;
    text-align: center;
}

.sv5-section__inner--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    text-align: left;
}

.sv5-section__inner--reverse {
    direction: rtl;
}

.sv5-section__inner--reverse > * {
    direction: ltr;
}

.sv5-section__image {
    display: flex;
    justify-content: center;
}

.sv5-section__image img {
    border-radius: var(--sv5-radius);
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.sv5-section__text h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin: 12px 0 20px;
    color: var(--sv5-white);
}

.sv5-section__text p {
    font-size: 17px;
    color: var(--sv5-text-muted);
    max-width: 480px;
    margin: 0;
}

/* --- LABEL -------------------------------------------- */
.sv5-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sv5-blue-light);
    background: rgba(35, 61, 127, 0.2);
    border: 1px solid rgba(35, 61, 127, 0.4);
    padding: 4px 12px;
    border-radius: 100px;
}

.sv5-label--orange {
    color: var(--sv5-orange);
    background: rgba(255, 153, 45, 0.1);
    border-color: rgba(255, 153, 45, 0.3);
}

/* --- HERO --------------------------------------------- */
.sv5-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 120px 32px 80px;
    max-width: var(--sv5-max-width);
    margin: 0 auto;
}

.sv5-hero__content {
    flex: 1;
    max-width: 560px;
}

.sv5-hero__title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px;
    color: var(--sv5-white);
}

.sv5-hero__title span {
    color: var(--sv5-orange);
}

.sv5-hero__sub {
    font-size: 20px;
    color: var(--sv5-text-muted);
    margin: 0 0 40px;
    line-height: 1.6;
}

.sv5-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.sv5-hero__ctas img {
    height: 36px !important;
    width: auto !important;
    transition: opacity 0.2s, transform 0.2s;
}

.sv5-hero__ctas a:hover img {
    opacity: 0.85;
    transform: translateY(-2px);
}

.sv5-hero__image {
    flex: 0 0 auto;
}

.sv5-hero__image img {
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(35, 61, 127, 0.4);
}

/* --- GOALS CARDS -------------------------------------- */
.sv5-goals {
    background: var(--sv5-dark);
}

.sv5-goals .sv5-section__inner {
    text-align: center;
}

.sv5-goals h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin: 12px auto 20px;
    color: var(--sv5-white);
    max-width: 600px;
}

.sv5-goals > .sv5-section__inner > p {
    color: var(--sv5-text-muted);
    max-width: 560px;
    margin: 0 auto 48px;
}

.sv5-goals__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.sv5-goals__card {
    background: var(--sv5-dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--sv5-radius);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, transform 0.2s;
}

.sv5-goals__card:hover {
    border-color: var(--sv5-orange);
    transform: translateY(-4px);
}

.sv5-goals__icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 8px;
}

.sv5-goals__card strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--sv5-white);
}

.sv5-goals__card span {
    font-size: 14px;
    color: var(--sv5-text-muted);
}

/* --- FINAL CTA ---------------------------------------- */
.sv5-cta {
    padding: var(--sv5-section-gap) 32px;
    background: linear-gradient(135deg, var(--sv5-blue) 0%, var(--sv5-dark) 100%);
}

.sv5-cta__inner {
    text-align: center;
}

.sv5-cta h2 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--sv5-white);
}

.sv5-cta p {
    font-size: 18px;
    color: var(--sv5-text-muted);
    margin: 0 0 40px;
}

.sv5-cta .sv5-hero__ctas {
    justify-content: center;
}

.sv5-cta .sv5-hero__ctas img {
    height: 40px !important;
    width: auto !important;
}

/* --- FOOTER ------------------------------------------- */
.sv5-footer {
    background: var(--sv5-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 32px;
}

.sv5-footer__inner {
    max-width: var(--sv5-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.sv5-footer__links {
    display: flex;
    gap: 32px;
}

.sv5-footer__links a {
    font-size: 14px;
    color: var(--sv5-text-muted);
    transition: color 0.2s;
}

.sv5-footer__links a:hover {
    color: var(--sv5-white);
}

.sv5-footer__social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sv5-footer__social a {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.sv5-footer__social a:hover {
    opacity: 1;
}

.sv5-footer__copy {
    font-size: 13px;
    color: var(--sv5-text-muted);
    margin: 0;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
    .sv5-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }

    .sv5-hero__ctas {
        justify-content: center;
    }

    .sv5-hero__image img {
        width: 320px;
    }

    .sv5-section__inner--split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .sv5-section__inner--reverse {
        direction: ltr;
    }

    .sv5-section__text p {
        max-width: 100%;
    }

    .sv5-goals__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    :root {
        --sv5-section-gap: 64px;
    }

    .sv5-nav {
        padding: 12px 20px;
    }

    .sv5-section {
        padding: var(--sv5-section-gap) 20px;
    }

    .sv5-goals__cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sv5-footer__links {
        flex-direction: column;
        gap: 16px;
    }
}
