/* ============================================================
   DHAAGA — responsive.css
   Mobile-first responsive overrides.
   Breakpoints: 768px (tablet), 480px (mobile)
   ============================================================ */

/* ===== TABLET (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 32px;
  }

  .container {
    padding: 0 32px;
  }

  /* Problem grid stays 2-col on tablet */
  .problem-grid {
    max-width: 100%;
  }

  /* Services grid: 2-col */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  /* Pricing: single column on tablet */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Approach grid: 3-col stays */
  .approach-grid {
    max-width: 100%;
  }

  /* Values grid: 2x2 */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process steps: 2x2 */
  .process-steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .process-connector {
    display: none;
  }

  .process-step {
    flex: 0 0 calc(50% - 16px);
    margin-bottom: 32px;
  }

  /* Grant banner */
  .grant-banner {
    padding: 32px 36px;
    gap: 24px;
  }

  .grant-banner-text {
    font-size: 19px;
  }

  /* Hero heading */
  .hero-heading {
    font-size: 50px;
  }

  /* Footer grid: 2x2 */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 24px;
  }

  /* ---- NAV ---- */
  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none; /* hidden; mobile drawer used instead */
  }

  .nav-hamburger {
    display: flex;
  }

  /* ---- HERO ---- */
  .hero {
    padding: 60px 24px;
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-heading {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .hero-subheading {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
    justify-content: center;
  }

  /* Hero stats: stack 2+1 */
  .hero-stats {
    flex-direction: column;
    max-width: 320px;
    margin-top: 48px;
  }

  .hero-stat + .hero-stat {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* ---- SECTION HEADINGS ---- */
  .section-heading {
    font-size: 30px;
  }

  /* ---- PROBLEM GRID: single column ---- */
  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* ---- SERVICES GRID: single column ---- */
  .services-grid {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .service-card {
    padding: 28px 24px;
  }

  /* ---- PRICING: single column ---- */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Reorder: featured card first */
  .pricing-card--featured {
    order: -1;
  }

  /* ---- GRANT BANNER: stack vertically ---- */
  .grant-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .grant-banner-text {
    font-size: 18px;
    max-width: 100%;
  }

  .grant-banner-label {
    text-align: center;
  }

  /* ---- PROCESS: stack vertically ---- */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .process-connector {
    display: none;
  }

  .process-step {
    flex: none;
    width: 100%;
    max-width: 340px;
    margin-bottom: 32px;
    padding: 0 8px;
  }

  .process-step:last-child {
    margin-bottom: 0;
  }

  /* Vertical connector between steps */
  .process-step:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 24px;
    background: var(--color-border);
    margin: 16px auto 0;
  }

  /* ---- TESTIMONIALS: full width ---- */
  .testimonials-stack {
    max-width: 100%;
  }

  .testimonial-card {
    padding: 28px 24px;
  }

  .testimonial-quote {
    font-size: 16px;
  }

  /* ---- CTA SECTION ---- */
  .cta-heading {
    font-size: 32px;
  }

  /* ---- FOOTER: stack columns ---- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .site-footer {
    padding: 40px 24px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* ---- PAGE HERO ---- */
  .page-hero {
    padding: 52px 24px 48px;
  }

  .page-hero-heading {
    font-size: 30px;
  }

  /* ---- CONTACT ---- */
  .contact-form-card {
    padding: 28px 20px;
  }

  .contact-details {
    flex-direction: column;
    gap: 20px;
  }

  /* ---- ABOUT ---- */
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- PRIVACY ---- */
  .privacy-content {
    padding: 48px 24px;
  }

  /* ---- 404 ---- */
  .notfound-code {
    font-size: 64px;
  }

  .notfound h1 {
    font-size: 24px;
  }

  /* ---- CONTAINER ---- */
  .container {
    padding: 0 24px;
  }

  .nav-mobile-drawer {
    padding: 12px 20px 20px;
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  .hero-heading {
    font-size: 30px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero-stat-number {
    font-size: 22px;
  }

  .section-heading {
    font-size: 26px;
  }

  .cta-heading {
    font-size: 26px;
  }

  .page-hero-heading {
    font-size: 26px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .grant-big-number {
    font-size: 36px;
  }

  .pricing-price {
    font-size: 24px;
  }

  .testimonial-card {
    padding: 24px 18px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .site-nav,
  .site-footer,
  #hero-canvas,
  .hero-ctas {
    display: none;
  }

  body {
    padding-top: 0;
    font-size: 12pt;
    color: #000;
  }

  .hero {
    background: #fff;
    color: #000;
    min-height: auto;
    padding: 32px 0;
  }

  .hero-heading,
  .hero-subheading {
    color: #000;
  }
}
