/* ==========================================================================
   Responsive adjustments (desktop-first: laptop → tablet → mobile)
   ========================================================================== */

/* ---- Laptop: collapse navigation ----------------------------------------- */
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: block; }
}

@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
}

/* ---- Tablet --------------------------------------------------------------- */
@media (max-width: 900px) {
  .topbar__info span:nth-of-type(3), .topbar__info .icon:nth-of-type(2), .topbar__sep { display: none; }
  :root { --header-h: 58px; }
  body { font-size: 16px; }
  .brand img { height: 40px; }

  .hero-slide { min-height: max(600px, calc(100svh - 150px)); }
  .hero-slide::before {
    background: linear-gradient(0deg, rgba(8, 8, 8, .88) 0%, rgba(8, 8, 8, .66) 45%, rgba(8, 8, 8, .18) 75%, rgba(8, 8, 8, .05) 100%);
  }
  .hero-slide__content { padding: 120px 28px 104px; }
  .hero__controls { left: 20px; right: 20px; justify-content: space-between; }
  .hero__count { display: none; }
  .hero__arrows { margin-left: auto; }

  .section-head--row { align-items: flex-end; }

  .why { grid-template-columns: 1fr; }
  .why__intro { position: static; }
  .why__photo { aspect-ratio: 16 / 10; }

  .areas { grid-template-columns: 1fr; }
  .work-grid { grid-template-rows: repeat(2, 220px); gap: 12px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }

  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }

  /* Booking: single column with a compact, expandable summary above the form */
  .bk-layout { grid-template-columns: 1fr; gap: 16px; }
  .bk-summary { order: -1; top: calc(var(--header-h) + 8px); z-index: 5; box-shadow: var(--shadow); }
  .bk-summary__toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 20px;
    border: 0; background: none; font-weight: 600; font-size: 16px; text-align: left;
  }
  .bk-summary__toggle-total { margin-left: auto; font-variant-numeric: tabular-nums; }
  .bk-summary__toggle .icon { transition: transform .35s var(--ease-out); }
  .bk-summary__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .bk-summary__body { max-height: 0; padding: 0 20px; overflow: hidden; transition: max-height .45s var(--ease-out), padding .35s var(--ease-out); }
  .bk-summary.is-open .bk-summary__body { max-height: 70vh; padding-bottom: 20px; overflow-y: auto; }
  .bk-summary__body > .bk-summary__title { display: none; }

  .bk-estimate { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bk-estimate__note { text-align: left; }

  .bk-progress__label { display: none; }
  .bk-progress { display: flex; justify-content: space-between; }
  .bk-progress__item.is-current .bk-progress__label { display: inline; }
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 640px) {
  .topbar__info { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__long { display: none; }
  .topbar__short { display: inline; }
  .topbar { font-size: 12px; }
  .topbar__inner { padding: 0 8px; }
  .topbar__links { gap: 0; }
  .topbar a { gap: 6px; padding: 6px 7px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero__wrap { padding: 0 10px; }
  .hero__stage { border-radius: 24px; }
  /* Height follows the content: a short band of photo on top, then the text */
  .hero-slide { min-height: 0; }
  .hero-slide__content { padding: 132px 18px 76px; }
  .hero-slide__title { font-size: clamp(32px, 9.2vw, 40px); margin-bottom: 12px; }
  .hero-slide__lead { font-size: 16px; line-height: 1.45; margin-bottom: 20px; }
  .hero-slide__actions { flex-wrap: nowrap; gap: 8px; }
  .hero-slide__actions .btn--lg { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 12px 10px; font-size: 15px; }
  .hero-slide__actions .btn__arrow { display: none; }
  .hero-pill { font-size: 12.5px; margin-bottom: 14px; padding: 7px 14px 7px 10px; }
  .hero-quick { display: none; }
  .hero__controls { left: 14px; right: 14px; bottom: 14px; }
  .hero__dots { height: 32px; }
  .hero__controls .icon-btn { width: 36px; height: 36px; }

  .section-head--row .carousel-arrows { display: none; }
  /* Autoplaying carousels keep all controls on phones, on their own row under the heading */
  #services .section-head--row, #reviews .section-head--row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head--row .carousel-arrows--autoplay { display: flex; gap: 8px; }
  .carousel-arrows--autoplay .icon-btn { width: 40px; height: 40px; }
  .carousel__track { gap: 14px; }
  .svc-card { width: min(78vw, 310px); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; }
  .work-tile { border-radius: 18px; }
  .work-tile figcaption { left: 14px; right: 14px; bottom: 12px; font-size: 14px; }
  #our-work .section-head--row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .review-card { width: 82vw; }

  .why__grid { grid-template-columns: 1fr; }
  .review-sources { grid-template-columns: 1fr; }
  .faq__q button { padding: 16px 16px; gap: 12px; }
  .faq__a p { padding: 0 18px 18px 43px; }
  .source-card__head { flex-wrap: wrap; }
  .source-card__pill { margin-left: 0; order: 3; }
  .areas__check { padding: 24px 20px; }

  .final-cta__actions .btn { width: 100%; }

  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer__credit { display: block; margin: 6px 0 0; padding: 0; border: 0; }

  /* Booking form */
  .bk-main { padding: 22px 18px; border-radius: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .choice-cards { grid-template-columns: 1fr; gap: 8px; }
  .choice-card__inner { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px 16px; }
  .choice-card__inner .icon { grid-row: span 2; margin: 2px 0 0; }
  .choice-card__price { grid-column: 2; margin-top: 4px; }
  .segmented--3 span { padding: 10px 6px; font-size: 14px; }
  .bk-suggest { flex-wrap: wrap; }
  .bk-suggest .btn { margin-left: 40px; }
  .cal { padding: 16px 12px; margin-left: -4px; margin-right: -4px; }
  .cal__head { flex-direction: column; }
  .cal__nav { align-self: stretch; justify-content: space-between; }
  .review__row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .review__row dt { grid-column: 1; font-size: 13px; }
  .review__row dd { grid-column: 1; }
  .review__row .review__edit-wrap { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .bk-nav { flex-wrap: wrap; }
  .bk-nav__step { order: -1; width: 100%; margin: 0 0 4px; text-align: center; }
  .bk-nav [data-bk-next], .bk-nav [data-bk-submit] { flex: 1; min-width: 0; }
}

/* ---- Very small phones ---------------------------------------------------- */
@media (max-width: 360px) {
  .hero-slide__actions { flex-direction: column; align-items: stretch; }
  .hero-slide__actions .btn--lg { flex: none; width: 100%; }
  .topbar__short { display: none; }
  .hero-pill { flex-wrap: wrap; white-space: normal; }
  .rotator { white-space: nowrap; }
}
