/* UNIDO-inspired theme for RDF
   Blue #0059AB, orange accent #D2552A, white ground, square corners. */

:root {
    --blue: #0059AB;
    --blue-dark: #004888;
    --orange: #D2552A;
    --logo-red: #B01020;
    --ink: #1a1a1a;
    --muted: #4d4d4d;
    --line: #e3eef6;
    --wash: #E8F5FF;
    --header-h: 112px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #edf2f6;
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--blue);
    min-width: 0;
}

.brand img {
    height: 68px;
    width: auto;
    display: block;
}

.brand-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--blue);
}

.brand-tag {
    display: block;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 2px solid var(--blue);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--blue);
}

.menu-toggle {
    width: 48px;
    height: 48px;
    border: 0 !important;
    background: transparent !important;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow: auto;
    border-top: 1px solid var(--line);
}

.site-menu.is-open { display: block; }

body.menu-open { overflow: hidden; }

.menu-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 28px 64px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 28px;
}

.menu-grid h2 {
    margin: 0 0 14px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 700;
}

.menu-grid a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    padding: 7px 0;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
}

.menu-grid a:hover {
    color: var(--blue);
}

/* Hero */
.hero {
    position: relative;
    height: 68vh;
    min-height: 480px;
    background: #12304d;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 20, 40, 0.35) 100%);
}

.hero-frame {
    pointer-events: none;
    position: absolute;
    inset: 22px;
    z-index: 3;
}

.hero-frame::before,
.hero-frame::after {
    content: "";
    position: absolute;
    width: 108px;
    height: 108px;
    border: 20px solid var(--logo-red);
}

.hero-frame::before {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
}

.hero-frame::after {
    right: 0;
    bottom: 0;
    border-left: 0;
    border-top: 0;
}

.hero-caption {
    position: absolute;
    left: 7%;
    bottom: 12%;
    z-index: 4;
    background: rgba(0, 89, 171, 0.72);
    color: #fff;
    padding: 14px 16px 16px;
    max-width: 440px;
}

.hero-caption p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hero-caption h1 {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-caption .btn {
    padding: 8px 14px;
    font-size: 0.72rem;
}

.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    text-decoration: none;
    padding: 14px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
}

.btn:hover { background: var(--blue-dark); }

.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #b84522; }

.btn-light {
    background: #fff;
    color: var(--blue) !important;
}

/* In focus */
.focus {
    background: var(--blue);
    color: #fff;
    padding: 64px 0 72px;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.focus h2,
.block h2,
.stats-head {
    margin: 0 0 28px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.focus-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    min-height: 320px;
}

.focus-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.focus-card span {
    display: block;
    padding: 18px 18px 22px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}

.focus-card:hover span { color: var(--blue); }

/* Stats and intro */
.stats {
    padding: 72px 0 48px;
    text-align: center;
}

.stats-head {
    text-align: center;
}

.stats-head::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--blue);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    justify-items: center;
    margin-top: 8px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 260px;
}

.stat-ring {
    position: relative;
    width: 190px;
    height: 190px;
}

.stat-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg,
.ring-fg {
    fill: none;
    stroke-width: 10;
}

.ring-bg { stroke: var(--wash); }

.ring-fg {
    stroke: var(--blue);
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
}

.stat strong {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat .suffix {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.stat-label {
    margin: 16px 0 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 600;
}

.block {
    padding: 24px 0 80px;
}

.block p {
    max-width: 820px;
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 0 22px;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 36px;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
}

.site-footer a,
.site-footer p {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.98rem;
}

.site-footer a { display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--blue); }

.footer-brand {
    font-weight: 700;
    color: var(--blue) !important;
    font-size: 1.05rem !important;
    margin: 0 0 8px;
}

.footer-bar {
    border-top: 1px solid var(--line);
    padding: 16px 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a { padding: 0; color: var(--blue); }

/* Inner pages: remap the old orange/navy inline styles */
[style*="background-color: #caccd2"],
[style*="background: #caccd2"] {
    background: #fff !important;
    background-color: #fff !important;
}

[style*="background: #2c3e50"] {
    background-color: #fff !important;
    color: var(--ink) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid var(--line) !important;
    border-top: 4px solid var(--blue) !important;
}

[style*="color: #fff"]:not(button):not(.btn),
[style*="color:#fff"]:not(button),
[style*="color: #ffffff"]:not(button),
[style*="color: white"]:not(button),
[style*="color: #ecf0f1"]:not(a),
[style*="color: #bdc3c7"],
[style*="color: #2c3e50"],
[style*="color: #060606"] {
    color: var(--ink) !important;
}

a[style*="color: #ecf0f1"] { color: var(--blue) !important; }

[style*="color: #e67e22"] { color: var(--blue) !important; }

[style*="solid #e67e22"],
[style*="solid #db7d3a"],
[style*="solid #D2552A"] {
    border-color: var(--logo-red) !important;
}

[style*="background: #dcd8d8"] {
    background: var(--wash) !important;
    border-radius: 0 !important;
}

[style*="border-radius: 8px"],
[style*="border-radius: 6px"],
[style*="border-radius: 5px"],
[style*="border-radius: 4px"] {
    border-radius: 0 !important;
}

section.container {
    background: #fff;
}

section.container h1,
section.container h2 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

section.container p,
section.container li {
    color: #333;
}

section img { border-radius: 0 !important; }

input,
textarea,
select {
    background: #f7fafc !important;
    color: var(--ink) !important;
    border: 1px solid #c5d5e4 !important;
    border-radius: 0 !important;
    font-family: inherit;
}

button:not(.menu-toggle),
button[style*="#e67e22"] {
    background: var(--blue) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: inherit;
    cursor: pointer;
}

button:not(.menu-toggle):hover { background: var(--blue-dark) !important; }

@media (max-width: 980px) {
    .menu-grid,
    .focus-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-tag { display: none; }
    .brand-name { font-size: 0.82rem; max-width: 190px; }
}

@media (max-width: 680px) {
    .menu-grid,
    .focus-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero { min-height: 420px; height: 78vh; }
    .hero-frame { inset: 12px; }
    .hero-frame::before,
    .hero-frame::after { width: 64px; height: 64px; border-width: 12px; }
    .hero-caption { left: 16px; right: 16px; bottom: 18px; max-width: 320px; }
    .header-inner { padding: 12px 16px; }
}
