/* ============================================================
   FRIENDS OF TEACH FOR BULGARIA — styles.css
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Core brand — aligned with Teach for Bulgaria palette */
  --color-navy:       #1a2e4a;
  --color-navy-dark:  #0f1e30;
  --color-yellow:     #f5c800;   /* primary accent — bright ZVC yellow */
  --color-yellow-dark:#d4ac00;
  --color-teal:       #1b7a8a;   /* secondary action color */
  --color-teal-light: #1f96aa;
  --color-red:        #c0392b;   /* placeholder warning color only */

  /* Backgrounds */
  --color-warm-bg:    #fffdf5;   /* very light warm white */
  --color-light-bg:   #f5f7fa;
  --color-white:      #ffffff;

  /* Text */
  --color-text:       #1c2b3a;
  --color-text-muted: #556677;
  --color-border:     #dde4ed;

  /* Fonts */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-ui:      system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.12);

  --max-width:    1100px;
  --section-pad:  clamp(3.5rem, 7vw, 5.5rem);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
a:hover, a:focus-visible { color: var(--color-teal-light); }
a:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul[role="list"], ol[role="list"] { padding-left: 0; list-style: none; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: var(--section-pad); }
.section--white  { background: var(--color-white); }
.section--light  { background: var(--color-light-bg); }
.section--warm   { background: var(--color-warm-bg); }
.section--dark   { background: var(--color-navy-dark); color: var(--color-white); }

/* ---------- TYPOGRAPHY ---------- */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1.1rem;
  line-height: 1.2;
}
.section-heading--light { color: var(--color-white); }

/* Teal underline accent on section headings */
.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-teal);
  border-radius: 2px;
  margin-top: .55rem;
}
.section-heading--light::after { background: var(--color-yellow); }
.section-heading--no-bar::after { display: none; }

.section-intro {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.prose { max-width: 720px; margin-bottom: 1.25rem; }
.prose--wide { max-width: 840px; }

.learn-more-link { margin-top: 1.75rem; }
.learn-more-link a {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-teal);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.learn-more-link a:hover { text-decoration: underline; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .17s, color .17s, border-color .17s, box-shadow .17s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}

/* Primary: yellow fill, dark text — matches ZVC brand */
.btn-primary {
  background: var(--color-yellow);
  color: var(--color-navy-dark);
  border-color: var(--color-yellow);
}
.btn-primary:hover {
  background: var(--color-yellow-dark);
  border-color: var(--color-yellow-dark);
  color: var(--color-navy-dark);
  box-shadow: var(--shadow-md);
}

/* Secondary: outlined navy */
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Outline light (dark backgrounds) */
.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-teal);
  color: var(--color-white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy-dark);
  border-bottom: 3px solid var(--color-teal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding-block: .6rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: clamp(.85rem, 1.8vw, 1rem);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  line-height: 1.25;
  flex-shrink: 0;
  max-width: 230px;
}
.site-logo:hover { color: var(--color-yellow); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: block;
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-list a:hover {
  color: var(--color-yellow);
  background: rgba(255,255,255,.07);
}

.nav-cta { font-size: .88rem; padding: .5rem 1.1rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  background: var(--color-navy-dark);
  color: var(--color-white);
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}

/* Subtle teal stripe at top edge */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-teal);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 640px; }

#hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.4rem;
}

/* Yellow highlight on key word */
#hero-heading em {
  font-style: normal;
  color: var(--color-yellow);
}

.hero-body {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2.25rem;
  line-height: 1.75;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* Decorative accent */
.hero-accent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: .18;
  flex-shrink: 0;
}
.accent-block { border-radius: var(--radius-md); background: var(--color-yellow); }
.accent-block--1 { width: 80px; height: 80px; }
.accent-block--2 { width: 56px; height: 56px; align-self: flex-end; background: var(--color-teal); }
.accent-block--3 { width: 100px; height: 36px; }

/* ---------- WHO WE ARE ---------- */
#who-we-are .prose p + p { margin-top: .9rem; }

/* ---------- WHY IT MATTERS ---------- */
.invest-block { margin-block: 2rem; }

.invest-heading {
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.invest-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.invest-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.05rem;
  color: var(--color-text);
  font-weight: 500;
}
.invest-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
}

/* ---------- STAT CARDS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--color-navy-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-yellow);
  position: relative;
  overflow: hidden;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-yellow);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ---------- STORIES ---------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.story-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-teal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-card-header {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}

.story-initial {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-navy-dark);
  color: var(--color-yellow);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: .2rem;
}
.story-subtitle {
  font-size: .88rem;
  color: var(--color-teal);
  font-style: italic;
}
.story-body {
  font-size: .94rem;
  color: var(--color-text);
  line-height: 1.75;
}

/* ---------- CONTACT / INFO CARD ---------- */
.info-card-wrapper { margin-top: 1.75rem; }

.info-card {
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-teal);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 760px;
  box-shadow: var(--shadow-sm);
}

.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.info-row--full { grid-column: 1 / -1; }

.info-list dt {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--color-text-muted);
}
.info-list dd {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

.placeholder { color: var(--color-red); font-style: normal; }
a.placeholder { color: var(--color-red); }
a.placeholder:hover { color: #922b21; }

.tax-note {
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--color-text-muted);
  max-width: 760px;
  padding: .85rem 1.1rem .85rem 1rem;
  background: #f0f8fa;
  border-left: 4px solid var(--color-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- GET UPDATES ---------- */
.section--dark .section-heading { color: var(--color-white); }
.updates-inner { text-align: center; }
.updates-body {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.78);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.75rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: .98rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .15s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-teal);
  flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: var(--color-light-bg); }

.faq-answer {
  padding: .5rem 1.25rem 1.1rem;
  font-size: .95rem;
  color: var(--color-text);
  line-height: 1.75;
  border-top: 1px solid var(--color-border);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,.7);
  border-top: 4px solid var(--color-teal);
  padding-block: 2.75rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-org-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: .4rem;
}
.footer-status, .footer-ein {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
}
.footer-ein { margin-top: .15rem; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--color-yellow); text-decoration: none; }
.footer-links a.placeholder { color: rgba(192,57,43,.75); }
.footer-links a.placeholder:hover { color: var(--color-red); }

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.38);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-navy-dark);
    border-bottom: 3px solid var(--color-teal);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .4rem;
    z-index: 99;
  }
  .primary-nav.is-open { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: .7rem .75rem; }
  .nav-cta { text-align: center; margin-top: .35rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-accent { display: none; }

  .info-list { grid-template-columns: 1fr; }
  .info-row--full { grid-column: 1; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .nav-toggle, .hero-accent, .hero-actions,
  .updates-inner .btn, .site-footer { display: none; }
  .section { padding-block: 1.5rem; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; }
}
