/**
 * BukhariHRMS — assets/css/main.css
 * Supplementary stylesheet loaded after style.css.
 * Contains: admin bar offset, responsive breakpoints, print styles.
 *
 * Core design tokens and component styles live in style.css (WP root).
 */

/* ═══════════════════════════════════════════════
   WORDPRESS ADMIN BAR OFFSET
   Prevents navbar overlapping WP admin bar when logged in
═══════════════════════════════════════════════ */
.admin-bar .bhrms-navbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .bhrms-navbar {
    top: 46px;
  }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST FIXES
═══════════════════════════════════════════════ */

/* Hero grid: single column on mobile */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
    padding-top: 6rem !important;
    padding-bottom: 4rem !important;
    height: auto !important;
  }
  .bhrms-hero {
    height: auto !important;
    min-height: 100vh;
  }

  /* Blog archive grid: 1 column on mobile, 2 on tablet */
  .posts-grid {
    grid-template-columns: 1fr !important;
  }

  /* Article + sidebar: single column on mobile */
  .article-wrap,
  .page-wrap-grid {
    grid-template-columns: 1fr !important;
  }

  /* Sidebar hidden on mobile — content takes full width */
  .post-sidebar {
    display: none;
  }

  /* Steps: vertical on mobile */
  .step-dash {
    display: none;
  }

  /* Stats bar: wrap on mobile */
  .stat-div {
    display: none;
  }

  /* Dual CTA cards: stack on mobile */
  .dual-card-job,
  .dual-card-emp {
    border-radius: 16px;
  }

  /* Footer grid: single column on mobile */
  .bhrms-footer .lg\:col-span-2 {
    grid-column: span 1;
  }

  /* Hero buttons: stack on mobile */
  .hero-btns {
    flex-direction: column;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  /* Blog grid: 2 columns on tablet */
  .posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Related posts: 2 columns on tablet */
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* ═══════════════════════════════════════════════
   WORDPRESS BLOCK EDITOR COMPATIBILITY
   Prevents Gutenberg block styles from clashing
═══════════════════════════════════════════════ */
.wp-block-image img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}
.wp-block-quote {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(212,160,23,.06), rgba(30,86,160,.04));
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.6rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--navy);
}
.wp-block-separator {
  border: none;
  border-top: 1px solid rgba(10,31,68,.1);
  margin: 2rem 0;
}
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body, 'Inter'), sans-serif;
  font-size: .92rem;
}
.wp-block-table th {
  background: var(--navy);
  color: #fff;
  padding: .7rem 1rem;
  text-align: left;
}
.wp-block-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(10,31,68,.08);
}
.wp-block-table tr:nth-child(even) td {
  background: var(--off);
}


/* ═══════════════════════════════════════════════
   PRINT STYLES
   Clean printout — hide nav, footer, CTAs
═══════════════════════════════════════════════ */
@media print {
  .bhrms-navbar,
  .bhrms-mob-nav,
  .wa-float,
  .cta-band,
  .bhrms-footer,
  .share-bar,
  .sidebar-card,
  .post-sidebar,
  .btn-gold,
  .btn-wa,
  .btn-navy {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .article-body {
    max-width: 100%;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: .75em;
    color: #555;
  }
}


/* ═══════════════════════════════════════════════
   UTILITY — FOCUS STYLES FOR ACCESSIBILITY
═══════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ═══════════════════════════════════════════════
   CUSTOM SCROLLBAR — WEBKIT
═══════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }
