:root {
  --primary: #d90429;
  --primary-dark: #b8001f;
  --secondary: #0d1b2a;
  --dark: #1b263b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--light); color: var(--text); line-height: 1.6; }

/* Navigation & Header */
.top-bar { background: var(--primary); color: #fff; padding: 10px 20px; text-align: center; font-weight: 700; font-size: 0.95rem; }
header { background: #fff; border-bottom: 1px solid var(--border); padding: 16px 40px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--secondary); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }
.header-phone { background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; }

/* Service Hero */
.service-hero { background: linear-gradient(rgba(13,27,42,0.92), rgba(13,27,42,0.92)), url('/assets/images/hero-bg.jpg') center/cover; color: #fff; padding: 50px 20px; }
.hero-wrapper { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-wrapper h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 15px; }
.hero-wrapper p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 20px; }

/* Mini Lead Form */
.service-lead-card { background: #fff; color: var(--text); padding: 25px; border-radius: 10px; border-top: 4px solid var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.service-lead-card h3 { font-size: 1.25rem; color: var(--secondary); margin-bottom: 5px; }
.service-lead-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.btn-submit { width: 100%; background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.form-status { margin-top: 10px; font-size: 0.85rem; text-align: center; display: none; }

/* Tab System */
.tab-container { max-width: 1150px; margin: 40px auto; padding: 0 20px; }
.tab-nav { display: flex; gap: 10px; border-bottom: 2px solid var(--border); margin-bottom: 30px; }
.tab-btn { background: none; border: none; padding: 14px 24px; font-size: 1.05rem; font-weight: 700; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Guide / Blog Content */
.guide-content { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 35px; }
.guide-content h2 { font-size: 1.6rem; color: var(--secondary); margin: 25px 0 12px; }
.guide-content h2:first-of-type { margin-top: 0; }
.guide-content p { margin-bottom: 16px; color: #334155; line-height: 1.7; }
.guide-content ul, .guide-content ol { margin-left: 20px; margin-bottom: 20px; color: #334155; }
.guide-content li { margin-bottom: 8px; }

/* Live Job Cards */
.live-jobs-feed { display: flex; flex-direction: column; gap: 20px; }
.job-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.job-badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.badge { font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.badge.location { background: #e0f2fe; color: #0369a1; }
.badge.timestamp { background: #fef3c7; color: #b45309; }
.badge.dispatch { background: #dcfce7; color: #15803d; }
.job-headline { font-size: 1.3rem; color: var(--secondary); margin-bottom: 15px; }
.job-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.job-chronology { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--primary); padding-left: 15px; }
.chrono-node { font-size: 0.92rem; color: #334155; }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.empty-state h3 { font-size: 1.3rem; color: var(--secondary); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Footer */
footer { background: var(--secondary); color: #94a3b8; padding: 40px 20px; text-align: center; font-size: 0.9rem; margin-top: 60px; }
footer a { color: #cbd5e1; text-decoration: none; margin: 0 8px; }

@media (max-width: 850px) {
  .hero-wrapper { grid-template-columns: 1fr; }
  header { padding: 15px 20px; }
}