/* =========================================================
   RESPONSIVE — DR. SOFIAT OLAOSEBIKAN
   ========================================================= */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --gutter: 24px;
  }

  .hero__inner {
    gap: var(--space-2xl);
  }

  .hero__image-frame {
    max-width: 420px;
  }

  .grid-2 {
    gap: var(--space-2xl);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles .role-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .story-section {
    gap: var(--space-2xl);
  }
}

/* --- Tablet small / Large phone (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --nav-height: 70px;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .section--compact {
    padding: var(--space-2xl) 0;
  }

  /* Navigation */
  .nav__links {
    display: none;
  }

  .nav__cta-desktop {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
  }

  .hero__content {
    order: 2;
    text-align: center;
    max-width: 100%;
  }

  .hero__intro {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    order: 1;
    justify-content: center;
  }

  .hero__image-frame {
    max-width: 360px;
  }

  .hero__image-frame::before {
    display: none;
  }

  .hero__scroll-hint {
    display: none;
  }

  /* Page hero */
  .page-hero {
    padding-top: calc(var(--nav-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  /* Speaker hero */
  .speaker-hero {
    min-height: 80vh;
  }

  .speaker-hero__content {
    text-align: center;
  }

  .speaker-hero__content .container > div:last-child {
    justify-content: center;
  }

  /* Grids */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .grid-3,
  .roles {
    grid-template-columns: 1fr;
  }

  .roles .role-card:last-child {
    max-width: 100%;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  /* Story sections */
  .story-section {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .story-section--reverse {
    direction: ltr;
  }

  .story__image {
    max-height: 400px;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .gallery__item--tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Forms */
  .form__row {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-section .btn {
    margin: var(--space-sm);
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--space-xl);
  }

  /* Video grid */
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Phone (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --nav-height: 64px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .nav__logo img {
    height: 40px;
  }

  .hero__image-frame {
    max-width: 280px;
  }

  .hero__name {
    font-size: 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .btn--lg {
    padding: 1rem 1.75rem;
    font-size: 0.875rem;
  }

  .pullquote {
    font-size: 1.125rem;
    padding: var(--space-2xl) var(--space-md);
  }

  .role-card {
    padding: var(--space-xl);
  }

  .talk-card {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
  }

  .trusted {
    gap: var(--space-xl);
  }

  .trusted img {
    height: 28px;
  }

  .footer__social a {
    width: 36px;
    height: 36px;
  }

  .nav__mobile-link {
    font-size: 1.5rem;
  }

  .accordion__trigger {
    font-size: 1rem;
  }

  .form__radio-group {
    flex-direction: column;
  }
}

/* --- Eight-item navigation: tighten, then collapse to menu --- */
@media (max-width: 1240px) {
  .nav__links { gap: var(--space-lg); }
  .nav__link { font-size: 0.8125rem; }
}
@media (max-width: 1080px) {
  .nav__links, .nav__cta-desktop { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }
}
@media (max-width: 768px) {
  .panel { padding: var(--space-xl); }
}
