/* Responsive — Studio Kayara */

/* Tablet: 768px+ */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --text-hero: 56px;
    --text-h2: 40px;
    --text-h3: 28px;
    --section-padding: 100px;
  }

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

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

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

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

  .gallery-masonry {
    columns: 2;
  }

  .schedule-grid {
    display: none;
  }

  .schedule-accordion {
    display: block;
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  :root {
    --text-hero: 40px;
    --text-h2: 32px;
    --text-h3: 24px;
    --text-h4: 22px;
    --section-padding: 72px;
    --container-padding: 20px;
  }

  /* Header */
  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

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

  .hero__tag {
    letter-spacing: 0.15em;
  }

  .hero__indicators {
    bottom: 60px;
  }

  .hero__scroll {
    display: none;
  }

  /* Grids */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Split layouts */
  .split,
  .split--55-45,
  .split--45-55,
  .split--40-60 {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .split--reverse-mobile > :first-child {
    order: 2;
  }

  .split--reverse-mobile > :last-child {
    order: 1;
  }

  /* Cards */
  .class-card--horizontal {
    grid-template-columns: 1fr;
  }

  .class-card--horizontal .class-card__image {
    aspect-ratio: 3 / 2;
  }

  /* Gallery Strip */
  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Gallery Masonry */
  .gallery-masonry {
    columns: 1;
  }

  /* Buttons */
  .btn {
    padding: 16px 32px;
    width: 100%;
    justify-content: center;
  }

  .btn--inline {
    width: auto;
  }

  /* Filter tabs */
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    justify-content: flex-start;
  }

  .filter-tab {
    flex-shrink: 0;
  }

  /* Schedule */
  .schedule-grid {
    display: none;
  }

  .schedule-accordion {
    display: block;
  }

  /* Pricing Grid */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Page Header */
  .page-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  }

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

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

  /* Pull Quote */
  .pull-quote--centered {
    font-size: 22px;
  }

  .pull-quote--centered::before {
    font-size: 72px;
    top: -22px;
  }

  /* Philosophy Section */
  .philosophy {
    background-attachment: scroll;
  }

  /* Text */
  .text-lg {
    font-size: var(--text-body);
  }

  /* Section labels — keep line but shorter */
  .section-label::before {
    width: 20px;
  }

  /* Lightbox */
  .lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .lightbox__nav--prev { left: var(--space-md); }
  .lightbox__nav--next { right: var(--space-md); }
  .lightbox__close { top: var(--space-md); right: var(--space-md); }

  /* Image frame offset less on mobile */
  .image-frame::after {
    top: 12px;
    left: 12px;
  }

  /* Section alt — disable gradient transition on mobile */
  .section--alt::before {
    height: 40px;
  }

  /* Noise texture slightly less on mobile for perf */
  body::after {
    opacity: 0.012;
  }
}

/* Desktop small: 1024px+ */
@media (min-width: 1024px) {
  .schedule-accordion {
    display: none;
  }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--space-2xl);
  }

  :root {
    --text-hero: 80px;
    --text-h2: 56px;
  }
}
