/* ══════════════════════════════════════════════════════════════
   PAGE: Homepage
   Homepage-specific styles (hero, trust bar, service cards,
   monitoring CTA, testimonials, service areas)
   ══════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,27,45,0.85) 0%, rgba(15,27,45,0.5) 50%, rgba(15,27,45,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,0.15); border: 1px solid rgba(245,197,24,0.3);
  padding: 8px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; color: var(--yellow);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px); font-weight: 700;
  color: var(--white); line-height: 1.1;
  max-width: 640px; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 18px; color: rgba(255,255,255,0.8);
  max-width: 480px; margin-bottom: 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── TRUST BAR ── */
.trust-bar {
  position: relative; z-index: 3;
  margin-top: -52px;
}
.trust-bar-inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
}
.trust-bar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.trust-item {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--gray-100);
}
.trust-item:last-child { border-right: none; }
.trust-item .number {
  font-size: 28px; font-weight: 700; color: var(--navy);
  line-height: 1;
}
.trust-item .label {
  font-size: 13px; color: var(--gray-400); margin-top: 6px;
  font-weight: 500;
}

/* ── SERVICE CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card-img {
  width: 100%; height: 220px;
  object-fit: cover;
}
.service-card-body { padding: 28px; }
.service-card-body h3 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.service-card-body p {
  font-size: 15px; color: var(--gray-600); line-height: 1.6;
}
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  margin-top: 16px; transition: gap 0.2s;
}
.service-card:hover .service-card-link { gap: 10px; }
.service-card-link svg { width: 16px; height: 16px; }

/* ── WHY DEHART ── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.why-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-img img { width: 100%; height: 420px; object-fit: cover; }

/* ── MONITORING CTA ── */
.monitoring-cta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; min-height: 480px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.monitoring-cta-content {
  background: var(--navy); padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.monitoring-cta-content .price {
  display: flex; align-items: baseline; gap: 4px;
  margin: 28px 0 12px;
}
.monitoring-cta-content .price .amount {
  font-size: 52px; font-weight: 700; color: var(--yellow);
  line-height: 1;
}
.monitoring-cta-content .price .period {
  font-size: 16px; color: rgba(255,255,255,0.6);
}
.monitoring-cta-content .price-note {
  font-size: 14px; color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}
.monitoring-cta-content h2 {
  font-size: 32px; font-weight: 700; color: var(--white);
  line-height: 1.2;
}
.monitoring-cta-content p {
  font-size: 16px; color: rgba(255,255,255,0.7);
  margin-top: 16px; line-height: 1.7;
}
.monitoring-cta-img { position: relative; }
.monitoring-cta-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── TESTIMONIALS ── */
.testimonials-section {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}
#testimonial-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.testimonials-section .section-inner {
  position: relative;
  z-index: 2;
}
.testimonials-section .section-label { color: var(--navy); opacity: 0.5; }
.testimonials-section .section-title { color: var(--navy); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.35); padding: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: all 0.35s ease;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.testimonial-stars {
  display: flex; gap: 2px; margin-bottom: 16px;
}
.testimonial-stars svg { width: 18px; height: 18px; color: var(--yellow); fill: var(--yellow); }
.testimonial-card blockquote {
  font-size: 15px; line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.testimonial-footer {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--gray-200);
}
.testimonial-info {
  flex: 1; min-width: 0;
}
.testimonial-name-row {
  display: flex; align-items: center; gap: 6px;
}
.testimonial-author {
  font-size: 14px; font-weight: 600; color: var(--navy);
}
.google-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px; font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.google-badge svg {
  width: 12px; height: 12px; flex-shrink: 0;
}
.testimonial-role {
  font-size: 13px; color: var(--gray-400); margin-top: 2px;
}

/* ── SERVICE AREAS ── */
.areas-flex {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 36px;
}
.area-pill {
  padding: 10px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 500;
  background: var(--white); color: var(--gray-800);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  text-decoration: none;
}
.area-pill:hover { border-color: var(--yellow); background: rgba(245,197,24,0.06); }
.area-pill.primary {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE (homepage-specific)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 968px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-img { order: -1; }
  .why-img img { height: 280px; }
  .monitoring-cta { grid-template-columns: 1fr; }
  .monitoring-cta-img { height: 280px; }
  .monitoring-cta-img img { height: 280px; }
  .monitoring-cta-content { padding: 48px 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-bar-card { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--gray-100); }
}

@media (max-width: 640px) {
  .hero { min-height: 85vh; }
  .hero-content { padding: 100px 20px 60px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .trust-bar { margin-top: -40px; }
  .trust-bar-card { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 20px 16px; }
  .trust-item .number { font-size: 22px; }
  .testimonial-card { padding: 28px; }
  .monitoring-cta-content .price .amount { font-size: 42px; }
  .hero-buttons .btn { width: 100%; }
}
