@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .scroll-indicator { animation: none; }
    .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}


/* ================= SKIP LINK (accessibility) ================= */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ================= FOCUS VISIBLE (keyboard navigation) ================= */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Remove default outline only when not keyboard navigating */
:focus:not(:focus-visible) {
    outline: none;
}

/* Touch targets — minimum 44×44px for interactive elements */
.btn,
.hamburger,
.nav-links a,
.social-icons a,
.icon-list a {
    min-height: 44px;
}

.social-icons a {
    min-width: 44px;
}

/* Faster tap response on mobile */
button, a, input, [role="button"] {
    touch-action: manipulation;
}



*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --navy:      #0A192F;
    --accent:    #1E56D0;
    --white:     #FFFFFF;
    --text-grey: #8892B0;
    --grey:      #ececec;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy);
    color: var(--white);
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    /* Separate transforms so hide-on-scroll and other transitions don't fight */
    transition: transform 0.35s ease,
                padding 0.4s ease-in-out,
                background 0.4s ease-in-out,
                border-bottom 0.4s ease-in-out,
                box-shadow 0.4s ease-in-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* Slides the header out of view when scrolling down */
header.header-hidden {
    transform: translateY(-100%);
}

header.scrolled {
    padding: 0.8rem 0;
    background: var(--white); 
    border-bottom: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    header.scrolled {
        background: rgba(10, 25, 47, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    /* When header background is dark, switch all text in it to white */
    header.scrolled .logo          { color: var(--white); }
    header.scrolled .nav-links a   { color: var(--white); }
    header.scrolled .hamburger span { background-color: var(--white); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.main-logo {
    width: 85px;
    height: auto;
}

.header-title-container {
    text-align: center;
    padding: 4px 0;
    min-width: 100px;
}

.logo {
    color: var(--navy);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.2rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px; /* Modern browsers */
}

/* Safari < 14.1 flex gap fallback */
@supports not (gap: 1px) {
    .nav-links li + li { margin-left: 40px; }
    .nav-links { gap: 0; }
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}


/* ================= HAMBURGER ================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--navy);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

@media (max-width: 768px) {
    /* Do NOT set position:relative on nav — that would make the dropdown
       size itself to the .container (max-width 1200px, padded), not the
       full-width header. The header is already position:fixed so it is
       the containing block for absolutely-positioned descendants. */

    /* ── Mobile brand: switch to row so header stays compact ── */
    .brand-container {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    /* Smaller logo on mobile so the header isn't billboard-tall */
    .main-logo { width: 44px; }

    .logo { font-size: 1rem; letter-spacing: 2px; }

    .hamburger { display: flex; }

    .hamburger.toggle span { background-color: var(--accent); }
    .hamburger.toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        display: flex !important;
        /* Positioned relative to the fixed header, not the container */
        position: absolute;
        top: 100%;   /* bottom edge of header */
        left: 0;
        width: 100%; /* full header width = full viewport width */
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-links.active { max-height: 400px; }

    .nav-links li { width: 100%; text-align: left; }

    .nav-links a {
        display: block;
        padding: 1.2rem 2rem;
        border-bottom: 1px solid #EAEAEA;
        font-size: 1.05rem;
        color: var(--navy) !important;  /* always dark on white dropdown */
        font-weight: 600;
    }

    .nav-links a::after { display: none; }
    .nav-links a:hover { background-color: #F8F9FA; }

    /* ── Solid header background when mobile menu is open ──
       Without this, the transparent header shows hero content
       bleeding through behind the logo/hamburger area.         */
    header.menu-open {
        background: var(--white) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter:         none !important;
    }
    header.menu-open .logo          { color: var(--navy) !important; }
    header.menu-open .hamburger span { background-color: var(--navy) !important; }
    header.menu-open .hamburger.toggle span { background-color: var(--accent) !important; }
}


/* ================= HERO ================= */
.hero {
    background: var(--white);
    padding: 200px 0 160px;
    text-align: center;
    color: var(--navy);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero p {
    color: #666;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Safari < 14.1 flex gap fallback */
@supports not (gap: 1px) {
    .hero-btns .btn { margin: 8px; }
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
}
.btn-accent:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--navy);
    color: var(--navy);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.scroll-indicator {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    color: var(--text-grey);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

@media (max-width: 1024px) { .hero h1 { font-size: 2.5rem; } }
@media (max-width: 768px)  { .hero { padding: 150px 0 100px; } }
@media (max-width: 480px)  {
    .hero h1 { font-size: 2rem; }
    .hero p  { font-size: 1rem; }
    .btn     { width: 100%; text-align: center; }
}


/* ================= SCROLL REVEAL ================= */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================= SERVICES ================= */
.services {
    padding: 120px 0;
    background-color: var(--grey);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

.services-header p {
    color: #666;
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    align-items: stretch;
}

.card {
    padding: 50px 30px;
    background: var(--grey);
    border: 1px solid var(--navy);
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: inherit;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.card .icon {
    font-size: 2.8rem;
    margin-bottom: 25px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card:hover .icon { transform: scale(1.1); }

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--navy);
}

.card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .grid { grid-template-columns: 1fr; } }


/* ================= ABOUT ================= */
.about {
    background-color: var(--grey);
    padding: 140px 0;
    color: var(--navy);
    border-top: 1px solid #EAEAEA;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.about-text { flex: 1; }

.about-text h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--navy);
}

.about-text p {
    color: #555;
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-box {
    background: var(--grey);
    border: 1px solid var(--navy);
    padding: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateX(-10px);
}

.feature-box h4 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .about-content { flex-direction: column; gap: 50px; }
    .about-text    { text-align: center; }
}

@media (max-width: 768px) {
    .about-text h2 { font-size: 2.5rem; }
}


/* ================= FOOTER ================= */
.site-footer {
    background: var(--white);
    color: var(--navy);
    padding: 80px 0 0;
    border-top: 1px solid #E2E8F0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr 1.6fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: max-content;
}

.footer-logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.footer-logo { width: 120px; }

.footer-title-container {
    text-align: center;
    border-top: 1px solid #E2E8F0;
    padding: 10px 0;
    width: 100%;
}

.footer-title {
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1;
    margin-left: 6px;
}

.footer-subtitle {
    color: #666;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 5px;
    text-transform: uppercase;
    line-height: 2;
}

.footer-col-heading {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a  { color: var(--text-grey); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); }

.footer-contact-info h4 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.footer-location h4 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.icon-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.icon-list li { margin-bottom: 15px; }

.icon-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.icon-list a svg  { flex-shrink: 0; }
.icon-list a:hover { color: var(--accent); }

.location-link {
    white-space: normal !important;
    align-items: flex-start !important;
    line-height: 1.6;
}

.location-link svg {
    margin-top: 4px;
    flex-shrink: 0;
}

.social-icons { display: flex; gap: 12px; }

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--white);
    border-radius: 6px;
    color: var(--navy);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    font-size: 0.85rem;
}

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

/* 
.privacy-link {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.privacy-link:hover { color: var(--accent); } 
*/

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .footer-grid          { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand-wrapper { margin: 0 auto; }
    .copyright-inner      { flex-direction: column; text-align: center; align-items: center; }
}


/* ================= CONTACT FORM ================= */
.footer-form h4 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@supports not (gap: 1px) {
    .contact-form .form-group + .form-group { margin-top: 14px; }
    .contact-form { gap: 0; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.required { color: var(--accent); }

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--navy);
    border-color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-group input::placeholder {
    color: rgba(136, 146, 176, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input[aria-invalid="true"] {
    border-color: #f87171;
}

.form-field-error {
    display: none;
    font-size: 0.78rem;
    color: #f87171;
    margin-top: 2px;
}

.form-submit {
    margin-top: 4px;
    cursor: pointer;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    display: none;
    color: #4ade80;
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.5;
}

.form-error {
    display: none;
    color: #f87171;
    font-size: 0.88rem;
    margin-top: 8px;
    line-height: 1.5;
}

.form-error a {
    color: #f87171;
    text-decoration: underline;
}