/* ============================================
   Atlas Tutoring — Shared Wireframe Styles
   ============================================ */

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

/* Variables */
:root {
  --brand-cream: #F7F3ED;
  --brand-burgundy: #7A1E1E;
  --brand-gold: #C9A227;
  --brand-white: #FFFFFF;
  --brand-charcoal: #2D2D2D;
  --brand-light-gray: #E8E4DE;
  --preschool-bg: #F7F3ED;
  --preschool-heading: #7A1E1E;
  --preschool-cta: #2F7F83;
  --preschool-cta-hover: #256568;
  --preschool-accent: #C9A227;
  --preschool-soft-pink: #F2E0D8;
  --preschool-soft-green: #D4E8D4;
  --stem-bg: #FAF8F3;
  --stem-heading: #1F2A44;
  --stem-cta: #00A8A8;
  --stem-cta-hover: #008B8B;
  --stem-accent-bg: #EDE7F6;
  --stem-accent-dark: #5C4D8A;
  --stem-light-blue: #E3F0FA;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--brand-charcoal);
  background: var(--brand-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-white);
  border-bottom: 1px solid var(--brand-light-gray);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-burgundy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.footer-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 0 8px 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-charcoal);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 200ms;
}
.nav-links a:hover { color: var(--brand-burgundy); }
.nav-links a.active { color: var(--brand-burgundy); border-bottom: 2px solid var(--brand-burgundy); padding-bottom: 2px; }
.nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: var(--brand-burgundy);
  color: white;
  padding: 10px 24px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 200ms;
}
.nav-cta:hover { background: #5E1717; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 200ms ease;
  cursor: pointer;
}
.btn-preschool { background: var(--preschool-cta); color: white; }
.btn-preschool:hover { background: var(--preschool-cta-hover); }
.btn-stem { background: var(--stem-cta); color: white; }
.btn-stem:hover { background: var(--stem-cta-hover); }
.btn-burgundy { background: var(--brand-burgundy); color: white; }
.btn-burgundy:hover { background: #5E1717; }
.btn-outline { border-color: var(--brand-charcoal); color: var(--brand-charcoal); background: transparent; }
.btn-outline:hover { background: var(--brand-charcoal); color: white; }
.btn-outline-preschool { border-color: var(--preschool-cta); color: var(--preschool-cta); background: transparent; }
.btn-outline-preschool:hover { background: var(--preschool-cta); color: white; }
.btn-outline-stem { border-color: var(--stem-cta); color: var(--stem-cta); background: transparent; }
.btn-outline-stem:hover { background: var(--stem-cta); color: white; }
.btn-gold { background: var(--brand-gold); color: white; }
.btn-gold:hover { background: #A88620; }
.btn-white { background: white; color: var(--brand-burgundy); }
.btn-white:hover { background: var(--brand-cream); }

/* ── Section Utilities ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.bg-cream { background: var(--brand-cream); }
.bg-white { background: var(--brand-white); }
.bg-ivory { background: var(--stem-bg); }
.bg-lavender { background: var(--stem-accent-bg); }
.bg-soft-pink { background: var(--preschool-soft-pink); }
.bg-burgundy { background: var(--brand-burgundy); }
.bg-navy { background: var(--stem-heading); }
.bg-charcoal { background: var(--brand-charcoal); }
.text-center { text-align: center; }
.text-white { color: white; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: 52px; font-weight: 800; line-height: 1.15; }
h2 { font-size: 38px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
h4 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  max-width: 640px;
}
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.script-text {
  font-family: 'Dancing Script', cursive;
  color: var(--brand-gold);
}
.text-burgundy { color: var(--brand-burgundy); }
.text-navy { color: var(--stem-heading); }
.text-gold { color: var(--brand-gold); }

/* ── Cards ── */
.card {
  background: white;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  padding: 32px;
  transition: all 200ms ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── Image Placeholder ── */
.img-placeholder {
  background: var(--brand-light-gray);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
}

/* ── Trust Bar (Letterpress Style) ── */
.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-strip .trust-item {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #7A1E1E;
  text-shadow: 0 1px 1px rgba(255,255,255,0.7), 0 -1px 1px rgba(0,0,0,0.15);
  padding: 0 20px;
  line-height: 1;
}
.trust-strip .trust-divider {
  color: #C4B5A5;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  background: white;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-burgundy);
  flex-shrink: 0;
}
.stars { color: var(--brand-gold); font-size: 14px; letter-spacing: 2px; }
.testimonial-quote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}
.testimonial-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-charcoal);
}

/* ── Footer ── */
.footer {
  background: var(--brand-charcoal);
  color: #ccc;
  padding: 64px 0 32px;
}
.footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 200ms;
}
.footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 320px;
}
.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  text-align: left;
}
.footer-tagline {
  font-family: 'Dancing Script', cursive;
  color: var(--brand-gold);
  font-size: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #999;
  text-align: left;
  margin: 0;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
}
.footer-disclaimer {
  border-top: 1px solid #444;
  padding: 20px 0;
  margin-bottom: 0;
}
.footer-disclaimer p {
  font-size: 11px;
  line-height: 1.6;
  color: #777;
  margin: 0;
}

/* ── SVG Icon Utilities ── */
.icon-inline {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.icon-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-feature svg {
  width: 26px;
  height: 26px;
}
.footer-links .icon-inline {
  margin-right: 6px;
  color: #aaa;
}

.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--brand-gold);
  border-radius: 2px;
  margin: 16px 0;
}
.gold-divider-center {
  width: 60px;
  height: 3px;
  background: var(--brand-gold);
  border-radius: 2px;
  margin: 16px auto;
}

/* ── Grid Utilities ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── Hamburger Menu (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--brand-charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Navigation: collapse to hamburger */
  .nav {
    padding: 0 16px;
    height: 60px;
    flex-wrap: wrap;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--brand-light-gray);
    z-index: 100;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { font-size: 16px; }
  .nav-links a.active { border-bottom: none; }
  .nav-cta {
    display: none;
  }

  /* Typography */
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  /* Grids */
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  .subtitle { font-size: 16px; }

  /* Container */
  .container { padding: 0 16px; }

  /* Buttons — touch-friendly */
  .btn { padding: 12px 24px; font-size: 14px; }

  /* Grids — stack on mobile */
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }

  /* Section spacing */
  .section { padding: 48px 0; }
  .section-lg { padding: 64px 0; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Trust bar responsive */
  .trust-strip {
    gap: 8px 0;
    justify-content: center;
  }
  .trust-strip .trust-item {
    padding: 0 12px;
    font-size: 13px;
  }

  /* Spacing utilities scale down */
  .mb-48 { margin-bottom: 32px; }
  .mt-48 { margin-top: 32px; }
  .gap-48 { gap: 24px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .container { padding: 0 12px; }
  .btn { padding: 12px 20px; font-size: 13px; width: 100%; text-align: center; }
  .card { padding: 20px; }
}
