/* ============================================================
   STRATA Engineering & Consulting — Responsive Stylesheet
   ============================================================
   Breakpoints:
   - Large desktop (1920px+)
   - Desktop (1366px–1919px)
   - Laptop (1024px–1365px)
   - Tablet (768px–1023px)
   - Mobile (480px–767px)
   - Small mobile (320px–479px)
   ============================================================ */


/* ============================================================
   LARGE DESKTOP (1920px+)
   ============================================================ */

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .container--wide {
    max-width: 1760px;
  }

  html {
    font-size: 18px;
  }

  .hero__title {
    font-size: clamp(3rem, 4vw, 6rem);
  }
}


/* ============================================================
   DESKTOP (1366px–1919px)
   ============================================================ */

@media (max-width: 1919px) and (min-width: 1366px) {
  .container {
    max-width: 1400px;
  }

  .hero__title {
    font-size: clamp(2.8rem, 4.5vw, 5rem);
  }
}


/* ============================================================
   LAPTOP (1024px–1365px)
   ============================================================ */

@media (max-width: 1365px) and (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding-inline: 1.5rem;
  }

  .container--wide {
    max-width: 1280px;
  }

  .primary-nav {
    gap: 0;
  }

  .nav-link {
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
  }

  .header-phone {
    display: none;
  }

  .mega-menu {
    width: 90vw;
    max-width: 960px;
  }

  .mega-menu__inner {
    grid-template-columns: 1fr 1fr 1fr 1fr 280px;
  }

  .services-grid {
    gap: 1.25rem;
  }

  .service-card {
    padding: 2rem;
  }

  .disciplines-layout {
    grid-template-columns: 320px 1fr;
    gap: 3rem;
  }

  .why-layout,
  .bim-layout,
  .sustainability-layout {
    gap: 3rem;
  }

  .testimonials-layout {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }

  .insights-grid {
    gap: 1.25rem;
  }

  .hero-swiper-next {
    right: 1.5rem;
  }

  .hero-swiper-prev {
    left: 1.5rem;
  }
}


/* ============================================================
   TABLET (768px–1023px)
   ============================================================ */

@media (max-width: 1023px) and (min-width: 768px) {
  html {
    font-size: 15px;
  }

  .container,
  .container--wide,
  .container--narrow {
    padding-inline: 1.5rem;
  }

  /* Header */
  .primary-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .site-header {
    height: 64px;
  }

  /* Hero */
  .hero__side-text {
    display: none;
  }

  .hero__coord-marker {
    display: none;
  }

  .hero-swiper-next,
  .hero-swiper-prev {
    width: 40px;
    height: 40px;
  }

  .hero-swiper-next {
    right: 1rem;
  }

  .hero-swiper-prev {
    left: 1rem;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  /* About */
  .about-intro__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-intro__badge {
    right: 0;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card:nth-child(2) {
    border-right: none;
  }

  .stat-card:nth-child(even) {
    border-right: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Disciplines */
  .disciplines-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .disciplines-list {
    position: static;
  }

  .discipline-content {
    position: static;
  }

  .discipline-content:not(.active) {
    display: none;
  }

  /* Projects */
  .projects-grid,
  .projects-grid--featured {
    grid-template-columns: 1fr 1fr;
  }

  .projects-grid--featured .project-card:first-child {
    grid-row: 1;
    grid-column: 1 / 3;
  }

  /* Lifecycle */
  .lifecycle-track {
    overflow-x: auto;
    padding-bottom: 2rem;
  }

  /* Why */
  .why-layout {
    grid-template-columns: 1fr;
  }

  .why-visual {
    display: none;
  }

  /* BIM */
  .bim-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .bim-wireframe {
    max-width: 400px;
  }

  /* Industries */
  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Sustainability */
  .sustainability-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sustainability-pillars {
    grid-template-columns: 1fr 1fr;
  }

  /* Testimonials */
  .testimonials-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .testimonials-aside {
    position: static;
  }

  /* Insights */
  .insights-grid {
    grid-template-columns: 1fr 1fr;
  }

  .insight-card--featured {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  /* CTA */
  .cta-section__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-section__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-accreditations {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-accred-label {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 0;
    padding-bottom: 0.75rem;
    width: 100%;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Section header */
  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}


/* ============================================================
   MOBILE (480px–767px)
   ============================================================ */

@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  section {
    padding-block: 4rem;
  }

  .section--lg {
    padding-block: 5rem;
  }

  .container,
  .container--wide,
  .container--narrow {
    padding-inline: 1.25rem;
  }

  /* Header */
  .site-header {
    height: 60px;
  }

  .site-header.header-scrolled {
    height: 52px;
  }

  /* Hero */
  .hero-slide {
    min-height: 560px;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .hero-swiper-next,
  .hero-swiper-prev {
    display: none;
  }

  .hero-swiper-pagination {
    bottom: 3rem !important;
  }

  /* About */
  .about-intro__highlights {
    grid-template-columns: 1fr;
  }

  .about-intro__badge {
    width: 110px;
    height: 110px;
    padding: 1rem;
  }

  .about-intro__badge-number {
    font-size: 1.75rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    padding: 2rem 1.5rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Disciplines */
  .disciplines-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Projects */
  .projects-grid,
  .projects-grid--featured {
    grid-template-columns: 1fr;
  }

  .projects-grid--featured .project-card:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .project-card:first-child .project-card__image-wrap {
    min-height: 280px;
  }

  /* Lifecycle */
  .lifecycle-track {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
    gap: 0;
  }

  .lifecycle-track::before {
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .lifecycle-track__progress {
    top: 20px;
    left: 20px;
    right: auto;
    width: 1px;
    height: 0%;
  }

  .lifecycle-phase {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding: 0.75rem 0;
    width: 100%;
  }

  .lifecycle-phase__circle {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .lifecycle-phase__desc {
    max-width: none;
    text-align: left;
  }

  .lifecycle-detail.visible {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Why */
  .why-layout {
    grid-template-columns: 1fr;
  }

  /* BIM */
  .bim-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bim-wireframe {
    max-width: 340px;
  }

  .bim-levels {
    grid-template-columns: 1fr 1fr;
  }

  /* Industries */
  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Sustainability */
  .sustainability-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sustainability-pillars {
    grid-template-columns: 1fr;
  }

  .sustainability-badge {
    width: 100px;
    height: 100px;
  }

  /* Testimonials */
  .testimonials-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonials-aside {
    position: static;
  }

  /* Insights */
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insight-card--featured {
    grid-column: 1;
  }

  /* CTA */
  .cta-section__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-section__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-section__trust {
    gap: 1rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-accreditations {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-accred-label {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 0;
    padding-bottom: 0.75rem;
    width: 100%;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Section header */
  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}


/* ============================================================
   SMALL MOBILE (320px–479px)
   ============================================================ */

@media (max-width: 479px) {
  html {
    font-size: 14px;
  }

  .container,
  .container--wide,
  .container--narrow {
    padding-inline: 1rem;
  }

  .hero__title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .bim-levels {
    grid-template-columns: 1fr;
  }

  .section-header--split {
    gap: 0.75rem;
  }

  .footer-newsletter__form {
    flex-direction: column;
  }

  .footer-newsletter__input {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
  }

  .footer-newsletter__btn {
    padding: 0.7rem;
    text-align: center;
  }

  .lifecycle-detail.visible {
    display: flex;
    flex-direction: column;
  }

  .cta-section__divider {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-section__divider-line {
    width: 40px;
  }
}


/* ============================================================
   LANDSCAPE ORIENTATION (mobile)
   ============================================================ */

@media (max-width: 1023px) and (orientation: landscape) {
  .hero-slide {
    min-height: 100vh;
  }

  .hero__content {
    padding-block: 4rem;
  }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  .page-loader,
  .site-header,
  .hero__canvas,
  .hero__scroll,
  .scroll-progress,
  .back-to-top,
  .announcement-bar,
  .hamburger,
  .mobile-menu,
  .mega-menu,
  .hero-swiper-next,
  .hero-swiper-prev,
  .hero-swiper-pagination,
  .search-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding-inline: 0;
  }

  section {
    padding-block: 2rem;
    break-inside: avoid;
  }

  .hero-slide {
    height: auto;
    min-height: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
