:root {
    --bg: #0b1d2a;
    /* --fg: #494d56; */
    --fg: #1b2a36;
    --brand: #1b8dd3;
    --brand-dark: #0a4d77;
    --secondary: #494d56;
    --accent: #ffcc00;
    /* --text: #1b2a36; */
    --text: #000000;
    /* --muted: #5b6b79; */
    --muted: #999999;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background-color: #f0f1eb;
}

a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand);
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Header */
.site-header {
    /* background: var(--white);  */
    /* border-bottom: 1px solid #e7eef5;  */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
    margin-top: 50px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.branding .site-title {
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
}

.primary-nav .menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav .menu a {
    text-decoration: none;
    color: var(--fg);
    font-weight: 600;
    font-size: 1.2rem;
    /* text-shadow: rgba(255,255,255,0.1) 1px 1px 2px; */
    text-shadow: rgba(0, 0, 0, 0.1) 1px 1px 2px;
}



.primary-nav .menu a:hover {
    color: var(--brand);
}

.primary-nav-light .menu a {
    color: #FFF;
}

.primary-nav-light .menu a:hover {
    color: var(--brand);
}

.primary-nav .current-menu-item a,
.primary-nav-light .current-menu-item a {
    color: var(--brand);
}

/* Default desktop nav */
/* Hamburger button */
.nav-toggle {
    position: fixed;
    /* floats above everything */
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    /* above menu */
    color: var(--fg, #fff);
}
.primary-nav-light .nav-toggle {
    color: #FFF;
}

/* Slide-in menu (hidden by default) */
.primary-nav .menu {
    position: fixed;
    top: 0;
    right: -250px;
    /* off-screen */
    width: 250px;
    height: 100%;
    background: var(--bg, #222);
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
    list-style: none;
    margin: 0;
    transition: right 0.3s ease-in-out;
    z-index: 1000; 
}

/* Active state: slide in */
.primary-nav .menu.active,
.primary-nav-light .menu.active {
    right: 0;
}

.primary-nav .menu.active a,
.primary-nav-light .menu.active a {
    color: #CCC;
}

.primary-nav .menu.active a:hover,
.primary-nav-light .menu.active a:hover {
    color: var(--brand) !important;
}

.primary-nav .menu.active .current-menu-item a,
.primary-nav-light .menu.active .current-menu-item a {
    color: var(--brand);
}



/* Desktop: keep horizontal nav */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }

    .primary-nav .menu {
        position: static;
        flex-direction: row;
        background: none;
        height: auto;
        width: auto;
        transition: none;
    }
}

/* Hero */
.hero {
    min-height: 900px;
    background-size: cover;
    background-position: bottom;
    position: relative;
    display: grid;
    align-items: center;
    padding-bottom: 40px;
}


.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(11,29,42,0.35), rgba(11,29,42,0.75)); */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero-title {
    font-size: 42px;
    margin: 0 0 8px;
    line-height: 1.15;
    font-size: 75px;
}

.hero-subtitle {
    font-size: 24px;
    margin: 0;
    font-weight: 500;
    opacity: 0.95;
}

.hero-text {
    font-size: 20px;
    margin-top: 16px;
    line-height: 1.5;
}

.hero-content-large .hero-title {
    font-size: 75px;
}

/* Cards */
.cards {
    padding: 25px 0;
}

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

.card {
    background: var(--white);
    border: 1px solid #e7eef5;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding-bottom: 16px;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card h3 {
    margin: 12px 16px 8px;
    color: var(--fg);
}

.card p {
    margin: 0 16px 16px;
    color: var(--muted);
}

.card .btn {
    align-self: end;
    margin: 0 16px;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--brand);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.card .btn:hover {
    background: #084e8a;
}

.promo-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 34px;
    align-items: center;
    background: var(--white);
    /* border-radius: 12px; */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 340px;
}


.promo-image {
    width: 100%;
}

.promo-image img {
    height: auto;
    /* border-radius: 8px; */
    object-fit: cover;
}

.promo-text {
    position: absolute;
    color: #FFF;
    padding: 30px;
    bottom: 0;
}

.promo-text h3 {
    margin: 0 0 12px;
    font-size: 24px;
    color: var(--white);
}

.promo-text p {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 16px;
}

.read-more {
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    font-size: 16px;
}

.read-more:hover {
    color: var(--white);
}


/* Solutions section */
.home-solutions {
    padding: 60px 0;
}

.home-solutions-title {
    /* display: grid; */
    /* grid-template-columns: 3fr 4fr 3fr; */
    align-items: center;
    margin-bottom: 25px;
}

.home-solutions-title h2 {
    margin: 0 0 12px;
    color: var(--fg);
    font-size: 34pt;
    line-height: 1.1;
}

.home-solutions-title .subtitle {
    color: var(--brand);
    font-weight: 700;
}

.home-solutions-subtitle {
    font-weight: 700;
}

.home-solutions p {
    color: var(--muted);
    margin: 0 0 10px;
}

.home-solutions-image {
    margin-bottom: 25px;
}

.home-solutions-image img {
    max-width: 100%;
    border-radius: 10px;
}

.home-solutions-body {
    /* display: grid; */
    /* grid-template-columns: 2fr 2fr; */
    /* gap: 24px; */
}

.page .page-title {
    font-size: 70px;
    margin: 0 0 16px;
    color: var(--fg);
}


.qhse-list {
    list-style: none;
    padding-left: 0;
}

.qhse-list li {
    display: flex;
    align-items: center;
    /* vertical centering */
    gap: 1em;
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.qhse-list li::before {
    content: "•";
    color: var(--brand);
    font-size: 1.5em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    /* center within itself if needed */
    justify-content: center;
    width: 1em;
    /* fixed bullet box */
}


.blue-list {
    list-style: none;
    padding-left: 0;
}

.blue-list li {
    display: flex;
    align-items: center;
    /* vertical centering */
    gap: 1em;
    margin-bottom: 10px;
}

.blue-list li::before {
    content: "•";
    color: var(--brand);
    font-size: 1.5em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    /* center within itself if needed */
    justify-content: center;
    width: 1em;
    /* fixed bullet box */
}

.h-blue {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--bs-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: inline-block;
    padding-bottom: 1.2rem;
}

.h-blue::after {
    content: "";
    display: block;
    width: 30%;
    height: 2px;
    background-color: var(--bs-primary);
    margin-top: 1.2rem;
}

.post-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bs-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}


.spacer-header {
    height: 120px;
}

.spacer-header-large {
    height: 180px;
}

/* Footer */
.site-footer {
    background: var(--fg);
    color: #c9d6e3;
    /* margin-top: 60px; */
}

.footer-text-inner {
    padding: 40px 0;
    text-align: center;
    color: #CCCCCC;
}

.footer-inner {
    /* display: grid; */
    /* grid-template-columns: 1fr 2fr 2fr 2fr; */
    /* gap: 24px; */
    padding: 28px 0;
}

.footer-logo-text {
    font-weight: 700;
    color: #fff;
}

.footer-contact p {}

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

.footer-social a {
    color: #c9d6e3;
    margin-right: 12px;
    text-decoration: none;
    font-weight: 600;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-links .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links .footer-menu a {
    color: #c9d6e3;
    text-decoration: none;
}

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

.footer-bottom {
    padding: 24px 0;
    background-color: var(--brand);
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom .terms-link {
    color: #c9d6e3;
    text-decoration: none;
}

.footer-bottom .terms-link:hover {
    color: var(--accent);
}

.latest-news-title {
    font-size: 65px;
    line-height: 1.1;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--fg);
}

@media (max-width: 640px) {
    .latest-news-title {
        font-size: 50px;
    }
}

/* Responsive */
@media (max-width: 960px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .solutions-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    /* .primary-nav .menu {
        flex-wrap: wrap;
        gap: 12px;
    } */

    .hero-title {
        font-size: 34px;
    }

    .hero-content-large .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 20px;
    }
}