/*
 * Progressive visual refresh
 * Loaded after the legacy theme so it can be removed independently.
 */
:root {
    --surface-color: #ffffff;
    --surface-muted: #f6f8fc;
    --border-subtle: rgba(10, 17, 33, .10);
    --shadow-soft: 0 12px 32px rgba(10, 17, 33, .08);
    --shadow-raised: 0 18px 40px rgba(10, 17, 33, .14);
    --radius-sm: 8px;
    --radius-md: 14px;
}

html { scroll-behavior: smooth; }

body {
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

a { transition: color .2s ease, opacity .2s ease, transform .2s ease; }

/* Restore a reliable keyboard indicator removed by the legacy global reset. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--main-color-one) !important;
    outline-offset: 3px;
}

::selection { background: var(--main-color-one); color: #fff; }

.boxed-btn,
.btn-wrapper .boxed-btn {
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 12px color-mix(in srgb, var(--main-color-one) 24%, transparent);
    font-weight: 700;
    letter-spacing: .01em;
    transform: translateY(0);
}

.boxed-btn:hover,
.btn-wrapper .boxed-btn:hover {
    box-shadow: 0 9px 18px color-mix(in srgb, var(--main-color-one) 28%, transparent);
    transform: translateY(-2px);
}

.section-title .title {
    letter-spacing: -.025em;
    line-height: 1.2;
}

.section-title p { max-width: 62ch; }
.section-title.text-center p { margin-left: auto; margin-right: auto; }

/* Homepage 02 hero: feature cards and carousel progress stay on the slider. */
.home-02-hero-shell {
    position: relative;
    overflow: hidden;
    background: #0b1830;
}

.home-02-hero-shell .home-02-carousel .header-area {
    min-height: 720px;
    padding-bottom: 390px;
}

.home-02-hero-shell .home-02-feature-area {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 28px;
    left: 0;
    margin-top: 0;
    background: transparent;
}

.home-02-feature-area .row {
    align-items: stretch;
}

.home-02-feature-area [class*="col-"] {
    display: flex;
}

.home-02-feature-area .feature-box-01 {
    width: 100%;
    min-height: 230px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    background: rgba(31, 45, 103, .88);
    box-shadow: 0 18px 42px rgba(2, 6, 24, .25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-02-feature-area .feature-box-01:hover {
    background: rgba(40, 51, 108, .96);
    box-shadow: 0 22px 48px rgba(2, 6, 24, .34);
    transform: translateY(-4px);
}

.home-02-feature-area .feature-box-01 .icon {
    flex: 0 0 auto;
    margin-right: 24px;
}

.home-02-feature-area .feature-box-01 .content {
    min-width: 0;
}

.home-02-feature-area .home-02-carousel-progress {
    display: flex;
    justify-content: center;
    min-height: 12px;
    margin-top: 20px;
}

.home-02-feature-area .owl-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-02-feature-area .owl-dot {
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
}

.home-02-feature-area .owl-dot.active {
    width: 44px;
    background: var(--main-color-one);
}

.home-02-feature-area .owl-dot:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 4px;
}

@media (max-width: 991px) {
    .home-02-hero-shell {
        overflow: visible;
        background: transparent;
    }

    .home-02-hero-shell .home-02-carousel .header-area {
        min-height: 0;
        padding-bottom: 180px;
    }

    .home-02-hero-shell .home-02-feature-area {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        margin-top: -80px;
        background: var(--surface-color);
    }

    .home-02-feature-area [class*="col-"] {
        margin-bottom: 24px;
    }

    .home-02-feature-area .feature-box-01 {
        min-height: 0;
    }

    .home-02-feature-area .owl-dot {
        background: rgba(10, 17, 33, .22);
    }
}

@media (max-width: 767px) {
    .home-02-hero-shell {
        overflow: hidden;
        background: #0b1830;
    }

    .home-02-hero-shell .home-02-carousel .header-area {
        min-height: 920px;
        padding-bottom: 610px;
    }

    .home-02-hero-shell .home-02-feature-area {
        position: absolute;
        right: 0;
        bottom: 20px;
        left: 0;
        margin-top: 0;
        background: transparent;
    }

    .home-02-feature-area .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .home-02-feature-area .row {
        display: block;
        overflow: hidden;
        margin-right: 0;
        margin-left: 0;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: var(--radius-md);
        background: rgba(31, 45, 103, .9);
        box-shadow: 0 18px 42px rgba(2, 6, 24, .3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .home-02-feature-area [class*="col-"] {
        display: block;
        width: 100%;
        margin-bottom: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .home-02-feature-area [class*="col-"] + [class*="col-"] {
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .home-02-feature-area .feature-box-01,
    .home-02-feature-area .feature-box-01:hover {
        min-height: 0;
        padding: 18px 20px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .home-02-feature-area .feature-box-01 .icon {
        width: 44px;
        margin-right: 16px;
        font-size: 38px;
        line-height: 44px;
        text-align: center;
    }

    .home-02-feature-area .feature-box-01 .content .title {
        margin-bottom: 6px;
        font-size: 18px;
        line-height: 24px;
    }

    .home-02-feature-area .feature-box-01 .content p {
        font-size: 14px;
        line-height: 1.45;
    }

    .home-02-feature-area .home-02-carousel-progress {
        margin-top: 16px;
    }

    .home-02-feature-area .owl-dot {
        background: rgba(255, 255, 255, .42);
    }
}

/* Common content tiles receive a quieter, consistent card surface. */
.icon-box-two,
.single-work-item,
.single-work-item-02,
.single-blog-grid-01,
.single-blog-grid-02,
.single-testimonial-item-02 .description {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.icon-box-two,
.single-work-item,
.single-work-item-02,
.single-blog-grid-01,
.single-blog-grid-02 {
    transition: box-shadow .25s ease, transform .25s ease;
}

.icon-box-two:hover,
.single-work-item:hover,
.single-work-item-02:hover,
.single-blog-grid-01:hover,
.single-blog-grid-02:hover {
    box-shadow: var(--shadow-raised);
    transform: translateY(-4px);
}

.form-control {
    border-radius: var(--radius-sm);
    border-color: var(--border-subtle);
    min-height: 48px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
    border-color: var(--main-color-one);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--main-color-one) 18%, transparent);
}

@media (max-width: 767px) {
    .section-title .title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
    .boxed-btn,
    .btn-wrapper .boxed-btn { min-height: 48px; padding: 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
