/* ================================================
   BRECOL — MOBILE RESPONSIVE STYLESHEET
   Breakpoints: 1024 | 768 | 480 | 375
   ================================================ */

/* ═══════════════════════════════════════
   STICKY BOTTOM QUICK-ACTION BAR (mobile)
   — Call / WhatsApp / Email
   ═══════════════════════════════════════ */
#mobile-actions {
    display: none;
}

@media (max-width: 768px) {
    #mobile-actions {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9990;
        background: var(--navy, #0A1628);
        border-top: 1px solid rgba(255, 255, 255, .10);
        padding: 10px 0 env(safe-area-inset-bottom, 10px);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, .35);
    }

    .mob-action {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 6px 4px;
        color: rgba(255, 255, 255, .7);
        font-size: .65rem;
        font-weight: 600;
        font-family: var(--font-head, 'Outfit', sans-serif);
        letter-spacing: .04em;
        text-transform: uppercase;
        text-decoration: none;
        transition: color .2s, background .2s;
        border-radius: 8px;
        margin: 0 4px;
        min-height: 52px;
        justify-content: center;
    }

    .mob-action:hover,
    .mob-action:active {
        color: white;
    }

    .mob-action.call {
        background: rgba(30, 90, 255, .15);
        color: #7ab4ff;
    }

    .mob-action.whatsapp {
        background: rgba(37, 211, 102, .15);
        color: #6feda0;
    }

    .mob-action.email {
        background: rgba(240, 165, 0, .12);
        color: #f0c050;
    }

    .mob-action svg {
        width: 22px;
        height: 22px;
    }

    /* push page content above the bar */
    body {
        padding-bottom: 72px;
    }

    /* hide floating WhatsApp — bottom bar replaces it */
    #whatsapp-btn {
        display: none;
    }

    /* back-to-top: move above bar */
    #back-top {
        bottom: 84px;
    }
}

/* ═══════════════════════════════════════
   GLOBAL MOBILE BASE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    :root {
        --section-py: 80px;
    }

    .container {
        padding: 0 20px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hero-float-card {
        display: none;
    }
}

/* ═══════════════════════════════════════
   TABLET — 768px
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --section-py: 60px;
    }

    /* ── Typography scale ── */
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    /* ── Container ── */
    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    /* ── Navigation ── */
    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    #navbar {
        padding: 14px 0;
    }

    .nav-logo-icon {
        width: 38px;
        height: 38px;
    }

    /* ── Hero ── */
    #hero {
        min-height: 100svh;
        padding: 100px 0 80px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-badge {
        margin: 0 auto 20px;
    }

    .hero-title {
        margin-bottom: 18px;
    }

    .hero-sub {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 48px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 32px;
    }

    .hero-stat-num {
        font-size: 1.6rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* ── Ticker ── */
    .ticker-item {
        padding: 0 28px;
        font-size: .88rem;
    }

    /* ── Photo strip ── */
    .strip-photo {
        width: 240px;
        height: 170px;
    }

    /* ── Overview ── */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .experience-badge {
        width: 80px;
        height: 80px;
        bottom: -12px;
        right: -12px;
    }

    .experience-badge .num {
        font-size: 1.4rem;
    }

    .overview-stats {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card .num {
        font-size: 1.8rem;
    }

    /* ── About cards ── */
    .about-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-card {
        padding: 28px 24px;
    }

    /* ── Process section ── */
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .process-grid::before {
        display: none;
    }

    .process-icon-wrap {
        width: 96px;
        height: 96px;
    }

    .process-svg {
        width: 48px;
        height: 48px;
    }

    .process-step h4 {
        font-size: .95rem;
    }

    .process-step p {
        font-size: .82rem;
    }

    /* ── Services ── */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    /* ── Portfolio ── */
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 7px 16px;
        font-size: .82rem;
    }

    /* ── Real work grid ── */
    .real-work-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .rw-item.rw-large {
        grid-column: span 2;
    }

    .rw-item img {
        min-height: 160px;
    }

    .rw-item.rw-large img {
        min-height: 260px;
    }

    /* ── Team ── */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* ── Equipment ── */
    .equipment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .equip-card {
        padding: 20px 16px;
    }

    .equip-card>img {
        height: 110px;
    }

    /* ── Safety banner ── */
    .safety-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .safety-heading {
        flex-direction: column;
        align-items: center;
    }

    .safety-stats-row {
        justify-content: center;
        gap: 28px;
    }

    .safety-stat .num {
        font-size: 1.6rem;
    }

    /* ── Why grid ── */
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .why-card {
        padding: 28px 20px;
    }

    /* ── Testimonials ── */
    .testimonial-card {
        padding: 32px 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* ── Sectors ── */
    .sectors-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sector-card {
        padding: 28px 20px;
    }

    /* ── Contact ── */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-card,
    .contact-form {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* ── Footer ── */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #footer {
        padding: 56px 0 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════
   MOBILE — 480px
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
    :root {
        --section-py: 48px;
    }

    /* ── Typography ── */
    h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
        line-height: 1.15;
    }

    h2 {
        font-size: clamp(1.4rem, 7vw, 1.9rem);
    }

    p {
        font-size: .95rem;
    }

    /* ── Section headers ── */
    .section-header {
        margin-bottom: 40px;
    }

    .section-label {
        font-size: .72rem;
    }

    /* ── Hero ── */
    .hero-badge {
        font-size: .78rem;
        padding: 6px 14px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-num {
        font-size: 1.4rem;
    }

    .hero-stat-label {
        font-size: .75rem;
    }

    /* ── Ticker ── */
    .ticker-item {
        font-size: .8rem;
        padding: 0 20px;
    }

    /* ── Photo strip ── */
    .strip-photo {
        width: 190px;
        height: 140px;
    }

    .strip-photo-label {
        font-size: .7rem;
    }

    /* ── Process ── */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process-step {
        padding-bottom: 0;
    }

    .process-step:not(:last-child)::after {
        content: '';
        display: block;
        width: 3px;
        height: 40px;
        background: linear-gradient(180deg, var(--blue, #1E5AFF), var(--sky, #00B4FF));
        margin: 16px auto 0;
        border-radius: 2px;
    }

    /* ── Portfolio ── */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ── Real work ── */
    .real-work-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rw-item.rw-large {
        grid-column: span 1;
    }

    .rw-item img {
        min-height: 200px;
    }

    .rw-overlay {
        opacity: 1;
    }

    /* always show label on mobile */

    /* ── Team ── */
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .team-info {
        padding: 14px 10px;
    }

    .team-info h4 {
        font-size: .88rem;
    }

    .team-info p {
        font-size: .75rem;
    }

    /* ── Equipment ── */
    .equipment-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    /* ── Safety ── */
    .safety-stats-row {
        gap: 16px;
    }

    #safety-banner {
        padding: 28px 0;
    }

    .safety-heading h3 {
        font-size: 1.1rem;
    }

    .safety-stat .num {
        font-size: 1.4rem;
    }

    /* ── Why ── */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* ── Testimonials ── */
    .testimonial-quote {
        font-size: 2rem;
    }

    .testimonial-text {
        font-size: .9rem;
    }

    .testimonial-card {
        padding: 24px 16px;
    }

    /* ── Sectors ── */
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .sector-card {
        padding: 24px 20px;
    }

    /* ── Contact ── */
    .contact-info-card,
    .contact-form {
        padding: 24px 16px;
    }

    /* ── Buttons ── */
    .btn {
        min-height: 48px;
    }

    /* accessibility: min touch target */

    /* ── Footer ── */
    .footer-brand p {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════
   SMALL PHONE — 375px
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .hero-btns .btn {
        max-width: 100%;
    }

    .team-info h4 {
        font-size: .82rem;
    }

    .process-icon-wrap {
        width: 80px;
        height: 80px;
    }

    .process-svg {
        width: 40px;
        height: 40px;
    }

    .strip-photo {
        width: 160px;
        height: 120px;
    }
}

/* ═══════════════════════════════════════
   MOBILE-SPECIFIC ENHANCEMENTS
   ═══════════════════════════════════════ */

/* Larger touch targets on nav links */
@media (max-width: 768px) {
    .mobile-menu a {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .t-dot {
        width: 14px;
        height: 14px;
    }

    /* larger tap targets for slider dots */

    /* Mobile hero image doesn't parallax (performance) */
    .hero-content {
        will-change: auto;
    }

    #hero-bg-img {
        transform: none !important;
    }

    /* Disable tilt on touch devices */
    .tilt-card {
        transform: none !important;
    }

    .tilt-shine {
        display: none;
    }

    /* Make about section blueprint bg less intense */
    .blueprint-bg {
        background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
    }

    /* Mobile map */
    #map-embed {
        height: 220px !important;
    }

    /* Swipe indicator on testimonials */
    .testimonial-track-wrap::after {
        content: '← swipe →';
        display: block;
        text-align: center;
        font-size: .7rem;
        color: rgba(255, 255, 255, .3);
        margin-top: 16px;
        letter-spacing: .1em;
    }

    /* Process steps: vertical line instead of horizontal */
    .process-grid {
        gap: 0;
    }

    .process-step {
        padding: 16px;
    }

    /* Make overview stat cards tappable */
    .stat-card {
        min-height: 80px;
        cursor: default;
    }

    /* Equipment grid item on mobile */
    .equip-card {
        text-align: left;
    }

    .equip-card>img {
        border-radius: 8px;
    }
}

/* ═══════════════════════════════════════
   MOBILE HERO — IMAGE BRIGHTNESS FIX
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    #hero-bg-img {
        opacity: 0.12;
    }

    #hero {
        background-attachment: scroll;
    }

    /* fix for iOS */
}

/* ═══════════════════════════════════════
   SAFE AREA (notch/rounded corners)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    #navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ═══════════════════════════════════════
   TOUCH SCROLL MOMENTUM
   ═══════════════════════════════════════ */
.testimonial-track-wrap,
.photo-strip-track,
.ticker-track {
    -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════
   PRINT (bonus: hide mobile-only elements)
   ═══════════════════════════════════════ */
@media print {

    #mobile-actions,
    #whatsapp-btn,
    #back-top,
    #cursor-dot,
    #cursor-ring,
    #scroll-progress,
    .hamburger,
    .mobile-menu {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}
/* -- Mobile close button  large touch target -- */
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white !important;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  z-index: 9999;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:active {
  background: rgba(255,255,255,0.25);
}

/* ----------------------------------------
   HORIZONTAL SCROLL FIX  root elements
   ---------------------------------------- */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Every section / wrapper must stay inside viewport */
section,
.container,
#hero,
.hero-split,
.hero-illustration,
.hero-cityline,
.hero-dot-grid {
  max-width: 100%;
  overflow-x: hidden;
}

/* -- Hero on mobile: single column, no overflow -- */
@media (max-width: 768px) {

  /* Stack hero vertically */
  .hero-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 16px;
    overflow: hidden;
  }

  /* Left content first */
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* Hide the right SVG illustration entirely on small screens
     (it causes all the overflow)  hero text+pills are enough */
  .hero-illustration {
    display: none !important;
  }

  /* Pills wrap instead of overflowing */
  .hero-pills {
    flex-wrap: wrap !important;
    border-radius: 16px !important;
    width: 100% !important;
    justify-content: center;
  }

  /* Title font size to fit mobile */
  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem) !important;
    word-break: break-word;
  }

  /* Badges  hide the floating illustration badges on mobile */
  .hero-badge-float {
    display: none !important;
  }

  /* City skyline  prevent overflow */
  .hero-cityline {
    width: 100vw;
    left: 0;
    right: 0;
    overflow: hidden;
  }
  .hero-cityline svg {
    width: 100%;
  }

  /* Photo strip  clip to viewport */
  #photo-strip {
    overflow-x: hidden;
  }

  /* Ticker  prevent bleed */
  #ticker-section {
    overflow: hidden;
  }
}
