/* ── Base ─────────────────────────────────────────────────────── */

body {
    margin: 0;
    font-family: 'Google Sans Flex', sans-serif;
    background-color: #f7f7f7;
    color: #1D1D2F;
}

/* ── Header ──────────────────────────────────────────────────── */

header {
    background-color: #fff;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.header-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1D1D2F;
    text-decoration: none;
}

.header-nav a {
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    margin-left: 1.5rem;
}

.header-nav a:hover {
    color: #3B82F6;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */

.breadcrumb {
    max-width: 960px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    color: #888;
}

.breadcrumb a {
    color: #3B82F6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span + span::before {
    content: ' › ';
    color: #bbb;
}

/* ── Directory hero ──────────────────────────────────────────── */

.dir-hero {
    background: linear-gradient(135deg, #1D1D2F 0%, #2d3a5e 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem 3.5rem;
}

.dir-hero h1 {
    font-size: 2.6rem;
    margin: 0 0 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dir-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 600px;
    margin-inline: auto;
}

/* ── Sector hero (single sector page) ───────────────────────── */

.sector-hero {
    background: linear-gradient(135deg, #1D1D2F 0%, #2d3a5e 100%);
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.sector-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.sector-hero h1 {
    font-size: 2.4rem;
    margin: 0 0 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sector-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 580px;
    margin-inline: auto;
    line-height: 1.6;
}

/* ── Sector grid (directory index) ──────────────────────────── */

.sector-grid {
    max-width: 1080px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.sector-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: #1D1D2F;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.sector-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #3B82F6;
}

.sector-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

/* 12 rotating colors for the 12 sectors */
.sector-card:nth-child(12n+1)  .sector-card-icon { background: #3B82F6; }
.sector-card:nth-child(12n+2)  .sector-card-icon { background: #F59E0B; }
.sector-card:nth-child(12n+3)  .sector-card-icon { background: #EF4444; }
.sector-card:nth-child(12n+4)  .sector-card-icon { background: #10B981; }
.sector-card:nth-child(12n+5)  .sector-card-icon { background: #8B5CF6; }
.sector-card:nth-child(12n+6)  .sector-card-icon { background: #F97316; }
.sector-card:nth-child(12n+7)  .sector-card-icon { background: #EC4899; }
.sector-card:nth-child(12n+8)  .sector-card-icon { background: #14B8A6; }
.sector-card:nth-child(12n+9)  .sector-card-icon { background: #6366F1; }
.sector-card:nth-child(12n+10) .sector-card-icon { background: #84CC16; }
.sector-card:nth-child(12n+11) .sector-card-icon { background: #06B6D4; }
.sector-card:nth-child(12n+12) .sector-card-icon { background: #64748B; }

.sector-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #1D1D2F;
}

.sector-card p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.sector-card-arrow {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3B82F6;
}

/* ── Intro text (sector page) ────────────────────────────────── */

.sector-intro {
    max-width: 800px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.75;
}

.sector-intro p {
    margin: 0 0 1rem;
}

/* ── Region grid ─────────────────────────────────────────────── */

.region-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.region-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: #1D1D2F;
}

.region-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.region-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1D1D2F;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.region-pill:hover,
.region-pill.active {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #fff;
}

/* ── Region hero (sector + region page) ─────────────────────── */

.region-hero {
    background: linear-gradient(135deg, #1D1D2F 0%, #2d3a5e 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem 3.5rem;
}

.region-hero .region-label {
    display: inline-block;
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.region-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.region-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.6;
}

/* ── Info section ────────────────────────────────────────────── */

.info-section {
    max-width: 800px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.info-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1D1D2F;
}

.info-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.info-section ul li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

.info-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3B82F6;
}

/* ── Other sectors navigation ────────────────────────────────── */

.other-sectors {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.other-sectors h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1D1D2F;
}

.other-sectors .region-grid {
    gap: 0.5rem;
}

.other-sectors .region-pill {
    font-size: 0.85rem;
}

/* ── CTA banner ──────────────────────────────────────────────── */

.cta-banner {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem;
}

.cta-banner h2 {
    font-size: 1.9rem;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.cta-banner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.75rem;
}

.cta-banner a.btn-cta {
    display: inline-block;
    background: #fff;
    color: #2563EB;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.cta-banner a.btn-cta:hover {
    background: #f0f7ff;
}

/* ── Footer ──────────────────────────────────────────────────── */

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.875rem;
    color: #999;
}
