/* Consulate website UI kit — base + layout styles
   Pairs with ../../colors_and_type.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg1);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar .tb-left { display: flex; align-items: center; gap: 22px; }
.tb-item { display: flex; align-items: center; gap: 8px; color: #E4E4E7; }
.tb-item i { color: var(--green-bright); font-size: 12px; }
.tb-social { display: flex; align-items: center; gap: 16px; }
.tb-social a { color: #fff; opacity: .82; transition: opacity .15s ease; }
.tb-social a:hover { opacity: 1; }
@media (max-width: 760px){ .tb-item.hide-sm { display: none; } }

/* ---------- Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 50px; width: auto; }
.brand .b-t1 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--fg1); }
.brand .b-t2 { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--green); }
.brand .b-t3 { font-size: 11px; color: var(--fg3); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg1); position: relative; padding: 6px 0; transition: color .15s ease; }
.nav a::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--green); transform: scaleX(0); transform-origin:left; transition: transform .18s ease; }
.nav a:hover { color: var(--green); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--green); }
.cta {
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 12px 18px;
  border-radius: var(--radius-md); display: inline-flex; align-items: center; gap: 9px;
  white-space: nowrap; flex: none;
  transition: background .15s ease, transform .1s ease;
}
.cta:hover { background: #000; }
.cta:active { transform: translateY(1px); }
@media (max-width: 1024px){ .nav { display: none; } }

/* ---- Mobile menu ---- */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; color: var(--ink); font-size: 18px; align-items: center; justify-content: center; }
.mobile-nav { display: none; }
@media (max-width: 1024px){
  .nav-toggle { display: flex; }
  .header .cta { display: none; }
  .mobile-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px 24px 18px;
    background: #fff; border-top: 1px solid var(--border); }
  .mobile-nav a { font-size: 14px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
    color: var(--fg1); padding: 13px 6px; border-bottom: 1px solid var(--border); }
  .mobile-nav a.active { color: var(--green-deep); }
  .mobile-nav .mn-cta { margin-top: 12px; background: var(--green-deep); color: #fff; text-align: center;
    border-radius: var(--radius-md); border: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; }
.hero .container { padding-top: 46px; padding-bottom: 52px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; margin-bottom: 20px; }
.breadcrumb a { color: var(--gray-400); transition: color .15s ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: var(--gray-500); }
.breadcrumb .cur { color: #fff; font-weight: 600; }
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 16px; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--fg-on-dark-2); max-width: 720px; margin: 0; }

/* ---------- Sub-tabs ---------- */
.subtabs { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 76px; z-index: 30; }
.subtabs .container { display: flex; gap: 6px; }
.subtab { font-size: 14px; font-weight: 600; color: var(--fg3); padding: 17px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: none; border-left: none; border-right: none; transition: color .15s ease; }
.subtab:hover { color: var(--fg1); }
.subtab.active { color: var(--green); border-bottom-color: var(--green); }

/* ---------- Main grid ---------- */
.main { padding: 48px 0 64px; }
.grid3 { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 28px; align-items: start; }
@media (max-width: 900px){ .grid3 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 30px; }
.card + .card { margin-top: 28px; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.chip { width: 44px; height: 44px; border-radius: 11px; background: var(--green-tint); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 19px; flex: none; }
.card-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.card p { font-size: 16px; line-height: 1.7; color: var(--fg2); margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: var(--gray-200); aspect-ratio: 16/9; }
.gallery .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 15px; background: repeating-linear-gradient(135deg, #EEF0F2 0 18px, #E8EAED 18px 36px); }
.gallery .ph i { font-size: 30px; margin-right: 12px; }
.gallery .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,24,26,0.78) 0%, rgba(24,24,26,0) 42%); }
.gallery .caption { position: absolute; left: 22px; bottom: 20px; color: #fff; }
.gallery .caption .ct { font-size: 16px; font-weight: 700; }
.gallery .caption .cs { font-size: 13px; color: rgba(255,255,255,0.7); }
.gallery .pager { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; }
.gallery .pager button { width: 38px; height: 38px; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.gallery .pager button:hover { background: rgba(255,255,255,0.25); }
.gallery .dots { position: absolute; left: 22px; bottom: 56px; display: flex; gap: 6px; }
.gallery .dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.gallery .dots span.on { background: #fff; width: 18px; border-radius: 4px; }

/* ---------- Sidebar: quick facts ---------- */
.facts .fact { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.facts .fact:last-child { border-bottom: none; padding-bottom: 0; }
.facts .fact:first-of-type { padding-top: 0; }
.facts .fact .ic { color: var(--green); width: 18px; text-align: center; margin-top: 2px; }
.facts .fact .flabel { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg3); }
.facts .fact .fval { font-size: 14px; font-weight: 600; color: var(--fg1); }

/* ---------- Sidebar: dark services ---------- */
.services { background: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-dark); padding: 26px; color: #fff; }
.services .card-head h2 { color: #fff; font-size: 20px; }
.services .chip { background: rgba(31,184,115,0.16); color: var(--green-bright); }
.srow { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--border-dark); width: 100%; background: none; border-left: none; border-right: none; border-top: none; text-align: left; transition: padding .15s ease; }
.srow:last-child { border-bottom: none; padding-bottom: 0; }
.srow .ic { color: var(--green-bright); width: 22px; text-align: center; font-size: 16px; flex: none; }
.srow .st { flex: 1; }
.srow .st .stt { color: #fff; font-size: 14px; font-weight: 600; }
.srow .st .sts { color: var(--gray-500); font-size: 12px; }
.srow .ar { color: var(--gray-500); transition: transform .16s ease, color .16s ease; }
.srow:hover .ar { color: var(--green-bright); transform: translateX(4px); }
.srow:hover .stt { color: var(--green-bright); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--fg-on-dark-2); padding: 48px 0 28px; border-top: 1px solid var(--border-dark); }
.footer .fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer .brand .b-t1, .footer .brand .b-t3 { color: #fff; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--fg-on-dark-2); transition: color .15s ease; }
.footer ul a:hover { color: #fff; }
.footer .fbar { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-dark); display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-500); }
@media (max-width: 760px){ .footer .fgrid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- fade for tab switch ---------- */
.fade-in { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }

/* ==========================================================
   APP ADDITIONS — multi-page site (Home, Services, News, Contact)
   ========================================================== */

/* Nav links rendered as <a> with hash routes already covered by .nav a */

/* ---------- Section scaffolding ---------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--fg2); margin: 0; }

/* ---------- Home hero (taller, with CTAs) ---------- */
.home-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.home-hero .container { padding-top: 80px; padding-bottom: 84px; position: relative; z-index: 2; }
.home-hero .flagstripe { position: absolute; top: 0; bottom: 0; right: 0; width: 38%; display: flex; opacity: 0.10; z-index: 1; }
.home-hero .flagstripe .g { flex: 1; background: var(--green); }
.home-hero .flagstripe .w { flex: 1; background: #fff; }
.home-hero .eyebrow { color: var(--green-bright); display: block; margin-bottom: 16px; }
.home-hero h1 { font-size: 54px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 20px; max-width: 760px; }
.home-hero p { font-size: 20px; line-height: 1.6; color: var(--fg-on-dark-2); max-width: 600px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 700px){ .home-hero h1 { font-size: 38px; } }

/* ---------- Buttons (shared) ---------- */
.btn { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; transition: all .15s ease; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-600); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ondark { background: #fff; color: var(--ink); }
.btn-ondark:hover { background: var(--gray-100); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Service grid (cards) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .svc-grid { grid-template-columns: 1fr; } }
.svc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px; transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease; display: flex; flex-direction: column; }
.svc-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.svc-card .chip { margin-bottom: 16px; }
.svc-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.svc-card p { font-size: 14px; line-height: 1.6; color: var(--fg2); margin: 0 0 16px; }
.svc-card .need { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-card .need li { font-size: 13px; color: var(--fg2); display: flex; gap: 9px; align-items: flex-start; }
.svc-card .need li i { color: var(--green); font-size: 12px; margin-top: 3px; }
.svc-card .more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: 0.03em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.svc-card:hover .more i { transform: translateX(3px); }
.svc-card .more i { transition: transform .15s ease; }

/* ---------- Dark CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; box-shadow: var(--shadow-dark); }
.cta-band h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; color: #fff; }
.cta-band p { font-size: 16px; color: var(--fg-on-dark-2); margin: 0; max-width: 520px; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px){ .stats { grid-template-columns: 1fr 1fr; } }
.stat { text-align: left; }
.stat .num { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.stat .lbl { font-size: 13px; color: var(--fg3); margin-top: 8px; }
.stat .num .accent { color: var(--green); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .news-grid { grid-template-columns: 1fr; } }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .16s ease, transform .16s ease; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card .thumb { aspect-ratio: 16/10; background: repeating-linear-gradient(135deg, #EEF0F2 0 18px, #E8EAED 18px 36px); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 26px; overflow: hidden; }
.news-card .thumb img, .news-featured .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .nbody { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-card .ndate { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.news-card p { font-size: 14px; line-height: 1.6; color: var(--fg2); margin: 0 0 16px; }
.news-card .read { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--green); display: inline-flex; gap: 7px; align-items: center; }
.news-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg3); background: var(--gray-100); border-radius: var(--radius-full); padding: 4px 12px; }

/* featured news (first item, wide) */
.news-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 28px; background: #fff; }
@media (max-width: 760px){ .news-featured { grid-template-columns: 1fr; } }
.news-featured .thumb { aspect-ratio: 16/10; background: repeating-linear-gradient(135deg, #EEF0F2 0 18px, #E8EAED 18px 36px); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 34px; }
.news-featured .nbody { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.news-featured h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 12px 0; }
.news-featured p { font-size: 15px; line-height: 1.7; color: var(--fg2); margin: 0 0 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--fg1); margin-bottom: 7px; }
.field label .req { color: var(--green); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--fg1);
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 12px 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--focus-ring); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(185,28,28,0.12); }
.field .err { font-size: 12px; color: var(--red); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.form-success { background: var(--green-tint); border: 1px solid var(--green-tint-2); border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 16px; align-items: flex-start; }
.form-success .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.form-success h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--green-700); }
.form-success p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg2); }

.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px; }
.info-card .irow { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-card .irow:first-child { padding-top: 0; }
.info-card .irow:last-child { border-bottom: none; padding-bottom: 0; }
.info-card .irow .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.info-card .irow .ilabel { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg3); }
.info-card .irow .ival { font-size: 14px; font-weight: 600; color: var(--fg1); line-height: 1.5; }
.map-ph { position: relative; margin-top: 18px; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #EEF0F2; }
.map-ph iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-ph .map-link {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.95); color: var(--green-deep); font-size: 12px; font-weight: 700;
  padding: 7px 11px; border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); text-decoration: none; transition: background .15s ease, color .15s ease;
}
.map-ph .map-link:hover { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.map-ph .map-link i { font-size: 11px; }

/* ---- Citizen registration form extras ---- */
.form-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-forest); margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--cream-line, var(--border));
}
.form-section-label:first-child { margin-top: 0; }
label.consent { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; padding: 14px 16px;
  background: #FAF6EC; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer;
  font-size: 13.5px; line-height: 1.55; color: var(--fg2); }
label.consent input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--green-deep); flex: none; }
label.consent.invalid { border-color: #c0392b; background: #fbecec; color: var(--fg1); }

/* ---- Footer Privacy / Terms links ---- */
.fbar .flegal { display: inline-flex; align-items: center; gap: 10px; }
.fbar .flegal a { color: inherit; opacity: 0.85; transition: opacity .15s ease, color .15s ease; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.fbar .flegal a:hover { opacity: 1; color: var(--gold-on-dark); border-bottom-color: var(--gold-on-dark); }
.fbar .flegal .sep { opacity: 0.55; }

/* ---- Legal modal (Privacy / Terms) ---- */
.legal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 28, 0.62);
  display: flex; align-items: center; justify-content: center;
  padding: 28px; animation: legalFade .18s ease-out;
}
@keyframes legalFade { from { opacity: 0; } to { opacity: 1; } }
.legal-modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 760px; width: 100%;
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28); overflow: hidden;
  animation: legalRise .22s ease-out;
}
@keyframes legalRise { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.legal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 28px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FAF6EC 0%, #fff 100%);
}
.legal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.legal-head h2 { font-size: 24px; font-weight: 800; color: var(--green-forest); margin: 0; letter-spacing: -0.01em; }
.legal-meta { font-size: 12px; color: var(--fg3); margin-top: 6px; }
.legal-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--fg2); cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.legal-close:hover { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.legal-body {
  padding: 22px 28px 4px; overflow-y: auto; flex: 1;
  font-size: 14.5px; line-height: 1.7; color: var(--fg2);
}
.legal-body .lead { font-size: 15px; color: var(--fg1); margin: 0 0 18px; }
.legal-body h3 { font-size: 15px; font-weight: 800; color: var(--green-forest); letter-spacing: -0.005em; margin: 20px 0 8px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--fg1); }
.legal-body .legal-note { font-size: 12.5px; color: var(--fg3); padding-top: 18px; margin-top: 22px; border-top: 1px dashed var(--border); }
.legal-foot { padding: 16px 28px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; background: #fff; }
@media (max-width: 560px) {
  .legal-overlay { padding: 0; align-items: stretch; }
  .legal-modal { max-height: 100vh; border-radius: 0; }
}

/* ---------- generic two-col content ---------- */
.lead-block { max-width: 760px; }
.lead-block p { font-size: 17px; line-height: 1.75; color: var(--fg2); margin: 0 0 16px; }

/* ==========================================================
   V2 — DIPLOMATIC THEME (gold + serif + cream + green hero)
   ========================================================== */

/* ---- Serif on ceremonial headings ---- */
.hero h1,
.home-hero h1,
.section-head h2,
.cta-band h2,
.svc-card h3,
.news-featured h3 { font-family: var(--font-serif); letter-spacing: -0.01em; }
.section-head h2 { font-weight: 800; }
.hero h1, .home-hero h1 { font-weight: 800; }

/* ---- Top utility bar → deep green ---- */
.topbar { background: var(--green-night); }
.tb-item i { color: var(--gold-on-dark); }

/* ---- Header: circular gold-ring crest ---- */
.brand img {
  height: 56px; width: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold-line);
  padding: 3px; box-shadow: var(--shadow-xs); object-fit: contain;
}
.brand .b-t1 { font-size: 16px; white-space: nowrap; }
.brand .b-t2 { white-space: nowrap; }
.nav a { color: var(--fg1); }
.nav a::after { background: var(--gold); height: 3px; }
.nav a:hover, .nav a.active { color: var(--green-deep); }
.cta { background: var(--green-deep); }
.cta:hover { background: var(--green-forest); }

/* ---- Diplomatic hero (deep-green gradient + crest watermark) ---- */
.dhero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, var(--green-forest) 0%, var(--green-deep) 52%, var(--green-night) 100%); }
.dhero::after { /* faint shield watermark, right */
  content: ''; position: absolute; top: 50%; right: -40px; transform: translateY(-50%);
  width: 360px; height: 440px; opacity: 0.07; pointer-events: none;
  background: url('assets/consulate-seal.png') no-repeat center / contain; }
.dhero .container { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 60px; }
.dhero .breadcrumb a { color: rgba(255,255,255,0.65); }
.dhero .breadcrumb a:hover { color: #fff; }
.dhero .breadcrumb .sep { color: var(--gold-on-dark); }
.dhero .breadcrumb .cur { color: #fff; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(217,184,99,0.5); background: rgba(217,184,99,0.12);
  color: var(--gold-on-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 8px 16px; border-radius: var(--radius-full); margin-bottom: 22px;
}
.dhero h1 { font-family: var(--font-serif); font-weight: 800; font-size: 56px; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 18px; max-width: 880px; }
.dhero h1 .gold { color: var(--gold-on-dark); display: block; }
.dhero .sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 0 26px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .hs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.9); }
.hero-stats .hs i { color: var(--gold-on-dark); }
@media (max-width: 700px){ .dhero h1 { font-size: 38px; } }

/* ---- Sub-tabs with icons + gold underline ---- */
.subtabs .container { gap: 4px; }
.subtab { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; }
.subtab i { font-size: 14px; opacity: 0.8; }
.subtab.active { color: var(--green-deep); border-bottom-color: var(--gold); }
.subtab.active i { color: var(--gold); opacity: 1; }

/* ---- Cream section ---- */
.section.cream { background: var(--cream); border-top: 1px solid var(--cream-line); border-bottom: 1px solid var(--cream-line); }
.main.cream { background: var(--cream); }

/* ---- Mandate / Mission / Vision ---- */
.mmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px){ .mmv-grid { grid-template-columns: 1fr; } }
.mmv-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; }
.mmv-card.green-top { border-top-color: var(--green); }
.mmv-card .chip { margin-bottom: 14px; }
.mmv-card.green-top .chip { background: var(--green-tint); color: var(--green); }
.mmv-card.gold-top .chip { background: var(--gold-soft); color: var(--gold); }
.mmv-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.mmv-card p { font-size: 14px; line-height: 1.65; color: var(--fg2); margin: 0; }

/* ---- Core mandates checklist ---- */
.mandates-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 26px; margin-top: 22px; }
.mandates-title { font-size: 15px; font-weight: 700; color: var(--fg1); padding-left: 12px;
  border-left: 3px solid var(--green); margin-bottom: 18px; }
.mandates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px){ .mandates { grid-template-columns: 1fr; } }
.mandate { display: flex; gap: 12px; align-items: flex-start; background: var(--gray-50);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; }
.mandate .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; margin-top: 1px; }
.mandate span.txt { font-size: 13.5px; line-height: 1.5; color: var(--fg2); }

/* ---- Section card header (gold icon chip) ---- */
.card-head .chip.gold { background: var(--gold-soft); color: var(--gold); }
.card-head .sub { font-size: 13px; color: var(--fg3); margin-top: 2px; }
.card-head .htext h2 { margin: 0; }

/* ---- Sidebar: View all services (deep green) ---- */
.side-cta { display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green-deep); color: #fff; border-radius: var(--radius-lg); padding: 18px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.03em; box-shadow: var(--shadow-md);
  transition: background .15s ease; }
.side-cta:hover { background: var(--green-forest); }
.side-cta i { color: var(--gold-on-dark); }

/* ---- Contact info card ---- */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px; margin-top: 22px; }
.contact-card .ch { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px;
  margin-bottom: 16px; }
.contact-card .ch i { color: var(--green); }
.contact-card .crow { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; font-size: 14px; color: var(--fg2); }
.contact-card .crow i { color: var(--gold); width: 16px; text-align: center; margin-top: 3px; }
.contact-card .outline-btn { display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 14px; border: 1px solid var(--green-deep); color: var(--green-deep); border-radius: var(--radius-md);
  padding: 11px; font-size: 13px; font-weight: 700; transition: all .15s ease; }
.contact-card .outline-btn:hover { background: var(--green-deep); color: #fff; }

/* ---- Consul profile mini-card (sidebar) ---- */
.profile-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-top: 22px; }
.profile-card .pbanner { height: 92px; background: linear-gradient(120deg, var(--green-deep), var(--gold)); position: relative; }
.profile-card .pavatar { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #fff;
  background: var(--cream, #faf6ec) center / cover; position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 30px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,23,42,0.12); }
.profile-card .pavatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.profile-card .pbody { padding: 56px 22px 24px; text-align: center; }
.profile-card .pname { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--fg1); }
.profile-card .prole { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 2px; }
.profile-card .pblurb { font-size: 13px; line-height: 1.6; color: var(--fg3); margin: 12px 0 16px; }
.profile-card .pbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--fg1); transition: all .15s ease; }
.profile-card .pbtn:hover { border-color: var(--green); color: var(--green); }

/* ---- Leadership (Consul General) full ---- */
.leader { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 860px){ .leader { grid-template-columns: 1fr; gap: 28px; } }
.leader-portrait { position: relative; border-radius: var(--radius-lg); aspect-ratio: 4/5;
  background: #FAF6EC center / cover;
  border: 3px solid var(--gold-line);
  box-shadow: var(--shadow-lg); display: block; overflow: hidden; }
.leader-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.leader-portrait::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(217,184,99,0.4); border-radius: 6px; z-index: 1; pointer-events: none; }
.leader .eyebrow-gold { display: block; margin-bottom: 10px; }
.leader h2 { font-family: var(--font-serif); font-size: 40px; font-weight: 800; color: var(--green-forest);
  letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.1; }
.leader .role { font-size: 16px; font-weight: 600; color: var(--green); margin-bottom: 24px; }
.leader blockquote { margin: 0 0 24px; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold);
  font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--fg1); }
.leader blockquote .attr { display: block; font-family: var(--font-sans); font-style: normal;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold);
  margin-top: 14px; }
.leader .bio p { font-size: 15px; line-height: 1.75; color: var(--fg2); margin: 0 0 14px; }

/* ---- Staff directory ---- */
.directory-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.directory-head h2 { font-family: var(--font-serif); font-size: 34px; font-weight: 800; color: var(--green-forest); margin: 0 0 12px; }
.directory-head p { font-size: 15px; line-height: 1.6; color: var(--fg2); margin: 0; }
.directory-head .rule { width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin: 18px auto 0; }
.desk { margin-bottom: 38px; }
.desk-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.desk-label .di { width: 30px; height: 30px; border-radius: 8px; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.desk-label .dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-forest); white-space: nowrap; }
.desk-label .dline { height: 1px; background: var(--cream-line); flex: 1; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px){ .staff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .staff-grid { grid-template-columns: 1fr; } }
.staff-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px;
  transition: transform .15s ease, box-shadow .15s ease; }
.staff-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,23,42,0.08); }
.staff-card .stop { display: flex; gap: 14px; align-items: center; }
.staff-card .savatar { width: 64px; height: 64px; border-radius: 50%; background: #FAF6EC center / cover;
  display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 18px;
  flex: none; overflow: hidden; border: 2px solid var(--gold-line); }
.staff-card .savatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.staff-card .sname { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--green-forest); line-height: 1.2; }
.staff-card .srole { font-size: 12.5px; color: var(--fg3); margin-top: 3px; }
.staff-card .sbadge { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600;
  color: var(--gold); border: 1px solid var(--gold-line); border-radius: var(--radius-full); padding: 3px 11px; letter-spacing: 0.02em; }

/* ---- Gold button variant ---- */
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-bright); }

/* ---- Services / News cards: gold top accent + serif ---- */
.svc-card { border-top: 3px solid var(--gold-line); }
.svc-card .chip { background: var(--gold-soft); color: var(--gold); }
.svc-card .more { color: var(--green-deep); }
.svc-card:hover .more i { color: var(--green-deep); }
.news-card .ndate, .news-card .read { color: var(--green-deep); }
.news-card h3 { font-family: var(--font-serif); }
.news-featured h3 { color: var(--green-forest); }

/* ---- Home hero gets the diplomatic gradient too ---- */
.home-hero { background: linear-gradient(115deg, var(--green-forest) 0%, var(--green-deep) 55%, var(--green-night) 100%); }
.home-hero .eyebrow { color: var(--gold-on-dark); }
.home-hero h1 { font-family: var(--font-serif); }
.home-hero .flagstripe { display: none; }
.home-hero::after { content: ''; position: absolute; top: 50%; right: -40px; transform: translateY(-50%);
  width: 360px; height: 440px; opacity: 0.07; pointer-events: none; z-index: 1;
  background: url('assets/consulate-seal.png') no-repeat center / contain; }

/* ---- Stat numbers serif ---- */
.stat .num { font-family: var(--font-serif); }
.stat .num .accent { color: var(--gold); }

/* ==========================================================
   LATO HEADINGS (brand) — override the serif on headers
   (the ceremonial pull-quote stays serif italic)
   ========================================================== */
.hero h1, .home-hero h1, .dhero h1,
.section-head h2, .cta-band h2,
.svc-card h3, .news-featured h3, .news-card h3,
.leader h2, .directory-head h2,
.profile-card .pname, .staff-card .sname,
.detail h1, .detail h2, .topic-facts .tf-val {
  font-family: var(--font-sans);
  letter-spacing: -0.015em;
}
.stat .num { font-family: var(--font-sans); }

/* ==========================================================
   DETAIL PAGES (service + Nigeria topic)
   ========================================================== */
.detail-wrap { padding: 48px 0 64px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 24px; }
.back-link:hover { color: var(--green-forest); }
.back-link i { transition: transform .15s ease; }
.back-link:hover i { transform: translateX(-3px); }

.detail-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 32px; align-items: start; }
@media (max-width: 900px){ .detail-grid { grid-template-columns: 1fr; } }

.detail { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 36px; }
.detail .d-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--gold-soft);
  color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.detail h1 { font-size: 32px; font-weight: 900; margin: 0 0 14px; color: var(--green-forest); }
.detail .d-lead { font-size: 17px; line-height: 1.7; color: var(--fg2); margin: 0 0 26px; }
.detail h2.d-sub { font-size: 18px; font-weight: 800; margin: 28px 0 14px; color: var(--fg1);
  padding-left: 12px; border-left: 3px solid var(--green); }
.detail p { font-size: 15px; line-height: 1.8; color: var(--fg2); margin: 0 0 14px; }
.detail .need { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.detail .need li { display: flex; gap: 12px; align-items: flex-start; background: var(--gray-50);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 13px 15px; font-size: 14px; color: var(--fg2); }
.detail .need li i { color: var(--green); margin-top: 3px; }
.detail .steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.detail .steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--fg2); }
.detail .steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* detail sidebar reuses .contact-card / .info-card / facts */
.topic-facts { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px; }
.topic-facts .tf { padding: 12px 0; border-bottom: 1px solid var(--border); }
.topic-facts .tf:last-child { border-bottom: none; padding-bottom: 0; }
.topic-facts .tf:first-child { padding-top: 0; }
.topic-facts .tf-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); }
.topic-facts .tf-val { font-size: 15px; font-weight: 700; color: var(--fg1); margin-top: 3px; }
.topic-facts .tf-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px;
  margin-bottom: 14px; color: var(--green-forest); }
.topic-facts .tf-head i { color: var(--gold); }

/* ---- Overview & History + Milestones timeline ---- */
.overview-hero { margin: 4px 0 22px; padding: 0; position: relative; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: #FAF6EC; }
.overview-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.overview-hero figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
  background: linear-gradient(to top, rgba(15,38,28,0.78), rgba(15,38,28,0));
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
}
.overview-body p { font-size: 15px; line-height: 1.75; color: var(--fg2); margin: 0 0 14px; max-width: 760px; }
.overview-body p:last-child { margin-bottom: 0; }

.milestones-head { margin: 28px 0 18px; padding-top: 22px; border-top: 1px solid var(--border); }
.milestones-head .eyebrow-gold { display: block; margin-bottom: 8px; }
.milestones-head h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 800;
  color: var(--green-forest); letter-spacing: -0.01em; margin: 0; }

.timeline { list-style: none; margin: 6px 0 0; padding: 0 0 4px 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--gold-line), var(--green-tint));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 22px 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 8px; box-shadow: 0 0 0 4px #fff;
}
.tl-item:nth-child(even) .tl-dot { border-color: var(--green); color: var(--green); }
.tl-card {
  background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--gold-line);
  border-radius: var(--radius-md); padding: 14px 18px;
}
.tl-item:nth-child(even) .tl-card { border-left-color: var(--green); }
.tl-year {
  font-family: var(--font-serif); font-size: 22px; font-weight: 800;
  color: var(--green-forest); letter-spacing: -0.01em; line-height: 1; margin-bottom: 6px;
}
.tl-title { font-size: 15px; font-weight: 700; color: var(--fg1); margin-bottom: 6px; }
.tl-desc { font-size: 14px; line-height: 1.65; color: var(--fg2); margin: 0; }

