/* ==========================================================================
   OFFICE OF THE PRESIDENT — REPUBLIC OF NAMIBIA
   Ceremonial, Dignified, Modern Design System
   Colors inspired by the Namibian Flag & Desert Gold:
   - Royal Navy Blue: #00204A / #003580
   - Ceremonial Gold: #C5A059 / #F6E27A
   - Crimson Red: #D21034
   - Savanna Green: #007A33
   - Warm Ivory / Sand: #FAF8F5
   ========================================================================== */

:root {
  --navy-deep: #061428;
  --navy-royal: #002B64;
  --navy-accent: #003580;
  --gold-primary: #C5A059;
  --gold-light: #E8CF96;
  --gold-dark: #9B7732;
  --crimson: #D21034;
  --green-namibia: #007A33;
  --sun-yellow: #FFCE00;
  --bg-ivory: #FAF8F5;
  --bg-sand: #F2EDE4;
  --text-dark: #111827;
  --text-muted: #4B5563;
  --white: #FFFFFF;
  --border-light: rgba(197, 160, 89, 0.28);
  --shadow-lg: 0 20px 45px rgba(6, 20, 40, 0.14);
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Official State Banner */
.state-banner {
  background: var(--navy-deep);
  color: #E5E7EB;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(197, 160, 89, 0.35);
  padding: 0.5rem 0;
}

.banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.banner-left, .banner-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.flag-pill {
  display: inline-flex;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
}

.flag-pill .f-blue { flex: 1; background: #003580; }
.flag-pill .f-red { flex: 1; background: #D21034; }
.flag-pill .f-green { flex: 1; background: #007A33; }

.motto {
  color: var(--gold-light);
  font-weight: 600;
}

.verify-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 20, 40, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold-primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--white);
}

.emblem-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.emblem-svg {
  width: 100%;
  height: 100%;
}

.brand-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  font-weight: 700;
}

.brand-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav a {
  color: #F3F4F6;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.main-nav .nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gold-primary);
  border-radius: 4px;
  color: var(--gold-light);
  font-weight: 600;
}

.main-nav .nav-cta:hover {
  background: var(--gold-primary);
  color: var(--navy-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-primary);
  padding: 0.45rem;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-light);
  margin: 4px 0;
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #0A3878 0%, #061428 68%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-primary);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #003580 0%, #FFFFFF 32%, #D21034 50%, #FFFFFF 68%, #007A33 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(197, 160, 89, 0.14);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--gold-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun-yellow);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  font-weight: 700;
}

.gold-text {
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.12rem;
  color: #D1D5DB;
  max-width: 60ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.65rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold-primary);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.metric-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
}

.metric-lbl {
  font-size: 0.82rem;
  color: #9CA3AF;
}

/* Portrait Card */
.portrait-frame {
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.portrait-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  padding-bottom: 0.65rem;
}

.state-crest-art {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.portrait-caption {
  text-align: center;
  padding-top: 0.9rem;
}

.portrait-caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
}

.portrait-caption span {
  font-size: 0.85rem;
  color: var(--gold-light);
}

/* Verification Strip */
.verify-strip {
  background: var(--bg-sand);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.verify-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.verify-badge {
  background: var(--crimson);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  white-space: nowrap;
}

.verify-inner p {
  margin: 0;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--navy-deep);
  color: var(--white);
}

.section-tinted {
  background: var(--bg-sand);
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-dark .eyebrow {
  color: var(--gold-light);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-dark .section-sub {
  color: #CBD5E1;
}

/* Bio & Timeline */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
}

.bio-card, .timeline-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.bio-card h3, .timeline-card h3 {
  font-family: var(--font-serif);
  margin-top: 0;
  color: var(--navy-royal);
  font-size: 1.4rem;
}

.gold-list {
  padding-left: 1.2rem;
  margin-top: 1.25rem;
}

.gold-list li {
  margin-bottom: 0.65rem;
}

.gold-list li::marker {
  color: var(--gold-dark);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.t-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #F3F4F6;
}

.t-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.t-year {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-dark);
}

.t-item p {
  margin: 0.25rem 0 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 8px;
  padding: 1.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  margin: 0 0 0.65rem;
}

.pillar-card p {
  margin: 0;
  color: #CBD5E1;
  font-size: 0.94rem;
}

/* Press & Filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid #D1D5DB;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--navy-royal);
  color: var(--white);
  border-color: var(--navy-royal);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}

.news-meta .tag {
  background: rgba(0, 53, 128, 0.09);
  color: var(--navy-accent);
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--navy-deep);
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.read-more-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--navy-accent);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  font-size: 0.92rem;
}

.read-more-btn:hover {
  color: var(--gold-dark);
}

/* Executive Cards */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.exec-card {
  background: var(--white);
  border-top: 4px solid var(--gold-primary);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.exec-role {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--green-namibia);
}

.exec-card h3 {
  font-family: var(--font-serif);
  margin: 0.45rem 0 0.75rem;
  color: var(--navy-deep);
}

/* Protocol & Contact */
.protocol-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.c-row {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.c-row strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

.protocol-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.protocol-form h3 {
  font-family: var(--font-serif);
  margin-top: 0;
  color: var(--navy-deep);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold-primary);
  border-color: var(--gold-primary);
}

.full-width {
  width: 100%;
  text-align: center;
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-namibia);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #D1D5DB;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--gold-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand strong {
  display: block;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}

.footer-brand span {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
}

.site-footer h4 {
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.84rem;
  color: #9CA3AF;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 40, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  background: var(--white);
  max-width: 640px;
  width: 100%;
  border-radius: 8px;
  padding: 2.25rem;
  position: relative;
  border-top: 5px solid var(--gold-primary);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -0.4rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .bio-grid,
  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .exec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 2px solid var(--gold-primary);
  }

  .main-nav.open {
    display: flex;
  }

  .pillars-grid,
  .news-grid,
  .exec-grid,
  .footer-grid,
  .form-row,
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
