/**
 * EmpiricQuest — Utility Styles
 *
 * Spacing, visibility, alignment, and responsive overrides.
 * Enqueue order: 3rd (last, highest specificity)
 */

/* ============================================
   SPACING UTILITIES
   ============================================ */

/* Section vertical spacing */
.eq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.eq-section--compact {
  padding-top: 48px;
  padding-bottom: 48px;
}

.eq-section--tight {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* ============================================
   VISIBILITY UTILITIES
   ============================================ */

/* Screen reader only */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hide on desktop */
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Hide on tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .hide-tablet {
    display: none !important;
  }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ============================================
   ALIGNMENT UTILITIES
   ============================================ */

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   CONTAINER UTILITIES
   ============================================ */

.container-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.container-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.container-full {
  max-width: 100%;
}

/* ============================================
   RESPONSIVE GRID OVERRIDES
   ============================================ */

/* Tablet: 2-column grids */
@media (max-width: 1024px) {
  .eq-module-grid,
  .eq-segment-grid,
  .eq-steps-row,
  .eq-pricing-grid,
  .eq-guide-grid,
  .eq-blog-grid,
  .eq-archive-grid,
  .eq-needs-grid,
  .eq-inst-grid,
  .eq-why-grid,
  .eq-value-grid,
  .eq-ai-grid,
  .eq-values-grid,
  .eq-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .eq-usage-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .eq-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .eq-preview-inner {
    flex-direction: column;
  }

  .eq-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .eq-hero-content {
    max-width: 100%;
  }

  .eq-hero-title {
    font-size: 42px !important;
  }

  .eq-article-title {
    font-size: 36px !important;
  }

  .eq-step-row {
    flex-direction: column;
  }
}

/* Mobile: single column */
@media (max-width: 768px) {
  .eq-module-grid,
  .eq-segment-grid,
  .eq-steps-row,
  .eq-pricing-grid,
  .eq-guide-grid,
  .eq-blog-grid,
  .eq-archive-grid,
  .eq-needs-grid,
  .eq-inst-grid,
  .eq-why-grid,
  .eq-value-grid,
  .eq-ai-grid,
  .eq-values-grid,
  .eq-category-grid,
  .eq-journal-list,
  .eq-funding-list,
  .eq-job-list {
    grid-template-columns: 1fr !important;
  }

  .eq-usage-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .eq-trust-grid,
  .eq-plan-compare-grid,
  .eq-contact-grid {
    grid-template-columns: 1fr !important;
  }

  .eq-category-grid {
    grid-template-columns: 1fr !important;
  }

  .eq-header-nav-wrap {
    display: none !important;
  }

  .eq-mobile-menu-toggle {
    display: flex !important;
  }

  .eq-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .eq-hero {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .eq-hero-title {
    font-size: 32px !important;
  }

  .eq-hero--centered .eq-hero-title {
    font-size: 28px !important;
  }

  .eq-page-hero-title {
    font-size: 28px !important;
  }

  .eq-article-title {
    font-size: 28px !important;
  }

  .eq-footer-inner {
    flex-direction: column;
    gap: 48px;
  }

  .eq-footer-columns {
    flex-direction: column;
    gap: 32px;
  }

  .eq-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .eq-preview-panel {
    min-width: auto;
    width: 100%;
  }

  .eq-auth-layout {
    flex-direction: column;
  }

  .eq-auth-brand,
  .eq-auth-form-card {
    min-width: auto;
    padding: 48px 24px;
  }

  .eq-page-hero-image img,
  .eq-page-hero-image {
    max-width: 200px !important;
  }

  .eq-hero-image img {
    max-width: 320px !important;
  }

  .eq-pricing-card--recommended {
    transform: none;
    order: -1;
  }

  .eq-step-visual {
    min-width: auto;
    width: 100%;
  }

  .eq-use-case,
  .eq-benefit-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .eq-pathway-stages {
    overflow-x: auto;
    padding-bottom: 16px;
  }

  .eq-stage {
    min-width: 70px;
  }

  .eq-journal-card,
  .eq-funding-card,
  .eq-job-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .eq-404-title {
    font-size: 72px !important;
  }

  .eq-contact-form-wrap {
    padding: 32px 24px !important;
  }

  .eq-plan-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .eq-profile-actions {
    flex-direction: column;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .eq-public-header,
  .eq-footer,
  .eq-mobile-menu-toggle,
  .eq-dashboard-sidebar,
  .eq-dashboard-header,
  .eq-cta-buttons,
  .eq-hero-buttons {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .eq-main {
    margin: 0;
    padding: 0;
  }

  .eq-section {
    padding: 24px 0;
    page-break-inside: avoid;
  }
}
