/*
Theme Name: Ventra
Author: Ventra
Version: 1.0
*/

:root{
    --ground:#07090d;
    --panel:#0f131b;
    --panel-2:#151b26;
    --electric:#237df8;
    --sky:#2bbff4;
    --volt:#35f2a0;
    --flare:#ff6b4a;
    --chalk:#f5f7fb;
    --mist:#98a1b3;
    --mist-dim:#5e6678;
    --line:rgba(245,247,251,.09);
    --line-strong:rgba(245,247,251,.18);
    --grad:linear-gradient(120deg,var(--electric),var(--sky));
    --font-display:'Montserrat',sans-serif;
    --font-mono:ui-monospace,"SF Mono","Cascadia Code","Roboto Mono",Consolas,monospace;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--ground);
    background-image:
        radial-gradient(1100px 520px at 15% -10%,rgba(35,125,248,.14),transparent 60%),
        radial-gradient(900px 480px at 100% 0%,rgba(43,191,244,.10),transparent 55%);
    background-repeat:no-repeat;
    color:var(--chalk);
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:var(--chalk);
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* NAVBAR */

.main-menu{
    display:flex;
    gap:52px;
    list-style:none;
}

.main-menu li{
    list-style:none;
}

.main-menu a{
    color:var(--chalk);
    font-weight:500;
    font-size:.95rem;
    transition:color .15s;
}

.main-menu a:hover{
    color:var(--electric);
}

.site-header{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
    backdrop-filter:blur(20px);
    background:rgba(7,9,13,.78);
    border-bottom:1px solid var(--line);
}

.navbar{
    height:88px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo img{
    height:52px;
}

.nav-collapse{
    display:contents;
}

.ventra-nav-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    width:40px;
    height:40px;
    padding:0;
    background:transparent;
    border:none;
    cursor:pointer;
    flex:0 0 auto;
}

.ventra-nav-toggle span{
    display:block;
    width:24px;
    height:2px;
    border-radius:2px;
    background:var(--chalk);
    transition:transform .2s ease,opacity .2s ease;
}

.ventra-nav-toggle[aria-expanded="true"] span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.ventra-nav-toggle[aria-expanded="true"] span:nth-child(2){
    opacity:0;
}

.ventra-nav-toggle[aria-expanded="true"] span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

@media(max-width:900px){

    .ventra-nav-toggle{
        display:flex;
    }

    .nav-collapse{
        display:none;
        position:fixed;
        top:88px;
        left:0;
        right:0;
        /*
         * Not bottom:0 - .site-header has backdrop-filter, which makes
         * it a containing block for fixed-position descendants, so
         * bottom:0 here would resolve against the header's own ~88px
         * height instead of the real viewport, squashing this panel to
         * almost nothing. An explicit height against 100vh sidesteps
         * that entirely.
         */
        height:calc(100vh - 88px);
        background:var(--ground);
        padding:10px 24px 40px;
        overflow-y:auto;
    }

    .nav-collapse.is-open{
        display:block;
    }

    .main-menu{
        flex-direction:column;
        gap:26px;
        padding:30px 0;
    }

    .nav-buttons{
        display:block;
        padding-top:20px;
        border-top:1px solid var(--line);
    }

    #ventra-auth-buttons{
        flex-direction:column;
        align-items:stretch;
    }

    #ventra-auth-buttons .btn{
        text-align:center;
    }

    .ventra-user-menu{
        width:100%;
    }

    .ventra-user-menu-toggle{
        width:100%;
        justify-content:space-between;
    }

    .ventra-user-dropdown{
        position:static;
        opacity:1;
        visibility:visible;
        transform:none;
        box-shadow:none;
        margin-top:10px;
        display:none;
    }

    .ventra-user-menu.is-open .ventra-user-dropdown{
        display:block;
    }

}

.btn{
    padding:13px 26px;
    border-radius:10px;
    font-weight:700;
    font-size:.9rem;
    letter-spacing:-.01em;
    border:1px solid transparent;
    transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;
    cursor:pointer;
}

.btn:focus-visible{
    outline:2px solid var(--electric);
    outline-offset:2px;
}

.btn-dark{
    background:transparent;
    border-color:var(--line-strong);
    color:var(--chalk);
}

.btn-dark:hover{
    border-color:var(--electric);
    background:rgba(35,125,248,.08);
}

.btn-blue{
    background:var(--grad);
    color:#05070c;
    box-shadow:0 10px 26px -10px rgba(35,125,248,.55);
}

.btn-blue:hover{
    box-shadow:0 14px 30px -8px rgba(43,191,244,.55);
}

.btn:hover{
    transform:translateY(-2px);
}

/* HERO */

.hero{
    height:100vh;
    position:relative;
    overflow:hidden;
}

.hero video,
.hero img{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg,rgba(7,9,13,.35),rgba(7,9,13,.86)),
        radial-gradient(1200px 600px at 15% -10%,rgba(35,125,248,.30),transparent 60%),
        radial-gradient(900px 500px at 100% 10%,rgba(43,191,244,.22),transparent 55%);
}

.hero-content{
    position:relative;
    z-index:2;
    height:100%;
    display:flex;
    align-items:center;
}

.hero-text{
    max-width:720px;
}

.hero-text h1{
    font-family:var(--font-display);
    font-size:clamp(2.6rem,5.2vw,4.6rem);
    line-height:1.03;
    letter-spacing:-.02em;
    margin-bottom:22px;
    font-weight:800;
}

.hero-text p{
    font-size:1.15rem;
    line-height:1.6;
    color:var(--mist);
    margin-bottom:40px;
    max-width:46ch;
}

/* SERVICES */

.services{
    padding:120px 0;
}

.section-title{
    text-align:center;
    font-family:var(--font-display);
    font-size:clamp(2.1rem,4vw,3rem);
    letter-spacing:-.02em;
    font-weight:800;
    margin-bottom:70px;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
}

.card{
    background:var(--panel);
    border:1px solid var(--line);
    border-top:3px solid var(--electric);
    border-radius:16px;
    padding:38px;
    transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.card:hover{
    transform:translateY(-6px);
    border-color:var(--line-strong);
    border-top-color:var(--sky);
    box-shadow:0 24px 50px -30px rgba(35,125,248,.45);
}

/* FOOTER */

.site-footer{
    background:#05060a;
    padding:60px 0 30px;
    border-top:1px solid var(--line);
}

.site-footer p{
    color:var(--mist);
}

.footer-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:40px;
    padding-bottom:40px;
}

.footer-col h3{
    font-family:var(--font-display);
    font-size:1rem;
    font-weight:700;
    letter-spacing:.02em;
    margin-bottom:18px;
}

.footer-links-col{
    text-align:left;
}

.footer-menu{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-menu a{
    color:var(--mist);
    font-size:.95rem;
    transition:color .2s;
}

.footer-menu a:hover{
    color:var(--electric);
}

.footer-social-col{
    text-align:right;
}

.footer-social-links{
    display:flex;
    justify-content:flex-end;
    gap:12px;
}

.footer-social-link{
    width:40px;
    height:40px;
    border-radius:50%;
    background:var(--panel-2);
    border:1px solid var(--line-strong);
    color:var(--mist);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .2s,border-color .2s,color .2s,transform .2s;
}

.footer-social-link:hover{
    background:var(--electric);
    border-color:var(--electric);
    color:#fff;
    transform:translateY(-2px);
}

.footer-bottom{
    text-align:center;
    padding-top:24px;
    border-top:1px solid var(--line);
}

.footer-bottom p{
    font-size:.85rem;
}

@media(max-width:767px){

    .footer-top{
        flex-direction:column;
        text-align:left;
    }

    .footer-social-col{
        text-align:left;
    }

    .footer-social-links{
        justify-content:flex-start;
    }

}

@media(max-width:991px){

    .hero-text h1{
        font-size:2.6rem;
    }

    .service-grid{
        grid-template-columns:1fr;
    }
}
/* NEWS ARCHIVE */

.page-header{
    padding:180px 0 80px;
    text-align:center;
}

.page-header h1{
    font-family:var(--font-display);
    font-size:clamp(2.4rem,5vw,3.6rem);
    letter-spacing:-.02em;
    font-weight:800;
    margin-bottom:15px;
}

/* SINGLE POST (News article) */

.single-post{
    padding:180px 0 100px;
}

.single-post-inner{
    max-width:800px;
    text-align:center;
}

.single-post-thumbnail{
    margin-bottom:34px;
}

.single-post-thumbnail img{
    width:100%;
    max-width:700px;
    height:auto;
    border-radius:20px;
    margin:0 auto;
    display:block;
}

.single-post-title{
    font-family:var(--font-display);
    font-size:clamp(2rem,4.5vw,3rem);
    letter-spacing:-.02em;
    font-weight:800;
    margin-bottom:10px;
}

.single-post-meta{
    color:var(--mist);
    font-size:.9rem;
    margin-bottom:36px;
}

.single-post-content{
    text-align:center;
    color:var(--mist);
    font-size:1.05rem;
    line-height:1.7;
}

.single-post-content p{
    margin-bottom:1.4rem;
}

.single-post-content img{
    max-width:100%;
    height:auto;
    border-radius:14px;
    margin:20px auto;
}

@media(max-width:767px){

    .single-post{
        padding-top:140px;
    }

}

.news-archive{
    padding:60px 0 120px;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
}

.news-card{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    transition:transform .2s ease,border-color .2s ease;
}

.news-card:hover{
    transform:translateY(-8px);
    border-color:var(--line-strong);
}

.news-image img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.news-content{
    padding:25px;
}

.news-content h2{
    font-family:var(--font-display);
    font-weight:700;
    letter-spacing:-.01em;
    margin:15px 0;
}

.news-date{
    color:var(--electric);
    font-family:var(--font-mono);
    font-size:.82rem;
    letter-spacing:.02em;
}

/* SINGLE POST */

.single-banner img{
    width:100%;
    height:500px;
    object-fit:cover;
}

.single-post{
    padding:80px 0 120px;
}

.narrow{
    max-width:900px;
}

.post-title{
    font-family:var(--font-display);
    font-size:clamp(2.2rem,4.4vw,3.4rem);
    letter-spacing:-.02em;
    font-weight:800;
    margin:20px 0 40px;
}

.post-content{
    line-height:1.9;
    font-size:1.1rem;
    color:var(--chalk);
}

.post-content p{
    margin-bottom:25px;
}

.post-content img{
    max-width:100%;
    height:auto;
    border-radius:12px;
}

/* MOBILE */

@media(max-width:991px){

    .news-grid{
        grid-template-columns:1fr;
    }

    .page-header h1{
        font-size:2.5rem;
    }

    .post-title{
        font-size:2.2rem;
    }
}

.page-wrapper{
    /*
     * Top clearance used to live here (130px) back when page.php had
     * no title block of its own - .page-header above now handles
     * clearing the fixed nav (180px top padding) plus its own 80px
     * bottom padding, so stacking a second big top value here would
     * just double up the gap before the actual content.
     */
    padding:0 20px 90px;
}

.page-container{
    max-width:1000px;
    margin:0 auto;
}

.page-container .wp-block-group,
.page-container .wp-block-columns,
.page-container p{
    margin-bottom:1.5rem;
}

/* =====================================
LATEST NEWS
===================================== */

/* Latest News Heading */

.latest-news{
    padding:90px 0 0;
}

.section-heading{
    text-align:center;
    margin-bottom:50px;
}

.section-heading h2{
    font-family:var(--font-display);
    font-size:clamp(2.1rem,4vw,3rem);
    letter-spacing:-.02em;
    font-weight:800;
    margin-bottom:15px;
}

.section-heading p{
    max-width:650px;
    margin:0 auto;
    color:var(--mist);
    font-size:1.1rem;
    line-height:1.7;
}

.featured-news{
    position:relative;
    width:100%;
    height:700px;
    overflow:hidden;
}

.featured-news img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.featured-news-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.85) 5%,
        rgba(0,0,0,.55) 35%,
        rgba(0,0,0,0) 70%
    );
}

.featured-news-content{
    position:absolute;
    left:0;
    right:0;
    bottom:60px;
    z-index:5;
    color:var(--chalk);
    max-width:1400px;
}

.featured-news-content h2{
    font-family:var(--font-display);
    font-size:clamp(2rem,4vw,3rem);
    letter-spacing:-.02em;
    font-weight:800;
    margin:15px 0;
    max-width:700px;
    color:var(--chalk);
}

.featured-news-content p{
    font-size:1.1rem;
    line-height:1.8;
    max-width:650px;
    margin-bottom:30px;
    color:var(--chalk);
}

.news-date{
    display:inline-block;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
    color:var(--chalk);
    opacity:.85;
}

@media (max-width:991px){

.featured-news{
    height:550px;
}

.featured-news-content{
    bottom:40px;
}

.featured-news-content h2{
    font-size:2rem;
}

.featured-news-content p{
    font-size:1rem;
}

}

@media (max-width:600px){

.featured-news{
    height:450px;
}

.featured-news-content{
    bottom:30px;
}

.featured-news-content h2{
    font-size:1.6rem;
}

.featured-news-content p{
    display:none;
}

}

.trusted-by-empty{
    text-align:center;
    color:var(--mist);
    margin-top:30px;
}

.trusted-by-marquee{
    overflow:hidden;
    margin-top:50px;
    -webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);
    mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);
}

.trusted-by-track{
    display:flex;
    align-items:center;
    width:max-content;
    gap:70px;
    animation:ventra-trusted-by-scroll 32s linear infinite;
}

.trusted-by-track:hover{
    animation-play-state:paused;
}

.trusted-by-logo{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    height:70px;
}

.trusted-by-logo img{
    max-width:160px;
    max-height:70px;
    width:auto;
    height:auto;
    object-fit:contain;
}

@keyframes ventra-trusted-by-scroll{
    from{ transform:translateX(0); }
    to{ transform:translateX(-50%); }
}

@media(prefers-reduced-motion:reduce){

    .trusted-by-track{
        animation:none;
        flex-wrap:wrap;
        justify-content:center;
    }

}

@media(max-width:900px){

.news-card{
    grid-template-columns:1fr;
}

.news-content{
    text-align:center;
}

}
