/*
Theme Name:       Somalia Consulate DRC
Theme URI:        https://somaliaconsulatedrc.com
Author:           Consulat Honoraire de Somalie en RDC
Author URI:       https://somaliaconsulatedrc.com
Description:      Official website theme for the Honorary Consulate of the Federal Republic of Somalia in the Democratic Republic of the Congo. Bilingual English/French. Elegant navy, gold, and sky-blue palette inspired by the Somali national identity.
Version:          1.0.0
Requires at least: 6.0
Tested up to:     6.7
Requires PHP:     8.0
License:          GNU General Public License v2 or later
License URI:      https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:      somalia-consulate
Tags:             government, multilingual, one-page, custom-colors, custom-logo, full-width-template
*/

/* ── TOKENS ── */
:root {
  --sc-navy:    #0D1B3E;
  --sc-gold:    #B8963E;
  --sc-gold-lt: #D4AF5A;
  --sc-sky:     #4A90C4;
  --sc-sky-lt:  #C8DFF0;
  --sc-white:   #FFFFFF;
  --sc-off:     #F7F9FC;
  --sc-text:    #1A1A2E;
  --sc-muted:   #5A6070;
  --sc-border:  #D8E2EE;
  --sc-shadow:  0 4px 24px rgba(13,27,62,.10);
  --sc-ff-display: 'Cormorant Garamond', Georgia, serif;
  --sc-ff-body:    'Inter', system-ui, sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sc-ff-body);
  color: var(--sc-text);
  background: var(--sc-white);
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── WORDPRESS ALIGNMENT CLASSES ── */
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.alignwide  { max-width: 100%; }
.alignfull  { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }

/* ── SCREEN READER TEXT ── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  background: var(--sc-gold); color: var(--sc-white);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ── LANGUAGE BAR ── */
.sc-lang-bar {
  background: var(--sc-navy);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 32px;
  gap: 4px;
}
.sc-lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.7);
  font-family: var(--sc-ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 4px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all .2s;
}
.sc-lang-btn.active,
.sc-lang-btn:hover { background: var(--sc-gold); border-color: var(--sc-gold); color: var(--sc-white); }

/* ── HEADER / NAV ── */
#site-header {
  background: var(--sc-white);
  border-bottom: 1px solid var(--sc-border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--sc-shadow);
}
.sc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
}
.sc-site-branding { display: flex; align-items: center; gap: 14px; }
.sc-flag {
  width: 42px; height: 28px;
  background: #4A9EDB;
  border: 1px solid var(--sc-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sc-flag svg { width: 22px; height: 22px; }
.sc-site-title {
  font-family: var(--sc-ff-display);
  font-size: 15px; font-weight: 700;
  color: var(--sc-navy); line-height: 1.2;
}
.sc-site-desc {
  font-size: 11px; color: var(--sc-gold);
  font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase;
}

/* Primary Navigation */
#primary-navigation { display: flex; }
#primary-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}
#primary-menu > li > a {
  font-size: 13px; font-weight: 500;
  color: var(--sc-navy); letter-spacing: .04em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  display: block;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
  border-color: var(--sc-gold); color: var(--sc-gold);
}

/* Mobile menu toggle */
.sc-menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  color: var(--sc-navy);
}
.sc-menu-toggle svg { width: 24px; height: 24px; }

/* ── HERO ── */
.sc-hero {
  background: var(--sc-navy);
  position: relative;
  overflow: hidden;
  min-height: 340px;          /* slimmer than before */
  display: flex;
  align-items: stretch;
}

/* Left text column */
.sc-hero-left {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Right: Somali flag panel */
.sc-hero-flag-panel {
  flex: 0 0 38%;
  background: #4A9EDB;        /* Somali sky blue */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* angled left edge */
  clip-path: polygon(28px 0%, 100% 0%, 100% 100%, 0% 100%);
}
/* Subtle star watermark behind the centred star */
.sc-hero-flag-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,.06) 0%, transparent 70%);
}
/* Gold seam between text and flag panel */
.sc-hero-flag-seam {
  position: absolute;
  /* sits just left of the clip-path edge */
  right: calc(38% - 2px);
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--sc-gold) 20%,
    var(--sc-gold-lt) 55%,
    var(--sc-gold) 80%,
    transparent 100%
  );
  z-index: 3;
}

/* The large white star centred in the flag panel */
.sc-flag-star {
  position: relative; z-index: 2;
}

/* Somalia map — faint, inside the flag panel */
.sc-hero-map {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  opacity: .12;
  pointer-events: none;
  z-index: 1;
}

.sc-hero-content {
  position: relative; z-index: 2;
  padding: 44px 52px;
  max-width: 620px;
}
.sc-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--sc-gold); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.sc-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--sc-gold);
}
.sc-hero h1 {
  font-family: var(--sc-ff-display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 700; color: var(--sc-white);
  line-height: 1.08; margin-bottom: 10px;
}
.sc-hero h1 em { font-style: normal; color: var(--sc-gold-lt); }
.sc-hero-rule {
  display: flex; align-items: center;
  gap: 10px; margin: 18px 0 24px;
}
.sc-hero-rule span { display: block; height: 1px; background: var(--sc-gold); flex: 1; }
.sc-hero-rule i { color: var(--sc-gold); font-style: normal; font-size: 8px; }
.sc-hero-sub {
  font-size: 15px; color: rgba(255,255,255,.75);
  line-height: 1.7; max-width: 460px; margin-bottom: 36px;
}
.sc-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.sc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sc-ff-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: .06em; padding: 14px 28px;
  cursor: pointer; border: none;
  transition: background .2s, transform .15s;
}
.sc-btn-primary { background: var(--sc-gold); color: var(--sc-white); }
.sc-btn-primary:hover { background: var(--sc-gold-lt); transform: translateY(-1px); }
.sc-btn-outline {
  background: transparent; color: var(--sc-white);
  border: 1px solid rgba(255,255,255,.4);
}
.sc-btn-outline:hover { border-color: var(--sc-gold); background: rgba(184,150,62,.1); }

/* ── FLAG STRIP ── */
.sc-flag-strip {
  background: var(--sc-sky);
  display: flex; justify-content: center;
  align-items: center; gap: 16px;
  padding: 14px 32px; flex-wrap: wrap;
}
.sc-flag-strip-text {
  color: var(--sc-white); font-size: 12px;
  font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
}
.sc-strip-divider { color: rgba(255,255,255,.5); }

/* ── GENERIC SECTION ── */
.sc-section { padding: 80px 32px; }
.sc-section-inner { max-width: 1080px; margin: 0 auto; }
.sc-section-bg-off { background: var(--sc-off); }
.sc-section-bg-navy { background: var(--sc-navy); }
.sc-section-bg-sky  { background: var(--sc-sky-lt); }

.sc-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--sc-gold); margin-bottom: 10px;
}
.sc-section h2 {
  font-family: var(--sc-ff-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700; color: var(--sc-navy);
  line-height: 1.15; margin-bottom: 20px;
}
.sc-section.sc-section-bg-navy h2 { color: var(--sc-white); }
.sc-lead {
  font-size: 16px; color: var(--sc-muted);
  max-width: 620px; line-height: 1.75; margin-bottom: 52px;
}

/* ── MISSION CARDS ── */
.sc-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}
.sc-mission-card {
  background: var(--sc-white);
  padding: 36px 30px;
  border-top: 3px solid var(--sc-border);
  transition: border-color .2s, background .2s;
}
.sc-section-bg-off .sc-mission-card { background: var(--sc-off); }
.sc-mission-card:hover { border-color: var(--sc-gold); background: var(--sc-white); }
.sc-mission-num {
  font-family: var(--sc-ff-display);
  font-size: 48px; font-weight: 700;
  color: var(--sc-sky-lt); line-height: 1; margin-bottom: 16px;
}
.sc-mission-card h3 {
  font-family: var(--sc-ff-display);
  font-size: 20px; font-weight: 600;
  color: var(--sc-navy); margin-bottom: 10px; line-height: 1.25;
}
.sc-mission-card p { font-size: 14px; color: var(--sc-muted); line-height: 1.7; }

/* ── ABOUT / CONSUL ── */
.sc-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative; z-index: 2;
}
.sc-about-name {
  font-family: var(--sc-ff-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; color: var(--sc-white); margin-bottom: 8px;
}
.sc-about-badge {
  display: inline-block; background: var(--sc-gold);
  color: var(--sc-white); font-size: 11px;
  font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 14px; margin-bottom: 24px;
}
.sc-about-body { font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.8; }
.sc-gold-rule { width: 48px; height: 2px; background: var(--sc-gold); margin: 20px 0; }
.sc-about-section-overlay {
  position: absolute; right: 0; top: 0;
  width: 35%; height: 100%;
  background: linear-gradient(to left, rgba(74,144,196,.12), transparent);
  pointer-events: none;
}

/* Contact list */
.sc-contact-list { display: flex; flex-direction: column; gap: 22px; }
.sc-contact-item { display: flex; align-items: flex-start; gap: 16px; }
.sc-contact-icon {
  width: 42px; height: 42px;
  border: 1px solid rgba(184,150,62,.4);
  display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  color: var(--sc-gold);
}
.sc-contact-icon svg { width: 18px; height: 18px; }
.sc-contact-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--sc-gold); margin-bottom: 3px;
}
.sc-contact-value { font-size: 15px; color: var(--sc-white); line-height: 1.55; }
.sc-contact-value a { color: var(--sc-white); transition: color .2s; }
.sc-contact-value a:hover { color: var(--sc-gold-lt); }

/* ── QUOTE BAND ── */
.sc-quote-band { padding: 60px 32px; text-align: center; }
.sc-quote-inner { max-width: 720px; margin: 0 auto; }
.sc-quote-emblem {
  width: 80px; height: 80px;
  background: var(--sc-sky);
  border: 3px solid var(--sc-gold);
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.sc-quote-emblem svg { width: 50px; height: 50px; }
.sc-blockquote {
  font-family: var(--sc-ff-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400; font-style: italic;
  color: var(--sc-navy); line-height: 1.5;
}
.sc-quote-attr {
  margin-top: 14px; font-size: 12px;
  color: var(--sc-muted); letter-spacing: .1em; text-transform: uppercase;
}

/* ── GOLD DIVIDER ── */
.sc-divider {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px;
}
.sc-divider span { display: block; height: 1px; background: var(--sc-gold); flex: 1; }
.sc-divider i { color: var(--sc-gold); font-style: normal; font-size: 8px; }

/* ── FOOTER ── */
#site-footer {
  background: var(--sc-navy);
  border-top: 3px solid var(--sc-gold);
}
.sc-footer-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 56px 32px 32px;
}
.sc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.sc-footer-brand-name {
  font-family: var(--sc-ff-display);
  font-size: 22px; font-weight: 700;
  color: var(--sc-white); margin-bottom: 4px;
}
.sc-footer-brand-sub {
  font-size: 12px; color: var(--sc-gold);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.sc-footer-desc { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.75; }
.sc-footer-col-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--sc-gold); margin-bottom: 18px;
}
.sc-footer-links { display: flex; flex-direction: column; gap: 10px; }
.sc-footer-links a {
  font-size: 13px; color: rgba(255,255,255,.55);
  transition: color .2s;
}
.sc-footer-links a:hover { color: var(--sc-gold-lt); }
.sc-footer-address {
  font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7;
}
.sc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.35);
}

/* ── WORDPRESS PAGE/POST CONTENT ── */
.entry-content {
  max-width: 760px; margin: 60px auto;
  padding: 0 32px;
  font-size: 16px; line-height: 1.75; color: var(--sc-text);
}
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--sc-ff-display);
  color: var(--sc-navy); margin: 1.5em 0 .6em;
}
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content a { color: var(--sc-sky); text-decoration: underline; }
.entry-content ul, .entry-content ol {
  padding-left: 1.5em; margin-bottom: 1.2em;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  border-left: 3px solid var(--sc-gold);
  padding-left: 20px; margin: 1.5em 0;
  font-family: var(--sc-ff-display);
  font-size: 20px; font-style: italic; color: var(--sc-navy);
}
.entry-content img { border-radius: 2px; margin: 1.5em 0; }

/* ── LANGUAGE TOGGLE ── */
[data-lang="fr"] { display: none; }
html[lang="fr"] [data-lang="en"] { display: none; }
html[lang="fr"] [data-lang="fr"] { display: revert; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sc-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .sc-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #primary-navigation { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--sc-white); border-bottom: 1px solid var(--sc-border); box-shadow: var(--sc-shadow); padding: 16px 24px; }
  #primary-navigation.is-open { display: flex; flex-direction: column; }
  #primary-menu { flex-direction: column; gap: 0; }
  #primary-menu > li > a { padding: 12px 0; border-bottom: 1px solid var(--sc-border); }
  #primary-menu > li:last-child > a { border-bottom: none; }
  .sc-menu-toggle { display: flex; }
  /* Hero: stack vertically on mobile — flag panel becomes a slim banner at top */
  .sc-hero { flex-direction: column; min-height: unset; }
  .sc-hero-left { order: 2; }
  .sc-hero-flag-panel {
    order: 1;
    flex: 0 0 120px;
    clip-path: none;
    width: 100%;
  }
  .sc-hero-flag-seam { display: none; }
  .sc-hero-map { display: none; }
  .sc-hero-content { padding: 36px 20px; }
  .sc-section { padding: 52px 20px; }
  .sc-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sc-footer-bottom { flex-direction: column; text-align: center; }
  .sc-lang-bar { padding: 6px 20px; }
  .sc-header-inner { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
