/* ============================================
   Gifted Dreamers — styles.css
   ============================================ */

/* --- Custom Properties --- */
:root {
  --primary-dark: #0A5A7D;
  --primary: #0D729C;
  --primary-light: #108BC7;
  --accent-red: #A22131;
  --surface: #f8f9fa;
  --bg: #ffffff;
  --text: #1a1a1a;
  --body-text: #333333;
  --muted: #555555;
}

/* --- Font Faces --- */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
}

ul, ol {
  list-style: none;
  padding: 0;
}

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

/* --- Base Typography --- */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.hero-headline {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

small, .text-small {
  font-size: 0.85rem;
}

/* --- Links --- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:visited {
  color: var(--primary-dark);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

a:focus {
  color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Buttons --- */
.btn-primary,
.btn-primary-dark,
.btn-outline {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
  line-height: 1.6;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  text-decoration: none;
}
.btn-primary:visited {
  color: #ffffff;
}

.btn-primary-dark {
  background-color: #ffffff;
  color: var(--primary-dark);
}
.btn-primary-dark:hover {
  background-color: #e8e8e8;
  color: var(--primary-dark);
  text-decoration: none;
}
.btn-primary-dark:visited {
  color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
}
.btn-outline:hover {
  background-color: #ffffff;
  color: var(--primary-dark);
  text-decoration: none;
}
.btn-outline:visited {
  color: #ffffff;
}
.btn-outline:hover:visited {
  color: var(--primary-dark);
}

/* --- Layout --- */
.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 4rem 0;
}

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

/* --- Skip Nav --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 0 0 4px 4px;
}
.skip-nav:focus {
  top: 0;
  outline: 2px solid #ffffff;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  background-color: var(--primary-dark);
  color: #ffffff;
  z-index: 100;
  padding: 0 1.5rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  min-height: 64px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

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

.nav-links a {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.25rem 0;
}
.nav-links a:visited {
  color: #ffffff;
}
.nav-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}
.nav-links a:focus {
  color: #ffffff;
  outline-color: #ffffff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero h1, .hero h2, .hero p {
  color: #ffffff;
}

.hero-subhead {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0.75rem;
  opacity: 0.9;
}

.hero-body {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.92;
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  text-align: center;
  padding: 3rem 1.5rem;
}

.page-hero h1, .page-hero p {
  color: #ffffff;
}

/* --- Doorway Grid --- */
.doorway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* --- Cards --- */
.doorway-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 3px solid var(--primary);
  transition: box-shadow 0.2s ease;
}

.doorway-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.doorway-card.accent-red {
  border-left-color: var(--accent-red);
}

.doorway-icon {
  margin-bottom: 0.75rem;
  border-radius: 10px;
}

.doorway-card h3 {
  margin-bottom: 0.5rem;
}

.doorway-card p {
  margin-bottom: 0.75rem;
}

.doorway-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

.path-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.path-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.path-card h3 {
  margin-bottom: 0.5rem;
}

.path-card p {
  margin-bottom: 0.75rem;
}

.path-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Meadows Layers --- */
.meadows-layer {
  background-color: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.meadows-layer strong {
  flex-shrink: 0;
  min-width: 6rem;
  color: var(--primary-dark);
  font-weight: 700;
}

/* --- Thesis / Blockquote --- */
.thesis-section blockquote {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.thesis-section blockquote p {
  margin-bottom: 1rem;
}

/* --- Logo Cloud --- */
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.logo-cloud img {
  height: 32px;
  width: auto;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.2s ease;
}

.logo-cloud img:hover {
  filter: none;
}

/* --- GRUHP Callout --- */
.gruhp-section {
  background-color: var(--accent-red);
  color: #ffffff;
  text-align: center;
  padding: 4rem 1.5rem;
}

.gruhp-section h2, .gruhp-section p {
  color: #ffffff;
}

.gruhp-section p {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.gruhp-section .btn-primary-dark {
  margin-top: 1rem;
}

/* --- Doorway Diagram --- */
.doorway-diagram {
  display: none;
  margin: 0 auto 2rem;
  max-width: 500px;
}

/* --- Get Involved Grid --- */
.involve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  display: block;
  padding: 0.2rem 0;
}
.footer-col a:visited {
  color: rgba(255, 255, 255, 0.8);
}
.footer-col a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.social-links img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.social-links a:hover img {
  opacity: 1;
}

.footer-bottom {
  max-width: 72rem;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a:hover {
  color: #ffffff;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 150;
  font-size: 0.9rem;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner button {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.cookie-btn-accept {
  background-color: var(--primary);
  color: #ffffff;
}
.cookie-btn-accept:hover {
  background-color: var(--primary-dark);
}

.cookie-btn-decline {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cookie-btn-decline:hover {
  border-color: #ffffff;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.section-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-intro.text-center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Responsive: Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .doorway-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .involve-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doorway-diagram {
    display: block;
  }
}

/* ============================================
   Responsive: Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .doorway-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .involve-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-headline {
    font-size: 3rem;
  }
}

/* ============================================
   Responsive: Mobile (<768px)
   ============================================ */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--primary-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 99;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

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

  body.nav-open .nav-toggle {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 101;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .meadows-layer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-primary,
  .btn-primary-dark,
  .btn-outline {
    min-height: 48px;
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn-primary-dark,
  .hero-ctas .btn-outline {
    width: auto;
    min-width: 200px;
  }
}

/* ============================================
   About Page — Leadership & Principles
   ============================================ */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.leader-card {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.leader-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.leader-placeholder {
  width: 100%;
  height: 250px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.leader-info {
  padding: 1.5rem;
}

.leader-info h3 {
  margin-bottom: 0.25rem;
}

.leader-title {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.principle {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.principle:last-child {
  border-bottom: none;
}

.principle strong {
  color: var(--text);
}

.vision-list {
  list-style: none;
  padding: 0;
}

.vision-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.vision-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.legal-list {
  list-style: none;
  padding: 0;
  color: var(--body-text);
}

.legal-list li {
  padding: 0.25rem 0;
}

/* Repo table */
.table-wrap {
  overflow-x: auto;
}

.repo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.repo-table th {
  background: var(--primary-dark);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.repo-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.repo-table tr:nth-child(even) {
  background: var(--surface);
}

.repo-table a {
  color: var(--primary);
}

/* ============================================
   Contact Page — Form
   ============================================ */
.contact-wrap {
  max-width: 40rem;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: Inter, system-ui, sans-serif;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13, 114, 156, 0.2);
}

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

.contact-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  color: var(--body-text);
}

.contact-info a {
  color: var(--primary);
}

/* Privacy/Terms — content width */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ============================================
   Print
   ============================================ */
@media print {
  .site-nav,
  .site-footer,
  .cookie-banner {
    display: none;
  }
}
