/* ============================================================
   Tech Mama Teaches — Website Styles
   Design tokens sourced from 01-brand/brand-kit/tech-mama-teaches-brand.md
   ============================================================ */

:root {
  /* Primary (~70%) */
  --sky: #5BC8F4;
  --deep: #3B5E9D;
  --mint: #88EECA;

  /* Secondary (~20%) */
  --lime: #C9F179;
  --coral: #FA8472;
  --orange: #FAAD69;

  /* Accent (~10%) */
  --sunshine: #F2F877;
  --golden: #FADF69;
  --pink: #FA5C92;

  /* Text-safe accent variants */
  --deep-gold: #8A6A00;
  --deep-lime: #5E7A1E;
  --deep-coral: #C24A38;

  /* Neutrals */
  --ink: #2B2D31;
  --charcoal: #404144;
  --slate: #6B7177;
  --cloud: #F4F7FB;
  --mist: #E6EDF5;
  --white: #FFFFFF;

  /* Dark mode surfaces (used for footer) */
  --navy: #13233F;
  --navy-surface: #1E3354;

  /* Gradients */
  --gradient-sunrise: linear-gradient(120deg, var(--golden) 0%, var(--orange) 55%, var(--pink) 100%);
  --gradient-hero: linear-gradient(135deg, var(--sky) 0%, var(--deep) 100%);

  /* Type */
  --font-display: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-signature: "Pacifico", cursive;

  /* Radii */
  --radius-sm: 16px;
  --radius-lg: 28px;

  /* Shadow */
  --shadow-soft: 0 12px 32px rgba(43, 45, 49, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--cloud { background: var(--cloud); }
.section--navy { background: var(--navy); color: var(--cloud); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--charcoal); font-size: 18px; }

h1 { font-size: 44px; font-weight: 700; }
h2 { font-size: 32px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 500; }
.lede { font-size: 18px; color: var(--charcoal); }

.signature {
  font-family: var(--font-signature);
  font-weight: 400;
  color: var(--deep);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }

.btn--primary {
  background: var(--deep);
  color: var(--white);
}
.btn--primary:hover { background: #324f85; }

.btn--secondary {
  background: var(--white);
  color: var(--deep);
  border-color: var(--deep);
}
.btn--secondary:hover { background: var(--cloud); }

.btn--accent {
  background: var(--coral);
  color: var(--white);
}
.btn--accent:hover { background: var(--deep-coral); }

.btn--on-dark {
  background: var(--golden);
  color: var(--ink);
}
.btn--on-dark:hover { background: #f6d24c; }

.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--mist);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo img { height: 40px; width: auto; }
.site-logo { display: flex; align-items: center; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav ul {
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--deep);
  border-bottom-color: var(--deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--mist);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18), transparent 45%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); font-size: 48px; }
.hero .lede { color: var(--cloud); font-size: 20px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-feelings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.pill {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

.hero-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.hero-card .eyebrow { color: var(--deep); }
.hero-card ol { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mist);
  font-size: 16px;
}
.hero-card li:last-child { border-bottom: none; }
.step-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { font-size: 36px; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
}
.card-icon--sky { background: var(--sky); }
.card-icon--mint { background: var(--mint); }
.card-icon--coral { background: var(--coral); color: var(--white); }
.card h3 { font-size: 20px; margin-bottom: 4px; }
.card p { color: var(--charcoal); font-size: 16px; margin-bottom: 0; }

/* ---------- Callout ---------- */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--cloud);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border-left: 6px solid var(--golden);
}
.callout__icon { font-size: 24px; line-height: 1; }
.callout h4 { font-family: var(--font-display); font-size: 17px; margin: 0 0 4px; }
.callout p { margin: 0; color: var(--charcoal); font-size: 15px; }

/* ---------- Quote block ---------- */
.quote-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.quote-block::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--mist);
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
}
.quote-block blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.quote-block cite {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep);
  font-style: normal;
}

/* ---------- Topic pills / category grid ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .topic-grid { grid-template-columns: 1fr; } }

.topic-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  justify-content: flex-end;
  border: 1px solid var(--mist);
  transition: transform 0.15s ease;
}
.topic-card:hover { transform: translateY(-2px); }
.topic-card .topic-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
}
.topic-card h4 { margin: 0; font-size: 17px; }
.topic-card p { margin: 0; font-size: 14px; color: var(--charcoal); }

.topic-card--mint { background: var(--mint); }
.topic-card--sky { background: var(--sky); }
.topic-card--deep { background: var(--deep); color: var(--white); }
.topic-card--deep p, .topic-card--deep h4 { color: var(--white); }
.topic-card--lime { background: var(--lime); }
.topic-card--coral { background: var(--coral); color: var(--white); }
.topic-card--coral p, .topic-card--coral h4 { color: var(--white); }
.topic-card--golden { background: var(--golden); }
.topic-card--pink { background: var(--pink); color: var(--white); }
.topic-card--pink p, .topic-card--pink h4 { color: var(--white); }
.topic-card--orange { background: var(--orange); }

/* ---------- Resource list ---------- */
.resource-list { display: grid; gap: 16px; }
.resource-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.resource-item .badge {
  flex: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--deep);
}
.resource-item .resource-title { font-family: var(--font-display); font-weight: 600; margin: 0; }
.resource-item p { margin: 0; color: var(--charcoal); font-size: 15px; }
.resource-item .resource-body { flex: 1; }

/* ---------- Steps ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--mist);
}
.step:last-child { border-bottom: none; }
.step-circle {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h4 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--charcoal); }

/* ---------- Values grid ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .value-grid { grid-template-columns: 1fr; } }
.value-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--mist);
  padding: 20px 22px;
}
.value-item h4 { margin: 0 0 6px; font-size: 17px; color: var(--deep); }
.value-item p { margin: 0; font-size: 15px; color: var(--charcoal); }

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  background: var(--gradient-sunrise);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--ink); }
.cta-band .lede { color: var(--charcoal); }
.cta-band-copy { max-width: 520px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 420px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
}
.newsletter-form input[type="email"]:focus-visible { outline: 3px solid var(--deep); }
.form-note { font-size: 13px; color: var(--charcoal); margin-top: 10px; }
.form-success {
  display: none;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--deep);
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--mist);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: rgba(230,237,245,0.8); font-size: 15px; max-width: 320px; }
.footer-tagline { font-family: var(--font-signature); font-size: 22px; color: var(--golden); margin-top: 8px; }
.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: rgba(230,237,245,0.85); font-size: 15px; }
.footer-links a:hover { color: var(--golden); }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
}
.social-row a:hover { background: var(--deep); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(230,237,245,0.65);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
