/* =============================================================================
   RESPONSIVE.CSS — CR8TIF Media Queries
   All breakpoint overrides for components and page-specific layouts
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Max 1200px — Large tablets, small desktops
   --------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  /* Portfolio masonry: reduce to 2 columns max */
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid .portfolio-item--wide {
    grid-column: span 1;
  }

  /* Process steps: reduce gap */
  .process-step__grid {
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* ---------------------------------------------------------------------------
   Max 1024px — Tablets landscape
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Hero: stack to single column */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding: 10rem var(--side-pad) 4rem;
    order: 2;
  }

  .hero__content::before {
    display: none;
  }

  .hero__image {
    height: 50vh;
    order: 1;
  }

  /* Pillars: stack to single column */
  .pillar__row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pillar__row--right {
    grid-template-columns: 1fr;
  }

  .pillar__image-side {
    min-height: 350px;
  }

  .pillar__text-side {
    border-left: 3px solid var(--gold);
    border-right: none;
    padding: 2.5rem;
  }

  .pillar__row--right .pillar__text-side {
    border-right: none;
    border-left: 3px solid var(--gold);
    order: 2;
  }

  .pillar__row--right .pillar__image-side {
    order: 1;
  }

  .pillar__image-wrapper {
    aspect-ratio: 16 / 9;
  }

  /* Services: single column */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Footer: 2 columns */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  /* Process timeline: stack */
  .process-step__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-step__image {
    order: -1;
    max-height: 400px;
  }

  .process-step--left .process-step__image {
    order: -1;
  }

  /* Process timeline vertical line: hide */
  .process-timeline::before {
    display: none;
  }

  /* Homepage process teaser */
  .process-teaser__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-teaser__line {
    display: none;
  }

  /* Hide connecting line pseudo-element on smaller screens */
  .process-teaser__steps::before {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Max 768px — Tablets portrait, large phones
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Header: hide desktop nav, show hamburger */
  .header__nav {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  /* Typography scale reduction */
  h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* Section padding reduction */
  :root {
    --section-pad: clamp(4rem, 10vh, 7rem);
    --side-pad: clamp(1.5rem, 4vw, 3rem);
  }

  /* Hero adjustments */
  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .hero__image {
    height: 40vh;
  }

  /* Pillars: single column */
  .pillar__row,
  .pillar__row--right {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pillar__image-side {
    min-height: 280px;
  }

  /* Services: single column */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Footer: single column */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Quote section */
  .quote__text {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .quote__mark {
    font-size: 16rem;
  }

  /* Page header */
  .page-header {
    padding: clamp(8rem, 14vh, 10rem) var(--side-pad) clamp(3rem, 6vh, 4rem);
  }

  .page-header__title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  /* Portfolio: single column */
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .portfolio__grid .portfolio-item--wide,
  .portfolio__grid .portfolio-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Filter bar: scrollable */
  .filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Homepage process teaser: single column */
  .process-teaser__steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer CTA */
  .footer-cta__title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  /* Lightbox: tighter */
  .lightbox__content {
    width: 95vw;
    max-height: 85vh;
  }

  .lightbox__nav {
    display: none;
  }

  /* Process page: step numbers smaller */
  .process-step__number {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }
}

/* ---------------------------------------------------------------------------
   Max 480px — Small phones
   --------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Further typography reduction */
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  h3 {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  /* Tighter spacing */
  :root {
    --section-pad: clamp(3rem, 8vh, 5rem);
    --side-pad: 1.25rem;
  }

  /* Buttons: full width on small screens */
  .btn--primary,
  .btn--secondary,
  .btn-outline,
  .btn-solid {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 2rem;
  }

  /* Header */
  .header {
    padding: 1rem var(--side-pad);
  }

  .header__logo img {
    height: 30px;
  }

  /* Hero */
  .hero__content {
    padding: 8rem var(--side-pad) 3rem;
  }

  .hero__image {
    height: 35vh;
  }

  .hero__body {
    font-size: 0.88rem;
  }

  /* Service cards: reduce padding */
  .card,
  .service-card {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 3rem var(--side-pad) 2rem;
  }

  .footer__tagline {
    font-size: 1rem;
  }

  /* Page header */
  .page-header__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  /* Quote mark: smaller */
  .quote__mark {
    font-size: 10rem;
  }

  /* Mobile nav: smaller text */
  .mobile-nav__list li a,
  .mobile-nav__link {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* Marquee: smaller text */
  .marquee__content span {
    font-size: 0.68rem;
    padding: 0 1.25rem;
    letter-spacing: 0.2em;
  }

  /* Location cards */
  .location-card {
    padding: 2rem 1.5rem;
  }
}
