/* ==========================================================================
   BOWEN EXECUTIVE — CONSOLIDATED RESPONSIVE STYLES (responsive.css)
   Media queries for all viewports: 1400px, 1200px, 1024px, 768px, 575px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VIEWPORT: max-width 1400px
   -------------------------------------------------------------------------- */
@media (max-width: 1400px) {
  .navbar {
    width: calc(100% - 4rem);
    padding: 0.7rem 1.8rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 13.5px;
  }

  .services-container,
  .snapshot-container,
  .container-custom {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }

  .snapshot-container {
    gap: 100px;
  }

  .footer-overlay {
    width: 100%;
    left: 0;
    top: auto;
    bottom: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   2. VIEWPORT: max-width 1200px
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --h1-size: 54px;
    --h1-lh: 58px;
    --h2-size: 46px;
    --h2-lh: 50px;
  }

  .navbar {
    width: calc(100% - 3rem);
    padding: 0.65rem 1.4rem;
  }

  .nav-links {
    gap: 0.85rem;
  }

  .nav-links a {
    font-size: 13px;
  }

  .snapshot-container {
    gap: 40px;
  }

  .hero-section:not(:has(.hero-slide)),
  .hero-subpage,
  .hero-slide,
  .hero-bottom-controls {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .container,
  .container.p-0,
  .hero-container,
  .about-section .container,
  .market-container {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sectors-header {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   3. VIEWPORT: max-width 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --h1-size: 40px;
    --h1-lh: 48px;
    --h2-size: 40px;
    --h2-lh: 48px;
    --h3-size: 20px;
    --h3-lh: 28px;
    --p-size: 16px;
    --p-lh: 25px;
  }

  h1, h2 {
    font-size: 40px;
    line-height: 48px;
  }

  /* Header & Navbar */
  .navbar {
    width: calc(100% - 3rem);
    padding: 0.8rem 2rem;
    top: 1.5rem;
  }

  .nav-links,
  .nav-contact {
    display: none !important;
  }

  .hamburger {
    display: block !important;
    color: var(--light);
  }

  /* Dropdown Megamenu */
  .dropdown-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .dropdown-inner {
    padding: 6.5rem 2.5rem 3rem;
  }

  /* Homepage Hero */
  .hero-section {
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    padding: 7rem 1.5rem 3rem 1.5rem;
    justify-content: flex-end;
  }

  .hero-slide {
    padding: 7rem 1.5rem 5rem 1.5rem;
    justify-content: flex-end;
  }

  .hero-bottom-controls {
    padding: 0 1.5rem 2rem 1.5rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .hero-text-left h1 {
    font-size: var(--h1-size);
    line-height: var(--h1-lh);
    max-width: 100%;
  }

  .hero-text-right {
    max-width: 100%;
  }

  .hero-text-right p {
    font-size: var(--p-size);
    line-height: var(--p-lh);
  }

  /* Subpages Hero */
  .hero-section:not(:has(.hero-slide)),
  .hero-subpage,
  .about-page .hero-section,
  .contact-page .hero-section,
  .civil-page .hero-section {
    height: 80vh;
    min-height: 520px;
    max-height: 750px;
    padding: 7rem 1.5rem 2.5rem 1.5rem;
    display: flex;
    align-items: flex-end;
  }

  .hero-title {
    font-size: 40px;
    line-height: 48px;
    max-width: 100% !important;
    width: 100% !important;
    text-align: left;
  }

  .contact-page .hero-title,
  .civil-page .hero-title {
    text-align: center;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 25px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .contact-page .hero-subtitle,
  .civil-page .hero-subtitle {
    text-align: center !important;
    margin: 0 auto !important;
  }

  /* Layout Containers */
  .content-container {
    width: calc(100% - 3rem);
    max-width: 100%;
  }

  .container,
  .container.p-0,
  .hero-container,
  .about-section .container,
  .market-container,
  .responsive-container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Services Slider */
  .services-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .services-container,
  .container-custom,
  .services-header {
    width: 100%;
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .services-header h2,
  .snapshot-left h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .service-card .service-img-wrapper,
  .service-card.active .service-img-wrapper,
  .service-card:hover .service-img-wrapper {
    height: 320px !important;
    width: 100% !important;
  }

  .service-card img,
  .service-card.active img,
  .service-card:hover img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px;
  }

  /* Snapshot Section */
  .snapshot-section {
    padding: 80px 0;
  }

  .snapshot-container {
    flex-direction: column;
    gap: 40px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  .snapshot-left,
  .snapshot-right {
    width: 100%;
    max-width: 100%;
  }

  /* Insights Section */
  .insights-section {
    padding-top: clamp(380px, 45vw, 500px);
    padding-bottom: 60px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: auto;
    width: 100%;
  }

  .civil-insights-cards-section {
    padding: 60px 1.5rem;
  }

  .insights-header {
    width: 100%;
    max-width: 100%;
  }

  .insights-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .follow-container {
    width: 100%;
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Subpage Content Sections */
  .section-title {
    font-size: 40px;
    line-height: 48px;
  }

  .text-section {
    margin-bottom: 60px;
    gap: 24px;
    width: 100%;
  }

  .text-content {
    max-width: 100%;
    width: 100%;
  }

  .text-content p {
    font-size: 16px;
    line-height: 26px;
  }

  .sectors-section {
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
  }

  .sectors-header {
    margin-bottom: 40px;
    max-width: 100%;
    width: 100%;
  }

  .sectors-header h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .carousel-nav {
    display: none;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }

  .sector-card {
    width: 100%;
    max-width: 100%;
  }

  .sector-info h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .sector-info p {
    font-size: 16px;
    line-height: 24px;
  }

  .image-container {
    height: clamp(240px, 32vw, 360px);
    width: 100%;
  }

  .image-frame-container,
  .leadership-assessment-section {
    margin-bottom: 60px;
    height: clamp(400px, 55vw, 520px);
    width: 100%;
    max-width: 100%;
  }

  .la-text-top h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .la-text-top,
  .la-text-bottom {
    left: 32px;
    right: 32px;
    max-width: calc(100% - 64px);
  }

  .market-section {
    padding: 60px 0;
    width: 100%;
  }

  .market-title {
    font-size: 20px;
    line-height: 28px;
  }

  .market-container {
    gap: 40px;
    width: 100%;
    max-width: 100%;
  }

  .market-desc {
    font-size: 16px;
    line-height: 25px;
    max-width: 100%;
  }

  .map-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .title-section {
    min-height: auto;
    padding: 60px 0;
  }

  .title-section h2 {
    font-size: 40px;
    line-height: 48px;
    text-align: center;
  }

  .img-wrapper {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  /* Footer & Banner */
  .site-footer {
    padding: 6rem 1.5rem 0rem 1.5rem;
  }

  .cta-spacer {
    height: 250px;
  }

  .contact-banner-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .contact-banner {
    width: 100%;
    padding: 3rem 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .banner-content h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .footer-content-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .banner-content {
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .banner-intro br {
    display: none;
  }

  .nick-img {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    max-height: 350px;
    width: 100%;
    margin-top: 1rem;
  }

  .banner-contact-links {
    justify-content: center;
  }

  .footer-top {
    flex-direction: column;
    gap: 3.5rem;
  }

  .footer-links-wrapper {
    gap: 2.75rem;
  }
}

/* --------------------------------------------------------------------------
   4. VIEWPORT: max-width 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --h1-size: 40px;
    --h1-lh: 48px;
    --h2-size: 40px;
    --h2-lh: 48px;
    --h3-size: 18px;
    --h3-lh: 25px;
    --p-size: 15px;
    --p-lh: 23px;
  }

  h1, h2 {
    font-size: 40px;
    line-height: 48px;
  }

  /* Header & Navbar */
  .navbar {
    width: calc(100% - 2rem);
    padding: 0.8rem 1.5rem;
    top: 1rem;
  }

  /* Dropdown Megamenu */
  .dropdown-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .dd-card {
    flex: unset;
    width: 100%;
  }

  .dropdown-navbar {
    display: none;
  }

  .dd-card-img {
    height: 220px;
    width: 100%;
  }

  .dd-card-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .dropdown-carousel-arrows {
    display: none;
  }

  .dropdown-inner {
    padding: 6rem 1.5rem 2.5rem;
    overflow-y: auto;
    max-height: 100vh;
  }

  /* Homepage Hero */
  .hero-section {
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    padding: 6.5rem 1rem 2.5rem 1rem;
    justify-content: flex-end;
  }

  .hero-slide {
    padding: 6.5rem 1rem 4rem 1rem;
    justify-content: flex-end;
  }

  .hero-bottom-controls {
    padding: 0 1rem 1.5rem 1rem;
  }

  .carousel-nav {
    display: none !important;
  }

  /* Subpages Hero */
  .hero-section:not(:has(.hero-slide)),
  .hero-subpage,
  .about-page .hero-section,
  .contact-page .hero-section,
  .civil-page .hero-section {
    height: 80vh;
    min-height: 460px;
    max-height: 650px;
    padding: 6.5rem 1rem 2rem 1rem;
    display: flex;
    align-items: flex-end;
  }

  .hero-title {
    font-size: 40px;
    line-height: 48px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 23px;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .contact-page .hero-subtitle,
  .civil-page .hero-subtitle {
    text-align: center !important;
    margin: 0 auto !important;
  }

  /* Layout Containers */
  .content-container {
    width: calc(100% - 2rem);
    max-width: 100%;
  }

  .container,
  .container.p-0,
  .hero-container,
  .about-section .container,
  .market-container,
  .responsive-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Services Grid */
  .services-container,
  .container-custom,
  .services-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .services-header h2,
  .snapshot-left h2,
  .banner-content h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .services-slider-container {
    overflow: visible;
    scroll-snap-type: none;
  }

  .services-grid {
    flex-direction: column;
    gap: 40px;
    width: 100%;
    height: auto;
  }

  .service-card {
    flex: unset;
    width: 100%;
    max-width: 100%;
  }

  .service-card .service-img-wrapper,
  .service-card.active .service-img-wrapper,
  .service-card:hover .service-img-wrapper {
    height: 240px !important;
    width: 100% !important;
  }

  .service-card img,
  .service-card.active img,
  .service-card:hover img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px;
  }

  /* Snapshot Section */
  .snapshot-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Insights Section */
  .insights-section {
    background: #000 !important;
    background-image: none !important;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .civil-insights-cards-section {
    padding: 40px 1rem;
  }

  .insights-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .insight-card {
    width: 100%;
    max-width: 100%;
  }

  .img-wrapper,
  .insight-img {
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }

  .follow-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Subpage Content Sections */
  .section-title {
    font-size: 40px;
    line-height: 48px;
  }

  .sectors-section {
    padding: 40px 0;
    width: 100%;
  }

  .sectors-header h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sector-card {
    width: 100%;
    max-width: 100%;
  }

  .sector-info h3 {
    font-size: 18px;
    line-height: 25px;
  }

  .sector-info p {
    font-size: 15px;
    line-height: 22px;
  }

  .image-container {
    height: 240px;
  }

  .about-section,
  .market-section {
    padding: 50px 0;
  }

  .text-section {
    margin-bottom: 50px;
    gap: 20px;
  }

  .text-content p {
    font-size: 15px;
    line-height: 23px;
  }

  .text-content ul li,
  .stats-list li {
    font-size: 15px;
    line-height: 23px;
    padding-left: 20px !important;
  }

  .text-content ul li::before,
  .stats-list li::before {
    left: 4px;
    top: 0.62em;
    width: 5px;
    height: 5px;
  }

  .image-frame-container,
  .leadership-assessment-section {
    margin-bottom: 50px;
    height: clamp(480px, 125vw, 580px);
    min-height: 460px;
    width: 100%;
    max-width: 100%;
  }

  .la-text-top h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .la-text-bottom p {
    font-size: 15px;
    line-height: 22px;
  }

  .la-text-top,
  .la-text-bottom {
    left: 24px;
    right: 24px;
    max-width: calc(100% - 48px);
  }

  .la-text-top {
    top: 28px;
  }

  .la-text-bottom {
    bottom: 28px;
  }

  .market-title {
    font-size: 18px;
    line-height: 25px;
  }

  .market-desc {
    font-size: 15px;
    line-height: 23px;
  }

  .market-container {
    gap: 32px;
  }

  .map-wrapper {
    pointer-events: none;
    width: 100%;
    max-width: 100%;
  }

  .title-section h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1.5rem;
  }

  /* Footer & Banner */
  .cta-spacer {
    height: 200px;
  }

  .site-footer {
    padding: 4rem 1rem 0rem 1rem;
  }

  .contact-banner-wrapper {
    width: 100%;
    max-width: 100%;
    transform: translateY(-70px);
    margin-bottom: -25px;
  }

  .contact-banner {
    width: 100%;
    padding: 2.5rem 1.25rem 0;
  }

  .footer-content-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .footer-top {
    margin-bottom: 3rem;
  }

  .footer-links-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .banner-contact-links {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   5. VIEWPORT: max-width 575px
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
  .custom-form .form-control {
    font-size: 16px;
  }

  .responsive-container {
    padding: 0 12px;
  }

  .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .leadership-assessment-section,
  .image-frame-container {
    height: clamp(480px, 135vw, 560px);
    min-height: 480px;
  }
}
