/* =========================================================
   ECK BTP — Responsive Styles
   Full responsive coverage: 320px, 360px, 390px, 430px,
   640px, 768px, 992px, 1024px, 1200px, 1366px, 1440px, 1680px, 1920px
   ========================================================= */

/* ══════════════════════════════════════════════
   ≥ 1680px — Ultra-wide & 4K Displays
   ══════════════════════════════════════════════ */
@media (min-width: 1680px) {
  :root {
    --header-h: 92px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 5.5rem;
  }

  .hero__left-content {
    max-width: 680px;
  }

  .hero__desc {
    max-width: 640px;
  }

  .site-footer__top {
    grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr;
  }
}

/* ══════════════════════════════════════════════
   ≥ 1440px — Large Desktop Screens
   ══════════════════════════════════════════════ */
@media (min-width: 1440px) {
  :root {
    --header-h: 88px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4.5rem;
  }

  .featured-project {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .trust-strip__container {
    padding-inline: var(--container-pad);
  }
}

/* ══════════════════════════════════════════════
   ≤ 1200px — Small Desktop / Large Tablet
   ══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }

  .cards-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }

  .site-footer__top {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--sp-8);
  }
}

/* ══════════════════════════════════════════════
   ≤ 1024px — Tablet Landscape / iPad Pro
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__title {
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  }

  .page-hero h1 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
  }

  .page-hero__grid,
  .hero__grid {
    gap: var(--sp-8);
  }

  .story-split {
    gap: var(--sp-8);
  }

  .trust-split {
    gap: var(--sp-8);
  }
}

/* ══════════════════════════════════════════════
   ≤ 992px — Tablet Portrait & Mobile
   ══════════════════════════════════════════════ */
@media (max-width: 992px) {

  /* Header & Navigation */
  .site-nav { display: none !important; }
  .site-header__actions .site-header__btn { display: none !important; }
  .hamburger { display: flex !important; }

  /* Hero on Tablet */
  .hero {
    background-image: none !important;
    padding-block: var(--sp-8) var(--sp-12);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: auto;
    max-height: none;
    gap: var(--sp-8);
  }

  .hero__left {
    padding-block: var(--sp-4) var(--sp-2);
    min-width: 0;
  }

  .hero__right {
    display: block !important;
    height: auto;
    width: 100%;
    min-width: 0;
  }

  .hero__img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
  }

  /* Page hero on Tablet */
  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .page-hero__left,
  .page-hero__right {
    min-width: 0;
  }

  .page-hero__img-wrap {
    height: clamp(280px, 45vw, 380px);
    width: 100%;
  }

  /* Trust strip on Tablet */
  .trust-strip__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .trust-strip__item {
    padding: var(--sp-4) var(--sp-4);
  }

  .trust-strip__item:nth-child(odd) {
    border-right: 1px solid var(--clr-gray-light);
    padding-left: 0;
  }

  .trust-strip__item:nth-child(1),
  .trust-strip__item:nth-child(2) {
    border-bottom: 1px solid var(--clr-gray-light);
  }

  /* About page story split */
  .story-split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .story-split > * {
    min-width: 0;
  }

  .story-split__img {
    height: clamp(280px, 50vw, 420px);
    width: 100%;
  }

  /* Services page trust split */
  .trust-split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .trust-split > * {
    min-width: 0;
  }

  .trust-split__visual {
    height: clamp(260px, 45vw, 360px);
    width: 100%;
  }

  /* Featured project */
  .featured-project {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .featured-project > * {
    min-width: 0;
  }

  .featured-project__img-wrap {
    height: clamp(260px, 40vw, 340px);
    width: 100%;
  }

  .featured-project__body {
    padding: var(--sp-8) var(--sp-6);
  }

  /* Team banner (A Propos) */
  .team-banner {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .team-banner > * {
    min-width: 0;
  }

  .team-banner__img-wrap {
    height: clamp(260px, 40vw, 340px);
    width: 100%;
  }

  .team-banner__body {
    padding: var(--sp-8) var(--sp-6);
    border-left: 1px solid var(--clr-gray-light);
    border-right: 1px solid var(--clr-gray-light);
    border-bottom: 1px solid var(--clr-gray-light);
    border-top: 1px solid var(--clr-gray-light);
  }

  /* MVC grid */
  .mvc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-5);
  }

  /* Contact layout */
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .contact-info-card {
    order: -1;
  }

  /* Process list */
  .process-list {
    flex-direction: column;
    gap: var(--sp-4);
  }

  .process-step::after {
    display: none;
  }

  /* CTA banner split */
  .cta-banner {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .cta-banner > * {
    min-width: 0;
  }

  .cta-banner__visual {
    height: clamp(240px, 35vw, 300px);
    min-height: auto;
    order: -1;
  }

  /* FAQ Grid */
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .faq-sidebar {
    position: static;
  }

  /* Footer */
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-8);
  }
}

/* ══════════════════════════════════════════════
   ≤ 768px — Standard Mobile & Phablets
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Section Spacing */
  .section { padding-block: clamp(3rem, 7vw, 4.5rem); }
  .section--sm { padding-block: var(--sp-8); }
  .section--lg { padding-block: var(--sp-12); }

  /* Hero Section */
  .hero {
    padding-block: var(--sp-5) var(--sp-8);
  }

  .hero__title {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .hero__title br {
    display: none;
  }

  .hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .hero__desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--sp-6);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: var(--sp-3);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .hero__img {
    height: clamp(240px, 55vw, 340px);
  }

  /* Page Hero */
  .page-hero {
    padding-block: var(--sp-8) var(--sp-8);
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .page-hero__lead {
    font-size: 0.98rem;
    line-height: 1.62;
    margin-bottom: var(--sp-6);
  }

  .page-hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .page-hero__actions {
    flex-direction: column;
    width: 100%;
    gap: var(--sp-3);
  }

  .page-hero__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .page-hero__img-wrap {
    height: clamp(220px, 52vw, 320px);
  }

  /* Badges inside Page Hero - Stack to prevent overflow */
  .page-hero__badges {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2-5, 10px);
    width: 100%;
  }

  .page-hero__badge-item {
    width: 100%;
    font-size: 0.82rem;
  }

  /* Floating Badges */
  .page-hero__floating-badge {
    max-width: calc(100% - 24px);
    bottom: 12px;
    right: 12px;
    padding: 0.5rem 0.85rem;
    gap: var(--sp-2);
  }

  .page-hero__floating-badge-city {
    font-size: 0.8rem;
    white-space: normal;
  }

  .page-hero__floating-badge-tag {
    font-size: 0.68rem;
  }

  .hero__badge {
    max-width: calc(100% - 24px);
    bottom: 12px;
    right: 12px;
    padding: 0.5rem 0.85rem;
  }

  /* All Grids → Single Column */
  .services-grid,
  .projects-grid,
  .cards-grid-3,
  .cards-grid-2,
  .cards-grid-4 {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-5);
  }

  /* Service Card */
  .service-card__img-wrap {
    height: 220px;
  }

  /* Project Card */
  .project-card__img-wrap {
    height: 230px;
  }

  /* CTA Banner Content */
  .cta-banner__content {
    padding: var(--sp-8) var(--sp-5);
  }

  .cta-banner__content h2 {
    font-size: clamp(1.65rem, 5.5vw, 2.15rem);
  }

  .cta-banner__content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--sp-6);
  }

  .cta-banner__actions {
    flex-direction: column;
    width: 100%;
    gap: var(--sp-3);
  }

  .cta-banner__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Contact Form Usability on Mobile */
  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }

  .contact-form-card {
    padding: var(--sp-6) var(--sp-5);
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    min-height: 48px;
    width: 100%;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .contact-form-submit {
    width: 100%;
    min-height: 50px;
  }

  /* Footer */
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-4);
  }

  .site-footer__legal {
    justify-content: center;
  }

  /* Map */
  .map-container {
    height: 260px;
  }

  /* Floating WhatsApp Button on Mobile */
  .whatsapp-float {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    width: 50px;
    height: 50px;
    z-index: 90;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  /* Filter bar on Projects page */
  .filter-bar {
    gap: var(--sp-2);
    flex-wrap: wrap;
    width: 100%;
  }

  .filter-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 0.95rem;
    min-height: 40px;
    flex: 1 1 auto;
    text-align: center;
  }

  /* MVC Cards */
  .mvc-card {
    padding: var(--sp-6);
  }

  /* Why Cards */
  .why-card {
    padding: var(--sp-6);
  }
}

/* ══════════════════════════════════════════════
   ≤ 640px — Mobile Trust Strip & Visual Harmony
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* Trust Strip stacks in 1 clean column to avoid cramped text */
  .trust-strip__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .trust-strip__item {
    border-right: none !important;
    border-bottom: 1px solid var(--clr-gray-light) !important;
    padding: var(--sp-4) var(--sp-2) !important;
    width: 100%;
  }

  .trust-strip__item:last-child {
    border-bottom: none !important;
  }

  .trust-strip__icon {
    width: 40px;
    height: 40px;
  }

  .trust-strip__title {
    font-size: 0.92rem;
  }

  .trust-strip__desc {
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════════════════
   ≤ 480px — Small Mobile (360px – 430px)
   ══════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Section headings */
  .section-heading {
    width: 100%;
  }

  .section-heading h2 {
    font-size: clamp(1.65rem, 6.5vw, 2.05rem);
  }

  .section-heading p {
    font-size: 0.92rem;
  }

  /* Hero Stats */
  .hero__stats {
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
  }
  .hero__stat-divider {
    display: none;
  }
  .hero__stat-val {
    font-size: 1.0625rem;
  }

  /* General buttons: prevent cut-off */
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    padding: 0.75rem 1.15rem;
    font-size: 0.875rem;
    min-height: 48px;
  }

  /* Process steps */
  .process-step__number {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .process-step__title {
    font-size: 1.05rem;
  }

  .process-step__text {
    font-size: 0.88rem;
  }

  /* Card Heights */
  .service-card__img,
  .service-card__img-wrap {
    height: 200px;
  }

  .project-card__img-wrap {
    height: 210px;
  }

  .featured-project__img-wrap {
    height: 220px;
  }

  .featured-project__body {
    padding: var(--sp-6) var(--sp-4);
  }

  .featured-project__body h3 {
    font-size: 1.25rem;
  }

  .featured-project__body p {
    font-size: 0.88rem;
    margin-bottom: var(--sp-6);
  }

  /* Story split image on About page */
  .story-split__img {
    height: 260px;
  }

  /* Team banner body on About page */
  .team-banner__img-wrap {
    height: 220px;
  }

  .team-banner__body {
    padding: var(--sp-6) var(--sp-4);
  }

  .team-banner__body h3 {
    font-size: 1.25rem;
  }

  .team-banner__body p {
    font-size: 0.88rem;
  }

  /* Trust split visual */
  .trust-split__visual {
    height: 220px;
  }

  /* Footer logo */
  .footer-tagline {
    max-width: 100%;
    font-size: 0.85rem;
  }

  /* Mobile menu links */
  .mobile-menu__link {
    font-size: 1.45rem;
  }
}

/* ══════════════════════════════════════════════
   ≤ 360px — Ultra-Compact Mobile (320px – 360px)
   ══════════════════════════════════════════════ */
@media (max-width: 360px) {
  :root {
    --container-pad: 14px;
  }

  /* Prevent heading overflows on tiny screens */
  .hero__title {
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .page-hero h1 {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  /* Logo adjustment */
  .site-logo__img {
    height: 36px;
    max-width: 140px;
  }

  /* Buttons */
  .btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    min-height: 44px;
  }

  /* Form & Info Card spacing */
  .contact-form-card {
    padding: var(--sp-5) var(--sp-3);
  }

  .contact-info-card {
    padding: var(--sp-5) var(--sp-3);
  }

  /* Floating badges */
  .page-hero__floating-badge {
    padding: 0.4rem 0.65rem;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
  }

  .page-hero__floating-badge-city {
    font-size: 0.72rem;
  }

  .page-hero__floating-badge-tag {
    font-size: 0.64rem;
  }

  .hero__badge {
    display: none;
  }

  /* Story and Trust split images */
  .story-split__img {
    height: 210px;
  }

  .trust-split__visual {
    height: 190px;
  }

  .cta-banner__visual {
    height: 190px;
  }

  /* Filter buttons */
  .filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.65rem;
    min-height: 38px;
  }
}

/* ══════════════════════════════════════════════
   Print Styles
   ══════════════════════════════════════════════ */
@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .hamburger,
  .mobile-menu,
  .hero__actions,
  .cta-banner { display: none !important; }

  body { color: #000; background: #fff; }
  main { padding-top: 0; }
  a { color: #000; }
}
