/* ============================================================
   ROOFERFOUND — HOME PAGE STYLES
   Premium Hero Section, Floating Cards, Why Us Layout
============================================================ */

/* === HERO SECTION === */
.home-hero {
  background: radial-gradient(circle at 80% 20%, rgba(37,99,235,0.15) 0%, transparent 50%),
              linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: calc(var(--nav-h) + 80px) 0 96px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.badge-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #fff;
}
.title-accent {
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
}
.hero-actions .btn {
  box-shadow: var(--shadow-sm);
}
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* === HERO DASHBOARD VISUAL === */
.hero-visual {
  position: relative;
  height: 480px;
  width: 100%;
  perspective: 1000px;
}
.hero-card {
  position: absolute;
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xl);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.hero-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) !important;
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 16px rgba(37,99,235,0.2);
}
.hc-main {
  width: 340px;
  padding: 24px;
  left: 10%;
  top: 10%;
  z-index: 5;
  transform: rotate(-2deg);
}
.hc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}
.hc-dots {
  display: flex;
  gap: 6px;
}
.hc-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.amber { background: #f59e0b; }
.dot.green { background: #10b981; }
.hc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.hc-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  margin-bottom: 20px;
  padding: 0 10px;
}
.hc-bar {
  width: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  position: relative;
  transition: height 1s var(--ease-out);
  cursor: pointer;
}
.hc-bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}
.hc-bar-active {
  background: linear-gradient(to top, var(--blue), var(--blue-light));
  box-shadow: 0 0 12px rgba(37,99,235,0.4);
}
.hc-bar:hover {
  background: var(--blue-light);
}
.hc-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hc-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}
.hc-lbl {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.hc-rank {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  right: 5%;
  top: 15%;
  z-index: 6;
  transform: rotate(3deg);
  width: 250px;
}
.hc-rank-icon {
  font-size: 1.5rem;
}
.hc-rank-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
}
.hc-rank-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.hc-calls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  left: 5%;
  bottom: 12%;
  z-index: 7;
  transform: rotate(-4deg);
  width: 240px;
}
.hc-calls-icon {
  font-size: 1.4rem;
  color: #10b981;
}
.hc-calls-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
}
.hc-calls-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.hc-rev {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  right: 12%;
  bottom: 8%;
  z-index: 4;
  transform: rotate(2deg);
  width: 260px;
}
.hc-rev-icon {
  font-size: 1.4rem;
  color: #fbbf24;
}
.hc-rev-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
}
.hc-rev-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* === WHY US SECTION === */
.why-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-check {
  width: 24px;
  height: 24px;
  background: var(--blue-subtle);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.why-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s;
}
.why-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.wsc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wsc-icon {
  font-size: 1.5rem;
}
.wsc-badge {
  background: var(--blue-subtle);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.wsc-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.wsc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
}
.wscm-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
}
.wscm-lbl {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* === RESPONSIVE LAYOUTS === */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    height: 400px;
    max-width: 480px;
    margin: 0 auto;
  }
  .hc-main { left: 5%; width: 280px; }
  .hc-rank { right: 0%; width: 200px; }
  .hc-calls { left: 0%; width: 200px; }
  .hc-rev { right: 5%; width: 220px; }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 480px) {
  .hero-visual {
    display: none; /* Hide complex floating visuals on mobile to maximize page speed & readability */
  }
  .home-hero {
    padding-bottom: 64px;
  }
}
