/* ============================================
   RALPH CALDECOTT — MOBILE STYLES
   Applies to all pages
   ============================================ */

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  padding: 4px;
  background: none; border: none;
  z-index: 200;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ── */
.nav-mobile {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem 3rem;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.9rem 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--stone-100);
  transition: color 0.2s;
}
.nav-mobile a:first-child { border-top: 1px solid var(--stone-100); }
.nav-mobile a:hover,
.nav-mobile a:active { color: var(--accent); }
.nav-mobile .nav-mobile-cta {
  margin-top: 2rem;
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.9rem 3rem !important;
  border-radius: 2px;
  border: none !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* ── PREVENT SCROLL WHEN NAV OPEN ── */
body.nav-open { overflow: hidden; }

/* ============================================
   BREAKPOINT: 900px and below
   ============================================ */
@media (max-width: 900px) {

  /* Show hamburger, hide desktop nav */
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  nav { padding: 1rem 1.25rem !important; }

  /* General section spacing */
  section { padding: 3.5rem 1.25rem !important; }
  .career-section,
  .synthesis-section,
  .credentials-section { padding: 3.5rem 1.25rem !important; }

  /* Hero sections */
  #hero { grid-template-columns: 1fr !important; min-height: auto !important; }
  .hero-left { padding: 3.5rem 1.25rem 2.5rem !important; border-right: none !important; border-bottom: 1px solid var(--stone-100); }
  .hero-right { padding: 2rem 1.25rem !important; }
  .hero-stats { grid-template-columns: 1fr 1fr !important; }

  /* About hero */
  .about-hero { grid-template-columns: 1fr !important; padding: 7rem 1.25rem 3rem !important; gap: 2.5rem !important; }

  /* Case study hero */
  .cs-hero { grid-template-columns: 1fr !important; padding: 7rem 1.25rem 2.5rem !important; gap: 2rem !important; }
  .cs-body { padding: 3rem 1.25rem !important; }

  /* Contact hero */
  .contact-hero { grid-template-columns: 1fr !important; min-height: auto !important; }
  .contact-left { padding: 6rem 1.25rem 2.5rem !important; border-right: none !important; border-bottom: 1px solid var(--stone-100) !important; }
  .contact-right { padding: 2.5rem 1.25rem !important; }

  /* Grids → single column */
  .services-grid { grid-template-columns: 1fr !important; }
  .work-grid { grid-template-columns: 1fr !important; }
  .advisory-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .credentials-grid { grid-template-columns: 1fr !important; }
  .synthesis-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .related-grid { grid-template-columns: 1fr !important; }
  .gen-grid { grid-template-columns: 1fr !important; }
  .competitor-block { grid-template-columns: 1fr !important; }
  .outcomes-grid { grid-template-columns: 1fr 1fr !important; }

  /* Form rows */
  .form-row { grid-template-columns: 1fr !important; }

  /* Timeline */
  .timeline-item { grid-template-columns: 1fr !important; gap: 0.4rem !important; }
  .timeline-left { padding-top: 0 !important; }

  /* About CTA */
  .about-cta { grid-template-columns: 1fr !important; padding: 3.5rem 1.25rem !important; gap: 1.5rem !important; }

  /* Outcome rows */
  .outcome-row { grid-template-columns: 1fr !important; gap: 0.2rem !important; }

  /* Related + CTA sections */
  .related-section { padding: 3rem 1.25rem !important; }
  .cta-section { padding: 3rem 1.25rem !important; }
  .cta-section h2 { font-size: 1.5rem !important; }

  /* Footer */
  footer { flex-direction: column !important; gap: 0.5rem !important; text-align: center !important; padding: 1.5rem 1.25rem !important; }

  /* Image captions */
  .img-caption { padding: 0.75rem 1.25rem !important; }

  /* Advisory quote */
  .advisory-quote { padding: 1.5rem !important; }

  /* Work card images */
  .work-card-img { margin: -2.5rem -1.25rem 1.5rem !important; width: calc(100% + 2.5rem) !important; }

  /* Enquiry pills wrap nicely */
  .enquiry-pills { gap: 0.4rem !important; }
  .enquiry-pill { font-size: 0.72rem !important; padding: 0.45rem 0.85rem !important; }

  /* Stats on about page */
  .about-stats { display: grid !important; grid-template-columns: 1fr 1fr !important; }

  /* Section titles */
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
}

/* ============================================
   BREAKPOINT: 480px and below (small phones)
   ============================================ */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr !important; }
  .about-stats { grid-template-columns: 1fr 1fr !important; }
  .outcomes-grid { grid-template-columns: 1fr !important; }
  .cs-tags { gap: 0.3rem !important; }
  .stat-num { font-size: 1.6rem !important; }
  .hero-btns { flex-direction: column !important; }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { text-align: center !important; }
}
