/* ==========================================================================
   BUH ENERGIE — COMPREHENSIVE RESPONSIVE STYLESHEET
   Loaded last so it overrides all component-level & inline styles
   ========================================================================== */

/* ─────────────────────────────────────────────
   BASE / GLOBAL
───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.rts-actions-row .editorial-discover-btn {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ─────────────────────────────────────────────
   TABLET  ≤ 1024px
───────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Container */
  .container {
    padding: 0 32px !important;
  }

  /* Hero – Home */
  .hero-stats-strip {
    flex-wrap: wrap;
  }
  .hero-stat-card {
    flex: 1 1 calc(33.333% - 1px);
    min-width: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  /* Section headings */
  .editorial-main-title {
    font-size: 40px !important;
  }

  /* Careers page */
  .careers-hero-layout {
    flex-direction: column !important;
    gap: 40px !important;
  }

  /* Contact page portal split */
  .portal-split {
    flex-direction: column !important;
    gap: 48px !important;
  }
  .portal-form-side,
  .portal-info-side {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Contact channels grid */
  .channels-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Services page capabilities */
  .capabilities-split-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Investors page */
  .growth-split {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* News page */
  .news-editorial-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Marine / MarineLogistics hero badge / stats */
  .marine-hero-stats {
    flex-wrap: wrap;
    gap: 16px !important;
  }

  /* Facilities hero buttons */
  .fac-hero-content > div,
  .fac-hero-content > div[style] {
    flex-wrap: wrap !important;
  }

  /* Mega menu – hidden on tablet+ is handled by JS; ensure it doesn't overflow */
  .mega-menu {
    width: min(900px, 96vw) !important;
  }

}

/* ─────────────────────────────────────────────
   SMALL TABLET  ≤ 768px
───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding: 0 20px !important;
  }

  /* Section padding */
  .section-padding {
    padding: 64px 0 !important;
  }
  .section-padding-lg {
    padding: 64px 0 !important;
  }

  /* ── Global heading scale ── */
  .editorial-main-title {
    font-size: 32px !important;
  }

  /* ── HERO (Home) ── */
  .hero-section.hero-full-bg {
    min-height: 650px !important;
  }
  .hero-content {
    transform: translateY(95px) !important;
  }
  .hero-slide-dots {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  .hero-title {
    font-size: 36px !important;
    letter-spacing: -0.02em !important;
  }
  .hero-subtitle,
  .hero-description {
    font-size: 15px !important;
    max-width: 100% !important;
  }
  .hero-ctas {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    max-width: 250px !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    font-size: 9px !important;
    margin: 0 auto !important;
  }
  .hero-stats-strip {
    flex-wrap: wrap;
  }
  .hero-stat-card {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .hero-stat-divider {
    display: none !important;
  }
  .hero-stat-value {
    font-size: 28px !important;
  }

  /* ── NAVBAR ── */
  .nav-links,
  .nav-search-wrapper,
  .nav-actions .nav-item-dropdown,
  .nav-divider {
    display: none !important;
  }
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
  }
  .menu-toggle svg {
    width: 28px !important;
    height: 28px !important;
  }
  .navbar-wrapper.scrolled .menu-toggle,
  .navbar-wrapper.nav-scrolled .menu-toggle {
    color: var(--primary-dark) !important;
  }

  /* ── ABOUT PAGE ── */
  .overview-story-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .about-wide-banner {
    height: 200px !important;
  }
  .about-collage-grid {
    grid-template-columns: 1fr !important;
  }
  .collage-card {
    height: 240px !important;
  }
  .split-visual-frame {
    height: 260px !important;
    margin-top: 0 !important;
  }

  /* ── SERVICES PAGE ── */
  .capabilities-split-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .cap-premium-card {
    grid-template-columns: 1fr !important;
    text-align: left !important;
    padding: 32px 24px !important;
  }
  .services-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
  .services-hero-inner {
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* ── CONTACT PAGE ── */
  .contact-hero-text h1 {
    font-size: 36px !important;
  }
  .channels-grid {
    grid-template-columns: 1fr !important;
  }
  .portal-split {
    flex-direction: column !important;
    gap: 40px !important;
  }
  .portal-form-side,
  .portal-info-side {
    width: 100% !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .input-group.full,
  .input-group {
    grid-column: span 1 !important;
  }

  /* ── CAREERS PAGE ── */
  .careers-stats-strip {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .careers-grid {
    grid-template-columns: 1fr !important;
  }
  .careers-hero-layout {
    flex-direction: column !important;
  }

  /* ── INVESTORS PAGE ── */
  .growth-split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .regions-grid {
    grid-template-columns: 1fr !important;
  }
  .strengths-grid {
    grid-template-columns: 1fr !important;
  }
  .partnerships-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .investors-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── FACILITIES PAGE ── */
  .fac-hero h1 {
    font-size: 34px !important;
  }
  .fac-hero p {
    font-size: 15px !important;
  }
  .center-card {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 56px !important;
  }
  .center-card.reverse {
    direction: ltr !important;
  }
  .center-features {
    grid-template-columns: 1fr !important;
  }
  .adv-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* ── TAKORADI BASE PAGE ── */
  .tako-hero h1 {
    font-size: 32px !important;
  }
  .infra-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .logistics-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .logistics-list {
    grid-template-columns: 1fr !important;
  }

  /* ── WORKSHOP CAPABILITIES PAGE ── */
  .cap-block {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 60px !important;
  }
  .cap-list {
    grid-template-columns: 1fr !important;
  }

  /* ── HSE & QUALITY PAGE ── */
  .hse-certs-grid {
    grid-template-columns: 1fr !important;
  }
  .hse-split {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* ── EQUIPMENT RESOURCES PAGE ── */
  .equipment-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── MARINE PAGES ── */
  .marine-spotlight-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .marine-grid {
    grid-template-columns: 1fr !important;
  }
  .marine-stats-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 16px !important;
  }
  .marine-hero-content h1 {
    font-size: 34px !important;
  }

  /* ── MARINE LOGISTICS PAGE ── */
  .marine-logistics-hero h1 {
    font-size: 34px !important;
  }

  /* ── NEWS / KNOWLEDGE HUB ── */
  .feat-hero-card {
    grid-template-columns: 1fr !important;
  }
  .kh-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── INVENTORY PAGE ── */
  .inventory-grid,
  .inv-filter-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .inv-category-tabs {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* ── FOOTER ── */
  .footer-kong-bottom > .container {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .footer-kong-expertise {
    text-align: left !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .expertise-title {
    text-align: left !important;
    margin-bottom: 16px !important;
  }
  .expertise-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  /* ── FEATURED PROJECTS ── */
  .featured-projects-grid {
    grid-template-columns: 1fr !important;
  }
  .fp-hero-card {
    flex-direction: column !important;
  }

  /* ── OUR STRENGTHS ── */
  .strength-grid-layout {
    grid-template-columns: 1fr !important;
  }

  /* ── TECH GRID (Engineering Future) ── */
  .tech-grid-container {
    grid-template-columns: 1fr !important;
  }

  /* ── HERO BANNER (About etc) ── */
  .about-banner-hero {
    padding: 100px 0 60px !important;
  }
  .about-hero-content h1 {
    font-size: 36px !important;
  }

  /* ── GLOBAL IMPACT MAP ── */
  .globe-container {
    transform: scale(0.75) !important;
    transform-origin: center top !important;
  }

  /* ── MOBILE NAVBAR ADJUSTMENTS ── */
  .logo-image {
    height: 44px !important;
  }
  .navbar-wrapper {
    padding: 12px 0 !important;
  }

  /* ── MOBILE FOOTER REFINE ── */
  .footer-kong-brand {
    margin-bottom: 30px !important;
  }
  .kong-socials {
    margin-bottom: 20px !important;
  }

  /* ── READY TO START MOBILE ── */
  .rts-main-title {
    font-size: 28px !important;
  }
  .rts-actions-row {
    align-items: center !important;
  }

}

/* ─────────────────────────────────────────────
   MOBILE  ≤ 480px
───────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Container */
  .container {
    padding: 0 16px !important;
  }

  /* Section padding */
  .section-padding,
  .section-padding-lg {
    padding: 48px 0 !important;
  }

  /* Headings */
  .editorial-main-title {
    font-size: 26px !important;
  }
  .hero-title {
    font-size: 28px !important;
  }

  /* Hero stats – single column on small phones */
  .hero-stat-card {
    flex: 1 1 100% !important;
  }

  /* About page hero heading */
  .about-banner-hero {
    padding: 90px 0 50px !important;
  }
  .about-hero-content h1 {
    font-size: 28px !important;
  }

  /* Facilities hero */
  .fac-hero {
    padding: 90px 0 60px !important;
  }
  .fac-hero h1 {
    font-size: 28px !important;
  }
  .fac-hero-content > div {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .fac-hero-content .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Takoradi hero */
  .tako-hero {
    padding: 90px 0 60px !important;
  }
  .tako-hero h1 {
    font-size: 26px !important;
  }

  /* Advantages grid – single column */
  .adv-grid {
    grid-template-columns: 1fr !important;
  }

  /* Investors stats – single column */
  .investors-stats-row,
  .strengths-grid,
  .partnerships-grid {
    grid-template-columns: 1fr !important;
  }

  /* Marine stats – single column */
  .marine-stats-inner {
    grid-template-columns: 1fr !important;
    padding: 0 12px !important;
  }

  /* Hero CTAs */
  .hero-ctas {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Buttons */
  .btn-lg {
    padding: 14px 24px !important;
    font-size: 13px !important;
  }

  /* Footer expertise strip – hidden on tiny screens */
  .expertise-sep {
    display: none !important;
  }
  .expertise-links a {
    font-size: 11px !important;
  }

  /* Form grid */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Inner hero (sub-pages) */
  .inner-hero-text {
    padding: 80px 0 50px !important;
  }
  .inner-hero-text h1,
  .inner-hero-title {
    font-size: 26px !important;
  }

  /* Contact channels */
  .channel-card {
    padding: 28px 20px !important;
  }

  /* News / knowledge cards */
  .kh-card {
    padding: 24px 20px !important;
  }

  /* Modal */
  .modal-card {
    width: 95vw !important;
    padding: 32px 20px !important;
    margin: 0 auto !important;
  }

  /* ReadyToStart / CTA Banner */
  .ready-to-start-section {
    padding: 60px 0 !important;
    text-align: center !important;
  }
  .rts-main-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
  .editorial-discover-btn {
    width: 100% !important;
    justify-content: center !important;
  }

}

/* ─────────────────────────────────────────────
   LANDSCAPE PHONE  ≤ 768px && height ≤ 500px
   (Ensures hero sections don't eat the screen)
───────────────────────────────────────────── */
@media (max-width: 768px) and (max-height: 500px) {
  .hero-section.hero-full-bg {
    min-height: 100svh !important;
  }
  .hero-stats-strip {
    min-height: auto !important;
  }
}

/* ─────────────────────────────────────────────
   TABLET LANDSCAPE  769px – 1024px
   (Two-col grids where appropriate)
───────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {

  .adv-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .infra-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .channels-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .strength-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .marine-matrix-grid {
    grid-template-columns: 1fr !important;
  }
  .tech-grid-container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .investors-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Section headings */
  .editorial-main-title {
    font-size: 38px !important;
  }

  /* Hero */
  .hero-title {
    font-size: 44px !important;
  }

  /* Container */
  .container {
    padding: 0 40px !important;
  }

}
