/* =========================================
  Future Minds Academy Iraq
  styles.css
  ========================================= */

/* EDIT HERE: Brand colors + spacing in :root */
:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.10);

  --primary: #0ea5a3; /* teal */
  --primary-ink: #062b2b;
  --accent: #2563eb;  /* blue accent */
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);

  --radius: 14px;
  --container: 1120px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;

  --focus: 3px solid rgba(37, 99, 235, 0.45);
}

/* Base */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; } /* fallback; JS also handles focus */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

/* Prevent background scroll when mobile menu is open */
.no-scroll { overflow: hidden; }




img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible { outline: var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 160ms ease;
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}


/* Logo circle */
.brand-logo{
  width: 68px;
  height: 78px;
  max-width: none;     /* important so it ignores global max-width:100% */
  object-fit: contain; /* keeps the full logo visible */
  display: block;
  flex: 0 0 auto;
}

/* Nav */
.site-nav { position: relative; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.hamburger {
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: inline-block;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 49;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 50;
}

.nav-menu.is-open { display: block; }

.nav-menu li { border-top: 1px solid var(--border); }
.nav-menu li:first-child { border-top: none; }

.nav-link,
.nav-cta {
  display: block;
  padding: 14px 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.nav-link:hover { background: rgba(2, 6, 23, 0.03); text-decoration: none; }

.nav-link.is-active {
  color: var(--primary);
  background: rgba(14, 165, 163, 0.08);
}

.nav-cta-li { padding: 12px; border-top: 1px solid var(--border); }

/* Desktop nav */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }

  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    gap: 6px;
    align-items: center;
  }
  .nav-menu li { border: none; }
  .nav-link {
    padding: 10px 10px;
    border-radius: 10px;
  }
  .nav-link:hover { background: rgba(2, 6, 23, 0.04); }
  .nav-cta-li { padding: 0; }
}

/* Sections */
.section {
  padding: var(--space-7) 0;
}
.section-muted {
  background: linear-gradient(to bottom, rgba(14, 165, 163, 0.06), rgba(37, 99, 235, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Optional: actions row under sections (index programs CTA) */
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-4);
}




.section-head {
  margin-bottom: var(--space-5);
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.2px;
}
.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

/* Cards / UI */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.03);
  padding: var(--space-4);
}

.callout {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
}
.callout.subtle {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(2, 6, 23, 0.03);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: rgba(0,0,0,0.05);
}
.btn-primary:hover { filter: brightness(0.97); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(2, 6, 23, 0.03); }

.note { color: var(--muted); margin-top: var(--space-3); }

/* Hero */
.hero { padding-top: var(--space-6); }
.hero-grid {
  display: grid;
  gap: var(--space-5);
}
.hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.6px;
}
.tagline {
  margin: 0 0 var(--space-3);
  color: var(--primary-ink);
  font-weight: 700;
}
.lead { margin: 0 0 var(--space-4); color: var(--muted); max-width: 70ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-4);
}

.focus-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.focus-list li { margin: 8px 0; }

.hero-panel {
  display: grid;
  gap: 12px;
}
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}
.panel-icon { font-size: 22px; }
.panel-title { margin: 10px 0 6px; font-size: 16px; }
.panel-text { margin: 0; color: var(--muted); }

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

/* Two-column block */
.two-col {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Lists */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}
.checklist li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  line-height: 1.2;
  margin-top: 2px;
}

.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li { margin: 8px 0; }

/* Programs grid */
.grid { display: grid; gap: var(--space-4); }
.programs-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
}
.program-card h3 { margin: 8px 0 0; }
.program-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(14, 165, 163, 0.10);
  color: var(--primary);
  font-size: 20px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.timeline-badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.10);
  color: var(--accent);
  font-weight: 900;
}
.timeline-body h3 { margin: 2px 0 8px; }
.timeline-body p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.contact-list {
  margin: 0;
}
.contact-list > div { margin: 12px 0; }
.contact-list dt { font-weight: 800; }
.contact-list dd { margin: 4px 0 0; color: var(--muted); }
.contact-list a { color: var(--accent); }

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
label { font-weight: 700; }
input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.field-error {
  min-height: 18px;
  color: #b91c1c;
}

/* Footer */
.site-footer {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.footer-inner { display: grid; gap: 14px; }
.footer-disclaimer { margin: 0; color: var(--muted); max-width: 90ch; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}
/* Back to top – make it look like a button */
.back-to-top{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(37, 99, 235, 0.08); /* soft accent */
  border: 1px solid rgba(37, 99, 235, 0.18);

  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.2px;

  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.back-to-top:hover{
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
  text-decoration: none;
}

.back-to-top:active{
  transform: translateY(0);
}

.back-to-top:focus-visible{
  outline: var(--focus);
  outline-offset: 3px;
}

/* Toast */
.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 100;
}
.toast {
  width: min(420px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px;
}
.toast-title { margin: 0 0 4px; font-weight: 900; }
.toast-text { margin: 0; color: var(--muted); }

/* Reveal animation (optional, lightweight) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; transform: none; opacity: 1; }
}



/* =========================================
  Future Minds Academy Iraq
  styles.css — ADDITIONS for subpages (Programs hub)
  APPEND THIS BLOCK
  ========================================= */

/* Page hero small kicker */
.page-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.18px;
  text-transform: uppercase;
  font-size: 12px;
}


/* Breadcrumbs (subpages) */
.breadcrumbs { margin-bottom: var(--space-3); }
.breadcrumbs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.breadcrumbs-list li::after {
  content: "›";
  margin-left: 8px;
  color: rgba(15, 23, 42, 0.35);
}
.breadcrumbs-list li:last-child::after { content: ""; margin: 0; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; }



.page-hero .hero-content h1 {
  margin-top: 0;
}

/* Muted helper (used in programs hub) */
.muted { color: var(--muted); }

/* Programs hub grid */
.programs-hub-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .programs-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .programs-hub-grid { grid-template-columns: repeat(3, 1fr); }
}
.program-hub-card h3 { margin: 10px 0 8px; }

/* Icon badge for program cards */
.program-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(14, 165, 163, 0.10);
  color: var(--primary);
}

/* Delivery grid */
.delivery-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .delivery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* FAQ Accordion */
.faq {
  display: grid;
  gap: var(--space-3);
}
.faq-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}



.faq-q { margin: 0; }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.faq-btn:hover { background: rgba(2, 6, 23, 0.03); }
.faq-btn:focus-visible { outline: var(--focus); outline-offset: 3px; }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  flex: 0 0 auto;
}

.faq-a {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}
.faq-item.is-open .faq-icon { font-weight: 900; }
.faq-item.is-open .faq-btn { color: var(--primary-ink); }




/* CTA banner */
.cta-banner {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid rgba(14, 165, 163, 0.20);
  background: linear-gradient(135deg, rgba(14, 165, 163, 0.10), rgba(37, 99, 235, 0.06));
}
@media (min-width: 900px) {
  .cta-banner {
    grid-template-columns: 1.4fr 0.8fr;
  }
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}



/* =========================================
  styles.css — ADDITIONS for apply.html
  APPEND THIS BLOCK
  ========================================= */

.req { color: #b91c1c; font-weight: 900; }

.apply-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 980px) {
  .apply-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.two-col-mini {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .two-col-mini { grid-template-columns: 1fr 1fr; }
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
}
.check-row input { margin-top: 3px; }
.check-row { cursor: pointer; }
.check-row span { line-height: 1.4; }


.field-help {
  display: block;
  margin-top: -6px;
  font-size: 13px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-4);
}

/* Compact timeline in sidebar */
.timeline-compact .timeline-item {
  padding: var(--space-3);
}
.timeline-compact .timeline-body h3 {
  font-size: 15px;
  margin: 2px 0 6px;
}

/* Quick links */
.quick-links-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
}
.quick-link-card {
  display: block;
  text-decoration: none;
}
.quick-link-card:hover { box-shadow: var(--shadow); }
.quick-link-card .btn { margin-top: 12px; width: fit-content; }

.quick-link-card:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
  text-decoration: none;
}


/* =========================================
  styles.css — ADDITIONS for legal.html
  APPEND THIS BLOCK
  ========================================= */

.legal-meta {
  margin-top: 14px;
  font-size: 13px;
}
.legal-dot { margin: 0 8px; color: rgba(15, 23, 42, 0.35); }

.legal-toc { margin-top: 18px; }
.legal-toc-title { margin: 0 0 10px; font-size: 16px; }
.legal-toc-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.legal-toc-list li { margin: 8px 0; }
.legal-toc-list a { color: var(--accent); font-weight: 800; }
.legal-toc-list a:hover { text-decoration: underline; }

.legal-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .legal-grid { grid-template-columns: 1fr 1fr; }
}
.legal-section h3 { margin-top: 0; }

/* =========================================
   Contact card polish (scoped to #contact)
   No class/id changes required
   ========================================= */

#contact .contact-list a {
  font-weight: 700;
  color: var(--accent);
}

#contact .contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;              /* more breathing room */
  margin-top: 16px;
  margin-bottom: 10px;
}


#contact .social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.03);

  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

#contact .social-link:hover {
  transform: translateY(-2px);
  background: rgba(14, 165, 163, 0.08);
  box-shadow: var(--shadow);
}

#contact .social-icon {
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
}

/* Make the existing note look more "designed" without changing its HTML */
#contact .callout.subtle[role="note"] {
  margin-top: 16px;
  border-style: dashed;
  background: linear-gradient(
    135deg,
    rgba(2, 6, 23, 0.03),
    rgba(2, 6, 23, 0.01)
  );
}

#contact .callout.subtle[role="note"] strong {
  color: var(--text);
}
