/* ==========================================================
   Responsive
   ========================================================== */

/* Tablet (includes iPad Pro 13" at 1032px) */
@media (max-width: 1100px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .about-grid {
    gap: 48px;
  }

  .member {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .member-photo {
    width: 240px;
    height: 240px;
  }

  /* Contact: stack form above details, form full width */
  .contact {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-form-wrap h2,
  .contact-form {
    max-width: none;
  }

  .contact-details {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* About Us: stack image above text */
  .about {
    padding: 35px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-media,
  .about-content {
    padding: 0;
  }

  /* Our Team: stack photo/name above details */
  .team {
    padding-bottom: 15px;
  }

  .team-intro {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .team-intro h2 {
    margin-bottom: 28px;
  }

  .team-intro p {
    font-size: 16px;
  }

  .member {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .member-photo {
    width: 220px;
    height: 220px;
  }

  .member-body {
    font-size: 16px;
  }

  .member-body h3 {
    margin-bottom: 20px;
  }

  .member-body h4 {
    margin-bottom: 16px;
  }

  .member-body p {
    margin-bottom: 24px;
  }

  .committee li {
    margin-bottom: 16px;
    font-size: 16px;
  }

  /* Grievance: stack image, heading, form */
  .grievance {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .grievance-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-field label {
    font-size: 16px;
  }

  .form-field textarea {
    min-height: 135px;
  }

  .btn-submit {
    font-size: 1rem;
  }

  .officer-details {
    flex-direction: column;
    gap: 4px;
  }

  /* Contact: form first, then contact details */
  .contact {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .contact-form-wrap h2 {
    margin-bottom: 28px;
  }

  .contact-item {
    gap: 18px;
  }

  .contact-item p {
    word-break: break-word;
  }

  /* Header: hamburger + dropdown menu */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 14px 16px;
    border-top: 1px solid #eeeeee;
  }

  /* No growing top line in the dropdown, colour change only */
  .main-nav a::before {
    display: none;
  }

  /* Footer */
  .site-footer {
    padding-bottom: 64px; /* room for the back-to-top button */
  }

  .footer-nav ul {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  /* 404 */
  .not-found {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .not-found-code {
    font-size: 72px;
  }
}
