/* ==========================================================================
   Kite House Dakhla — responsive rules
   Breakpoints follow the original theme: 1240 (container), 1024 (tablet),
   780 (page-builder columns stack), 768 (mobile navigation), 480 (small phones).
   ========================================================================== */

@media (max-width: 1240px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .row:not(.row--full) > .row__inner { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 1024px) {
  .feature { width: calc(50% - 25px); }
  .hero__title { font-size: 44px; }
  .hero__subtitle { font-size: 30px; }
}

/* Page-builder columns stack (SiteOrigin collapse point) */
@media (max-width: 780px) {
  .row { padding: var(--row-pad-m, var(--row-pad, 0)); }
  .row__inner { flex-direction: column; align-items: stretch; gap: 30px; }
  .row--reverse-m > .row__inner { flex-direction: column-reverse; }
  .row--middle > .row__inner { align-items: stretch; }
  .cell { flex: 0 0 auto; max-width: none; width: 100%; }
  .block { padding: var(--pad-m, var(--pad, 0)); }
  /* very large desktop paddings are reduced on phones */
  .block[style*="--pad:200px"] { --pad: 120px 15px 120px 15px; }
  .block[style*="--pad:150px"] { --pad: 90px 15px 20px 15px; }
  .image-panel, .row--middle .image-panel { min-height: min(var(--min-h, 550px), 360px); }
  .contact-form__grid { flex-direction: column; gap: 0; }
  .map { height: 420px; }
  .row--padded > .row__inner { padding-left: 0; padding-right: 0; }
  .row:has(.room) > .row__inner { gap: 0; }
  .room { margin-bottom: 20px; }
}

/* Mobile navigation */
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .header-main__inner { flex-direction: row; justify-content: space-between; min-height: 68px; padding: 0 15px; }
  .brand, .site-header--transparent:not(.is-scrolled) .brand, .site-header.is-scrolled .brand { margin: 7px 0; }
  .brand__logo, .site-header--transparent .brand__logo--light, .site-header.is-scrolled .brand__logo { width: 65px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; padding: 0;
    border: 0; background: transparent; color: var(--c-primary); font-size: 28px;
  }
  .site-header--transparent:not(.is-scrolled) .nav-toggle { color: #fff; }
  .nav-toggle .icon--close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--close { display: inline-block; }
  .main-nav, .site-header--transparent:not(.is-scrolled) .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; width: auto; max-height: 0; overflow: hidden; border: 0;
    background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .12); transition: max-height .35s var(--ease);
  }
  .main-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; padding: 6px 0 10px; }
  .main-nav li { border-bottom: 1px solid #f0f0f0; }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a, .site-header--transparent:not(.is-scrolled) .main-nav a, .site-header.is-scrolled .main-nav a {
    padding: 0 20px; line-height: 42px; color: var(--c-text);
  }
  .site-header--transparent:not(.is-scrolled) .main-nav a::before { display: none; }
  .main-nav .is-current > a { color: var(--c-primary); }
  .site-header--transparent:not(.is-scrolled):has(.main-nav.is-open) { background: rgba(0, 0, 0, .25); }
  .hero--home .hero__content { padding-top: 40px; }
  .lang-switch { top: 17px; left: auto; right: 62px; }
  .lang-switch__list { left: auto; right: 0; }
  .lang-switch__toggle { height: 34px; padding: 0 10px; }
}

@media (max-width: 600px) {
  h1, .h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  .hero__title { font-size: 38px; }
  .hero--home .hero__title { font-size: 52px; }
  .hero__subtitle { font-size: 26px; }
  .hero { height: min(var(--hero-h, 550px), 100svh); }
  .hero:not(.hero--home) { height: 420px; }
  .hero__nav { display: none; }
  .feature { width: calc(50% - 17px); }
  .features { gap: 25px 17px; }
  .footer-quote__title { padding: 0 40px; font-size: 15px; line-height: 26px; }
  .footer-top { padding-top: 60px; }
  .cookie-notice { padding: 12px 15px 12px; }
  .post { padding-top: 30px; }
  .post__content h2 { font-size: 24px; }
  .post__content h3 { font-size: 20px; }
  .gallery { --rh: 90px !important; }
  .gallery[data-row-height="230"] { --rh: 120px !important; }
  .btn1, .btn3 { min-width: 0; max-width: 100%; }
  .scroll-cue { margin-top: -95px; }
}

@media (max-width: 400px) {
  .feature { width: 100%; }
  .hero--home .hero__title { font-size: 46px; }
}

/* Print */
@media print {
  .site-header, .float-btn, .lang-switch, .cookie-notice, .scroll-cue, .hero__nav, .map { display: none !important; }
  .site-main { padding-top: 0; }
  .hero { height: auto; min-height: 0; color: #000; background: none; }
  .hero__slide { position: static; opacity: 1; visibility: visible; background: none; }
  .hero__slide:not(.is-active) { display: none; }
  .hero__title, .hero__subtitle { color: #000; text-shadow: none; }
}
