:root {
    --brand: #0477ac;
    --brand-dark: #035d88;
    --ink: #1d1f23;
    --muted: #57606a;
    --bg: #ffffff;
    --bg-alt: #f5f7f9;
    --max-w: 1100px;
    --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / nav */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eaecef;
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.logo img { width: 120px; height: auto; }
.primary-nav {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.primary-nav a:hover, .primary-nav a:focus-visible {
    color: var(--brand);
    text-decoration: none;
}

/* Hero / carousel */
.hero { background: #000; }
.carousel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}
.carousel-track {
    display: flex;
    transition: transform 600ms ease;
    will-change: transform;
}
.slide {
    flex: 0 0 100%;
    margin: 0;
}
.slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1920 / 925;
    object-fit: cover;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.carousel-btn:hover { background: rgba(0,0,0,0.7); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: rgba(255,255,255,0.4);
    padding: 0;
    cursor: pointer;
}
.carousel-dots button[aria-selected="true"] {
    background: #fff;
}

/* Sections */
.section {
    padding: 72px 0;
}
.section-alt { background: var(--bg-alt); }

h2 {
    color: var(--brand);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 24px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.01em;
}
h3 {
    color: var(--brand-dark);
    font-size: 1.25rem;
    margin: 0 0 10px;
    font-weight: 600;
}
p { margin: 0 0 16px; font-size: 1.05rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.two-col-image img {
    margin: 0 auto;
    border-radius: var(--radius);
    max-width: 320px;
}

.service-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.service-grid li {
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: var(--radius);
    padding: 22px 24px;
}
.service-grid p {
    color: var(--muted);
    margin: 0;
    font-size: 0.98rem;
}

.case-study {
    background: #fff;
    border-left: 4px solid var(--brand);
    padding: 22px 26px;
    margin-bottom: 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.case-study p:last-child { margin-bottom: 0; }

/* Contact */
.contact {
    background: var(--brand);
    color: #fff;
    text-align: center;
}
.contact h2 { color: #fff; }
.contact p { font-size: 1.2rem; }
.contact a {
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.6);
}
.contact a:hover, .contact a:focus-visible {
    border-bottom-color: #fff;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: #1d1f23;
    color: #cdd3d8;
    padding: 28px 0;
    text-align: center;
}
.site-footer p { margin: 0; font-size: 0.9rem; }

/* Scroll-to-top */
.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: 0;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 40;
}
.scroll-top:hover { background: var(--brand-dark); }

@media (min-width: 768px) {
    .logo img { width: 160px; }
    .two-col {
        grid-template-columns: 2fr 1fr;
        gap: 56px;
    }
    .two-col-image img { max-width: 100%; }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
