/* ─── RESPONSIVE STYLES ────────────────────────────────────── */
/* ─── TABLET ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  html {
    font-size: 100%; /* 16px baseline — plenty of room on tablets, no bump needed */
  }

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

/* ─── MOBILE (general phones, e.g. iPhone 12/16) ──────────── */
@media (max-width: 768px) {
  html {
    font-size: 112.5%; /* 16px → ~18px equivalent, scales every rem-based size sitewide */
  }

  body {
    padding-top: 74px;
  }

  .section {
    padding: 0 0;
  }

  /* ── NAVBAR ── */
  .navbar__links {
    display: none !important;
  }

  .navbar__mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 2px solid #e9c8c3;
    padding: 0 2rem;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(58, 53, 53, 0.1);
    text-align: center;
    align-items: center;
    z-index: 9999;
    list-style: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      padding 0.35s ease;
  }

  .navbar__mobile.open {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem 2rem;
    pointer-events: auto;
  }

  .navbar__mobile a {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #3a3535;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
  }

  .navbar {
    padding: 0.5rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .navbar__logo img {
    height: 55px;
  }

  .navbar__toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 200;
  }

  .navbar__toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #3a3535;
    border-radius: 2px;
  }

  .navbar__links {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    flex: none !important;
    position: static !important;
  }

  .navbar__links.open {
    max-height: 400px !important;
    padding: 1.5rem 2rem !important;
  }

  .navbar__links.open {
    display: flex !important;
  }

  .navbar__links a {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }

  /* ── HERO ── */
  .hero__content {
    padding: 1rem 1.25rem;
    max-width: 100%;
  }

  .hero__mission {
    max-width: 100%;
  }

  /* ── VALUES ── */
  .values {
    padding: 0 0;
  }

  .values__grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .value-card {
    padding: 1.1rem 1.25rem;
  }

  .value-card__icon {
    font-size: 3.5rem;
  }

  .value-card__title {
    font-size: 2.1rem;
  }

  .value-card__desc {
    font-size: 1.2rem;
  }

  .values__inner {
    max-width: 100%;
    padding: 1rem 0.5rem;
  }

  /* ── ABOUT ── */
  .about__grid {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .about__photo-wrap {
    border-radius: 12px;
    width: 100%;
  }

  .about__photo-img {
    border-radius: 12px;
    width: 100%;
  }

  .about__badge-name {
    font-size: 1.2rem;
    text-align: center;
  }

  .about__badge-role {
    font-size: 1rem;
    text-align: center;
  }

  .about__badge-desc {
    font-size: 0.75rem;
  }

  .about__badges {
    position: relative !important;
    background: none !important;
    padding: 0.75rem 0 !important;
    flex-direction: column !important;
    gap: 0.75rem;
  }

  .about__badge {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border-left: 3px solid #c8a04a;
  }

  .about__badge-name {
    font-size: 1.2rem;
  }
  .about__badge-role {
    font-size: 1rem;
  }
  .about__badge-desc {
    font-size: 0.75rem;
  }

  /* ── ABOUT GRID: MOVE "MEET THE TEAM" LABEL TO TOP ── */
  .about__grid {
    display: block !important;
    position: relative;
    padding-top: 2.5rem;
  }

  .about__photo-wrap {
    margin: 0 !important;
    padding: 0 !important;
  }

  .about__badges {
    margin: 0 !important;
  }

  .about__grid .section__label {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
  }

  /* ── ABOUT CONTENT SPACING ── */
  .about__grid > div:last-child {
    margin: 0 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem;
  }

  .section__title {
    font-size: 3rem;
    text-align: center;
  }

  /* ── SECTION INNER ── */
  .section__inner {
    max-width: 100% !important;
    padding: 0 0.25rem;
    box-sizing: border-box;
  }

  .section__text--spaced {
    margin: 0 1rem 1.5rem 1rem;
  }

  /* ── EVENTS ── */
  #events .section__inner {
    max-width: 100% !important;
    padding: 1rem;
  }

  .events__grid {
    max-width: 100% !important;
    width: 100%;
  }

  .event-card__actions {
    flex-direction: column;
    align-items: center;
  }

  /* ─── EVENT FLYER ──────────────────────────────────────────── */
  .event-flyer__label {
    text-align: center;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.85rem 1.5rem;
    white-space: nowrap;
  }

  /* ── NEWSLETTER ── */
  #newsletter {
    padding: 1rem;
  }

  .newsletter__name {
    font-size: 1.5rem;
  }

  .newsletter__text {
    max-width: 100%;
  }

  /* ── EVENTS INTRO ── */
  .events__intro {
    white-space: normal;
  }

  /* ── FOOTER ── */
  .footer__logo {
    height: 140px;
    max-width: 300px;
  }
}

/* ─── SMALL PHONES (e.g. iPhone SE, ≤400px) ───────────────── */
@media (max-width: 400px) {
  html {
    font-size: 118.75%; /* 16px → ~19px equivalent — a touch larger for the smallest screens */
  }
}

/* ─── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
