/* ============================================================
   HEBUMA - Responsive Styles (Voltak-Inspired)
   ============================================================ */

/* --- Small Desktop --- */
@media (max-width: 1200px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.75rem;
    --text-4xl: 2.25rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .mega-menu {
    min-width: 600px;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
  }

  .intro__grid {
    gap: 50px;
  }

  .intro__image img {
    height: 440px;
  }
}

/* --- Tablet --- */
@media (max-width: 992px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --space-section: 4rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__content {
    padding-bottom: 10rem;
  }

  .hero__stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__stat-num {
    font-size: var(--text-2xl);
  }

  .hero__stat-item {
    padding: 20px 12px;
  }

  /* Navigation */
  .nav {
    display: none;
  }

  /* Quote section */
  .quote-section__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Grid adjustments */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .intro__image img {
    height: 380px;
  }

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

  .sectors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certifications__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Clients bar */
  .clients-bar__inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .clients-bar__logos {
    justify-content: center;
    gap: var(--space-lg);
  }

  /* Page Header */
  .page-header {
    padding: calc(var(--space-xl) + var(--header-height) + var(--top-bar-height)) 0 var(--space-xl);
  }

  .page-header h1 {
    font-size: var(--text-4xl);
  }

  /* Services tabs scroll */
  .services__tabs {
    -webkit-overflow-scrolling: touch;
  }

  /* Wave divider */
  .wave-divider svg {
    height: 50px;
  }
}

/* --- Large Phones / Small Tablets --- */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2.25rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
    --space-section: 3rem;
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  /* Header logo */
  .header__logo-img {
    height: 38px;
  }

  .footer__logo-img {
    height: 32px;
  }

  /* Search overlay */
  .search-overlay__input {
    font-size: var(--text-xl);
  }

  /* Hero */
  .hero {
    min-height: 100vh;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero__content {
    padding-bottom: 11rem;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    text-align: center;
    justify-content: center;
  }

  /* Hero dots - move to bottom on mobile */
  .hero__dots {
    left: auto;
    right: auto;
    top: auto;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
  }

  .hero__stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stat-item {
    padding: 18px 12px;
  }

  .hero__stat-num {
    font-size: var(--text-xl);
  }

  .hero__stat-text {
    font-size: 9px;
    letter-spacing: 1px;
  }

  /* Intro */
  .intro__image img {
    height: 300px;
  }

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

  /* Sectors */
  .sectors__grid {
    grid-template-columns: 1fr;
  }

  .overlay-card {
    height: 280px;
  }

  /* Services */
  .services__tabs {
    gap: 0;
    padding-bottom: 2px;
  }

  .services__tab {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    letter-spacing: 0.5px;
  }

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

  /* Projects */
  .projects__grid {
    grid-template-columns: 1fr;
  }

  /* Certifications */
  .certifications__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Resources */
  .resources__grid {
    grid-template-columns: 1fr;
  }

  /* Clients bar */
  .clients-bar {
    padding: 24px 0;
  }

  .clients-bar__logos {
    gap: var(--space-md);
  }

  .clients-bar__logo {
    font-size: var(--text-xs);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  /* Emergency float visible on mobile */
  .emergency-float {
    display: flex;
  }

  /* Top bar */
  .top-bar__right {
    display: none;
  }

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

  /* Accordion */
  .accordion__title {
    font-size: var(--text-lg);
  }

  .accordion__content {
    padding-left: 24px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--space-md);
  }

  .testimonial-card__quote {
    font-size: var(--text-lg);
  }

  /* Section headers */
  .section-header {
    margin-bottom: 36px;
  }

  /* Wave dividers */
  .wave-divider svg {
    height: 36px;
  }
}

/* --- Small Phones --- */
@media (max-width: 576px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.375rem;
    --space-section: 2.5rem;
    --top-bar-height: 36px;
  }

  .top-bar {
    font-size: var(--text-xs);
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero__tagline {
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 8px 14px;
  }

  .hero__stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .accordion__header {
    padding: var(--space-sm);
  }

  .accordion__icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .accordion__preview {
    display: none;
  }

  .btn {
    padding: 12px 24px;
    font-size: var(--text-sm);
  }

  .btn--large {
    padding: 14px 28px;
    font-size: var(--text-base);
  }

  /* Page header */
  .page-header h1 {
    font-size: var(--text-3xl);
  }

  /* Wave dividers */
  .wave-divider svg {
    height: 24px;
  }

  /* Intro image badge */
  .intro__image-badge {
    bottom: 16px;
    right: 16px;
    padding: 14px 16px;
  }

  .intro__badge-number {
    font-size: var(--text-2xl);
  }
}

/* --- Print Styles --- */
@media print {
  .top-bar,
  .header,
  .whatsapp-float,
  .emergency-float,
  .scroll-top,
  .hero__bg,
  .wave-divider,
  .hero__stats-bar,
  .clients-bar {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: white !important;
    color: black !important;
  }

  .hero h1 { color: black !important; }

  .section { padding: 1.5rem 0; }
  .section--dark { background: white !important; color: black !important; }
  .section--dark h2, .section--dark h3, .section--dark h4 { color: black !important; }
  .section--dark p { color: #333 !important; }

  body { font-size: 12pt; }
}
