/* ============================================
   Iraqi Student Association — Brand Stylesheet
   Navy #1B2A41 · Gold #C08A3E · Cream #F7F1E4
   Ink #2B241C · River #2E76B6 (accent only)
   ============================================ */

:root {
  --navy: #1B2A41;
  --navy-light: #253A56;
  --gold: #C08A3E;
  --gold-dark: #A0722F;
  --cream: #F7F1E4;
  --ink: #2B241C;
  --river: #2E76B6;
  --river-light: #7BAEDD;

  --font-display: 'Marcellus', serif;
  --font-body: 'Work Sans', sans-serif;

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--river); }

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

.gold-rule {
  width: 64px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 18px 0;
}

.gold-rule--center {
  margin: 18px auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Diamond ring motif ----------
   Echoes the gold diamonds in the seal's ring band. Used as a thin
   signature strip so the seal's pattern language shows up in the
   page chrome, not just the logo mark itself. */

.diamond-strip {
  height: 14px;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14'%3E%3Crect x='14' y='1' width='8' height='8' fill='%23C08A3E' transform='rotate(45 18 5)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand span {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: 20px;
  padding: 8px 18px !important;
  border-bottom: none !important;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.nav-cta:hover {
  border-color: transparent !important;
  background: var(--gold-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    border-top: 1px solid rgba(247, 241, 228, 0.15);
  }

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

  .nav-links a { display: block; padding: 12px 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--cream);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--navy);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-whatsapp {
  background: #25D366;
  color: #06210F;
}

.btn-whatsapp:hover { background: #1FB855; }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 { color: var(--cream); }

.hero img.seal {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 0 0 4px rgba(192, 138, 62, 0.25);
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: rgba(247, 241, 228, 0.85);
}

.hero .btn-row { justify-content: center; }

/* Twin-river accent, echoing the seal's wavy lines under the ziggurat —
   river blue stays a thin line here, never a large fill, per brand rules. */
.hero-rivers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  line-height: 0;
}

.hero-rivers svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.section-alt {
  background: var(--navy);
  color: var(--cream);
}

.section-alt h2 { color: var(--cream); }

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar h3 { color: inherit; }

.pillar .gold-rule { margin-left: 0; }

.section-alt .pillar { text-align: left; }

/* ---------- Cards (events) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid rgba(43, 36, 28, 0.1);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(27, 42, 65, 0.1);
}

.card .eyebrow { display: block; margin-bottom: 8px; }

.card h3 { margin-bottom: 4px; }

.card .meta {
  font-size: 0.9rem;
  color: rgba(43, 36, 28, 0.65);
  margin-bottom: 12px;
}

/* ---------- Cards (newsletter issues) ---------- */

.issue-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.issue-number {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .issue-card { flex-direction: column; }
}

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  border-radius: 6px;
  padding: 40px;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(43, 36, 28, 0.1);
  border-top: 3px solid var(--gold);
}

.field {
  margin-bottom: 20px;
  text-align: left;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(43, 36, 28, 0.25);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field-checkbox input { margin-top: 4px; }

.form-note {
  font-size: 0.85rem;
  color: rgba(43, 36, 28, 0.6);
  margin-top: 16px;
}

/* ---------- Contact info ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact-list li {
  margin-bottom: 16px;
}

.contact-list .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(247, 241, 228, 0.7);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer .social {
  margin-bottom: 12px;
}

.site-footer .social a {
  margin: 0 8px;
}
