/* ==========================================================
   1. Design tokens
   ========================================================== */
:root {
    --blue:#176db3;
    --navy:#0b2c57;
    --sky:#eaf5fc;
    --ink:#172334;
    --muted:#5e6b78;
    --line:#dce6ef;
    --white:#fff;
    --max:1180px;
    --shadow:0 18px 50px rgba(11,44,87,.10);
}

/* ==========================================================
   2. Reset and base styles
   ========================================================== */
* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    color:var(--ink);
    line-height:1.65;
    background:#fff;
}

img {
    max-width:100%;
    display:block;
}

a {
    color:inherit;
}

/* ==========================================================
   3. Layout helpers
   ========================================================== */
.container {
    width:min(calc(100% - 40px),var(--max));
    margin:auto;
}

.skip {
    position:absolute;
    left:-9999px;
}

.skip:focus {
    left:16px;
    top:16px;
    background:#fff;
    padding:10px;
    z-index:100;
}

/* ==========================================================
   4. Header and navigation
   ========================================================== */
.topbar {
    background:var(--navy);
    color:#dcedf8;
    font-size:.88rem;
}

.topbar .container {
    display:flex;
    justify-content:flex-end;
    gap:24px;
    padding:8px 0;
}

.topbar a {
    text-decoration:none;
}

.header {
    position:sticky;
    top:0;
    z-index:30;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(12px);
}

.nav {
    min-height:86px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.logo img {
    width:310px;
    height:auto;
}

.menu {
    display:flex;
    align-items:center;
    gap:23px;
}

.menu a {
    text-decoration:none;
    font-weight:750;
    font-size:.94rem;
}

.menu a:hover,.menu a.active {
    color:var(--blue);
}

.toggle {
    display:none;
    border:0;
    background:transparent;
    font-size:1.6rem;
}

/* ==========================================================
   5. Buttons
   ========================================================== */
.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.82rem 1.15rem;
    border-radius:12px;
    border:1px solid transparent;
    text-decoration:none;
    font-weight:800;
    cursor:pointer;
}

.btn-primary {
    background:var(--blue);
    color:#fff;
    box-shadow:0 10px 24px rgba(23,109,179,.2);
}

.btn-primary:hover {
    background:#105b98;
}

.btn-secondary {
    background:#fff;
    border-color:var(--line);
    color:var(--navy);
}

/* ==========================================================
   6. Hero and typography
   ========================================================== */
.hero {
    padding:84px 0 70px;
    background:radial-gradient(circle at 87% 10%,rgba(55,161,219,.24),transparent 27%),linear-gradient(135deg,#f5fbff,#fff 66%);
}

.hero-grid {
    display:grid;
    grid-template-columns:1.08fr .92fr;
    gap:54px;
    align-items:center;
}

.eyebrow {
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-transform:uppercase;
    letter-spacing:.14em;
    font-weight:900;
    font-size:.78rem;
    color:var(--blue);
}

.eyebrow:before {
    content:"";
    width:28px;
    height:3px;
    background:var(--blue);
    border-radius:4px;
}

h1,h2,h3,h4 {
    color:var(--navy);
    line-height:1.13;
    letter-spacing:-.035em;
}

h1 {
    font-size:clamp(2.433rem,5.5vw,4.733rem);
    margin:.7rem 0 1.1rem;
}

h2 {
    font-size:clamp(1.833rem,3.6vw,2.983rem);
    margin:0 0 1rem;
}

h3 {
    font-size:1.053rem;
    margin:.5rem 0;
}

h4 {
    font-size:.833rem;
    margin:.5rem 0;
}

.lead {
    font-size:1.18rem;
    color:var(--muted);
    max-width:710px;
}

.actions {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:28px;
}

.hero-card {
    background:var(--navy);
    color:#dcebf7;
    padding:34px;
    border-radius:30px;
    box-shadow:var(--shadow);
}

.hero-card h2 {
    color:#fff;
}

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

.check li {
    padding:10px 0 10px 28px;
    border-bottom:1px solid rgba(255,255,255,.1);
    position:relative;
}

.check li:before {
    content:"✓";
    position:absolute;
    left:0;
    color:#66c7f2;
    font-weight:900;
}

/* ==========================================================
   7. Content sections and grids
   ========================================================== */
.trust {
    border-block:1px solid var(--line);
    padding:18px 0;
}

.trust .container {
    display:flex;
    justify-content:center;
    gap:38px;
    flex-wrap:wrap;
    color:var(--muted);
    font-weight:700;
}

.trust strong {
    color:var(--navy);
}

.section {
    padding:88px 0;
}

.soft {
    background:#f5f9fc;
}

.dark {
    background:var(--navy);
    color:#dcebf7;
}

.dark h2 {
    color:#fff;
}

.section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:40px;
    margin-bottom:38px;
}

.section-head p {
    max-width:560px;
    color:var(--muted);
    margin:0;
}

.grid {
    display:grid;
    gap:20px;
}

.grid-4 {
    grid-template-columns:repeat(4,1fr);
}

.grid-3 {
    grid-template-columns:repeat(3,1fr);
}

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

.card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:21px;
    padding:26px;
    box-shadow:0 8px 20px rgba(11,44,87,.04);
}

.card p {
    color:var(--muted);
}

.card:hover {
    transform:translateY(-3px);
    box-shadow:var(--shadow);
    transition:.2s;
}

.icon {
    width:48px;
    height:48px;
    border-radius:14px;
    background:var(--sky);
    display:grid;
    place-items:center;
    color:var(--blue);
    font-weight:900;
}

.link {
    color:var(--blue);
    font-weight:800;
    text-decoration:none;
}

.split {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.features {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.feature {
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:20px;
}

.feature strong {
    display:block;
    color:var(--navy);
}

.partners {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.partner {
    height:120px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    text-align:center;
    font-weight:900;
    color:#586979;
}

.partner img {
    max-width:100%;
    max-height:65px;
    object-fit:contain;
}

.partner-text {
    font-size:1.1rem;
    letter-spacing:-.02em;
}

/* ==========================================================
   8. Subpages and content components
   ========================================================== */
.page-hero {
    padding:68px 0 52px;
    background:linear-gradient(135deg,var(--sky),#fff);
}

.breadcrumbs {
    color:var(--muted);
    font-size:.9rem;
}

.content {
    max-width:850px;
}

.team {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.team-card {
    border:1px solid var(--line);
    border-radius:24px;
    overflow:hidden;
    background:#fff;
}

.team-card img {
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    object-position: top center;
}

.team-card.goofy img {
    object-position:top center;
}

.team-copy {
    padding:26px;
}

.quote {
    padding:30px;
    border-left:5px solid var(--blue);
    background:var(--sky);
    color:var(--navy);
    font-size:1.25rem;
    font-weight:800;
    margin-top:34px;
}

.placeholder {
    min-height:280px;
    border:2px dashed #aebfce;
    border-radius:20px;
    display:grid;
    place-items:center;
    color:var(--muted);
    text-align:center;
    padding:30px;
}

.tag {
    display:inline-block;
    background:var(--sky);
    color:var(--blue);
    padding:5px 10px;
    border-radius:20px;
    font-size:.78rem;
    font-weight:850;
}

/* ==========================================================
   9. Forms and calls to action
   ========================================================== */
.contact {
    display:grid;
    grid-template-columns:.8fr 1.2fr;
    gap:35px;
}

.form {
    display:grid;
    gap:14px;
}

.form-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

label {
    font-weight:750;
    color:var(--navy);
}

input,select,textarea {
    width:100%;
    padding:.9rem 1rem;
    border:1px solid #c5d3df;
    border-radius:11px;
    font:inherit;
    margin-top:5px;
}

textarea {
    min-height:150px;
    resize:vertical;
}

.notice {
    font-size:.84rem;
    color:var(--muted);
}

.hp {
    position:absolute;
    left:-9999px;
}

.cta {
    background:linear-gradient(120deg,var(--blue),#0b4d87);
    border-radius:28px;
    padding:44px;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px;
}

.cta h2 {
    color:#fff;
}

.legal h2 {
    font-size:1.333rem;
    margin-top:2rem;
}

/* ==========================================================
   10. Footer
   ========================================================== */
.footer {
    background:#061d38;
    color:#b9c9d7;
    padding:56px 0 22px;
}

.footer-grid {
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:44px;
}

.footer-logo {
    background:#fff;
    border-radius:12px;
    padding:10px;
    display:inline-block;
}

.footer-logo img {
    width:270px;
}

.footer h3 {
    color:#fff;
}

.footer ul {
    list-style:none;
    padding:0;
}

.footer li {
    margin:7px 0;
}

.footer a {
    text-decoration:none;
}

.footer-bottom {
    border-top:1px solid rgba(255,255,255,.12);
    padding-top:18px;
    margin-top:30px;
    font-size:.86rem;
}

/* ==========================================================
   11. Responsive: tablet
   ========================================================== */
@media(max-width:940px) {
    .toggle {
        display:block;
    }
    .menu {
        display:none;
        position:absolute;
        top:86px;
        left:0;
        right:0;
        background:#fff;
        border-bottom:1px solid var(--line);
        padding:20px;
        flex-direction:column;
        align-items:stretch;
        box-shadow:var(--shadow);
    }
    .menu.open {
        display:flex;
    }
    .hero-grid,.split,.contact {
        grid-template-columns:1fr;
    }
    .grid-4 {
        grid-template-columns:repeat(2,1fr);
    }
    .partners {
        grid-template-columns:repeat(2,1fr);
    }
    .footer-grid {
        grid-template-columns:1fr 1fr;
    }
    .logo img {
        width:250px;
    }
    .topbar {
        display:none;
    }
}

/* ==========================================================
   12. Responsive: mobile
   ========================================================== */
@media(max-width:620px) {
    .container {
        width:min(calc(100% - 28px),var(--max));
    }
    .nav {
        min-height:76px;
    }
    .menu {
        top:76px;
    }
    .logo img {
        width:210px;
    }
    .hero {
        padding:50px 0;
    }
    .section {
        padding:64px 0;
    }
    .section-head {
        display:block;
    }
    .section-head p {
        margin-top:12px;
    }
    .grid-4,.grid-3,.grid-2,.team,.features,.form-row {
        grid-template-columns:1fr;
    }
    .partners {
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }
    .partner {
        height:95px;
        padding:13px;
    }
    .cta {
        display:block;
        padding:30px;
    }
    .footer-grid {
        grid-template-columns:1fr;
    }
    .actions .btn {
        width:100%;
    }
}

/* ==========================================================
   13. Page-specific additions
   ========================================================== */
.about-office img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 24px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 18px 50px rgba(11,44,87,.10);
}
.references-slider{
    position:relative;
    overflow:hidden;
}

.reference-track{
    display:flex;
    transition:transform .5s ease;
}

.reference-slide{
    min-width:100%;
    flex:0 0 100%;
}

.reference-card{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:40px;
    align-items:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    padding:32px;
    box-shadow:var(--shadow);
}

.reference-media{
    background:var(--sky);
    border-radius:20px;
    overflow:hidden;
    min-height:280px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.reference-media img{
    width:100%;
    max-height:260px;
    object-fit:contain;
}

.reference-content blockquote{
    margin:0 0 18px;
    padding-left:20px;
    border-left:4px solid var(--blue);
    color:var(--muted);
    font-style:italic;
}

.reference-services{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
}

.slider-navigation{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:24px;
}

.slider-button{
    width:46px;
    height:46px;
    border:0;
    border-radius:50%;
    background:var(--blue);
    color:#fff;
    cursor:pointer;
}

.slider-dots{
    display:flex;
    gap:8px;
}

.slider-dot{
    width:10px;
    height:10px;
    border:0;
    border-radius:50%;
    background:#c9d6e3;
    cursor:pointer;
}

.slider-dot.is-active{
    width:28px;
    border-radius:12px;
    background:var(--blue);
}

@media(max-width:940px){

    .reference-card{
        grid-template-columns:1fr;
    }

}
.reference-content h3 a {
    color: inherit;
    text-decoration: none;
}

.reference-content h3 a:hover {
    color: var(--color-primary);
}

.reference-media a {
    display: block;
}