/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ice-dark: #0b1d2e;
    --ice-blue: #1a3a5c;
    --ice-mid: #2e6b9e;
    --ice-light: #7cb8d4;
    --ice-pale: #d4eef7;
    --ice-white: #eef6fa;
    --frost: #f0f8ff;
    --warm: #c8a96e;
    --warm-light: #f5e6c8;
    --text: #1a2a3a;
    --text-light: #4a6a7a;
    --radius: 8px;
    --shadow: 0 2px 16px rgba(11,29,46,0.10);
    --shadow-lg: 0 4px 32px rgba(11,29,46,0.15);
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--frost);
    line-height: 1.7;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

a { color: var(--ice-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ice-dark); text-decoration: underline; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(11,29,46,0.82) 0%, rgba(46,107,158,0.72) 50%, rgba(124,184,212,0.6) 100%),
        linear-gradient(180deg, #0b1d2e 0%, #1a3a5c 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,238,247,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; padding: 60px 24px; }

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--ice-pale);
    font-weight: 300;
    margin-bottom: 12px;
}

.hero .tagline {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: rgba(212,238,247,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NAV ===== */
#nav {
    background: var(--ice-dark);
    z-index: 100;
    transition: box-shadow .3s;
}
#nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.nav-link {
    display: block;
    padding: 12px 14px;
    color: var(--ice-pale);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all .2s;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-bottom-color: var(--ice-light);
    text-decoration: none;
}

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--ice-white); }

.section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--ice-dark);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}
.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--ice-mid);
    border-radius: 2px;
}

.section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ice-blue);
    margin: 36px 0 12px;
}

.section p { margin-bottom: 16px; }

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.intro-text {
    font-size: 1.05rem;
    margin-bottom: 40px;
    padding: 28px 32px;
    background: white;
    border-left: 4px solid var(--ice-mid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===== FACT GRID ===== */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.fact-card {
    background: var(--ice-dark);
    color: white;
    padding: 28px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.fact-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ice-light);
    margin-bottom: 8px;
}

.fact-label {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.85;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ice-mid), var(--ice-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ice-mid);
    border: 3px solid var(--ice-white);
    box-shadow: 0 0 0 2px var(--ice-mid);
}

.timeline-year {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ice-dark);
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ===== COUNTRY CARDS ===== */
.country-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.country-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .2s;
}
.country-card:hover { box-shadow: var(--shadow-lg); }

.country-card summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .2s;
}
.country-card summary::-webkit-details-marker { display: none; }
.country-card summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--ice-mid);
    transition: transform .2s;
}
.country-card[open] summary::after {
    content: '-';
}
.country-card summary:hover { background: var(--ice-pale); }

.country-flag { font-size: 1.8rem; }
.country-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ice-dark);
}
.country-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.country-content {
    padding: 8px 24px 28px;
    border-top: 1px solid var(--ice-pale);
}
.country-content h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ice-blue);
    margin: 20px 0 8px;
}
.country-content h4:first-child { margin-top: 12px; }
.country-content p { margin-bottom: 12px; font-size: 0.95rem; }
.country-content ul {
    margin: 8px 0 16px 20px;
    font-size: 0.95rem;
}
.country-content li { margin-bottom: 4px; }

/* ===== METHODS GRID ===== */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.method-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.method-card h3 {
    font-size: 1.15rem;
    margin: 0 0 12px;
    color: var(--ice-dark);
}
.method-card p { font-size: 0.93rem; margin-bottom: 12px; }
.method-card ul {
    margin: 8px 0 12px 20px;
    font-size: 0.93rem;
}
.method-card li { margin-bottom: 4px; }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: var(--ice-pale);
}
.gallery-wide img {
    height: 300px;
}

.gallery-item figcaption {
    padding: 12px 14px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-light);
}

@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-wide { grid-column: span 1; }
    .gallery-item img, .gallery-wide img { height: 180px; }
}

/* ===== SOURCES ===== */
.sources-list {
    columns: 2;
    column-gap: 40px;
    list-style: none;
}
.sources-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    break-inside: avoid;
}
.sources-list a {
    display: inline-block;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}
.sources-list a:hover { border-bottom-color: var(--ice-mid); }

/* ===== FOOTER ===== */
footer {
    background: var(--ice-dark);
    color: var(--ice-pale);
    padding: 32px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    html { font-size: 16px; }
    .hero { min-height: 50vh; }
    .nav-inner { padding: 4px 8px; gap: 0; }
    .nav-link { padding: 8px 10px; font-size: 0.72rem; letter-spacing: 0.02em; }
    .section { padding: 48px 0; }
    .intro-text { padding: 20px; }
    .fact-grid { grid-template-columns: repeat(2, 1fr); }
    .country-card summary { flex-wrap: wrap; gap: 8px; }
    .country-role { width: 100%; margin-left: 0; }
    .sources-list { columns: 1; }
    .methods-grid { grid-template-columns: 1fr; }
}
