/* ===== LIVE THEME BREAKPOINT: 1200px ===== */
@media (max-width: 1200px) {
  .topbar { display: none !important; }

  .page-featured { margin-top: 0; }

  .site-header-wrap {
    position: relative;
    z-index: 1000;
    border-bottom: 3px solid var(--skin);
  }

  .site-header-wrap .container.site-header-main {
    max-width: 100%;
    margin: 0 30px 0 25px;
    width: auto;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .logo {
    flex: 0 0 auto;
    order: 1;
  }

  #site-header-menu {
    position: static;
    width: auto;
    flex: 0 0 auto;
    order: 2;
    margin-left: auto;
    float: none;
  }

  .main-navigation {
    position: relative;
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    right: auto;
    z-index: 10;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .menu-toggle .fa { display: none; }

  #site-navigation .nav-menu-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 115px;
    width: 100%;
    background: #fff;
    border-top: 0;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.12);
    padding: 10px 20px;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  #site-navigation.toggled-on .nav-menu-wrap {
    max-height: 600px;
    overflow-y: auto;
  }

  .nav-menu {
    display: block;
    float: none;
  }

  .nav-menu > li {
    display: block;
    text-align: left;
  }

  .nav-menu > li > a {
    display: block;
    height: auto;
    line-height: 1.4;
    padding: 15px 0;
    white-space: normal;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-menu > li:last-child > a { border-bottom: 0; }

  .site-header-wrap.is-sticky #site-navigation .nav-menu-wrap { top: 75px; }

  .titlebar { background-attachment: scroll !important; }

  .intro-grid,
  .excellent-grid,
  .why-grid,
  .values-grid,
  .quote-card {
    flex-direction: column;
  }

  .intro-media,
  .intro-copy,
  .excellent-copy,
  .excellent-photo,
  .why-photo,
  .why-copy,
  .values-list,
  .values-photo,
  .quote-form,
  .quote-photo {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .excellent-copy::before,
  .excellent-photo::before,
  .why-photo::before,
  .why-copy::before {
    left: 0;
    right: 0;
  }

  .excellent-copy { padding: 50px 30px; }
  .why-copy { padding: 40px 25px; }
  .excellent-photo,
  .why-photo,
  .quote-photo { min-height: 320px; }

  .footer-main { padding: 15px 0 35px; }
}

@media (max-width: 479px) {
  .site-header-wrap .container.site-header-main { margin: 0 15px; }
}

/* ===== CONTAINER WIDTHS (Bootstrap 3) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
  .container { max-width: 970px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .container { max-width: 750px; }
}

/* ===== REVSLIDER BREAKPOINTS ===== */
@media (max-width: 1024px) {
  .hero-slider { height: 700px; }
  .hero-caption {
    left: 71px;
    top: 106px;
    width: 398px;
    height: 184px;
    padding: 28px 22px 0;
  }
  .hero-caption h2 { font-size: 28px; line-height: 35px; margin-bottom: 16px; }
  .hero-caption p { font-size: 17px; line-height: 17px; }
}

@media (max-width: 778px) {
  .hero-slider { height: 450px; }
  .hero-caption {
    left: 53px;
    top: 80px;
    width: 302px;
    height: 139px;
    padding: 18px 16px 0;
  }
  .hero-caption h2 { font-size: 21px; line-height: 26px; margin-bottom: 10px; }
  .hero-caption p { font-size: 12px; line-height: 12px; }
}

@media (max-width: 480px) {
  .hero-slider { height: 350px; }
  .hero-arrow { display: none; }
  .hero-caption {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 396px;
    height: auto;
    min-height: 0;
    padding: 28px 22px;
  }
  .hero-caption h2 { font-size: 24px; line-height: 28px; margin-bottom: 14px; }
  .hero-caption p { font-size: 18px; line-height: 22px; }
}

/* ===== TABLET: 768–991 ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }

  .stat + .stat::before { display: none; }

  .stats { flex-wrap: wrap; margin-right: 0; }
  .stat { flex: 0 0 33.333%; margin-bottom: 18px; }

  .ptable-grid { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .ptable { padding: 30px 22px 20px; }
  .step-cards { grid-template-columns: repeat(3, 1fr); }
  .stat-boxes,
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .land-split,
  .pkg-row { flex-direction: column; }
  .pkg-page { grid-template-columns: 1fr; }
}

/* ===== MOBILE: ≤767 ===== */
@media (max-width: 767px) {
  .site-header-wrap .site-header-main { height: 80px; }
  .site-header-wrap { height: auto; }
  .logo img { width: 95px; height: auto; max-height: 56px; }
  #site-navigation .nav-menu-wrap { top: 83px; }
  .site-header-wrap.is-sticky .site-header-main { height: 70px; }
  .site-header-wrap.is-sticky #site-navigation .nav-menu-wrap { top: 73px; }

  .page-featured { margin: 0; padding: 0; }

  .section-intro { padding: 60px 0 30px; }
  .section-excellent { margin-top: 0; }
  .section-quote { margin-top: 0; }

  .stats {
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 35px;
  }

  .stat {
    flex: 1;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 15px;
  }

  .stat + .stat::before { display: none; }
  .stat:last-child { border-bottom: 0; }

  .service-grid,
  .blog-grid,
  .offer-grid,
  .ptable-grid,
  .step-cards,
  .stat-boxes,
  .info-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  .footer-bottom .footer-social { justify-content: flex-start; }

  .titlebar h1 { text-align: center; }

  .section-title { font-size: 28px; line-height: 36px; }

  .quote-form { padding: 28px 16px 40px; }

  .page-post-layout { flex-direction: column; }
  .page-post-main,
  .page-post-side { width: 100%; }
  .page-post-side { margin-top: 0; padding: 40px 15px 70px; }

  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}

/* ===== TOUR TABS: stack at 480 like live ===== */
@media (max-width: 480px) {
  .tour { flex-direction: column; }
  .tour-nav,
  .tour-panels {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }
  .tour-nav button { border-right: 0; border-bottom: 1px solid #e5e5e5; }
  .tour-panels { padding: 20px 0 0; }
}

/* ===== NAV LINK SHRINK: 992–1200 still desktop until 1200 ===== */
@media (min-width: 1201px) and (max-width: 1280px) {
  .nav-menu > li > a { padding: 0 6px; font-size: 13px; }
}
