:root {
    --bg: #f3f8fe;
    --text: #13263b;
    --muted: #51657a;
    --brand: #166db4;
    --brand-deep: #0d4f88;
    --accent: #4fc3f7;
    --card: #ffffff;
    --border: #cfe0ee;
    --shadow: 0 20px 45px rgba(14, 87, 145, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, #d8ebff 0, #f3f8fe 44%), linear-gradient(180deg, #f8fbff 0%, #f3f8fe 100%);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 42, 72, 0.92);
    border-bottom: 1px solid rgba(214, 225, 235, 0.16);
    backdrop-filter: blur(6px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-logo {
    width: 250px;
    max-width: 54vw;
    height: auto;
    display: block;
}

.brand-text {
    display: grid;
    gap: 0.1rem;
    color: #f8fcff;
}

.brand-text strong {
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand-text small {
    color: #b9d6ea;
    font-size: 0.82rem;
    line-height: 1.15;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-links a {
    color: #e7f2ff;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
    color: #08314f;
    background: #d6ebff;
}


h1 {
    font-size: clamp(2rem, 4.5vw, 3.3rem);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.narrow-copy {
    max-width: 46rem;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 1.4rem;
}

.section-heading h2 {
    margin-bottom: 0.55rem;
}

.section-heading p:last-child {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.stat-strip div {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d9e7f2;
    border-radius: 0.9rem;
    padding: 0.85rem 0.95rem;
    backdrop-filter: blur(6px);
}

.stat-strip strong,
.contact-points strong {
    display: block;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 1.1rem;
}

.stat-strip span,
.contact-points span {
    color: var(--muted);
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    border-radius: 0.65rem;
    padding: 0.75rem 1.15rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(130deg, var(--brand), var(--brand-deep));
    color: #fff;
    box-shadow: 0 10px 25px rgba(15, 110, 168, 0.3);
    border: 0;
}

.btn-outline {
    border: 1px solid var(--brand);
    color: var(--brand-deep);
    background: #fff;
}

.hero-panel {
    background: linear-gradient(180deg, #1b4e7a 0%, #0b2440 100%);
    color: #eff8ff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero-panel ul {
    margin: 0;
    padding-left: 1rem;
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.logo-strip span {
    display: grid;
    place-items: center;
    min-height: 4rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #eef6fc 100%);
    border: 1px solid var(--border);
    color: var(--brand-deep);
    font-weight: 700;
    text-align: center;
}

.section-illustration {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 1rem;
}

.photo-frame {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(16, 54, 90, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.photo-frame img {
    width: 100%;
    display: block;
    height: auto;
}

.stacked-image {
    margin-top: 1rem;
}

.hero-photo {
    min-height: 100%;
    background: linear-gradient(180deg, #ecf5ff 0%, #dbeeff 100%);
}

.hero-photo img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.compact-illustration {
    margin: 0.4rem 0 1rem;
}

.section {
    padding: 3.2rem 0;
}

.section.alt {
    background: #eaf2f9;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.page-banner {
    padding: 3.3rem 0 1.2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(17, 36, 56, 0.06);
}

.mini-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
}

.feature-stack {
    display: grid;
    gap: 0.9rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.expertise-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    padding: 1rem 1.05rem;
    box-shadow: 0 10px 24px rgba(17, 36, 56, 0.05);
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.media-split {
    align-items: center;
}

.media-card {
    background: linear-gradient(180deg, #f8fbff 0%, #e7f2fb 100%);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 1rem;
    box-shadow: 0 14px 35px rgba(17, 36, 56, 0.08);
}

.media-card.dark-card {
    background: linear-gradient(180deg, #184a73 0%, #0b2742 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.media-card.light-card {
    background: linear-gradient(180deg, #f8fbff 0%, #edf6fc 100%);
}

.highlight-panel,
.quote-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    padding: 1rem 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 8px 20px rgba(17, 36, 56, 0.05);
}

.timeline-list {
    display: grid;
    gap: 0.95rem;
}

.timeline-list article {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 6px solid var(--brand);
    border-radius: 0.95rem;
    padding: 1rem 1rem 1rem 1.1rem;
}

.timeline-list h3,
.service-item h3,
.mini-card h3,
.highlight-panel h3 {
    margin-bottom: 0.45rem;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 0.7rem;
    padding: 0.8rem 0.95rem;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.2rem;
}

.contact-card,
.contact-form {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 1.2rem;
    box-shadow: 0 8px 22px rgba(17, 36, 56, 0.06);
}

.contact-points {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.contact-points div {
    padding: 0.85rem 0.95rem;
    border-radius: 0.85rem;
    background: #eaf4fb;
    border: 1px solid #d2e4f0;
}

.services-list {
    display: grid;
    gap: 0.85rem;
}

.service-item {
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(17, 36, 56, 0.05);
}

.engagement-grid {
    align-items: stretch;
}

.contact-form label {
    display: block;
    margin: 0.55rem 0 0.3rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #c8d8e6;
    border-radius: 0.6rem;
    padding: 0.68rem 0.75rem;
    font: inherit;
}

.contact-form button {
    margin-top: 0.8rem;
    cursor: pointer;
}

.alert {
    border-radius: 0.6rem;
    padding: 0.7rem 0.8rem;
}

.alert.success {
    background: #e5f7ea;
    border: 1px solid #a2dfb2;
    color: #1d6f31;
}

.alert.error {
    background: #fdebec;
    border: 1px solid #f7b3b8;
    color: #8f1722;
}

.alert ul {
    margin: 0.3rem 0 0;
    padding-left: 1rem;
}

.site-footer {
    margin-top: 2.5rem;
    background: linear-gradient(180deg, #082a48 0%, #071927 100%);
    color: #d9e9f9;
    padding-top: 2rem;
}

.footer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.2fr 0.7fr 1fr;
}

.footer-grid a {
    display: block;
    color: #d9e9f9;
    margin-bottom: 0.35rem;
}

.footer-social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.footer-social-proof span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.footer-locations {
    padding-top: 1.4rem;
}

.footer-heading {
    max-width: 100%;
    margin-bottom: 1rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.locations-grid article {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
}

.locations-grid p {
    margin-bottom: 0;
    color: #bfd4e7;
}

.footer-bottom {
    border-top: 1px solid #2c5271;
    margin-top: 1rem;
    padding: 1rem 0;
    font-size: 0.93rem;
    color: #b7cee2;
}

@media (max-width: 960px) {
    .hero-grid,
    .split-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo-strip,
    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }
}

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

    .brand-text {
        display: none;
    }

    .brand-text small {
        display: none;
    }

    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-logo {
        width: 230px;
        max-width: 78vw;
    }

    .hero-section {
        padding-top: 3.4rem;
    }

    .page-banner {
        padding-top: 2.6rem;
    }

    .photo-frame img {
        aspect-ratio: auto;
    }

    .logo-strip,
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}
