/* Girls Club & Learning Center Inc — formal institutional theme */

:root {
  --navy: #1e3a6e;
  --navy-dark: #152a4d;
  --navy-light: #2d5a9e;
  --accent: #c45c26;
  --text: #1a2332;
  --text-muted: #5a6578;
  --border: #d8dee8;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--navy-light); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--navy-light);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(30, 58, 110, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  max-width: 280px;
}

.brand img { width: 44px; height: 44px; flex-shrink: 0; }

.site-nav { display: none; gap: 0.25rem; }

.site-nav a {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--navy);
  background: var(--bg-alt);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

.site-header { position: relative; }

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.08));
}

@media (min-width: 900px) {
  .site-nav.is-open {
    position: static;
    flex-direction: row;
    border: none;
    padding: 0;
    box-shadow: none;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero-inner { max-width: 720px; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.hero-org {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9375rem;
  opacity: 0.9;
  line-height: 1.7;
}

.hero-org strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-primary:hover {
  background: var(--bg-alt);
  color: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: #fff;
}

/* Credentials bar */
.credentials-bar {
  background: var(--navy-dark);
  color: #fff;
  padding: 0.9rem 0;
  font-size: 0.8125rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.credentials-bar .divider {
  margin: 0 0.75rem;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .credentials-bar .divider { display: none; }
  .credentials-bar span { display: block; margin: 0.25rem 0; }
}

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

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

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-light);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Mission cards */
.mission-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .mission-grid { grid-template-columns: repeat(3, 1fr); }
}

.mission-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 1.75rem;
  border-radius: var(--radius);
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.mission-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.about-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.about-intro p + p { margin-top: 1rem; }

/* Programs */
.programs-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
}

.program-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
}

.program-card .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.program-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Transparency */
.transparency-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .transparency-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .transparency-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.stat-box span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.transparency-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-left: 4px solid var(--navy);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Leadership */
.leadership-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .leadership-grid { grid-template-columns: repeat(3, 1fr); }
}

.leader-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.leader-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.leader-card .role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-light);
}

/* Support */
.support-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .support-grid { grid-template-columns: repeat(3, 1fr); }
}

.support-card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.support-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.support-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1.2fr; }
}

.org-block {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.org-block .org-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.org-block .org-line {
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.org-block a {
  font-weight: 600;
  color: var(--navy-light);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
}

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

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy-light);
  background: var(--bg);
  outline: none;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.form-message.is-visible { display: block; }

.form-message.success {
  background: #e8f0f4;
  border: 1px solid var(--navy-light);
  color: var(--navy-dark);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer .org-name { color: #fff; }
.site-footer .org-line { color: rgba(255, 255, 255, 0.7); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0;
}

.footer-links button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links button:hover { color: #fff; }

.footer-copy {
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* Dialog */
dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  max-width: 540px;
  width: calc(100% - 2rem);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

dialog::backdrop {
  background: rgba(26, 35, 50, 0.5);
}

.dialog-inner {
  padding: 1.75rem;
  max-height: 75vh;
  overflow-y: auto;
}

.dialog-inner h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.dialog-inner p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.dialog-inner h4 {
  font-size: 0.9375rem;
  color: var(--navy);
  margin: 1rem 0 0.5rem;
}

.dialog-close { margin-top: 0.5rem; }
