/* ==========================================================
   Custom overrides – loaded AFTER app.min.css
   ========================================================== */

/* Hero section: exactly fill the viewport above the fold */
.wionhero-section2 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 0 !important;
    overflow: hidden;
}

/* Ensure the hero content wrapper fills the section */
.wionhero-section2 .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* On mobile, reduce height to dvh for precise math */
@supports (height: 100dvh) {
    .wionhero-section2 {
        height: 100dvh;
    }
}

/* Typography Refinement: Smaller but big, less trendy */
.wionhero-content2 h1 {
    font-size: 80px !important;
    line-height: 1.1em !important;
    letter-spacing: -0.5px !important;
    font-family: "SatoshiBold", sans-serif;
}

/* Responsive typography */
@media (max-width: 1399px) {
    .wionhero-content2 h1 {
        font-size: 70px !important;
    }
}

@media (max-width: 991px) {
    .wionhero-content2 h1 {
        font-size: 60px !important;
    }
}

@media (max-width: 767px) {
    .wionhero-content2 h1 {
        font-size: 50px !important;
    }
}

@media (max-width: 575px) {
    .wionhero-content2 h1 {
        font-size: 40px !important;
    }
}

/* Logo Text Styling */
.header-logo-text {
    font-family: "SatoshiBold", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -1px;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.header-logo-text:hover {
    color: var(--accent-color);
}

.mobile-logo .header-logo-text,
.wionfooter-logo .header-logo-text {
    font-size: 24px;
}

/* Sidebar Logo */
.wionsidebar-header-icon .header-logo-text {
    font-size: 32px;
    margin-bottom: 20px;
}

/* Header Fixes: base state – no transition so it doesn't morph */
.site-header.wionheader-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0 !important;
    display: flex;
    align-items: center;
    /* No transition here — geometry changes should be instant, not morphed */
}

/* Hero content breathing room below the absolute header */
.wionhero-content2 {
    padding-top: 130px;
}

/* ── Sticky Pill ─────────────────────────────────────────────────────────── */
/* Geometry is set instantly (no transition). Only opacity + translateY animate. */
.site-header.wionheader-section.sticky-menu {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92% !important;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(200, 200, 200, 0.35);
    border-radius: 50px !important;
    padding: 10px 40px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    animation: pillFadeIn 0.35s ease forwards;
}

/* Fade-out when scrolling back to top */
.site-header.wionheader-section.sticky-menu.header-unpin {
    animation: pillFadeOut 0.35s ease forwards;
}

@keyframes pillFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pillFadeOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-14px);
    }
}

@media (min-width: 992px) {
    .wionmenu-toggle.d-lg-none {
        display: none !important;
    }

    .site-header .container>.row {
        align-items: center;
    }
}

/* Vertical alignment for logo */
.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Sprint Header Button */
.wiondefault-btn.sprint-header-btn {
    padding: 17px 32px !important;
    border-radius: 50px !important;
}

.wiondefault-btn.sprint-header-btn::before {
    display: none !important;
}

/* Global Solid Turquoise Button */
.solid-turquoise-btn,
.site-header .solid-turquoise-btn,
.site-header .wiondefault-btn.solid-turquoise-btn {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white-color) !important;
}

.solid-turquoise-btn i,
.site-header .solid-turquoise-btn i,
.site-header .wiondefault-btn.solid-turquoise-btn i {
    color: var(--white-color) !important;
}

.solid-turquoise-btn:hover,
.site-header .solid-turquoise-btn:hover,
.site-header .wiondefault-btn.solid-turquoise-btn:hover {
    background-color: var(--white-bg) !important;
    border-color: var(--accent-color) !important;
    color: var(--heading-color) !important;
}

/* ==========================================================
   MOBILE FIXES (≤ 991px)
   ========================================================== */

/* ── Bootstrap utility shims (Bootstrap not loaded globally) ── */
/* Hide desktop-only nav on mobile */
.d-none {
    display: none !important;
}

.d-lg-block {
    display: none !important;
}

@media (min-width: 992px) {
    .d-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-none {
        display: none !important;
    }

    .d-inline-block {
        display: inline-block !important;
    }
}

/* ── Mobile header layout ── */
@media (max-width: 991px) {

    /* Stack logo + burger cleanly in one row */
    .site-header.wionheader-section .container>.row {
        flex-wrap: nowrap;
        align-items: center;
    }

    /* Logo col: shrink to content */
    .site-header .col-8,
    .site-header .col-sm-auto {
        flex: 0 0 auto;
        width: auto;
    }

    /* Push burger to the far right */
    .site-header .col-auto {
        margin-left: auto;
    }

    /* Burger icon sizing and alignment */
    .wionmenu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        font-size: 22px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--heading-color);
    }

    /* Hide the sprint button in header on mobile to keep it clean */
    .wiondefault-btn.sprint-header-btn {
        display: none !important;
    }

    /* Sticky pill on mobile: full-width feel, less padding */
    .site-header.wionheader-section.sticky-menu {
        width: 94% !important;
        padding: 10px 20px !important;
        border-radius: 40px !important;
    }
}

/* ── Hero section mobile ── */
@media (max-width: 991px) {
    .wionhero-content2 {
        padding-top: 100px;
        text-align: center;
    }

    .wionhero-content2 .mt-50 {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .wionhero-content2 {
        padding-top: 90px;
    }

    /* Subtext paragraph: smaller on mobile */
    .wionhero-content2 p {
        font-size: 1rem !important;
    }

    /* Reduce the gap between headline and subtext on small screens */
    .wionhero-content2 .mt-50 {
        margin-top: 30px !important;
    }

    /* Hero: prevent horizontal overflow */
    .wionhero-section2 {
        overflow-x: hidden;
    }
}

@media (max-width: 575px) {
    .wionhero-content2 {
        padding-top: 80px;
    }

    .wionhero-content2 p {
        font-size: 0.95rem !important;
    }
}

/* ── General section padding on mobile ── */
@media (max-width: 767px) {
    .wionsection-padding {
        padding: 60px 0 !important;
    }

    /* Prevent any section from causing horizontal scroll */
    section,
    .wionabout-animation-section,
    .wiondefault-bg {
        overflow-x: hidden;
    }
}

/* ── About animation section: disable parallax images on mobile ── */
@media (max-width: 991px) {
    .wionabout-animation-wrap .animated-image {
        display: none;
    }

    .wionabout-content4 {
        text-align: center;
        padding: 60px 20px;
    }

    .wionabout-content4 h3 {
        font-size: 1.4rem !important;
        line-height: 1.5 !important;
    }

    .wionabout-content4 .mt-50 {
        display: flex;
        justify-content: center;
    }
}

/* ── Service items: horizontal overflow guard ── */
@media (max-width: 767px) {
    .wionservice-image-reveal-wraper {
        overflow: hidden;
    }

    .wionservice-wrap {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ── Portfolio / Project cards: ensure single-column on mobile ── */
@media (max-width: 767px) {
    .wionp-wraper {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .wionp-item {
        width: 100% !important;
    }

    .wionp-wrap.wrap2,
    .wionp-wrap.wrap3 {
        margin-top: 0 !important;
    }
}

/* ── mx-auto shim (utility not globally defined) ── */
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}