/*
 * Theme Name:  EZHRM Astra Child
 * Theme URI:   https://ezhrm.in
 * Description: Child theme for EZHRM — custom page templates, full design system, SEO-optimised.
 * Author:      EZHRM
 * Template:    astra
 * Version:     1.0.0
 * Text Domain: ezhrm-child
 */

/* ============================================================
   1. DESIGN SYSTEM — CORE VARIABLES
   ============================================================ */
:root {
  --ezh-navy:      #0f172a;
  --ezh-navy-mid:  #1e293b;
  --ezh-navy-lite: #334155;
  --ezh-purple:    #4f46e5;
  --ezh-purple-2:  #6366f1;
  --ezh-purple-3:  #818cf8;
  --ezh-green:     #10b981;
  --ezh-amber:     #f59e0b;
  --ezh-red:       #ef4444;
  --ezh-text-dark: #0f172a;
  --ezh-text-mid:  #475569;
  --ezh-text-lite: #94a3b8;
  --ezh-border:    #e2e8f0;
  --ezh-bg-alt:    #f8fafc;
  --ezh-radius:    12px;
  --ezh-shadow:    0 4px 24px rgba(0,0,0,.08);
}

/* ============================================================
   2. FULL-WIDTH VIEWPORT BREAKOUT
   ============================================================ */
.ezh {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  box-sizing: border-box;
}
.ezh-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .ezh-inner { padding: 0 20px; }
}

/* ============================================================
   3. SECTION BACKGROUNDS
   ============================================================ */
.ezh-section-dark {
  background: var(--ezh-navy);
  color: #f1f5f9;
}
.ezh-section-mid {
  background: var(--ezh-navy-mid);
  color: #f1f5f9;
}
.ezh-section {
  background: #fff;
  color: var(--ezh-text-dark);
}
.ezh-section-alt {
  background: var(--ezh-bg-alt);
  color: var(--ezh-text-dark);
}
.ezh-section-purple {
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
  color: #fff;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
.ezh-h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 20px;
}
.ezh-h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ezh-text-dark);
  margin: 0 0 16px;
}
.ezh-h2-light {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  margin: 0 0 16px;
}
.ezh-h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ezh-text-dark);
  margin: 0 0 10px;
}
.ezh-h3-light {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
  margin: 0 0 10px;
}
.ezh-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ezh-text-lite);
  margin: 0 0 32px;
}
.ezh-sub-dark {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ezh-text-mid);
  margin: 0 0 32px;
}
.ezh-accent {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.ezh-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--ezh-purple), var(--ezh-purple-2));
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
  letter-spacing: .3px;
}
.ezh-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.45);
}
.ezh-btn-outline {
  display: inline-block;
  background: transparent;
  color: #a5b4fc !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 8px;
  text-decoration: none !important;
  border: 1.5px solid rgba(99,102,241,.5);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  letter-spacing: .3px;
}
.ezh-btn-outline:hover {
  border-color: #6366f1;
  background: rgba(99,102,241,.08);
}
.ezh-btn-white {
  display: inline-block;
  background: #fff;
  color: var(--ezh-purple) !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.ezh-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ============================================================
   6. CARDS
   ============================================================ */
.ezh-card {
  background: #fff;
  border: 1px solid var(--ezh-border);
  border-radius: var(--ezh-radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.ezh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.ezh-card-dark {
  background: var(--ezh-navy-mid);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--ezh-radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.ezh-card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.ezh-card-purple {
  background: linear-gradient(135deg, rgba(79,70,229,.15), rgba(99,102,241,.08));
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--ezh-radius);
  padding: 28px;
}

/* ============================================================
   7. GRIDS
   ============================================================ */
.ezh-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ezh-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ezh-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .ezh-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ezh-grid-2, .ezh-grid-3, .ezh-grid-4 { grid-template-columns: 1fr; }
  .ezh-h1 { font-size: 30px; }
  .ezh-h2, .ezh-h2-light { font-size: 26px; }
}

/* ============================================================
   8. BADGE / PILL
   ============================================================ */
.ezh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 50px;
  padding: 6px 16px;
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 24px;
}
.ezh-badge-dot {
  width: 8px;
  height: 8px;
  background: #6366f1;
  border-radius: 50%;
  display: inline-block;
}
.ezh-badge-green {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.3);
  color: #34d399;
}
.ezh-badge-dot-green { background: #10b981; }

/* ============================================================
   9. FEATURE ICON BOX
   ============================================================ */
.ezh-icon-box {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(79,70,229,.15), rgba(99,102,241,.08));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* ============================================================
   10. COMPARISON TABLE
   ============================================================ */
.ezh-compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}
.ezh-compare-table th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.ezh-compare-table th:first-child { background: var(--ezh-navy-mid); color: #94a3b8; }
.ezh-compare-table th.ezh-col-us { background: var(--ezh-purple); color: #fff; }
.ezh-compare-table th.ezh-col-them { background: #374151; color: #9ca3af; }
.ezh-compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ezh-compare-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.ezh-compare-table td:first-child { color: #cbd5e1; font-weight: 500; }
.ezh-compare-table td.ezh-col-us { color: #a5b4fc; }
.ezh-compare-table td.ezh-col-them { color: #6b7280; }
.ezh-check { color: #10b981; font-size: 16px; font-weight: 700; }
.ezh-cross { color: #ef4444; font-size: 16px; }
.ezh-partial { color: #f59e0b; font-size: 13px; }

/* ============================================================
   11. FAQ
   ============================================================ */
.ezh-faq-item { border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.ezh-faq-item-light { border-bottom: 1px solid var(--ezh-border); overflow: hidden; }
.ezh-faq-btn {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ezh-faq-q { color: #f1f5f9; font-size: 16px; font-weight: 600; }
.ezh-faq-q-dark { color: var(--ezh-text-dark); font-size: 16px; font-weight: 600; }
.ezh-faq-icon { color: #6366f1; font-size: 22px; transition: transform .3s; flex-shrink: 0; }
.ezh-faq-ans { display: none; padding: 0 0 20px; }
.ezh-faq-ans p { color: #94a3b8; font-size: 15px; line-height: 1.7; margin: 0; }
.ezh-faq-ans-dark p { color: var(--ezh-text-mid); }

/* ============================================================
   12. STATS BAR
   ============================================================ */
.ezh-stats-bar {
  background: var(--ezh-navy-mid);
  padding: 32px 0;
}
.ezh-stat-item {
  text-align: center;
  padding: 16px 12px;
}
.ezh-stat-value {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.ezh-stat-label {
  color: var(--ezh-text-lite);
  font-size: 13px;
  margin-top: 6px;
}

/* ============================================================
   13. PROCESS / HOW IT WORKS STEPS
   ============================================================ */
.ezh-step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  flex-shrink: 0;
}
.ezh-step-connector {
  position: relative;
}
.ezh-step-connector::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, rgba(79,70,229,0));
}

/* ============================================================
   14. TRUST BAR / LOGOS
   ============================================================ */
.ezh-trust-bar {
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}

/* ============================================================
   15. ASTRA OVERRIDES — FULL WIDTH FOR CUSTOM TEMPLATES
   ============================================================ */
/* Applied via body class WordPress adds automatically per template */
body.page-template-template-feature,
body.page-template-template-compare,
body.page-template-template-industry,
body.page-template-template-about {
  background: var(--ezh-navy);
}

body.page-template-template-feature #primary.content-area,
body.page-template-template-compare #primary.content-area,
body.page-template-template-industry #primary.content-area,
body.page-template-template-about #primary.content-area {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.page-template-template-feature .site-content,
body.page-template-template-compare .site-content,
body.page-template-template-industry .site-content,
body.page-template-template-about .site-content {
  padding: 0 !important;
}

body.page-template-template-feature #main.site-main,
body.page-template-template-compare #main.site-main,
body.page-template-template-industry #main.site-main,
body.page-template-template-about #main.site-main {
  padding: 0 !important;
  margin: 0 !important;
}

body.page-template-template-feature .ast-container,
body.page-template-template-compare .ast-container,
body.page-template-template-industry .ast-container,
body.page-template-template-about .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

body.page-template-template-feature .site-main article,
body.page-template-template-compare .site-main article,
body.page-template-template-industry .site-main article,
body.page-template-template-about .site-main article {
  margin: 0 !important;
  padding: 0 !important;
}

body.page-template-template-feature .entry-content,
body.page-template-template-compare .entry-content,
body.page-template-template-industry .entry-content,
body.page-template-template-about .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Remove Astra separator / card box on these templates */
body.page-template-template-feature .ast-separate-container .ast-article-single,
body.page-template-template-compare .ast-separate-container .ast-article-single,
body.page-template-template-industry .ast-separate-container .ast-article-single,
body.page-template-template-about .ast-separate-container .ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Nav gap fix for ALL pages */
#primary.content-area {
  margin-top: 0 !important;
}

/* Footer full-width fix */
#ez-footer {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
}

/* ============================================================
   16. RESPONSIVE UTILITIES
   ============================================================ */
.ezh-hide-mobile { display: block; }
.ezh-show-mobile { display: none; }

@media (max-width: 768px) {
  .ezh-hide-mobile { display: none; }
  .ezh-show-mobile { display: block; }
  .ezh-btn-primary, .ezh-btn-outline, .ezh-btn-white {
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }
  .ezh-stats-bar .ezh-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
