/* Stovepipe Academy - Responsive Styles */

/* Switch to hamburger menu early to prevent text scrunching */
@media (max-width: 1050px) {
  /* Hamburger menu for tablet and below */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--nav-height));
    background-color: var(--color-bg-dark);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-tobacco);
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
  }

  .nav-toggle {
    display: block;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  .content-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .comparison-pair {
    grid-template-columns: 1fr;
  }

  .student-roster ul {
    columns: 1;
  }

  /* Quote with image responsive */
  .quote-overlay {
    padding: var(--space-lg);
  }

  .quote-overlay blockquote {
    font-size: 1.125rem;
  }
}

/* Mobile Breakpoint */
@media (max-width: 600px) {
  /* Quote with image mobile */
  .quote-with-image {
    margin: var(--space-lg) var(--space-sm);
  }

  .quote-overlay {
    background: linear-gradient(
      to bottom,
      rgba(46, 42, 37, 0.85) 0%,
      rgba(46, 42, 37, 0.75) 100%
    );
    padding: var(--space-md);
    align-items: center;
  }

  .quote-overlay blockquote {
    font-size: 0.95rem;
    max-width: 100%;
  }
  /* Typography */
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
    margin-top: var(--space-lg);
  }

  h3 {
    font-size: 1.25rem;
  }

  .lead {
    font-size: 1.125rem;
  }

  blockquote {
    font-size: 1.125rem;
    padding-left: var(--space-sm);
    margin: var(--space-md) 0;
  }

  /* Hero */
  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-content {
    padding: var(--space-md);
  }

  .scroll-indicator {
    bottom: var(--space-md);
  }

  /* Spacing */
  section {
    padding: var(--space-lg) 0;
  }

  .container,
  .container-wide,
  .container-full {
    padding: 0 var(--space-sm);
  }

  /* Feature Cards */
  .feature-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  /* Timeline */
  .timeline {
    padding-left: var(--space-md);
  }

  .timeline-item {
    padding-left: var(--space-sm);
  }

  .timeline-item:before {
    left: calc(-1 * var(--space-md) - 6px);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  footer {
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
  }

  /* Recognition Bar */
  .recognition-bar {
    padding: var(--space-md) var(--space-sm);
  }

  /* Page Header */
  .page-header {
    padding: var(--space-lg) var(--space-sm);
  }

  /* Touch Targets */
  a,
  button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .nav-toggle,
  .scroll-indicator {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .page-break {
    page-break-before: always;
  }
}
