/* Tech4Kidz.ca  -  shared styles */
:root {
  --green: #1B4332;
  --green-mid: #2D6A4F;
  --green-soft: #40916C;
  --green-pale: #D8F3DC;
  --orange: #E87A3A;
  --orange-hover: #C96A30;
  --orange-soft: #FCE8DC;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #4A5568;
  --border: #E2D9CE;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--orange); }
ul { list-style: none; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/*  -  -  Header  -  -  */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.1em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--white); opacity: 0.92; }
.logo-mark {
  width: 36px;
  height: 32px;
  flex-shrink: 0;
}
.logo .four, .brand .four { color: #E07A3D; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
}
.nav a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
.nav a.active { color: #fff; border-bottom-color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.3;
}
.btn:active { transform: scale(0.98); }
.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-orange:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green-mid);
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--green);
  border-color: #fff;
}
.btn-white:hover { background: var(--cream); color: var(--green); }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

.nav .btn-orange { margin-left: 0.35rem; }

/*  -  -  Hero  -  -  */
.hero {
  padding: 3.5rem 0 3rem;
  background: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.2;
  color: var(--green);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  font-weight: 800;
}
.hero .lede {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-card {
  background: linear-gradient(145deg, var(--green) 0%, var(--green-mid) 100%);
  border-radius: 20px;
  padding: 2.25rem 1.75rem 1.85rem;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero-card .laptop {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 220px;
}
.hero-card .screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0f2a1f;
  border-radius: 10px 10px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  border: 3px solid #1a3d2e;
  padding: 0.85rem 0.75rem;
}
.hero-card .base {
  width: 112%;
  height: 10px;
  margin-top: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.2));
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.hero-card .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.hero-card .brand-mark {
  width: 44px;
  height: 40px;
}
.hero-card .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.08em;
  line-height: 1;
  white-space: nowrap;
}
.hero-card .brand-name .tech { color: #fff; }
.hero-card .brand-name .four { color: #E07A3D; }
.hero-card .brand-name .kidz { color: #FFE8C8; }
.hero-card .brand-heart {
  font-size: 1.35rem;
  color: var(--orange);
  line-height: 1;
  margin-top: 0.1rem;
}
.hero-card p {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 15rem;
  margin-top: 0.15rem;
}

.page-hero {
  padding: 2.75rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  font-weight: 800;
  line-height: 1.22;
}
.page-hero .lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

/*  -  -  Sections  -  -  */
.section { padding: 3.25rem 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-soft { background: var(--cream-dark); }

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  font-weight: 750;
  line-height: 1.25;
}
.section-head p { color: var(--text-muted); }

/*  -  -  Stats  -  -  */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow);
}
.stat-card .num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.stat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.sources {
  margin-top: 1.15rem;
  font-size: 0.8rem;
  color: #718096;
}

/*  -  -  Steps  -  -  */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  font-weight: 750;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.step h3 {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.step p { font-size: 0.92rem; color: var(--text-muted); }

/*  -  -  Data care / two-col  -  -  */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.care-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.care-box h3 {
  color: var(--green);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  font-weight: 750;
}
.care-box p { color: var(--text-muted); margin-bottom: 0.85rem; font-size: 0.98rem; }
.care-box ul { margin: 0.75rem 0 1.25rem; }
.care-box li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.care-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.fit-yes, .fit-gentle {
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
}
.fit-yes {
  background: var(--green-pale);
  border: 1px solid #B7E4C7;
}
.fit-gentle {
  background: var(--orange-soft);
  border: 1px solid #F5C9B0;
}
.fit-yes h3, .fit-gentle h3 {
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 750;
}
.fit-yes p, .fit-gentle p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.fit-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.25rem;
  font-size: 3.5rem;
  font-weight: 800;
  opacity: 0.12;
  color: var(--green);
  line-height: 1;
  pointer-events: none;
}
.fit-gentle .fit-badge { color: var(--orange); }

/*  -  -  Form  -  -  */
.form-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.5rem;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 1.15rem;
  font-weight: 750;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.2);
  background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-note {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #718096;
  text-align: center;
}
.side-stack { display: flex; flex-direction: column; gap: 1rem; }

/*  -  -  FAQ  -  -  */
.faq-list { margin-top: 1.25rem; max-width: 44rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 0;
  font-weight: 650;
  color: var(--green);
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--orange);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  padding: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.faq-item .answer p + p { margin-top: 0.65rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/*  -  -  Prose  -  -  */
.prose {
  max-width: 40rem;
}
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: var(--green);
  margin: 2rem 0 0.75rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}
.prose p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.prose strong { color: var(--text); font-weight: 650; }

.partner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1.5rem;
}
.pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.soft-note {
  background: var(--cream-dark);
  border-left: 3px solid var(--green-soft);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/*  -  -  Contact  -  -  */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.75rem;
  align-items: start;
  margin-top: 0.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h2 {
  color: var(--green);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  font-weight: 750;
}
.contact-card p { color: var(--text-muted); margin-bottom: 1rem; }
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
}
.email-link:hover { color: var(--orange-hover); }

/*  -  -  Footer  -  -  */
.site-footer {
  background: var(--green);
  color: rgba(255,255,255,0.85);
  padding: 2rem 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}
.footer-brand {
  font-weight: 650;
  color: #fff;
  margin-bottom: 0.35rem;
}
.footer-brand a { color: rgba(255,255,255,0.9); }
.footer-brand a:hover { color: #fff; }
.footer-meta { font-size: 0.88rem; opacity: 0.85; line-height: 1.5; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  font-size: 0.9rem;
}
.footer-nav a { color: rgba(255,255,255,0.85); }
.footer-nav a:hover { color: #fff; }
.footer-disclaimer {
  width: 100%;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.75;
  line-height: 1.5;
  max-width: 48rem;
}

/*  -  -  Mobile nav toggle  -  -  */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 900px) {
  .hero-grid,
  .stats-grid,
  .steps,
  .two-col,
  .form-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.5rem 0; }
  .nav .btn-orange { margin-left: 0; text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.25rem 0 2rem; }
  .section { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.5rem, var(--max)); }
}

/* Brand wordmark — warm, playful, nonprofit */
.wordmark { display: inline; letter-spacing: -0.05em; }
.wordmark > span { margin: 0; padding: 0; }
.logo .wordmark .tech,
.hero-card .brand-name .tech { color: #FFFFFF !important; }
.logo .wordmark .four,
.hero-card .brand-name .four {
  color: #E87A3A !important;
  font-size: 1.45em !important;
  font-weight: 800;
  vertical-align: baseline;
  display: inline-block;
  line-height: 0.85;
  transform: translateY(0.04em);
}
.logo .wordmark .kidz,
.hero-card .brand-name .kidz {
  color: #FFE8C8 !important;
  font-weight: 700;
}
