/* Premium design system — Brilliant Global Pathways */

:root {
    --color-primary: #0B3D66;
    --color-secondary: #00AEEF;
    --color-accent: #22C55E;
    --color-surface: #FFFFFF;
    --color-muted: #64748B;
    --color-border: #E2E8F0;
}

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.sr-only:focus,
.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Layout */
.section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) {
    .section { padding-top: 6rem; padding-bottom: 6rem; }
}

.section-alt {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.container { max-width: 1280px; }

/* Typography */
.eyebrow {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.heading-xl {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-primary);
}

@media (min-width: 1024px) {
    .heading-xl { font-size: 3rem; }
}

.heading-lg {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

@media (min-width: 1024px) {
    .heading-lg { font-size: 2.25rem; }
}

.text-muted { color: var(--color-muted); }

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(11, 61, 102, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(11, 61, 102, 0.1);
}

.card-lift:hover {
    transform: translateY(-4px);
}

.card-featured {
    position: relative;
    overflow: hidden;
}

.card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.35);
}

.btn-primary:hover {
    background: #0099d4;
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.45);
}

.btn-secondary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 61, 102, 0.25);
}

.btn-secondary:hover { background: #082f4f; }

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    background: transparent;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-white {
    background: #fff;
    color: var(--color-primary);
}

.btn-white:hover { background: #f1f5f9; }

.btn-dark-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-dark-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Page hero */
.page-hero {
    background-color: #0B3D66;
    background-image:
        linear-gradient(90deg, rgba(8, 45, 77, 0.88) 0%, rgba(11, 61, 102, 0.62) 48%, rgba(11, 61, 102, 0.28) 100%),
        url('../images/hero-banner.png');
    background-size: cover;
    background-position: right center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

/* Home hero */
.hero-mesh {
    background-image:
        radial-gradient(at 20% 80%, rgba(0, 174, 239, 0.15) 0, transparent 50%),
        radial-gradient(at 80% 20%, rgba(34, 197, 94, 0.1) 0, transparent 50%),
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
}

/* Nav */
.nav-link {
    position: relative;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--color-primary); }

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 1px;
}

/* Services dropdown — full-width mega menu aligned to header */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    transform: translateY(0.35rem);
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-chevron {
    transition: transform 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
    color: var(--color-primary);
}

.nav-dropdown-panel {
    width: 100%;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -20px rgba(11, 61, 102, 0.28);
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
}

.nav-dropdown-link {
    display: block;
    padding: 0.35rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #64748b;
    transition: color 0.15s, background-color 0.15s;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
    color: var(--color-primary);
    background: rgba(11, 61, 102, 0.05);
    outline: none;
}

@media (max-width: 1279px) {
    .nav-dropdown-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .nav-dropdown-menu { display: none; }
}

/* Process timeline */
.process-line {
    position: absolute;
    top: 2rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), rgba(0, 174, 239, 0.3));
}

@media (max-width: 767px) {
    .process-line { display: none; }
}

/* Forms */
.form-input {
    border: 1px solid var(--color-border);
    border-radius: 0.625rem;
    padding: 0.625rem 1rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11, 61, 102, 0.12);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Prose */
.prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; color: var(--color-primary); margin-top: 1.25rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.35rem; line-height: 1.6; }
.prose a { color: var(--color-secondary); text-decoration: underline; }
.prose strong { font-weight: 700; color: #1e293b; }
.prose blockquote {
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #475569;
    font-style: italic;
}
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

img[loading="lazy"] { background: #f1f5f9; }

/* Footer wave */
.footer-wave {
    line-height: 0;
    margin-top: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 3.5rem;
}

@media (min-width: 1024px) {
    .footer-wave svg { height: 4.5rem; }
}

/* Intro showcase — Who We Are split panel */
.intro-showcase {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    box-shadow: 0 24px 64px rgba(11, 61, 102, 0.09);
    overflow: hidden;
}

.intro-showcase-content {
    padding: 2rem;
}

@media (min-width: 1024px) {
    .intro-showcase-content { padding: 3rem 3.5rem; }
}

.intro-showcase-stats {
    position: relative;
    background: linear-gradient(160deg, #0B3D66 0%, #0a3254 55%, #082d4d 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

@media (min-width: 1024px) {
    .intro-showcase-stats { padding: 2.5rem 2rem; }
}

.intro-showcase-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.6;
    pointer-events: none;
}

.intro-showcase-stats::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.intro-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.stat-tile {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}

.stat-tile:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.stat-tile .stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

@media (min-width: 1024px) {
    .stat-tile .stat-value { font-size: 2.125rem; }
}

.stat-tile .stat-label {
    font-size: 0.75rem;
    color: rgba(191, 219, 254, 0.85);
    margin-top: 0.375rem;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .stat-tile .stat-label { font-size: 0.8125rem; }
}

.stat-tile-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.stat-tile-icon--primary { background: rgba(255, 255, 255, 0.12); color: #7dd3fc; }
.stat-tile-icon--secondary { background: rgba(0, 174, 239, 0.2); color: #38bdf8; }
.stat-tile-icon--accent { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

/* Compact trust chips */
.trust-chips {
    display: grid;
    gap: 0.75rem;
}

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

.trust-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 0.875rem;
    transition: border-color 0.2s, background 0.2s;
}

.trust-chip:hover {
    background: #fff;
    border-color: rgba(0, 174, 239, 0.3);
}

.trust-chip-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, rgba(11, 61, 102, 0.08), rgba(0, 174, 239, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.trust-chip-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}

@media (min-width: 1024px) {
    .trust-chip-text { font-size: 0.875rem; }
}

/* Stats panel (legacy grid variant) */
.stats-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(11, 61, 102, 0.08);
    padding: 1.5rem;
}

@media (min-width: 1024px) {
    .stats-panel { padding: 2rem; }
}

.stat-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card--primary::before { background: var(--color-primary); }
.stat-card--secondary::before { background: var(--color-secondary); }
.stat-card--accent::before { background: var(--color-accent); }

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 61, 102, 0.1);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

@media (min-width: 1024px) {
    .stat-card .stat-value { font-size: 2.25rem; }
}

/* Trust list */
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.trust-item:hover {
    border-color: rgba(0, 174, 239, 0.35);
    box-shadow: 0 8px 24px rgba(11, 61, 102, 0.06);
}

.trust-item-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.12), rgba(11, 61, 102, 0.08));
}

/* Country / region cards */
.region-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(11, 61, 102, 0.1);
}

.region-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.region-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.region-icon--gulf { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.region-icon--europe { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.region-icon--global { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }

.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    cursor: default;
}

.country-pill:hover {
    transform: scale(1.05);
    border-color: var(--color-secondary);
    background: #fff;
}

.country-pill .flag {
    font-size: 1.125rem;
    line-height: 1;
}

/* Testimonial quote */
.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: rgba(0, 174, 239, 0.15);
    font-family: Georgia, serif;
}

/* Quill admin */
.quill-wrapper .ql-toolbar {
    border: none;
    border-bottom: 1px solid #d1d5db;
    background: #f9fafb;
}
.quill-wrapper .ql-container { border: none; font-size: 1rem; font-family: inherit; }
.quill-wrapper .ql-editor { min-height: 400px; max-height: 600px; overflow-y: auto; }
.quill-wrapper .ql-editor.ql-blank::before { color: #9ca3af; font-style: normal; }
