/* =============================================================
   VINITEC ENERGY — RESPONSIVE FIX STYLESHEET
   Scope: mobile & tablet ONLY (max-width: 900px / 1100px)
   Desktop (min-width: 901px) is 100% unchanged.
   ============================================================= */

/* ── Prevent horizontal scroll globally ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────────
   MOBILE MENU (≤900px)
   Uses max-height transition so open/close is
   smooth without conflicting with display:flex
───────────────────────────────────────────── */
@media (max-width: 900px) {

  /* Header base */
  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 68px !important;
    padding: 0 18px !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }

  /* Hamburger button */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 20px !important;
    cursor: pointer;
    z-index: 10001 !important;
    position: relative;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
  }

  /* Nav — hidden state (transition-based, not display:none) */
  #site-nav {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 0 !important;
    overflow: hidden !important;
    overflow-y: auto;
    background: rgba(5,17,24,.97) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.42) !important;
    z-index: 9998 !important;
    padding: 0 !important;
    gap: 0 !important;
    /* Smooth slide-down */
    transition: max-height .38s cubic-bezier(.4,0,.2,1), padding .38s ease !important;
    /* Allow scroll on very small/long screens */
    -webkit-overflow-scrolling: touch;
  }

  /* Nav — open state */
  #site-nav.open {
    max-height: 90vh !important;
    padding: 10px 0 18px !important;
  }

  /* Nav links */
  #site-nav a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 14px 22px !important;
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    transition: background .2s, color .2s !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    -webkit-tap-highlight-color: transparent;
  }
  #site-nav a:last-child {
    border-bottom: 0 !important;
  }
  #site-nav a:hover,
  #site-nav a:active {
    background: rgba(48,183,67,.10) !important;
    color: var(--green) !important;
  }
  #site-nav a:not(.btn)::after {
    display: none !important;
  }

  /* CTA button inside nav */
  #site-nav a.btn,
  #site-nav a.btn.small {
    margin: 14px 18px 4px !important;
    width: calc(100% - 36px) !important;
    min-height: 50px !important;
    justify-content: center !important;
    border-radius: 999px !important;
    padding: 14px 20px !important;
    background: var(--green) !important;
    color: #fff !important;
    border: 1px solid var(--green) !important;
    font-size: 13px !important;
  }

  /* Prevent body scroll when menu open */
  body.menu-open {
    overflow: hidden;
  }

  /* Logo scaling */
  .logo span { font-size: 32px !important; }
  .logo b    { font-size: 18px !important; }
  .logo small{ font-size: 9px !important; letter-spacing: 1.5px !important; }
  .site-logo-img {
    max-height: 44px !important;
    max-width: 160px !important;
  }

  /* Page top spacing so content isn't behind fixed header */
  .hero,
  .inner-hero,
  .dynamic-inner-hero {
    padding-top: 68px !important;
  }
}

/* ─────────────────────────────────────────────
   HERO SECTION (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { overflow: hidden; }
  .hero h1 { font-size: 34px !important; line-height: 1.18 !important; word-break: break-word; }
  .hero p  { font-size: 15px !important; }
  .hero-actions { flex-wrap: wrap !important; gap: 10px !important; }
  .hero-actions .btn { padding: 13px 16px !important; font-size: 11.5px !important; }
  .inner-hero h1 { font-size: 32px !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 27px !important; }
  .hero p  { font-size: 14px !important; }
}

/* ─────────────────────────────────────────────
   SECTION GENERAL
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 56px 0 !important; }
  .section-head {
    display: block !important;
    margin-bottom: 30px !important;
  }
  .section h2 { font-size: 28px !important; }
  .section-head p { max-width: 100% !important; margin-top: 10px; }

  .container { width: min(100%, 92%) !important; }
}

/* ─────────────────────────────────────────────
   CARDS (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .card { width: 100% !important; }
  .card-media { height: 220px !important; aspect-ratio: unset !important; }
  .card-body { padding: 20px !important; }
  .card h3 { font-size: 16px !important; }
}

/* ─────────────────────────────────────────────
   STATS GRID (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats { padding: 44px 0 !important; }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr !important; }
}

/* ─────────────────────────────────────────────
   SPLIT LAYOUT (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .split-img { min-height: 240px !important; }
  .split-content { padding: 30px 20px !important; }
  .contact-split { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ─────────────────────────────────────────────
   FORM RESPONSIVE (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .form-grid textarea { grid-column: 1 !important; height: 120px !important; }
  .form-grid input,
  .form-grid textarea {
    font-size: 16px !important; /* prevents iOS zoom */
    padding: 13px !important;
  }
  .form-grid .btn,
  .form-grid button[type="submit"] {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ─────────────────────────────────────────────
   VIDEO BAND (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .video-band { min-height: 320px !important; }
  .video-band h2 { font-size: 26px !important; }
  .video-band .container { padding: 28px 20px !important; border-radius: 18px !important; }
}

/* ─────────────────────────────────────────────
   SOLUTION BAR (≤900px) — hide per client spec
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .solution-bar { display: none !important; }
}

/* ─────────────────────────────────────────────
   INDUSTRY GRID (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .industry-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .industry img { height: 120px !important; }
  .industry h4 { font-size: 12px !important; min-height: auto !important; }
}
@media (max-width: 480px) {
  .industry-grid { grid-template-columns: 1fr !important; }
}

/* ─────────────────────────────────────────────
   CTA STRIP (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .cta .container {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    text-align: center;
  }
  .cta .btn { width: 100% !important; justify-content: center !important; }
}

/* ─────────────────────────────────────────────
   PARTNERS / MARQUEE (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .partner-logo { min-width: 140px !important; height: 70px !important; }
  .partner-logo img { max-width: 115px !important; max-height: 50px !important; }
}

/* ─────────────────────────────────────────────
   FOOTER (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer { padding: 44px 0 20px !important; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .footer-grid > div {
    padding: 18px !important;
    border-radius: 14px !important;
  }
  .copyright {
    display: block !important;
    text-align: center;
    font-size: 12px !important;
  }
  .footer-cta-strip {
    flex-direction: column !important;
    padding: 22px !important;
    border-radius: 18px !important;
    gap: 14px !important;
  }
  .footer-cta-strip h3 { font-size: 22px !important; }
  .footer-cta-strip .btn { width: 100% !important; justify-content: center !important; margin-top: 0 !important; }
  .footer-contact-pills { flex-direction: column !important; gap: 8px !important; }
  .footer-contact-pills a { display: flex !important; margin: 0 !important; }
  .newsletter { flex-wrap: nowrap; }
  .newsletter input { min-width: 0; }
}

/* ─────────────────────────────────────────────
   INNER PAGE / CONTENT PAGE (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .inner-hero, .dynamic-inner-hero {
    padding: 100px 0 50px !important;
  }
  .inner-hero h1 { font-size: 28px !important; }
  .content-page { padding: 40px 0 !important; }
  .content-page .container {
    padding: 22px 16px !important;
    border-radius: 18px !important;
  }
  .page-photo-banner { padding-top: 20px !important; }
  .page-photo-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .page-photo-box { height: 210px !important; border-radius: 16px !important; }
}

/* ─────────────────────────────────────────────
   INDUSTRY SHOWCASE TILES (≤900px) — already in
   style.css but reinforced here
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .industry-section { padding: 50px 0 56px !important; }
  .industry-showcase {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 160px !important;
    gap: 12px !important;
  }
  .industry-tile.featured {
    grid-column: 1 / -1 !important;
    grid-row: span 2 !important;
  }
  .industry-tile { border-radius: 14px !important; }
  .industry-overlay { padding: 14px !important; }
  .industry-overlay h4 { font-size: 14px !important; }
  .industry-tile.featured .industry-overlay h4 { font-size: 22px !important; }
  .industry-overlay small { opacity: 1 !important; transform: none !important; font-size: 11px !important; }
}
@media (max-width: 480px) {
  .industry-showcase {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 180px !important;
  }
  .industry-tile.featured { grid-row: span 1 !important; }
}

/* ─────────────────────────────────────────────
   SUSTAINABILITY & TECH CARDS (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .tech-cards,
  .sustainability-highlights,
  .sustain-counters {
    grid-template-columns: 1fr !important;
  }
  .sustainability-hero-card { padding: 28px 20px !important; border-radius: 18px !important; }
  .sustainability-hero-card h2 { font-size: 26px !important; }
  .sustain-counters { padding: 24px !important; }
  .sustain-counters div { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.12) !important; padding-bottom: 16px !important; }
  .sustain-counters div:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
  .partner-panel { padding: 26px 20px !important; border-radius: 18px !important; }
  .partner-panel h2 { font-size: 24px !important; }
  .checks.two-col { grid-template-columns: 1fr !important; }
  .page-intro h2 { font-size: 26px !important; }
  .tech-ecosystem { text-align: left !important; }
}

/* ─────────────────────────────────────────────
   FLOAT BUTTONS (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .float { right: 14px !important; width: 44px !important; height: 44px !important; }
  .float.call    { bottom: 76px !important; }
  .float.whatsapp{ bottom: 20px !important; }
}

/* ─────────────────────────────────────────────
   TABLET (901px – 1100px) — light fixes only
───────────────────────────────────────────── */
@media (min-width: 901px) and (max-width: 1100px) {
  .site-header { padding: 0 28px !important; }
  .site-header nav { gap: 16px !important; }
  .site-header nav a { font-size: 11px !important; }
  .cards { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; gap: 22px !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
  .industry-showcase { grid-template-columns: repeat(3, 1fr) !important; }
  .industry-tile.featured { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* ─────────────────────────────────────────────
   BREADCRUMB (≤900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .breadcrumb-line {
    font-size: 12px !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
  }
}

/* ─────────────────────────────────────────────
   MISC OVERFLOW GUARDS
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .section,
  .industry-section,
  .tech-ecosystem,
  .partners,
  .stats,
  .cta,
  .footer,
  .premium-footer,
  .video-band,
  .split,
  .content-page {
    overflow-x: hidden !important;
  }
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  pre, code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }
}
