@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@300;400;600;700&display=swap');

/* Basic styles for Fortune IT Corp demo site */
:root {
    --brand-blue: #072246;
    /* primary navy (updated to stronger navy) */
    --brand-dark: #071226;
    /* deeper navy for dark bands */
    --brand-orange: #ff7a1a;
    /* accent orange */
    --accent: var(--brand-blue);
    --dark: #0b0b0b;
    --muted: #666;
    --max-width: 1100px;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Barlow Semi Condensed', Segoe UI, system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.5
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem
}

.site-header,
.site-top {
    background: #fff;
    border-bottom: 1px solid #eee
}

/* Safety: ensure header/topbar/nav containers never extend past viewport width
   This prevents layout shifts when pages inject header HTML or when unexpected
   long content appears in top-links/contact-info. */
.site-top,
.header-main,
.nav-wrap,
.topbar {
    box-sizing: border-box;
    width: 100%;
    left: 0;
    right: 0;
    overflow: hidden;
}

/* Slight left nudge for case-study pages to align header with content */
body.case-study-page .wrap {
    padding-left: 0.6rem;
    /* was 1rem */
    padding-right: 0.6rem;
}

/* Case-study pages: use Barlow Semi Condensed for better heading fit
   Scoped to .case-study-page class and also supports :has(main.case-study). */
body.case-study-page,
body:has(main.case-study) {
    font-family: 'Barlow Semi Condensed', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Main-menu nudge for case-study pages (supports both class and :has selector) */
body.case-study-page .site-nav,
body:has(main.case-study) .site-nav {
    transform: translateX(-6px);
}

body.case-study-page .nav-wrap .wrap,
body:has(main.case-study) .nav-wrap .wrap {
    padding-left: .6rem;
    padding-right: .6rem;
}

.site-header .wrap,
.site-top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem
}

.main-nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--dark)
}

/* Topbar and header (from header.html) */
.topbar {
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem 0
}

.topbar .welcome {
    font-weight: 600
}

.top-links a {
    color: #fff;
    text-decoration: none;
    margin-left: .6rem
}

.top-links .sep {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 .5rem
}

.pay-btn {
    background: rgba(255, 255, 255, 0.14);
    padding: .35rem .7rem;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    margin-left: 1rem
}

.login-link {
    background: rgba(255, 255, 255, 0.12);
    padding: .28rem .6rem;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    margin-left: 0.8rem;
    font-weight: 600
}

.login-link:hover {
    background: rgba(255, 255, 255, 0.18)
}

.header-main {
    background: #fff;
    border-bottom: 0
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 0
}

.brand .logo {
    font-size: 1.4rem;
    color: var(--brand-blue);
    text-decoration: none
}

.contact-cta {
    display: flex;
    align-items: center;
    gap: 1rem
}

.contact-info {
    color: var(--muted);
    font-size: 0.95rem;
    display: flex;
    gap: 1rem;
    align-items: center
}

.quote-btn {
    background: var(--brand-orange);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 26px;
    text-decoration: none
}

/* WhatsApp-styled button variant used in header */
.whatsapp-btn {
    background: #25D366;
    /* WhatsApp green */
    color: #fff;
    padding: .56rem 1rem;
    border-radius: 26px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.12);
    transition: background .12s ease, transform .08s ease;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
    background: #1DA851;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Slightly smaller on very small viewports */
@media (max-width:520px) {
    .whatsapp-btn {
        padding: .45rem .8rem;
        font-size: .95rem
    }
}

/* Ensure SVG icon inside the whatsapp button is sized and white */
.whatsapp-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: #fff;
}

/* Utility: visually hidden for screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Mobile navigation: hamburger and responsive menu */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

.mobile-nav-toggle .hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    position: relative;
}

.mobile-nav-toggle .hamburger:before,
.mobile-nav-toggle .hamburger:after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--dark);
}

.mobile-nav-toggle .hamburger:before {
    top: -6px;
}

.mobile-nav-toggle .hamburger:after {
    top: 6px;
}

@media (max-width: 760px) {
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
    }

    /* Hide desktop nav; show via .open */
    /* keep the nav-list present so we can animate open/close via max-height */
    .nav-list {
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height .28s ease, opacity .18s ease;
        opacity: 0;
        position: static;
        box-shadow: none;
        background: transparent;
        width: 100%;
    }

    .nav-wrap.open .nav-list,
    .site-nav.open .nav-list {
        max-height: 1000px;
        opacity: 1;
        background: #fff;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: .6rem 1rem;
        box-shadow: 0 8px 28px rgba(2, 6, 23, 0.08);
        z-index: 4000;
    }

    .nav-list a {
        padding: .8rem 0;
        border-bottom: 1px solid rgba(10, 37, 64, 0.04);
    }

    .contact-cta {
        gap: .6rem;
    }

    /* hide inline contact details on mobile; show mobile-specific block when menu opens */
    .contact-info {
        display: none;
    }

    .mobile-contact {
        display: none;
    }

    .nav-wrap.open .mobile-contact {
        display: flex;
        flex-direction: column;
        gap: .4rem;
        padding: .4rem 1rem;
        border-top: 1px solid rgba(10, 37, 64, 0.04);
    }

    .mobile-contact-item {
        color: var(--dark);
        text-decoration: none;
        font-weight: 600;
    }

    .whatsapp-btn {
        padding: .6rem;
        border-radius: 50%;
    }

    /* Off-canvas mobile panels */
    .mobile-panel {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 82%;
        max-width: 360px;
        background: #fff;
        z-index: 5000;
        box-shadow: 0 12px 40px rgba(2, 6, 23, 0.12);
        transform: translateX(-110%);
        transition: transform .32s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
    }

    .mobile-panel.mobile-main {
        left: 0;
        right: auto;
    }

    .mobile-panel.mobile-contact-panel {
        right: 0;
        left: auto;
        transform: translateX(110%);
    }

    .mobile-panel.open.mobile-main {
        transform: translateX(0);
    }

    .mobile-panel.open.mobile-contact-panel {
        transform: translateX(0);
    }

    /* prevent body scroll when panel open */
    body.no-scroll {
        overflow: hidden;
    }

    /* panel content small adjustments */
    .mobile-panel .nav-list {
        display: block;
        max-height: none;
        padding: 0;
    }

    .mobile-panel .nav-list li a {
        display: block;
        padding: .8rem 0;
    }

    .mobile-panel .mobile-contact-item {
        display: block;
        padding: .6rem 0;
    }

    /* Header layout adjustments: center logo */
    .header-row {
        position: relative;
    }

    .mobile-main-toggle {
        display: inline-flex;
    }

    .mobile-contact-toggle {
        display: inline-flex;
        margin-left: .5rem;
    }

    .brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-cta {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    /* Hide original header/top links and contact-info on mobile to avoid duplicates when panels are used */
    .top-links {
        display: none !important;
    }

    .contact-info {
        display: none !important;
    }

    /* Ensure topbar toggle is visible on mobile */
    .topbar-toggle {
        display: inline-flex !important;
    }

    /* Topbar toggle (small) */
    .topbar-toggle {
        display: inline-flex;
        margin-right: .6rem;
        border: 0;
        background: transparent;
    }

    /* Topbar off-canvas slides from top */
    .mobile-topbar {
        left: 0;
        right: 0;
        top: 0;
        height: auto;
        max-height: 60vh;
        width: 100%;
        transform: translateY(-110%);
    }

    .mobile-topbar.open {
        transform: translateY(0);
    }
}

/* Mobile: constrain hero images for faster rendering and better fold */
@media (max-width:760px) {

    /* Target common hero image selectors used across pages */
    .hero-image img,
    .hero-illustration,
    .hero-visual .hero-image img,
    .hero-inner .hero-image img {
        width: 100%;
        height: auto;
        max-height: 220px;
        /* limit tall images on small screens */
        object-fit: cover;
        border-radius: 10px;
    }

    /* If a hero uses an inline width/height attributes (e.g. on smo.html), ensure they scale down */
    .hero-image img[width],
    .hero-image img[height] {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure header area is above page sections (avoid submenu hiding behind hero) */
.site-top,
.topbar,
.header-main,
.nav-wrap,
.site-nav {
    position: relative;
    /* Raise stacking context so header / dropdown appear above large hero visuals */
    z-index: 120000;
}

/* remove any accidental spacing under header elements */
.site-top,
.topbar,
.header-main,
.nav-wrap {
    margin-bottom: 0;
    padding-bottom: 0
}

/* Ensure main content stays below header unless intentionally raised */
.hero,
main {
    position: relative;
    z-index: 1
}

/* Main navigation (below header) */
.nav-wrap {
    background: #fff;
    border-top: 0;
    border-bottom: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch
}

.site-nav {
    position: relative;
    overflow: visible
}

.site-nav .wrap {
    padding: 0
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap
}

.nav-list li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto
}

.nav-list a {
    display: block;
    padding: .85rem .9rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.94rem;
    white-space: nowrap
}

.nav-list a:hover {
    color: var(--brand-blue)
}

/* Submenu styles (dropdown) */
.nav-list li {
    position: relative
}

.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #4a4a4a;
    color: #fff;
    min-width: 260px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    /* Ensure submenu is above most other page content */
    z-index: 130000;
}

.submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06)
}

.submenu li a {
    color: #fff;
    padding: .9rem 1rem;
    display: block
}

/* Constrain About section blob image height and ensure good crop */
.about .blob-image {
    width: 100%;
    max-height: 360px;
    /* reduced height for homepage */
    object-fit: cover;
    display: block;
}

@media (max-width:992px) {
    .about .blob-image {
        max-height: 300px;
    }
}

@media (max-width:720px) {
    .about .blob-image {
        max-height: 220px;
    }
}

/* Trust cards (Why Clients Trust) */
.trust-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(2, 6, 23, 0.04);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.03)
}

.trust-card .tick {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--brand-orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

.trust-card .trust-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.96rem
}

@media (max-width:992px) {
    .trust-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:720px) {
    .trust-cards {
        grid-template-columns: 1fr;
    }
}

.submenu li a:hover {
    text-decoration: underline;
    color: #fff
}

.submenu li.highlight a {
    background: var(--brand-orange);
    color: #fff
}

/* show submenu on hover (desktop) */
.nav-list li.has-sub:hover>.submenu {
    display: block
}

/* show when JS toggles .open class or when focused via keyboard */
.nav-list li.has-sub.open>.submenu {
    display: block
}

.nav-list li.has-sub:focus-within>.submenu {
    display: block
}

/* Defensive override: if other stylesheets override dropdown visibility,
   ensure primary submenus remain visible. Using !important sparingly here
   as a last-resort fallback for environments where build CSS may load
   after the main stylesheet. */
.nav-list li.has-sub:hover>.submenu,
.nav-list li.has-sub.open>.submenu,
.nav-list li.has-sub:focus-within>.submenu {
    display: block !important;
}

/* ensure submenu scrolls on very small screens instead of overflowing */
@media (max-width:520px) {
    .submenu {
        position: static;
        box-shadow: none
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start
    }
}

.team-section h2 {
    color: var(--brand-blue);
    font-weight: 800;
    margin-bottom: .6rem
}

.team-grid .team-member {
    min-width: 220px
}

.team-member .rounded-circle {
    flex-shrink: 0
}

.team-section .card {
    border: 1px solid rgba(10, 37, 64, 0.04)
}

@media (max-width:1100px) {
    .director-note .director-image {
        max-width: 320px;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(10, 37, 64, 0.08)
    }

    .director-note blockquote {
        border-left: 4px solid var(--brand-blue);
        padding-left: 1rem
    }

    .director-note .blockquote-footer {
        color: var(--muted)
    }

    /* reduce nav padding so menu fits on one line on medium screens */
    .nav-list a {
        padding: .6rem .6rem;
        font-size: 0.92rem
    }
}

@media (max-width:760px) {
    .nav-list {
        gap: .5rem;
        padding: 0 0.5rem
    }

    .topbar-row,
    .header-row {

        /* Hide floating chat on very small screens to prevent overlap with primary CTA */
        @media (max-width:420px) {
            .ft-chat-btn {
                display: none;
            }

            .ft-chat-panel {
                display: none !important;
            }
        }

        flex-direction: column;
        align-items: flex-start;
        gap: .5rem
    }

    .contact-cta {
        width: 100%;
        justify-content: space-between
    }

    /* Dark section helpers (used for Mission & Vision block) */
    .bg-dark.text-white h2,
    .bg-dark.text-white h3 {
        color: #fff;
    }

    .bg-dark.text-white .lead {
        color: rgba(255, 255, 255, 0.95);
    }

    .bg-dark.text-white p,
    .bg-dark.text-white li {
        color: rgba(255, 255, 255, 0.9);
    }

    .bg-dark.text-white a {
        color: #cfe6ff;
    }

    .bg-dark.text-white ul {
        padding-left: 1.1rem;
    }

    /* Accent helpers to reflect navy & orange color combination */
    .highlight {
        color: var(--brand-orange)
    }

    .btn-accent {
        background: var(--brand-orange);
        border-color: var(--brand-orange);
        color: #fff
    }

    .btn-accent:hover {
        filter: brightness(.95)
    }
}

.hero {
    background: linear-gradient(90deg, #f6fbff, #ffffff);
    padding: 4rem 0;
    text-align: center
}

.hero h1 {
    font-size: 2rem;
    margin: 0 0 .5rem;
    color: var(--brand-blue);
    font-weight: 700
}

.hero p {
    margin: 0 0 1rem;
    color: var(--muted)
}

/* Ensure hero media cannot overflow horizontally */
.hero-media img,
.hero-inner img,
.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 4px;
    text-decoration: none
}

.btn-primary {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff
}

.btn-primary:hover {
    background: #081e33;
    color: #fff;
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.12);
    transform: translateY(-1px)
}

.btn-accent {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff
}

.services {
    padding: 2rem 0
}

.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem
}

.card {
    background: #fff;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 6px
}

.about {
    padding: 2rem 0
}

.about .lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 75ch;
    margin-top: 0
}

.cta {
    background: #f8f9fb;
    padding: 2rem;
    text-align: center
}

.site-footer {
    border-top: 1px solid #eee;
    padding: 1rem 0;
    margin-top: 2rem
}

/* Full-bleed footer: background on the <footer> element, inner .wrap remains centered */
.site-footer.site-footer-full {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    background: #041a33;
    color: #ffffff;
    padding: 36px 0;
}

/* Safety guard: prevent accidental horizontal scroll from full-bleed elements
   (e.g. footer negative margins) or layout bugs that push header outside viewport) */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Keep off-canvas mobile panels functional (they use fixed positioning) */
.mobile-panel {
    -webkit-overflow-scrolling: touch;
}

.site-footer.site-footer-full .wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem
}

.site-footer.site-footer-full .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem
}

.site-footer.site-footer-full a {
    color: #cfe6ff
}

.floating-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: var(--brand-blue);
    color: #fff;
    padding: .8rem 1rem;
    border-radius: 36px;
    box-shadow: 0 12px 28px rgba(10, 37, 64, 0.18);
    z-index: 9999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.22)
}

.floating-cta .icon {
    width: 18px;
    height: 18px;
    display: inline-block
}

.contact-form {
    max-width: 600px
}

.contact-form label {
    display: block;
    margin-top: .8rem;
    font-weight: 600
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: .3rem
}

.contact-form button {
    margin-top: 1rem
}

@media (min-width:760px) {
    .hero h1 {
        font-size: 2.6rem
    }
}

/* FAQ styles */
.faq .accordion-button {
    font-weight: 600
}

.faq .accordion-body {
    color: var(--muted)
}

.faq h2 {
    color: var(--brand-blue);
    font-weight: 700
}

/* About section specific styles */
.blob-shape {
    display: none !important
}

.blob-image {
    position: relative;
    z-index: 2;
    max-width: 420px;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.06)
}

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-blue);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.08);
    z-index: 3
}

.highlight {
    color: var(--brand-orange)
}

.nav-tabs .nav-link {
    color: var(--brand-blue)
}

.nav-tabs .nav-link.active {
    background: var(--brand-blue);
    color: #fff;
    border-radius: 6px
}

.tab-content .img-thumbnail {
    border-radius: 6px;
    padding: 0;
    border: 0
}

.tab-content .btn-primary {
    background: var(--brand-blue);
    border-color: var(--brand-blue)
}

@media (max-width:991px) {
    .blob-shape {
        left: -40%;
        top: -20%;
        width: 260px;
        height: 260px
    }

    .blob-image {
        max-width: 100%;
    }

    .play-btn {
        width: 56px;
        height: 56px
    }
}

/* Services cards */
.service-card {
    border: 1px solid rgba(10, 37, 64, 0.06);
    border-radius: 10px;
    transition: transform .22s ease, box-shadow .22s ease
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.06)
}

.service-card .card-title {
    color: var(--brand-blue);
    font-weight: 700
}

.proposal-btn {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
    width: 100%;
    padding: .55rem 0;
    border-radius: 8px
}

.proposal-btn:hover {
    background: #081e33;
    color: #fff
}

.services.bg-light {
    background: #fbfcfe
}

/* Mission block: full-width navy band with orange accents (global) */
.mission-block {
    background: #fff;
    color: var(--dark)
}

.mission-block h2 {
    color: var(--brand-blue);
    margin-bottom: 0.6rem
}

.mission-block h2:after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--brand-orange);
    margin-top: .6rem;
    border-radius: 4px
}

.mission-block .lead {
    color: var(--muted)
}

.mission-block p,
.mission-block li {
    color: var(--dark)
}

.mission-block .container {
    padding-left: 1rem;
    padding-right: 1rem
}

/* Services full-width band (global) */
.services-block {
    background: var(--brand-blue)
}

.services-block h2,
.services-block p {
    color: #fff
}

.services-block .card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06)
}

.services-block .card .card-title {
    color: var(--brand-blue)
}

.services-block .card-text {
    color: var(--muted)
}

.services-block .btn-accent {
    background: var(--brand-orange);
    border-color: var(--brand-orange)
}

/* Full-bleed band: make the services section span the viewport even when inside a centered container */
.services-block {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
}

/* Constrain inner content to the site's max-width while keeping the band full-bleed */
.services-block>.container-fluid>.container-fluid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Impact (dark band) */
.impact-block {
    background: var(--brand-dark);
    color: #e8f6ff;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box
}

.impact-block h2 {
    color: #fff
}

.impact-block p {
    color: rgba(255, 255, 255, 0.9)
}

/* Ensure all textual content inside the Impact band is readable (white) */
.impact-block h1,
.impact-block h2,
.impact-block h3,
.impact-block h4,
.impact-block h5,
.impact-block h6 {
    color: #fff !important;
}

.impact-block p,
.impact-block li,
.impact-block .card-text,
.impact-block .card p,
.impact-block .problem-card .card-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

.impact-block .card-title {
    color: #fff !important;
}

.impact-block .card {
    background: transparent;
}

/* Ensure headings inside dark/full-bleed bands are white for readability */
.services-block h2,
.services-block h3,
.impact-block h2,
.impact-block h3,
.hero-visual .hero-title,
.hero-visual h2 {
    color: #fff !important;
}

.impact-block .problem-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06)
}

.impact-block .card-title {
    color: #fff
}

.impact-block .card p {
    color: rgba(255, 255, 255, 0.88)
}

.impact-block>.container-fluid>.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem
}

/* Strong override: ensure headings inside dark/full-bleed bands are white regardless of other rules or specificity */
section.services-block h1,
section.services-block h2,
section.services-block h3,
section.impact-block h1,
section.impact-block h2,
section.impact-block h3,
.hero-visual .hero-title,
.hero-visual h1,
.hero-visual h2 {
    color: #fff !important;
}

/* Make service card titles dark on white cards; impact card titles should be white */
.services-block .card .card-title {
    color: #072246 !important;
}

.impact-block .card .card-title {
    color: #fff !important;
}

/* Target the Impact heading by ID as a final fallback */
#impact h1,
#impact h2,
#impact h3 {
    color: #fff !important;
}



/* Approach section styles */
.approach-section {
    background: transparent
}

.approach-section h2 {
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: .6rem
}

/* FAQ styles (accessible details/summary accordion) */
.faq {
    max-width: var(--max-width);
    margin: 0 auto
}

.faq h2 {
    color: var(--brand-blue);
    margin-bottom: .5rem
}

.faq details {
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: .5rem;
    padding: 1rem;
    margin-top: .75rem
}

.faq summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    outline: none;
    display: block
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary:after {
    content: "▸";
    float: right;
    transform: rotate(0deg);
    transition: transform .18s ease
}

details[open] summary:after {
    transform: rotate(90deg)
}

.faq .answer {
    margin-top: .65rem;
    color: var(--muted)
}

.faq .answer p {
    margin: 0
}

/* Full-bleed hero (keeps inner content constrained to site max-width) */
.hero-visual {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    background: linear-gradient(90deg, #f6fbff, #ffffff);
    padding: 4rem 0;
    z-index: 1;
}

/* Homepage-specific: remove default hero padding so carousel is flush under header */
#homepage-slider.hero-visual {
    padding: 0;
}

.hero-visual .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 34, 70, 0.6), rgba(7, 34, 70, 0.25));
    pointer-events: none
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem
}

.hero-copy {
    flex: 1;
    text-align: left;
    color: var(--brand-blue)
}

.hero-copy .eyebrow {
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem
}

.hero-title {
    font-size: 2rem;
    color: var(--brand-blue);
    margin: 0 0 .5rem
}

.hero-sub {
    color: var(--muted);
    margin-bottom: 1rem
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 1.25rem
}

.hero-contact {
    margin-top: 1rem;
    color: #fff
}

.hero-visual .hero-image {
    flex: 0 0 46%;
    text-align: center
}

.hero-visual .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.06)
}

@media (max-width:991px) {
    .hero-inner {
        flex-direction: column;
        text-align: center
    }

    .hero-copy {
        text-align: center
    }

    .hero-visual .hero-image {
        width: 80%
    }
}

/* Utilities used by about page */
.services-block .row.g-4 {
    margin-top: 1rem
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem
}

.team-member img.team-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    margin-right: .75rem;
    border-radius: 50%
}

/* Utility classes moved from inline attributes */
.hero-actions {
    margin-top: 1rem
}

.hero-illustration {
    max-width: 360px;
    width: 100%;
    border-radius: .5rem
}

.fortune-logo {
    max-height: 60px;
    display: block
}

.badge-hiring {
    background: #ffc107;
    color: #000;
    padding: .15rem .35rem;
    border-radius: .25rem;
    font-size: .8rem
}

.footer-row {
    display: flex;
    gap: .5rem
}

.footer-social {
    margin-top: 1rem
}

.map-embed {
    border: 0
}

.link-inline {
    margin-left: .75rem;
    color: #0d6efd;
    text-decoration: underline
}

/* Static page specific helpers (moved from inline page styles) */
.static-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem
}

.static-feature {
    background: #fff;
    border: 1px solid #eef2ff;
    padding: 1.1rem;
    border-radius: .6rem;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.03)
}

.static-feature h4 {
    margin: .25rem 0 .5rem;
    font-size: 1.05rem
}

.process {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem
}

.step {
    flex: 1 1 160px;
    background: #f8fafc;
    border-radius: .5rem;
    padding: 1rem;
    border: 1px solid #e6eefc;
    text-align: center
}

.cta-strip {
    /* upgraded CTA strip: full-bleed band with constrained inner content */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-dark));
    color: #fff;
    padding: 2.25rem 0;
}

.final-cta .cta-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.final-cta .cta-copy {
    flex: 1 1 60%;
}

.final-cta .cta-copy h2 {
    margin: 0 0 .25rem;
    color: #fff;
    font-size: 1.45rem
}

.final-cta .cta-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92)
}

.final-cta .cta-actions {
    display: flex;
    gap: .75rem;
    align-items: center
}

/* Primary CTA button */
.btn-cta {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #071226;
    padding: .6rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700
}

.btn-cta:hover {
    filter: brightness(.98);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(7, 34, 70, 0.12)
}

/* Ghost/outline CTA for secondary action */
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: .55rem 1rem;
    border-radius: 8px;
    text-decoration: none
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04)
}

/* Hero CTA tweak: ensure prominent primary button and subtle outline for secondary */
.btn-hero-cta {
    min-width: 180px;
    padding: .7rem 1.15rem;
    border-radius: 8px;
    font-weight: 700
}

.hero-ctas .btn-outline-light {
    border-radius: 8px;
    padding: .6rem 1rem
}

.content-section {
    margin-top: 2.25rem
}

/* Ensure consistent vertical rhythm between sections inside main content */
main.wrap>section {
    margin-top: 2.5rem
}

main.wrap>section:first-child {
    margin-top: 0
}

/* Who Should Choose section */
.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem
}

@media (min-width:992px) {

    /* Show three cards per row on medium+ viewports for better balance */
    .who-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.who-card {
    background: #fff;
    border: 1px solid rgba(7, 34, 70, 0.04);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start
}

.who-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 122, 26, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--brand-blue);
    flex: 0 0 44px
}

.who-card h4 {
    margin: 0;
    font-size: 1rem
}

.who-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem
}

/* Icon svg sizing inside who-card */
.who-card .icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: var(--brand-blue)
}

.who-card .icon.inline-bg {
    background: transparent
}

/* Benefits section: full-bleed navy band with constrained inner content */
.benefits-section {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    background: var(--brand-blue);
    color: #fff;
    padding: 3rem 0;
}

.benefits-section .content-media {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
}

.benefits-section h2 {
    color: #fff
}

.benefits-section .text p,
.benefits-section .text ul,
.benefits-section .text li {
    color: rgba(255, 255, 255, 0.95)
}

.benefits-section .media img {
    max-width: 100%;
    border-radius: .5rem;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
    filter: brightness(.98)
}

.benefits-section .static-feature {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06)
}

.benefits-section .static-feature h4 {
    color: #fff
}

.benefits-section .static-feature p {
    color: rgba(255, 255, 255, 0.9)
}

/* SEO section: full-bleed navy band, slightly lighter than benefits for contrast */
.seo-section {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    background: linear-gradient(180deg, var(--brand-dark), #072246);
    color: #fff;
    padding: 2.25rem 0;
}

.seo-section .content-media {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem
}

.seo-section h2 {
    color: #fff
}

.seo-section .text p,
.seo-section .text ul,
.seo-section .text li {
    color: rgba(255, 255, 255, 0.92)
}

.seo-section .media img {
    max-width: 100%;
    border-radius: .5rem;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
    filter: brightness(.95)
}

/* Make SEO section card-first and hide the media column so cards show 3-up */
.seo-section .content-media {
    display: block;
}

.seo-section .content-media .text {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.seo-section .content-media .media {
    display: none;
}

.seo-section .static-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (max-width:1100px) {
    .seo-section .static-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:720px) {
    .seo-section .static-features {
        grid-template-columns: 1fr;
    }
}

/* Ensure card text in the SEO section is dark for readability */
.seo-section .static-feature {
    background: #fff;
    border: 1px solid rgba(2, 6, 23, 0.04);
    color: var(--dark);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
}

.seo-section .static-feature h4 {
    color: var(--brand-blue);
}

.seo-section .static-feature p {
    color: var(--muted);
}

.content-media {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap
}

.content-media .text {
    flex: 1
}

.content-media .media {
    flex: 0 0 360px;
    text-align: center
}

.content-media .media img {
    max-width: 360px;
    width: 100%;
    border-radius: .5rem;
    box-shadow: 0 10px 28px rgba(2, 6, 23, .06)
}

.content-media.reverse {
    flex-direction: row-reverse
}

/* On narrow screens stack media under text for readable flow */
@media (max-width:767px) {

    .content-media,
    .content-media.reverse {
        flex-direction: column
    }

    .content-media .media,
    .content-media.reverse .media {
        flex: 0 0 auto;
        width: 80%;
        margin: 0 auto
    }
}

.approach-section .lead {
    color: var(--muted);
    margin-bottom: 1rem
}

.approach-figure {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto
}

.approach-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 14px
}

.approach-section ul {
    margin-top: 0.5rem;
    margin-bottom: 0.8rem
}

.approach-section ul li {
    margin-bottom: .6rem;
    color: var(--dark)
}

@media (max-width:767px) {
    .approach-image {
        border-radius: 10px
    }
}

/* Benefits section: full-bleed band with centered content and 3-up cards */
.benefits-full {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    padding: 2rem 0;
    background: transparent;
}

.benefits-full .content-media {
    display: block
}

.benefits-full .content-media .text {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem
}

.benefits-full .content-media .media {
    display: none
}

.benefits-full .static-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem
}

@media (max-width:1100px) {
    .benefits-full .static-features {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:720px) {
    .benefits-full .static-features {
        grid-template-columns: 1fr
    }
}

/* Features section: full-bleed band with centered content and 3-up cards */
.features-full {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    padding: 2rem 0;
    background: transparent;
}

.features-full .content-media {
    display: block
}

.features-full .content-media .text {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem
}

.features-full .content-media .media {
    display: none
}

.features-full .static-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem
}

@media (max-width:1100px) {
    .features-full .static-features {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:720px) {
    .features-full .static-features {
        grid-template-columns: 1fr
    }
}


/* Why Choose Us section */
.why-choose {
    background: #fff
}

.why-choose h2 {
    color: var(--brand-blue);
    font-weight: 700
}

.why-choose .trust-list li {
    margin: 0.45rem 0;
    color: var(--brand-blue);
    font-weight: 600
}

.why-choose .problems-list {
    counter-reset: problem-counter;
    padding-left: 0;
    margin-left: 0
}

.why-choose .problems-list li {
    list-style: none;
    margin-bottom: 1rem;
    padding-left: 3.5rem;
    position: relative
}

.why-choose .problems-list li:before {
    counter-increment: problem-counter;
    content: counter(problem-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

.why-choose .problems-list li p {
    margin: 0
}

@media (max-width:767px) {
    .why-choose .problems-list li {
        padding-left: 48px
    }

    .why-choose .problems-list li:before {
        left: 6px
    }
}

/* Problem cards */
.problems-cards .problem-card {
    border: 1px solid rgba(10, 37, 64, 0.04);
    border-radius: 10px;
    transition: transform .22s ease, box-shadow .22s ease
}

.problems-cards .problem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.06)
}

.problems-cards .card-title {
    color: var(--brand-blue);
    font-weight: 700
}

.problems-cards .btn-outline-primary {
    border-color: var(--brand-blue);
    color: #fff
}

.problems-cards .btn-outline-primary:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue)
}

.problems-cards .card-text {
    min-height: 60px
}

.why-image {
    max-width: 520px;
    width: 100%;
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.06);
    display: inline-block
}

@media (max-width:991px) {
    .why-image {
        max-width: 360px
    }
}

/* Careers page styles */
.careers-page .accordion-button {
    font-weight: 700
}

.careers-page .card {
    border-radius: 10px
}

.careers-page h2 {
    color: var(--brand-blue);
    margin-bottom: .6rem
}

.careers-page .lead {
    color: var(--muted)
}

/* Full-width footer redesign */
.site-footer-full {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    background: #041a33;
    color: #ffffff;
    padding: 48px 0;
}

.site-footer-full .container {
    max-width: 1200px
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 220px 360px;
    gap: 2rem;
    align-items: start;
}

.site-footer .footer-brand .logo {
    font-weight: 800;
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none
}

.site-footer .muted {
    color: rgba(255, 255, 255, 0.78)
}

.site-footer .footer-links h5,
.site-footer .footer-newsletter h5 {
    color: #cfe6ff
}

.site-footer .footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none
}

.site-footer .footer-links ul li {
    margin: .45rem 0
}

.site-footer .footer-links ul li a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none
}

.site-footer .footer-links ul li a:hover {
    text-decoration: underline
}

.site-footer .footer-row {
    display: flex;
    gap: .5rem
}

.site-footer input[type="email"] {
    flex: 1;
    padding: .5rem .65rem;
    border-radius: 6px;
    border: 0
}

.site-footer .btn-primary {
    background: #0b63a9;
    border-color: #0b63a9;
    color: #fff
}

.site-footer .footer-social {
    margin-top: 1rem;
    display: flex;
    gap: .6rem
}

.site-footer .footer-social .social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #cfe6ff;
    text-decoration: none
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: .95rem
}

@media (max-width:980px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .site-footer .footer-newsletter {
        order: 3
    }
}

@media (max-width:720px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        gap: .5rem;
        align-items: flex-start
    }

    .site-footer .footer-row {
        flex-direction: column
    }

    .site-footer input[type="email"] {
        width: 100%
    }
}

.careers-page .btn-accent {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff
}

/* Contact page styles */
.contact-page h2 {
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: .6rem
}

.contact-page .contact-form .form-label {
    font-weight: 600
}

.contact-page .contact-form .form-control {
    border-radius: 8px
}

.contact-page .map-wrapper iframe {
    border-radius: 8px
}

.contact-page .card {
    border: 1px solid rgba(10, 37, 64, 0.04)
}

.contact-page .lead {
    color: var(--muted)
}

/* Contact / Inquiry form tweaks */
.contact-form,
.inquiry-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    max-width: 900px;
}

.contact-form label,
.inquiry-form label {
    font-weight: 600;
}

.inquiry-form .hidden-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.inquiry-form .trust-elements p {
    margin: 0
}

.inquiry-form .input-group-text {
    background: transparent;
    border-right: 0
}

.inquiry-form .input-group .form-control {
    border-left: 0
}

/* Invalid feedback placements */
.inquiry-form .invalid-feedback {
    display: block
}

.inquiry-success {
    display: none;
}

/* Small tweaks for mobile */
@media (max-width:575px) {
    .inquiry-form .input-group-text {
        display: none
    }
}


/* When the no-vacancies alert is present, hide the jobs accordion (easy toggle) */
#no-vacancies+.accordion {
    display: none;
}

#no-vacancies {
    border-radius: 8px;
}


/* Ensure sections stack vertically and don't overlap */
main>section {
    clear: both;
    position: relative;
    z-index: 1
}

.hero,
.about,
.services,
.why-choose,
.cta {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem
}

.hero {
    padding-top: 3.5rem
}

.wrap {
    position: relative
}

/* Enhanced hero visual */
.hero-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    color: #fff;
    background: none !important;
    background-image: none !important;
    background-size: initial !important;
    background-position: initial !important;
    margin-top: 0
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(6, 27, 48, 0.55), rgba(6, 27, 48, 0.55));
    z-index: 1
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 4rem 1rem
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 .6rem;
    color: #fff
}

.hero-sub {
    color: rgba(255, 255, 255, 0.9);
    max-width: 920px;
    margin: 0 auto
}

.eyebrow {
    letter-spacing: .08em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-bottom: .6rem
}

.hero-ctas .btn {
    min-width: 180px
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.06)
}

.hero-contact a {
    color: #fff
}

@media (max-width:767px) {
    .hero-visual {
        min-height: 360px;
        padding: 2rem 0
    }

    .hero-title {
        font-size: 1.6rem
    }

    .hero-sub {
        font-size: 0.98rem
    }

    .hero-ctas {
        flex-direction: column
    }

    .hero-ctas .btn {
        width: 100%
    }
}

/* Footer styles (redesigned) */
.site-footer {
    background: linear-gradient(180deg, #071226 0%, #0b2438 100%);
    color: #e8f6ff;
    padding: 3rem 0;
    font-size: 0.95rem
}

.site-footer a {
    color: #dcedff;
    text-decoration: none
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline
}

.site-footer .wrap {
    max-width: 1100px;
    margin: 0 auto
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 320px;
    gap: 2rem;
    align-items: start
}

.footer-brand .logo {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 800;
    text-decoration: none
}

.footer-brand .muted {
    color: rgba(255, 255, 255, 0.8);
    margin-top: .5rem
}

.footer-contact {
    margin-top: 0.75rem
}

.footer-contact a {
    color: #cfe6ff
}

.footer-links h5 {
    color: #fff;
    margin-bottom: .6rem
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.footer-links li {
    margin-bottom: .55rem
}

.footer-newsletter h5 {
    color: #fff;
    margin-bottom: .5rem
}

.footer-newsletter .muted {
    color: rgba(255, 255, 255, 0.82)
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6)
}

.newsletter-form .btn {
    padding: .5rem .9rem;
    border-radius: 6px
}

.footer-social {
    display: flex;
    gap: .6rem;
    align-items: center
}

.footer-social .social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    color: #fff
}

.footer-social .social svg {
    display: block
}

/* Full-bleed footer wrapper: footer element spans full viewport width
   while `.wrap` keeps inner content constrained to site max width. */
.site-footer-full {
    background: var(--brand-dark);
    color: #cfe6ff;
    width: 100%;
    padding: 3rem 0;
}

.site-footer-full .wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-footer-full a {
    color: #cfe6ff;
}

.site-footer-full .muted {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04)
}

.footer-bottom .muted {
    color: rgba(255, 255, 255, 0.7)
}

@media (max-width:900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-newsletter {
        order: 3
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem
    }
}

/* Further reduce hero section size and spacing specifically for mobile */
@media (max-width:760px) {

    /* Reduce vertical padding and force a stacked layout */
    .hero,
    .hero-visual,
    .hero-advanced,
    .content-hero {
        padding: 1rem 0;
        min-height: auto;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: .6rem;
        align-items: flex-start;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-title {
        font-size: 1.15rem;
        line-height: 1.2;
        margin: 0 0 .35rem 0;
        font-weight: 700;
    }

    .hero-sub {
        font-size: .95rem;
        margin-bottom: .5rem;
    }

    /* Tighter image height for hero visuals on narrow screens */
    .hero-image img,
    .hero-illustration {
        max-height: 160px;
    }

    /* Ensure any hero background images remain visible but don't push the fold */
    .hero-visual[style] {
        background-size: cover;
        background-position: center;
    }
}

/* Additional mobile-only adjustments: reduce hero height and force images to auto-display */
@media (max-width:760px) {

    .hero,
    .hero-visual,
    .hero-advanced,
    .content-hero {
        padding: .6rem 0;
        /* smaller vertical padding */
        min-height: 0;
        overflow: hidden;
    }

    /* Ensure hero image container and images always display and scale nicely */
    .hero-image,
    .hero-visual .hero-image,
    .hero-inner .hero-image {
        display: block !important;
        width: 100%;
    }

    .hero-image img,
    .hero-illustration,
    .hero-visual .hero-image img,
    .hero-inner .hero-image img {
        display: block;
        width: 100%;
        height: auto;
        /* default mobile cap using viewport height so images adapt to device */
        max-height: 32vh;
        object-fit: cover;
    }

    .hero-inner {
        gap: .35rem;
    }

    /* Reduce hero text sizes for tighter mobile layout */
    .hero-title {
        font-size: 1rem;
        line-height: 1.15;
        margin-bottom: .25rem;
    }

    .hero-sub {
        font-size: .88rem;
        margin-bottom: .35rem;
    }

    /* Make hero area more compact */
    .hero,
    .hero-visual,
    .hero-advanced,
    .content-hero {
        padding: .4rem 0;
    }
}

/* Finer-grained mobile breakpoints for hero image sizing */
@media (max-width:520px) {

    .hero-image img,
    .hero-illustration,
    .hero-visual .hero-image img,
    .hero-inner .hero-image img {
        max-height: 36vh;
    }

    .hero-title {
        font-size: 1rem;
    }
}

@media (max-width:420px) {

    .hero-image img,
    .hero-illustration,
    .hero-visual .hero-image img,
    .hero-inner .hero-image img {
        max-height: 28vh;
    }

    .hero-title {
        font-size: .98rem;
    }
}

/* Landscape small devices: constrain by width more than height */
@media (max-height:500px) and (orientation: landscape) {

    .hero-image img,
    .hero-illustration {
        max-height: 40vw;
    }
}

/* Strong override: ensure hero visuals are compact on small screens
   Use higher specificity and !important to override inline attrs or other rules
   This block enforces a reduced max-height and auto scaling for images. */
@media (max-width:760px) {

    .hero-visual,
    .hero,
    .content-hero,
    .hero-advanced {
        min-height: 0 !important;
        padding: 0.3rem 0 !important;
        overflow: hidden !important;
    }

    .hero-image,
    .hero-visual .hero-image,
    .hero-inner .hero-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-image img,
    .hero-illustration,
    .hero-visual .hero-image img,
    .hero-inner .hero-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: 28vh !important;
        /* tighter cap for most phones */
        object-fit: cover !important;
    }
}

@media (max-width:420px) {

    .hero-image img,
    .hero-illustration,
    .hero-visual .hero-image img,
    .hero-inner .hero-image img {
        max-height: 22vh !important;
        /* smaller phones */
    }
}

@media (max-height:500px) and (orientation: landscape) {

    .hero-image img,
    .hero-illustration,
    .hero-visual .hero-image img {
        max-height: 40vw !important;
    }
}

/* Ensure mobile-only UI (toggles & panels) are not visible on desktop
   This prevents cloned content from appearing in the desktop header. */
@media (min-width:761px) {

    .mobile-nav-toggle,
    .mobile-main-toggle,
    .mobile-contact-toggle,
    .topbar-toggle {
        display: none !important;
    }

    /* Mobile off-canvas panels should be hidden on larger screens */
    .mobile-panel {
        display: none !important;
        transform: none !important;
    }

    /* Keep desktop contact visible and ensure no accidental hiding */
    .contact-info {
        display: flex !important;
    }
}

/* Footer sitemap (locations & services) */
.footer-sitemap {
    border-top: 1px solid rgba(10,37,64,0.04);
    padding: 1.25rem 0 0.6rem;
    margin-top: 1rem;
}

.footer-sitemap h5 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: var(--brand-blue);
}


.footer-sitemap .sitemap-grid {
    /* Use grid to create 4 horizontal rows that fill left->right, then wrap into columns.
       Each .sitemap-col becomes a grid item; grid-auto-flow: column fills items top-to-bottom
       across the defined rows, producing 4 horizontal rows with items flowing horizontally. */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 1rem 2rem;
    align-items: start;
}

.sitemap-col {
    min-width: 180px;
}

.sitemap-col h6 {
    margin: 0 0 .4rem;
    font-size: .95rem;
    color: var(--brand-dark);
}

.sitemap-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
}

.sitemap-col ul li {
    display: inline-block;
    margin: 0;
}

.sitemap-col ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
    display: inline-block;
    padding: .12rem 0;
}

.sitemap-col ul li a:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

@media (max-width:760px) {
    /* On small screens stack rows vertically again for readability */
    .footer-sitemap .sitemap-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem 0.75rem;
    }
    .sitemap-col { min-width: 100%; }
    .sitemap-col ul { gap: .4rem .6rem; }
}