/*
    GEIB International Police Division
    Layout themed after fbi.gov structure
*/
:root {
    --navy-900: #0b1f3a;
    --navy-800: #0f2c52;
    --navy-700: #123a6b;
    --blue-600: #1e54a8;
    --blue-500: #1c5fb8;
    --blue-400: #2f7be5;
    --gold-500: #f1b000;
    --gold-600: #d99a00;
    --sand-100: #f7f4ec;
    --slate-900: #0f172a;
    --slate-700: #1f2937;
    --slate-500: #4b5563;
    --slate-200: #e5e7eb;
    --white: #ffffff;
    --max-width: 1280px;
    --shadow-soft: 0 8px 24px rgba(12, 35, 58, 0.08);
    --shadow-strong: 0 14px 40px rgba(12, 35, 58, 0.16);
    --focus-ring: 0 0 0 3px rgba(31, 95, 184, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fb;
    color: var(--slate-900);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue-400); }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, .nav-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-color: var(--blue-500);
}
p { margin: 0 0 12px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: 840px; }
.text-muted { color: var(--slate-700); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; padding-top: env(safe-area-inset-top); }
.utility-bar {
    background: var(--navy-900);
    color: #dfe7f5;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.utility-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.utility-left { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.02em; }
.utility-tag { display: inline-block; padding: 4px 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; color: #fefefe; font-size: 0.82rem; text-transform: uppercase; }
.utility-links { display: flex; align-items: center; gap: 14px; }
.utility-links a { color: #e7edf7; font-weight: 600; }
.utility-links a:hover { color: var(--gold-500); }

.navbar-shell {
    background: var(--white);
    box-shadow: 0 2px 18px rgba(12, 35, 58, 0.1);
    border-bottom: 1px solid #e7ecf4;
    backdrop-filter: blur(8px);
}
.nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    position: relative;
    flex-wrap: nowrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 0 auto;
}
.brand img { height: 52px; width: auto; max-width: 140px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-eyebrow { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-700); font-weight: 700; }
.brand-name { font-size: 1rem; font-weight: 800; color: var(--navy-900); white-space: nowrap; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #d7deeb;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 4px 0; transition: transform 0.2s; }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: var(--navy-800);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.nav-link:visited { color: var(--navy-800); }
.nav-link:hover { background: #e9f1ff; color: var(--blue-500); }
.nav-link.active, .nav-link[aria-current="page"] {
    background: rgba(28, 95, 184, 0.12);
    color: var(--blue-600);
    box-shadow: inset 0 0 0 1px rgba(28, 95, 184, 0.3);
}
.nav-link .chevron { font-size: 0.8rem; color: var(--slate-500); }

.menu-panel {
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 14px 16px;
    display: none;
    min-width: 220px;
}
.nav-item:hover .menu-panel, .nav-item:focus-within .menu-panel { display: grid; }
.menu-panel a { display: block; padding: 8px 10px; color: var(--navy-800); font-weight: 600; border-radius: 8px; }
.menu-panel a:hover { background: #f2f6fb; color: var(--blue-500); }

.site-search { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.site-search input {
    border: 1px solid #d7deeb;
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 132px;
    font-size: 0.9rem;
}
.site-search button {
    background: var(--navy-900);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.site-search button:hover { background: var(--navy-800); }

@media (max-width: 1440px) {
    .site-search { display: none; }
}
@media (max-width: 1180px) {
    .nav-row { flex-wrap: wrap; gap: 12px; }
    nav { order: 3; width: 100%; }
    .nav-menu { width: 100%; justify-content: flex-start; flex-wrap: wrap; row-gap: 6px; }
    .nav-item { width: auto; }
}
@media (max-width: 900px) {
    .nav-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-block; }
    nav { width: 100%; }
    .nav-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); padding: 12px 18px; flex-direction: column; gap: 8px; box-shadow: var(--shadow-soft); border-radius: 12px; }
    .nav-menu.open { display: flex; }
    .nav-item { width: 100%; }
    .menu-panel { position: relative; top: 0; left: 0; box-shadow: none; border: none; padding: 6px 0 6px 10px; }
    .nav-link { width: 100%; justify-content: space-between; padding: 12px 10px; }
    .menu-panel a { padding-left: 4px; }
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(120deg, #0b1f3a 40%, #11386c 100%);
    color: #f4f7ff;
    overflow: hidden;
    padding: 64px 0 56px;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('building.svg') center/cover no-repeat;
    opacity: 0.28;
    mix-blend-mode: screen;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; max-width: 520px; border-radius: 18px; box-shadow: var(--shadow-strong); border: 6px solid rgba(255,255,255,0.12); background: rgba(9,22,42,0.6); }
.hero-copy { background: rgba(10, 26, 49, 0.7); border: 1px solid rgba(255,255,255,0.12); box-shadow: var(--shadow-strong); padding: 28px; border-radius: 18px; backdrop-filter: blur(6px); max-width: 720px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: var(--gold-500); font-size: 0.9rem; }
.hero-title { font-size: 2.7rem; margin: 10px 0 12px; line-height: 1.1; }
.hero-subtitle { color: #dbe6ff; font-size: 1.08rem; margin-bottom: 18px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; font-weight: 800; letter-spacing: 0.02em; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--gold-500); color: #0b1f3a; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #ffca2c; }
.btn-primary:active { background: var(--gold-600); }
.btn-secondary { background: rgba(255,255,255,0.12); color: #f6f8ff; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-secondary:active { background: rgba(255,255,255,0.26); }

.hero-feature { background: #0f243f; border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-strong); display: grid; gap: 14px; }
.hero-feature .label { color: #d8e5ff; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.hero-feature .value { font-size: 1.1rem; color: #fefefe; }
.hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric { padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.metric .metric-label { color: #c9d7f2; font-size: 0.9rem; text-transform: uppercase; }
.metric .metric-value { color: #fff; font-weight: 800; font-size: 1.2rem; }

/* Sections */
.section { padding: 56px 0; }
.section-header { margin-bottom: 18px; }
.section-eyebrow { display: inline-block; padding: 6px 12px; background: #e9f1ff; color: var(--navy-800); border-radius: 999px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.section-title { margin: 10px 0 8px; font-size: 2.1rem; color: var(--navy-900); }
.section-subtitle { color: var(--slate-700); max-width: 760px; font-size: 1.02rem; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
    background: var(--white);
    border: 1px solid #e6ebf4;
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.card-title { margin: 0 0 6px; font-size: 1.12rem; color: var(--navy-900); }
.card p { color: var(--slate-700); margin-bottom: 8px; }
.card .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #f0f4fa; color: var(--navy-700); border-radius: 999px; font-weight: 700; font-size: 0.9rem; }

.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.list-card { background: var(--white); border: 1px solid #e6ebf4; border-radius: 14px; padding: 16px; box-shadow: var(--shadow-soft); display: grid; gap: 8px; }
.list-card ul { margin: 0; padding-left: 18px; color: var(--slate-700); }
.list-card img { margin-bottom: 6px; }

.news-rail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
.news-feature { background: #0f243f; color: #fefefe; border-radius: 14px; padding: 20px; box-shadow: var(--shadow-strong); }
.news-feature h3 { margin: 0 0 8px; }
.news-feature p { color: #d9e5ff; }
.news-list { background: var(--white); border: 1px solid #e6ebf4; border-radius: 14px; padding: 10px; box-shadow: var(--shadow-soft); display: grid; gap: 8px; }
.news-item { padding: 12px; border-radius: 10px; border: 1px solid #e6ebf4; display: grid; gap: 6px; }
.news-item:hover { background: #f7f9fd; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--slate-500); }
.news-title { font-weight: 800; color: var(--navy-900); margin: 0; }

.stat-strip { background: var(--navy-900); color: #fefefe; padding: 28px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; text-align: center; }
.stat { border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 14px; background: rgba(255,255,255,0.04); }
.stat h3 { margin: 0; font-size: 1.4rem; }
.stat p { margin: 4px 0 0; color: #dce6f8; }

.dual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.bordered { border: 1px solid #e6ebf4; border-radius: 14px; background: var(--white); padding: 18px; box-shadow: var(--shadow-soft); }

/* Breadcrumbs */
.breadcrumbs { margin: 8px 0 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; color: var(--slate-700); }
.breadcrumbs a { color: var(--blue-500); font-weight: 600; }
.breadcrumbs span { color: var(--slate-500); }

/* Page templates */
.page-hero { background: linear-gradient(120deg, #0b1f3a 0%, #134277 100%); color: #fefefe; padding: 48px 0 36px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: url('building.svg') center/cover no-repeat; opacity: 0.16; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 8px 0 6px; font-size: 2.2rem; }
.page-hero p { max-width: 840px; color: #e2ebff; }

.page-section { padding: 38px 0 52px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }

.highlight-card { background: var(--white); border: 1px solid #e6ebf4; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-soft); color: var(--slate-700); }
.highlight-card h3 { margin-top: 0; color: var(--navy-900); }
.highlight-card ul { margin: 0; padding-left: 18px; }
.highlight-card .card-icon { height: 48px; width: auto; margin-bottom: 10px; }
.highlight-card.legal-authority {
    background: linear-gradient(135deg, #ffffff 0%, #f3f6fd 100%);
    border-color: #d9e3f6;
    box-shadow: 0 16px 32px rgba(12, 35, 58, 0.12);
}
.highlight-card.legal-authority h2 {
    margin-bottom: 10px;
    font-size: 1.28rem;
    color: var(--navy-900);
}
.highlight-card.legal-authority p {
    color: var(--slate-700);
    font-weight: 600;
}

.news-card { background: var(--white); border: 1px solid #e6ebf4; border-radius: 12px; padding: 16px; box-shadow: var(--shadow-soft); }
.news-card h4 { margin: 0 0 6px; color: var(--navy-900); }
.news-card p { color: var(--slate-700); }

/* Footer */
footer { background: #0b1f3a; color: #e7edf7; padding: 36px 0 24px; margin-top: 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 52px; width: 52px; }
.footer-links a { display: block; color: #dfe5f5; margin-bottom: 8px; font-weight: 600; }
.footer-links a:hover { color: var(--gold-500); }
.footer-bottom { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 12px; font-size: 0.95rem; }

/* Scroll-to-top */
#scrollTopBtn { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 1200; background: var(--gold-500); color: #0b1f3a; border: none; border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; box-shadow: var(--shadow-strong); cursor: pointer; }
#scrollTopBtn:hover { background: #ffca2c; }
#scrollTopBtn:focus-visible { box-shadow: var(--focus-ring); }

/* Responsive */
@media (max-width: 1360px) {
    .site-search { display: none; }
    .nav-row { grid-template-columns: auto 1fr; height: auto; padding: 12px 0; }
}
@media (max-width: 1260px) {
    .nav-row { grid-template-columns: auto auto; grid-template-rows: auto auto; height: auto; padding: 12px 0; }
    .site-search { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 900px) {
    .nav-row { flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; }
    .brand { width: 100%; justify-content: space-between; }
    .brand-text { flex: 1; min-width: 0; }
    .brand-name { font-size: 0.95rem; white-space: normal; line-height: 1.2; }
    .brand-eyebrow { font-size: 0.72rem; }
    .nav-toggle { display: inline-block; }
    nav { width: 100%; }
    .nav-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); padding: 12px 18px; flex-direction: column; gap: 8px; box-shadow: var(--shadow-soft); border-radius: 12px; }
    .nav-menu.open { display: flex; }
    .nav-item { width: 100%; }
    .menu-panel { position: relative; top: 0; left: 0; box-shadow: none; border: none; padding: 6px 0 6px 10px; }
    .nav-link { width: 100%; justify-content: space-between; padding: 12px 10px; }
    .menu-panel a { padding-left: 4px; }
    .hero-content { grid-template-columns: 1fr; }
    .news-rail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero-title { font-size: 2rem; }
    .hero-copy { padding: 20px; }
    .brand { min-width: 0; }
    .site-search { flex-direction: column; align-items: stretch; }
    .site-search input { width: 100%; }
    .container { padding: 0 16px; }
    .nav-row { min-height: 0; }
    .nav-toggle { padding: 8px 10px; }
    .nav-link { padding: 10px 10px; }
}
