/* ==========================================================================
   Atlas Umzüge — Responsive
   Breakpoints follow the reference design: 1920 / 1440 / 1280 / 991 / 767 / 479
   ========================================================================== */

/* ==========================================================================
   Large desktop — 1920px and up
   ========================================================================== */

@media (min-width: 1920px) {
  .hero__title { width: 46%; }
  .hero__lead  { width: 34%; }
  .hero__panel { width: 22%; }
  .process__circle { width: 580px; height: 580px; }
}

/* ==========================================================================
   1440px and up
   ========================================================================== */

@media (min-width: 1440px) {
  .hero__panel { width: 26%; }
}

/* ==========================================================================
   Below 1280px — tighten the widest compositions
   ========================================================================== */

@media (max-width: 1279px) {
  :root {
    --fs-h1: 62px;      --lh-h1: 72px;  --ls-h1: -1.9px;
    --fs-display: 66px; --lh-display: 76px; --ls-display: -2px;
  }

  .hero { padding-top: 220px; padding-bottom: 130px; }
  .hero__title { width: 72%; }
  .hero__lead { width: 56%; }
  .hero__panel { width: 34%; }

  .process__circle { width: 440px; height: 440px; }
  .process__card { width: 27%; }
  .process__caption { left: 62%; width: 30%; }
}

/* ==========================================================================
   Tablet — 991px and below
   ========================================================================== */

@media (max-width: 991px) {
  :root {
    --fs-h1: 50px;      --lh-h1: 58px;  --ls-h1: -1.4px;
    --fs-h2: 40px;      --lh-h2: 48px;  --ls-h2: -1.1px;
    --fs-h3: 32px;      --lh-h3: 42px;  --ls-h3: -0.5px;
    --fs-h4: 25px;      --lh-h4: 33px;  --ls-h4: -0.7px;
    --fs-display: 50px; --lh-display: 58px; --ls-display: -1.5px;
    --fs-lead: 24px;    --lh-lead: 32px; --ls-lead: -0.6px;
    --section-space: 76px;
    --gutter: 22px;
  }

  /* Header: swap to the burger */
  .nav,
  .site-header__actions .header-phone,
  .site-header__actions .btn { display: none; }

  .nav-toggle { display: flex; }

  .site-header { padding-block: 18px; }
  .site-header.is-scrolled { padding-block: 12px; }
  .site-header__logo img,
  .site-header.is-scrolled .site-header__logo img { width: 142px; }

  /* Hero */
  .hero {
    padding-top: 150px;
    padding-bottom: 60px;
  }

  .hero__title { width: 100%; }
  .hero__lead { width: 82%; margin-bottom: 32px; }

  /* Stays relative, not static: z-index only applies to positioned
     elements, and the panel has to paint above the hero scrim. */
  .hero__panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border-light);
  }

  .hero__panel-text { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }

  /* Vertical scrim instead of the horizontal one — the copy now sits over
     the whole frame rather than in the left third. */
  .hero__scrim {
    background:
      linear-gradient(
        180deg,
        rgba(20, 17, 13, 0.82) 18%,
        rgba(20, 17, 13, 0.52) 52%,
        rgba(20, 17, 13, 0.86) 100%
      );
  }

  /* Section heads stack */
  .section-head {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .section-head__primary { grid-column: auto; }

  .section-head__title { max-width: none; }

  .section-head__aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 0;
  }

  .service-list { margin-top: 42px; }

  /* About: images move out of the flow into a simple pair */
  .about__top,
  .about__bottom { width: 100%; margin: 0; }

  .about__top { margin-bottom: 34px; }
  .about__bottom { margin-top: 34px; }

  .about__figure--one,
  .about__figure--two { width: 47%; height: 200px; }

  .about__body { width: 100%; }

  .about-badge { width: 47%; padding: 22px; }

  /* Quote */
  .quote-grid { grid-template-columns: 1fr; }

  .quote__media { min-height: 320px; }

  .quote__panel { padding: 60px var(--gutter); }

  .quote-form__grid { gap: 24px; }

  /* Services: the photo column takes half the row */
  .service { grid-template-columns: 1fr 5fr 6fr; }
  .service__summary { grid-template-columns: 1fr 5fr; }
  .service__media { width: 50%; }
  .service__more-inner { padding-right: 26px; }

  /* Process — sticky stage still works but is more compact */
  .process__track { height: 380vh; }
  .process__stage { min-height: 640px; }
  .process__circle { width: 330px; height: 330px; }
  .process__center { width: 140px; height: 140px; }
  .process__node { width: 60px; height: 60px; }
  .process__node-dot { width: 46px; height: 46px; }
  .process__node svg { width: 21px; height: 21px; }

  .process__caption {
    position: static;
    width: 100%;
    max-width: none;
    text-align: center;
    padding-top: 400px;
  }

  .process__caption-item { position: absolute; left: 0; }
  .process__caption-item.is-active { position: relative; }

  .process__card { display: none; }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 30px;
  }

  .reviews__col--2 { margin-top: 50px; }
  .reviews__col--3 { display: none; }

  /* CTA */
  .cta { padding-block: 96px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }

  .footer-col + .footer-col {
    padding-left: 0;
    border-left: 0;
  }

  .footer-brand { grid-column: 1 / -1; }

  /* Sub-pages */
  .page-head { padding-top: 150px; padding-bottom: 66px; }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .service-detail:nth-child(even) .service-detail__media { order: 0; }
  .service-detail + .service-detail { margin-top: 70px; }

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

  .form-panel { padding: 36px 28px 40px; }
}

/* ==========================================================================
   Mobile — 767px and below
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --fs-h1: 40px;      --lh-h1: 48px;  --ls-h1: -1.1px;
    --fs-h2: 32px;      --lh-h2: 40px;  --ls-h2: -0.8px;
    --fs-h3: 27px;      --lh-h3: 36px;  --ls-h3: -0.4px;
    --fs-h4: 22px;      --lh-h4: 30px;  --ls-h4: -0.5px;
    --fs-h5: 19px;      --lh-h5: 29px;
    --fs-display: 38px; --lh-display: 46px; --ls-display: -1px;
    --fs-lead: 22px;    --lh-lead: 30px;
    --fs-eyebrow: 15px; --lh-eyebrow: 24px;
    --section-space: 62px;
    --gutter: 20px;
  }

  .hero { padding-top: 128px; padding-bottom: 52px; }
  .hero__lead { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__tags { gap: 12px 18px; }

  .section-head { row-gap: 22px; }
  .section-head__primary .eyebrow { margin-bottom: 14px; }
  .section-head__aside { gap: 12px; }
  .service-list { margin-top: 34px; }

  .about__top,
  .about__bottom {
    flex-direction: column;
    gap: 16px;
  }

  .about__figure--one,
  .about__figure--two,
  .about-badge { width: 100%; }

  .about__figure--one,
  .about__figure--two { height: 210px; }

  .about__actions { flex-direction: column; }
  .about__actions .btn { width: 100%; }

  .quote__panel { padding: 50px var(--gutter); }
  .quote-form__grid { grid-template-columns: 1fr; }
  .quote-form__foot { flex-direction: column; align-items: stretch; }
  .quote-form__foot .btn { width: 100%; }

  .quote__trust { flex-direction: column; align-items: flex-start; }
  .quote__trust-side { text-align: left; }

  /* Services: single column, every row open, photo first */
  .service {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding-top: 26px;
  }

  .service__summary {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: baseline;
    height: auto;
    padding-block: 16px 4px;
    cursor: default;
  }

  .service__media {
    position: static;
    width: 100%;
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 3 / 2;
  }

  .service__more {
    grid-column: 1;
    grid-row: 3;
    height: auto !important;
    overflow: visible;
  }

  .service__more-inner { padding: 0 0 34px; }

  /* Process becomes a plain vertical stepper */
  .process__track { height: auto; }

  .process__stage {
    position: static;
    height: auto;
    min-height: 0;
    display: block;
    padding-bottom: var(--section-space);
  }

  .process__stage-inner { display: none; }

  .process__steps-mobile {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: var(--container);
    margin: 34px auto 0;
    padding-inline: var(--gutter);
  }

  .pstep {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding-block: 24px;
    border-top: 1px solid var(--color-border);
  }

  .pstep:last-child { border-bottom: 1px solid var(--color-border); }

  .pstep__badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
  }

  .pstep__badge svg { width: 22px; height: 22px; }

  .pstep__num {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text);
    font-size: 13px;
  }

  .pstep h3 {
    margin-bottom: 8px;
    font-size: var(--fs-h5);
    line-height: var(--lh-h5);
  }

  .pstep p {
    color: var(--color-text);
    font-size: var(--fs-body-sm);
    line-height: 24px;
  }

  /* Reviews single column */
  .reviews__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; }
  .reviews__col--2 { margin-top: 0; }
  .reviews__col--3 { display: flex; }

  .benefit { padding: 16px 22px 18px 16px; }
  .benefit__icon { width: 40px; height: 40px; }
  .benefit__title { font-size: var(--fs-body); }

  .cta { padding-block: 76px; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-bottom__links { flex-wrap: wrap; }

  .page-head { padding-top: 128px; padding-bottom: 54px; }

  .contact-card { padding: 26px 22px 28px; }
  .form-panel { padding: 30px 22px 34px; }

  .error-page__code { font-size: 130px; letter-spacing: -5px; }

  .mobile-menu__link { font-size: 28px; line-height: 38px; }
}

/* ==========================================================================
   Small mobile — 479px and below
   ========================================================================== */

@media (max-width: 479px) {
  :root {
    --fs-h1: 34px;      --lh-h1: 42px;  --ls-h1: -0.8px;
    --fs-h2: 28px;      --lh-h2: 36px;
    --fs-display: 32px; --lh-display: 40px; --ls-display: -0.7px;
    --gutter: 18px;
  }

  .hero { padding-top: 116px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .about-badge__value { font-size: 40px; line-height: 48px; }

  .error-page__code { font-size: 96px; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .whatsapp-float,
  .mobile-menu,
  .cta,
  .marquee { display: none !important; }

  body { color: #000; background: #fff; }
  .prose a::after { content: ' (' attr(href) ')'; font-size: 12px; }
}

/* ==========================================================================
   Sub-page components
   ========================================================================== */

@media (max-width: 991px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-split__media { aspect-ratio: 4 / 3; }

  .value-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 36px;
  }
}

@media (max-width: 767px) {
  .value-grid { grid-template-columns: 1fr; }

  .fact-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-card { padding: 26px 22px 28px; }
}
