/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
    --primary:        #0073BD;
    --primary-dark:   #005fa3;
    --navy:           #1a2b4a;
    --navy-deep:      #111e35;
    --white:          #ffffff;
    --gray-bg:        #f5f7fa;
    --text-heading:   #1a2b4a;
    --text-body:      #3d5170;

    --ff-head: 'Poppins', sans-serif;
    --ff-body: 'Open Sans', sans-serif;

    --max-w:     1200px;
    --radius:    12px;
    --radius-sm: 8px;

    --shadow-sm:   0 2px 12px rgba(26, 43, 74, 0.08);
    --shadow-md:   0 8px 32px rgba(26, 43, 74, 0.12);
    --shadow-lift: 0 14px 44px rgba(26, 43, 74, 0.18);

    --dur:      200ms;
    --dur-mid:  300ms;
    --dur-slow: 620ms;
    --ease:     cubic-bezier(0.4, 0, 0.2, 1);

    --nav-h:     72px;
    --section-y: 96px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    font-size: 16px;
}

body {
    font-family: var(--ff-body);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    font-family: var(--ff-body);
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

.section-title {
    font-family: var(--ff-head);
    font-size: clamp(1.875rem, 4vw, 2.625rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 60px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--ff-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.btn:focus-visible {
    outline: 3px solid rgba(0, 115, 189, 0.5);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 11px 26px;
    font-size: 0.9375rem;
    min-height: 44px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 18px rgba(0, 115, 189, 0.35);
}

.btn-hero {
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 10px;
    min-height: 56px;
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 115, 189, 0.42);
}

.btn-hero:focus-visible {
    outline-color: rgba(255, 255, 255, 0.6);
}

.btn-icon { font-size: 0.875em; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 43, 74, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition:
        background var(--dur-mid) var(--ease),
        box-shadow var(--dur-mid) var(--ease);
}

.navbar.scrolled {
    background: rgba(26, 43, 74, 0.97);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    padding: 0 28px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { max-height: 50px; width: auto; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 6px;
    transition: background var(--dur) var(--ease);
}

.hamburger:hover { background: rgba(255, 255, 255, 0.1); }

.hamburger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition:
        transform var(--dur-mid) var(--ease),
        opacity   var(--dur-mid) var(--ease);
    pointer-events: none;
}

.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px 28px 28px;
    background: rgba(26, 43, 74, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-menu.open { display: flex; }

.btn-mobile-cta {
    width: 100%;
    max-width: 320px;
    padding: 14px 32px;
    font-size: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Subtle crosshatch geometric pattern */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.022) 0,
            rgba(255, 255, 255, 0.022) 1px,
            transparent 1px,
            transparent 50%
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.022) 0,
            rgba(255, 255, 255, 0.022) 1px,
            transparent 1px,
            transparent 50%
        );
    background-size: 44px 44px;
    pointer-events: none;
}

/* Radial accent for depth */
.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 25% 45%, rgba(0, 115, 189, 0.13) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 75%, rgba(17, 30, 53, 0.7) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-headline {
    font-family: var(--ff-head);
    font-size: clamp(2.1rem, 5.5vw, 3.875rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.13;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-line1 {
    display: block;
}

.hero-line2 {
    display: block;
    font-size: clamp(1.2rem, 2.8vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-subheadline {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.72;
    max-width: 680px;
    margin: 0 auto 48px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    background: var(--gray-bg);
    padding: var(--section-y) 0;
}

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

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 44px 36px;
    box-shadow: var(--shadow-sm);
    cursor: default;
    transition:
        transform var(--dur-mid) var(--ease),
        box-shadow var(--dur-mid) var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.card-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(0, 115, 189, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: background var(--dur) var(--ease);
}

.card:hover .card-icon-wrap { background: rgba(0, 115, 189, 0.18); }

.card-icon-wrap i {
    font-size: 2.5rem;
    color: var(--primary);
}

.card-title {
    font-family: var(--ff-head);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.card-body {
    font-size: 0.9375rem;
    line-height: 1.72;
    color: var(--text-body);
}

.app-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.app-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 115, 189, 0.08);
    color: var(--primary);
    border: 1px solid rgba(0, 115, 189, 0.22);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ============================================================
   WHO WE WORK WITH
   ============================================================ */
.who-section {
    background: var(--white);
    padding: var(--section-y) 0;
}

.who-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: center;
}

.who-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.who-icon-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #e8f4fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.who-icon-circle i {
    font-size: 6rem;
    color: var(--primary);
}

.who-copy p {
    font-size: 1.0625rem;
    line-height: 1.82;
    color: var(--text-body);
    margin-bottom: 24px;
}

.who-copy p:last-child { margin-bottom: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    background: var(--navy);
    padding: var(--section-y) 0;
}

.contact .section-title { color: var(--white); }

.contact-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.0625rem;
    line-height: 1.72;
    max-width: 580px;
    margin: 0 auto 52px;
}

.contact-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: #ffffff;
    color: #1a2b4a;
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: var(--ff-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 200ms ease;
}

.form-input::placeholder { color: #9aabbf; }

.form-input:focus {
    border-color: #0073BD;
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: #0073BD;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: var(--ff-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms ease;
}

.btn-submit:hover:not(:disabled) { background: #005fa3; }

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-submit:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

.form-error {
    margin-top: 12px;
    color: #ffaaaa;
    font-size: 15px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px;
    color: #ffffff;
}

.form-success i {
    display: block;
    font-size: 3rem;
    color: #0073BD;
    margin-bottom: 16px;
}

.form-success p {
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .contact-form-wrap { padding: 16px; }
    .form-success { padding: 40px 16px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy-deep);
    padding: 56px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-logo { max-height: 40px; width: auto; }

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.58);
    font-style: italic;
}

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.38);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity  var(--dur-slow) var(--ease),
        transform var(--dur-slow) var(--ease);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger service cards */
.cards-grid .card:nth-child(2).animate-on-scroll { transition-delay: 0.1s; }
.cards-grid .card:nth-child(3).animate-on-scroll { transition-delay: 0.2s; }

/* Stagger who-copy paragraphs */
.who-copy p:nth-child(2).animate-on-scroll { transition-delay: 0.12s; }
.who-copy p:nth-child(3).animate-on-scroll { transition-delay: 0.24s; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn, .card, .hamburger, .bar, .mobile-menu, .navbar {
        transition: none !important;
    }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1023px)
   ============================================================ */
@media (max-width: 1023px) {
    :root { --section-y: 80px; }

    .who-layout {
        grid-template-columns: 1fr;
        gap: 52px;
        text-align: left;
    }

    .who-visual { justify-content: flex-start; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
    :root { --section-y: 64px; }

    /* Nav */
    .btn-primary.btn:not(.btn-mobile-cta) { display: none; }
    .hamburger { display: flex; }

    /* Hero */
    .hero-content {
        padding-top: calc(var(--nav-h) + 36px);
        padding-bottom: 60px;
    }

    /* Cards: single column */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Who: hide decorative icon on small screens */
    .who-visual { display: none; }

    /* Footer: stack */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 479px)
   ============================================================ */
@media (max-width: 479px) {
    .container { padding: 0 16px; }

    .nav-container { padding: 0 16px; }

    .mobile-menu { padding: 16px 16px 24px; }

    .card { padding: 32px 24px; }

    .section-title { margin-bottom: 44px; }
}
