/* ============================================
   Kurdistan Partnership — Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Caladea:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --black:      #080808;
  --dark:       #111111;
  --dark-2:     #1a1a1a;
  --dark-3:     #222222;
  --gold:       #F6BF2D;
  --gold-light: #f8cc57;
  --white:      #f4f2ee;
  --gray:       #999999;
  --gray-light: #cccccc;
  --green:      #007A3D;
  --red:        #CE1126;
  --nav-height: 68px;
  --max-width:  1100px;
  --radius:     8px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Caladea', serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { color: var(--gray-light); }

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

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-sm {
  padding: 48px 0;
}
.text-center { text-align: center; }

/* ---- Divider ---- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 32px;
  border-radius: 2px;
}
.divider-left {
  margin-left: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1e1e1e;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}
.nav-logo {
  font-family: 'Caladea', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-right: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-flag {
  display: flex;
  flex-direction: column;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-flag span {
  flex: 1;
}
.nav-flag .f-red   { background: var(--red); }
.nav-flag .f-white { background: #f4f2ee; position: relative; display: flex; align-items: center; justify-content: center; }
.nav-flag .f-green { background: var(--green); }
.nav-flag .f-white::after {
  content: '✦';
  color: var(--gold);
  font-size: 7px;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-light);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.6;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--dark-2);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  min-width: 180px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.dropdown-menu a {
  display: block;
  padding: 11px 16px;
  font-size: 0.83rem;
  border-bottom: 1px solid #2a2a2a;
  color: var(--gray-light) !important;
  background: transparent !important;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(201, 162, 39, 0.1) !important; color: var(--gold) !important; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown > a::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-light);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid #1e1e1e;
  padding: 48px 0 32px;
  text-align: center;
}
.footer-logo {
  font-family: 'Caladea', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--gray);
  max-width: 400px;
  margin: 0 auto 28px;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--gray);
  padding: 4px 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-flag {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}
.footer-flag span {
  width: 20px;
  height: 4px;
  border-radius: 2px;
}
.footer-flag .f-red   { background: var(--red); }
.footer-flag .f-white { background: #555; }
.footer-flag .f-green { background: var(--green); }
.footer-copy {
  font-size: 0.78rem;
  color: #444;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 64px;
  background: var(--dark);
  border-bottom: 1px solid #1e1e1e;
  text-align: center;
}
.page-hero h1 {
  color: var(--gold);
  margin-bottom: 16px;
}
.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--dark-2);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 32px;
}
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ============================================
   LISTS (expectations style)
   ============================================ */
.styled-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.styled-list li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid #1e1e1e;
  color: var(--gray-light);
  position: relative;
  font-size: 0.98rem;
}
.styled-list li:last-child { border-bottom: none; }
.styled-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================
   ACCENT STRIP
   ============================================ */
.flag-strip {
  height: 4px;
  display: flex;
}
.flag-strip .s-red   { flex: 1; background: #333; }
.flag-strip .s-white { flex: 1; background: #333; }
.flag-strip .s-green { flex: 1; background: #333; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--dark);
    border-bottom: 1px solid #1e1e1e;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 0.95rem; }
  .nav-dropdown > a::after { float: right; }
  .dropdown-menu {
    display: none !important;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #0d0d0d;
    margin-top: 2px;
  }
  .nav-dropdown.open .dropdown-menu { display: block !important; }
  .nav-toggle { display: flex; }

  .section { padding: 56px 0; }
  .card { padding: 24px; }
}
