/* ============================================================
   Responsive — no horizontal scroll at 320px
   ============================================================ */

/* ---------- <= 1240 ---------- */
@media (max-width: 1240px) {
  .header-main {
    padding: 0 24px;
  }
  .main-nav a {
    padding: 10px 8px;
    font-size: 17px;
  }
  .header-cta {
    margin-left: 12px;
  }
}

/* ---------- <= 1100 (zigzag -> 2-col grid; 1046px container would overflow) ---------- */
@media (max-width: 1100px) {
  .wh-zigzag {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    height: auto;
  }
  .zig-item {
    position: static;
    width: 100%;
  }
  .zig-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ---------- <= 1024 ---------- */
@media (max-width: 1024px) {
  .main-nav ul {
    gap: 0;
  }
  .main-nav a {
    font-size: 15px;
    padding: 10px 6px;
  }
  .logo-text {
    width: 180px;
  }
}

/* ---------- <= 900 (switch to hamburger) ---------- */
@media (max-width: 900px) {
  :root {
    --header-height: 88px;
    --header-strip: 28px;
  }
  .header-main {
    height: 60px;
    padding: 0 16px;
  }
  .logo-icon {
    width: 44px;
    height: 44px;
  }
  .logo-text {
    width: 140px;
    height: 18px;
  }
  .main-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .footer-inner {
    gap: 32px;
  }
}

/* ---------- <= 768 ---------- */
@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
  }
  .page-hero h1 {
    font-size: 44px;
  }
  .wh-zigzag {
    grid-template-columns: repeat(2, 1fr);
  }
  .wh-photos img {
    width: 100%;
  }
  .wh-hero img.bg {
    object-fit: cover;
  }
  .wh-hero-inner {
    padding-top: 48px;
  }
  .form-section {
    padding: 40px 20px;
  }
  .form-section--large {
    padding: 80px 20px 50px;
  }
  .contact-form--wide > .form-grid,
  .contact-form--inset > .form-grid {
    padding: 0;
  }
  .contact-form--wide > .form-title,
  .contact-form--inset > .form-title {
    padding-left: 0;
  }
  .questions-section {
    padding: 26px 20px 70px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer-info {
    padding-top: 0;
  }
  .page-hero {
    height: 420px;
  }
  .page-hero--487 {
    height: 420px;
  }
  .page-hero--500 {
    height: 420px;
  }
}

/* ---------- <= 480 ---------- */
@media (max-width: 480px) {
  .section-title {
    font-size: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }
  .contact-form .form-title {
    margin-bottom: 40px;
  }
  .contact-form .form-title h1,
  .contact-form .form-title h4 {
    font-size: 28px;
  }
  .page-hero h1 {
    font-size: 36px;
    padding-bottom: 40px;
  }
  .wh-hero h1 {
    padding-bottom: 0;
  }
  .wh-zigzag {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .footer-row span,
  .footer-row a {
    font-size: 16px;
  }
  .plans-empty h1 {
    font-size: 22px;
  }
  .plans-empty p {
    font-size: 15px;
  }
  .btn-dark {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
  .btn-dark--submit {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
}

/* ---------- <= 375 ---------- */
@media (max-width: 375px) {
  .header-main {
    padding: 0 12px;
  }
  .logo-text {
    width: 120px;
  }
  .wh-zigzag {
    grid-template-columns: repeat(2, 1fr);
  }
  .wh-head {
    gap: 12px;
  }
  .wh-head img.logo-sm {
    height: 24px;
  }
  .wh-head img.cube {
    width: 72px;
    height: 81px;
  }
  .wh-cube h2 {
    font-size: 22px;
  }
}

/* ---------- <= 320 ---------- */
@media (max-width: 320px) {
  .inner {
    padding: 0 14px;
  }
  .section-title {
    font-size: 26px;
  }
  .logo-icon {
    width: 38px;
    height: 38px;
  }
  .logo-text {
    width: 108px;
  }
  .wh-head {
    gap: 8px;
  }
  .wh-head img.logo-sm {
    height: 18px;
  }
  .wh-head img.cube {
    width: 60px;
    height: 68px;
  }
  .wh-cube h2 {
    font-size: 18px;
  }
  .wh-zigzag {
    grid-template-columns: 1fr;
  }
  .footer-logo {
    width: 120px;
    height: 120px;
  }
}
