/* =========================================================
   Global Variables
   ========================================================= */
:root {
    --primary: #0078bc;
    --primary-dark: #005485;
    --accent: #00a3e0;
    --text: #222;
    --bg: #ffffff;
    --muted: #f4f7fa;

    --max-width: 1120px;
    --radius: 14px;
    --shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* =========================================================
   Reset
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    z-index: 1000;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-wrap img {
    height: 48px;
}

.logo-text {
    font-size: 0.75rem;
    color: var(--primary-dark);
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-dark);
    text-decoration: none; /* Ensure no underline by default */
}

.nav-cta {
    background: var(--primary);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    color: white !important;
    font-weight: 600;
    transition: background-color 0.2s ease; /* Added transition */
}

.nav-cta:hover {
    background: var(--primary-dark);
    text-decoration: none; /* Ensure no underline on hover */
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    margin: 4px 0;
    border-radius: 2px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    padding-top: 2rem;
    background: radial-gradient(circle at bottom left, rgba(0,120,188,0.12), transparent 55%),
                radial-gradient(circle at top right, rgba(0,163,224,0.14), transparent 65%);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
    gap: 2rem;
    align-items: center;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 0.5rem; /* Adjusted margin */
}

.hero h1 span {
    color: var(--primary);
}

/* NEW rule for the slogan */
.hero-slogan {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    max-width: 36rem;
}

.hero-sub {
    margin-bottom: 1.5rem;
    max-width: 36rem;
    color: #3a4758;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
}

.badge {
    font-size: 0.83rem;
    background: #e6f4fb;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
}

.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid #cfd9e4;
    color: var(--primary-dark);
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
    padding: 3.5rem 1.25rem;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-heading h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-heading p {
    color: #4b566a;
    margin-bottom: 2rem;
}

/* =========================================================
   WHY CHOOSE US (NEW SECTION)
   ========================================================= */
.why-us-section {
    background: var(--muted);
    border-top: 1px solid #d9e3ee;
    border-bottom: 1px solid #d9e3ee;
}

.why-points {
    list-style: none;
    padding-left: 0;
    display: grid;
    /* Creates responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.why-points li {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-weight: 500;
}

/* Adds a checkmark icon before each list item */
.why-points li::before {
    content: '✓';
    font-weight: 900;
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1;
}


/* =========================================================
   SERVICES GRID
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-card img.service-icon {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #475262;
}

/* =========================================================
   CAPABILITIES TABLE (Original #why content)
   ========================================================= */
.capabilities-section {
    margin: 0; /* Reset margin as it's no longer nested weirdly */
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: var(--radius);
    background: #fdfdfd;
}

.capabilities-section h3 {
    margin-bottom: 1rem;
}

.capabilities-table-container {
    overflow-x: auto;
    margin-top: 1rem;
    /* Added border-radius to match other elements */
    border-radius: var(--radius); 
}

.capabilities-table {
    width: 100%;
    border-collapse: collapse;
    /* min-width: 600px; */ /* <--- This line has been removed */
}

.capabilities-table th,
.capabilities-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.capabilities-table th {
    background: #f7f7f7;
    color: #333;
}

.capabilities-table td:first-child {
    color: #004a9c;
}

.capabilities-table tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   ACCREDITATION BOX
   ========================================================= */
.accreditation-box {
    background: #e8f4fc;
    border: 1px solid #cfe5f6;
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2.5rem;
    box-shadow: var(--shadow);
}

.accreditation-box h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* UPDATED layout for download button and badge */
.accreditation-download {
    display: flex;
    flex-direction: column; /* Mobile-first: stack items */
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.inab-badge {
    height: 75px;
    width: auto;
    display: block;
    flex-shrink: 0; /* Prevents shrinking in flex layout */
}

/* =========================================================
   LOCATIONS
   ========================================================= */
.locations {
    background: var(--muted);
    border-top: 1px solid #d9e3ee;
    border-bottom: 1px solid #d9e3ee;
}

.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.city-list span {
    background: #ffffff;
    border: 1px solid #d5e2ef;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
#contact p {
    margin-bottom: 0.7rem;
}

/* =========================================================
   FOOTER / LEGAL
   ========================================================= */
.legal {
    background: #0d1724;
    color: #cbd8ea;
    padding-top: 2.5rem;
}

.legal-footer {
    border-top: 1px solid #1d2a3b;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.legal-links a {
    margin-left: 1rem;
    color: #e6f1ff;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,20,40,0.95);
    color: white;
    padding: 1rem;
    display: none; /* Will be shown by js/main.js */
    z-index: 1000;
}

.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between; /* Spaces text and buttons */
}

/* NEW: Style for the text paragraph */
.cookie-text {
    flex-grow: 1; /* Allow text to take available space */
    margin-right: 1rem; /* Space before buttons */
    font-size: 0.9rem;
}

/* NEW: Style for the links inside the banner */
.cookie-text a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-text a:hover {
    text-decoration: none;
}

/* NEW: Container for the buttons */
.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #9db3cf;
    color: white;
}

/* =========================================================
   MOBILE MENU & RESPONSIVENESS
   ========================================================= */
@media (max-width: 780px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    .hero-image {
        order: -1; /* Move image to top on mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: white;
        padding: 1.5rem;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    }

    /* Style for the CTA button inside the mobile menu */
    .nav-links .nav-cta {
        background: var(--primary);
        color: white !important;
        padding: 0.8rem 1.25rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .nav-links .nav-cta:hover {
        background: var(--primary-dark);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    /* Adds a subtle inner shadow on mobile to hint at a scrollable table */
    .capabilities-table-container {
        /* box-shadow: inset -10px 0 10px -15px rgba(0,0,0,0.15); */ /* REMOVED - no longer scrolling */
    }

    /* RE-ADD min-width to force scrolling */
    .capabilities-table {
        /* min-width: 500px; */ /* REMOVED - This was causing the scroll */
    }

    /* NEW RULES: Reduce table padding and font size on mobile */
    .capabilities-table th,
    .capabilities-table td {
        padding: 0.6rem 0.5rem; /* Reduced padding */
        font-size: 0.875rem;     /* Reduced font size */
        /* Allow words to break to prevent overflow */
        /* word-break: break-word; */ /* Replaced with overflow-wrap */
        overflow-wrap: break-word;
        hyphens: auto; /* Adds hyphens to break long words cleanly */
    }

    .capabilities-table th {
        font-size: 0.825rem; /* Make header even smaller */
    }
}

/* Media query for the accreditation box layout */
@media (min-width: 640px) {
    .accreditation-download {
        flex-direction: row; /* Side-by-side on larger screens */
        justify-content: space-between;
    }
}