/* ============================================================
   Insurance Review & Affiliate Builder — Homepage Sections CSS
   (appended/concatenated with frontend.css OR loaded separately)
============================================================ */

/* ---- Containers & Sections ---- */
.irab-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.irab-section        { padding: 64px 0; }
.irab-section-light  { background: #f9fafb; }
.irab-section-accent { background: linear-gradient(135deg, var(--irab-primary) 0%, var(--irab-secondary) 100%); }

.irab-section-header { text-align: center; margin-bottom: 40px; }
.irab-section-header .irab-section-title { font-size: 28px; font-weight: 800; display: block; margin-bottom: 8px; border: none; padding: 0; }
.irab-section-header .irab-section-desc  { font-size: 16px; color: #6b7280; margin: 0 0 20px; }
.irab-title-white  { color: #fff !important; }
.irab-desc-white   { color: rgba(255,255,255,.8) !important; }

/* ---- Hero ---- */
.irab-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}
.irab-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.irab-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.irab-hero-content  { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.irab-hero-title    { font-size: 48px; font-weight: 900; line-height: 1.15; margin: 0 0 16px; }
.irab-hero-highlight{ color: #fbbf24; }
.irab-hero-desc     { font-size: 20px; opacity: .9; margin: 0 0 28px; }

.irab-hero-search { margin-bottom: 20px; }
.irab-hero-search .irab-search-box input {
  background: rgba(255,255,255,.95);
  border-color: transparent;
}

.irab-hero-type-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.irab-hero-pill {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.irab-hero-pill:hover { background: #fff; color: var(--irab-primary); }

.irab-hero-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.irab-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.irab-trust-icon { font-size: 20px; }

/* ---- Companies Row ---- */
.irab-companies-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.irab-company-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #1f2937;
  transition: all .2s;
  min-width: 140px;
  text-align: center;
}
.irab-company-chip:hover {
  border-color: var(--irab-primary);
  box-shadow: 0 4px 16px rgba(37,99,235,.15);
  transform: translateY(-2px);
}
.irab-company-chip-name  { font-size: 15px; font-weight: 700; }
.irab-company-chip-count { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ---- Category Grid ---- */
.irab-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 900px)  { .irab-category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .irab-category-grid { grid-template-columns: repeat(2, 1fr); } }

.irab-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #1f2937;
  text-align: center;
  transition: all .2s;
}
.irab-category-card:hover {
  border-color: var(--irab-primary);
  background: #eff6ff;
  transform: translateY(-2px);
}
.irab-category-icon  { font-size: 36px; margin-bottom: 10px; }
.irab-category-name  { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.irab-category-count { font-size: 12px; color: #6b7280; }

/* ---- Deals ---- */
.irab-deals-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .irab-deals-row { grid-template-columns: 1fr; } }

.irab-deal-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 24px;
  color: #fff;
  position: relative;
  transition: background .2s;
}
.irab-deal-card:hover { background: rgba(255,255,255,.18); }
.irab-deal-badge {
  display: inline-block;
  background: #fbbf24;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.irab-deal-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: #fff; }
.irab-deal-desc  { font-size: 14px; opacity: .85; margin-bottom: 20px; line-height: 1.5; }
.irab-btn-accent {
  background: #fbbf24;
  color: #92400e;
  font-weight: 700;
}
.irab-btn-accent:hover { background: #f59e0b; color: #78350f; }

/* ---- CTA Section ---- */
.irab-cta-section { background: #f0fdf4; }
.irab-cta-box     { text-align: center; max-width: 600px; margin: 0 auto; }
.irab-cta-title   { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.irab-cta-desc    { font-size: 18px; color: #6b7280; margin-bottom: 28px; }
.irab-cta-btns    { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .irab-hero-title { font-size: 30px; }
  .irab-hero-desc  { font-size: 16px; }
  .irab-section    { padding: 40px 0; }
  .irab-section-header .irab-section-title { font-size: 22px; }
  .irab-hero-badges { gap: 10px; }
}
