/* ==========================================================================
   Responsive CSS — Ananke Breakpoint System
   ==========================================================================
   Breakpoints (adapted from Ananke skeleton-1200.css for Bootstrap 5):
     1200px+       Desktop (default)
     960–1199px    Large tablet / small desktop
     800–959px     Nav goes mobile at 800px (Ananke-specific)
     768–799px     Tablet portrait
     480–767px     Mobile landscape
     320–479px     Mobile portrait
     <320px        Extra small
   ========================================================================== */


/* ==========================================================================
   1400px and below — Large Desktop
   ========================================================================== */

@media only screen and (max-width: 1399px) {

  .main-header .btn-box {
    display: none;
  }

  .main-menu .navigation > li {
    margin: 0px 30px;
  }

}


/* ==========================================================================
   1200px and below — Small Desktop / Large Tablet (nav goes mobile)
   ========================================================================== */

@media only screen and (max-width: 1200px) {

  /* --- Header/Nav: hide desktop menu, show mobile toggler --- */
  .main-menu,
  .sticky-header {
    display: none !important;
  }

  .menu-area .mobile-nav-toggler {
    display: block !important;
    padding: 10px;
  }

}


/* ==========================================================================
   Desktop nav dropdown visibility (min 768px)
   ========================================================================== */

@media only screen and (min-width: 768px) {

  .main-menu .navigation > li > ul,
  .main-menu .navigation > li > ul > li > ul,
  .main-menu .navigation > li > .megamenu {
    display: block !important;
    visibility: hidden;
    opacity: 0;
  }

}


/* ==========================================================================
   991px and below — Tablet
   ========================================================================== */

@media only screen and (max-width: 991px) {

  /* --- Parallax page header: tighten --- */
  .parallax-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  /* --- Portfolio: 2 columns --- */
  .portfolio-box {
    width: 50%;
  }

  /* --- Featured preview: stack text above grid --- */
  .featured-preview-section {
    padding: 50px 0;
  }

  .featured-preview-content {
    margin-bottom: 30px;
  }

  /* --- Facts/Counter: tighten padding --- */
  .facts-section {
    padding: 60px 0;
  }

  .facts-wrap-num {
    width: 100px;
    height: 100px;
  }

  .facts-wrap-num .odometer,
  .facts-wrap-num span {
    font-size: 36px;
  }

  /* --- Team: let team card expand --- */
  .team-wrap {
    max-width: 100%;
  }

  /* --- Testimonials: tighten padding --- */
  .testimonial-card {
    padding: 30px 25px 25px;
  }

  .testimonial-quote {
    font-size: 16px;
    line-height: 26px;
  }

  .testimonial-card.featured .testimonial-quote {
    font-size: 17px;
    line-height: 27px;
  }

  /* --- Video grid: 2-column at tablet --- */
  .video-grid {
    gap: 20px;
  }

  .video-grid .video-item {
    flex: 1 1 45%;
  }

  /* --- Contact form inputs: full width --- */
  .contact-form-section .form-group input,
  .contact-form-section .form-group textarea {
    width: 100%;
  }

  /* --- Map: reduce height --- */
  .map-section iframe {
    height: 350px;
  }

  /* --- Index-Alt: parallax bands --- */
  .parallax-band {
    padding: 80px 0;
  }

  .parallax-band-card {
    max-width: 420px;
    padding: 40px 35px;
  }

  .parallax-band-quote {
    font-size: 20px;
    line-height: 32px;
  }

  .parallax-band-heading {
    font-size: 30px;
    line-height: 36px;
  }

  /* --- Index-Alt: split section --- */
  .split-section .split-image {
    min-height: 350px;
  }

  .split-section .split-content {
    padding: 50px 30px;
  }

  /* --- Index-Alt: services intro 3→2 columns --- */
  .services-intro {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .services-intro-heading {
    grid-column: 1 / -1;
  }

  /* --- Index-Alt: portfolio grid 4→2 at tablet --- */
  .alt-portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* --- Index-Alt: testimonial carousel --- */
  .testimonial-text {
    font-size: 18px;
    line-height: 30px;
  }

}


/* ==========================================================================
   767px and below — Mobile
   ========================================================================== */

@media only screen and (max-width: 767px) {

  /* --- Header --- */
  .main-header {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* --- Banner/Hero --- */
  .banner-section {
    min-height: 500px;
  }

  .banner-section .big-text {
    font-size: 36px;
    line-height: 46px;
  }

  .banner-section .big-text span {
    padding-top: 10px;
    padding-bottom: 18px;
  }

  .banner-section .small-text {
    font-size: 16px;
  }

  .banner-section .hero-cta {
    gap: 20px;
    flex-wrap: wrap;
  }

  .banner-section .scroll-btn {
    display: none;
  }

  .banner-section .hero-subtitle {
    font-size: 15px;
    line-height: 22px;
    margin-top: 15px;
    margin-bottom: 18px;
  }

  .banner-section .hero-industries {
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 1px;
  }

  .banner-section .hero-cta {
    margin-top: 35px;
    gap: 40px;
  }

  /* --- Parallax page header --- */
  .parallax-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .parallax-section h1 {
    font-size: 32px;
    line-height: 32px;
  }

  .parallax-section .sub-text {
    font-size: 11px;
    letter-spacing: 1px;
  }

  /* --- Section Heading --- */
  .header-shadow-text {
    font-size: 40px !important;
    line-height: 40px !important;
    margin-top: -12px !important;
  }

  /* --- All content sections: reduce padding --- */
  .about-section,
  .services-section,
  .team-section,
  .contact-section,
  .contact-form-section,
  .portfolio-page-section,
  .featured-section,
  .featured-preview-section,
  .project-text-section,
  .testimonials-section,
  .home-contact-section,
  .alt-services-section,
  .alt-contact-section,
  .consultation-info-section,
  .signup-form-section,
  .calendly-section,
  .covid-parallax-section {
    padding: 40px 0;
  }

  /* --- COVID content card: tighten padding on mobile --- */
  .covid-content-card {
    padding: 25px 20px;
  }

  .covid-content-card blockquote {
    padding: 15px 18px;
  }

  /* --- Consultation price: reduce on mobile --- */
  .consultation-price .price {
    font-size: 48px;
  }

  /* --- Testimonials: mobile --- */
  .testimonial-card {
    padding: 25px 20px 20px;
  }

  .testimonial-quote {
    font-size: 15px;
    line-height: 24px;
  }

  .testimonial-card.featured .testimonial-quote {
    font-size: 16px;
    line-height: 25px;
  }

  /* --- Software list: stack on mobile --- */
  .software-list ul {
    gap: 8px;
  }

  .software-list ul li {
    font-size: 12px;
    padding: 6px 14px;
  }

  /* --- Featured preview: mobile --- */
  .featured-preview-section {
    padding: 40px 0;
  }

  .featured-preview-content {
    margin-bottom: 25px;
    padding-left: 15px;
  }

  .featured-preview-content h5 {
    font-size: 18px;
    line-height: 18px;
  }

  /* --- Portfolio: full width --- */
  .portfolio-box {
    width: 100%;
  }

  /* --- Facts/Counter --- */
  .facts-section {
    padding: 40px 0;
  }

  .facts-wrap-num {
    width: 90px;
    height: 90px;
  }

  .facts-wrap-num .odometer,
  .facts-wrap-num span {
    font-size: 30px;
  }

  .facts-plus {
    font-size: 22px !important;
  }

  /* --- CTA --- */
  .cta-section {
    padding: 40px 0;
  }

  /* --- Footer --- */
  .footer-bottom .bottom-inner {
    display: block;
    text-align: center;
  }

  .footer-bottom .bottom-inner .social-links {
    justify-content: center;
  }

  .footer-bottom .bottom-inner .footer-logo {
    padding: 15px 0px;
  }

  /* --- Portfolio filter: wrap on mobile --- */
  #filter li {
    display: inline-block;
    margin-bottom: 5px;
  }

  #filter li a {
    font-size: 11px;
    margin-left: 4px;
    margin-right: 4px;
  }

  /* --- Video grid: stack to single column --- */
  .video-grid {
    gap: 15px;
  }

  .video-grid .video-item {
    flex: 1 1 100%;
  }

  /* --- Team section: wider card on mobile --- */
  .team-wrap .team-desc {
    padding: 0 10px;
  }

  /* --- Map: shorter on mobile --- */
  .map-section iframe {
    height: 300px;
  }

  /* --- Contact info blocks: tighten --- */
  .contact-det {
    margin-bottom: 20px;
  }

  /* --- Disclaimer: tighten --- */
  .project-text-section .disclaimer {
    font-size: 11px;
    padding: 12px;
  }

  /* --- Index-Alt: parallax bands --- */
  .parallax-band {
    padding: 60px 0;
  }

  .parallax-band-card {
    max-width: 100%;
    padding: 35px 25px;
  }

  .parallax-band-quote {
    font-size: 18px;
    line-height: 28px;
  }

  .parallax-band-heading {
    font-size: 26px;
    line-height: 32px;
  }

  /* --- Index-Alt: split section --- */
  .split-section .split-image {
    min-height: 280px;
  }

  .split-section .split-content {
    padding: 40px 20px;
  }

  /* --- Index-Alt: services intro stack + grid 3→2 --- */
  .services-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-intro-heading h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .services-grid-minimal {
    grid-template-columns: 1fr 1fr;
  }

  /* --- Index-Alt: compact testimonials --- */
  .alt-testimonials-section .col-lg-4:first-child {
    margin-bottom: 20px;
  }

  .testimonial-card-mini {
    margin-bottom: 20px;
  }

  /* --- Index-Alt: portfolio grid --- */
  .alt-portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* --- Index-Alt: dramatic parallax revert on mobile --- */
  .parallax-dramatic {
    top: -15%;
    height: calc(100% + 30%);
  }

}


/* ==========================================================================
   479px and below — Extra Small Mobile
   ========================================================================== */

@media only screen and (max-width: 479px) {

  /* --- Banner --- */
  .banner-section .big-text {
    font-size: 28px;
    line-height: 38px;
  }

  .banner-section .small-text {
    font-size: 14px;
  }

  .banner-section .hero-subtitle {
    font-size: 13px;
    line-height: 20px;
    margin-top: 12px;
    margin-bottom: 14px;
  }

  .banner-section .hero-industries {
    font-size: 11px;
    line-height: 20px;
    letter-spacing: 0.5px;
  }

  .banner-section .hero-cta {
    margin-top: 25px;
    gap: 30px;
  }

  /* --- Parallax page header --- */
  .parallax-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .parallax-section h1 {
    font-size: 28px;
    line-height: 28px;
  }

  .parallax-section .sub-text {
    font-size: 10px;
  }

  /* --- Section headings scale down --- */
  .header-shadow-text {
    font-size: 30px !important;
    line-height: 30px !important;
  }

  .header-text h1 {
    font-size: 28px;
    line-height: 28px;
  }

  /* --- Facts counter --- */
  .facts-wrap-num {
    width: 80px;
    height: 80px;
  }

  .facts-wrap-num .odometer,
  .facts-wrap-num span {
    font-size: 24px;
  }

  /* --- Portfolio filter: tighten further --- */
  #filter li a {
    font-size: 10px;
    margin-left: 2px;
    margin-right: 2px;
    letter-spacing: 0.5px;
  }

  #filter li a:after {
    padding-left: 8px;
  }

  /* --- Services boxes: smaller icons --- */
  .services-offer i {
    font-size: 36px;
  }

  .services-offer {
    padding: 20px 15px;
  }

  /* --- COVID content card: tighter at 479px --- */
  .covid-content-card {
    padding: 20px 15px;
  }

  .covid-content-card blockquote p {
    font-size: 12px;
    line-height: 19px;
  }

  .covid-content-card .disclaimer {
    font-size: 11px;
    padding: 12px;
  }

  /* --- Map: even shorter --- */
  .map-section iframe {
    height: 250px;
  }

  /* --- Team: full padding reduction --- */
  .team-wrap .team-desc p {
    font-size: 12px;
    line-height: 20px;
  }

  /* --- Index-Alt: parallax bands --- */
  .parallax-band-card {
    padding: 25px 20px;
  }

  .parallax-band-quote {
    font-size: 16px;
    line-height: 26px;
  }

  .parallax-band-heading {
    font-size: 22px;
    line-height: 28px;
  }

  /* --- Index-Alt: split section --- */
  .split-section .split-content {
    padding: 30px 15px;
  }

  /* --- Index-Alt: services grid 2→1 column --- */
  .services-grid-minimal {
    grid-template-columns: 1fr;
  }

  .services-intro-heading h2 {
    font-size: 24px;
    line-height: 32px;
  }

  /* --- Index-Alt: testimonial carousel --- */
  .testimonial-text {
    font-size: 15px;
    line-height: 26px;
  }

  .testimonial-slide .fa-quote-left {
    font-size: 20px;
  }

  /* --- Index-Alt: contact cards --- */
  .alt-contact-section .contact-det {
    padding: 20px 15px;
  }

  .alt-contact-section .contact-det i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 15px;
  }

}


/* ==========================================================================
   319px and below — Extra Small
   ========================================================================== */

@media only screen and (max-width: 319px) {

  .banner-section .big-text {
    font-size: 24px;
    line-height: 32px;
  }

  .header-text h1 {
    font-size: 24px;
    line-height: 24px;
  }

  .parallax-section h1 {
    font-size: 24px;
    line-height: 24px;
  }

  .main-footer {
    padding-top: 40px;
  }

  /* --- Contact det: stack tighter --- */
  .contact-det i {
    font-size: 22px;
  }

  .contact-det h6 {
    font-size: 11px;
  }

}
