/* ============================================
   PlumbingSEO.agency — Homepage Styles
   ============================================ */

/* --- Hero Section --- */
.hero {
  padding: var(--space-16) 0 var(--space-20);
  background: linear-gradient(170deg, var(--off-white) 0%, #EDF4F8 60%, rgba(23,107,154,0.06) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,71,67,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.hero__content { position: relative; z-index: 2; }
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(23,107,154,0.08);
  color: var(--plumbing-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}
.hero__label svg { width: 16px; height: 16px; }
.hero__title {
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero__title span { color: var(--pin-red); }
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--steel-gray);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 520px;
}
.hero__ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--light-gray);
}
.hero__stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-3xl);
  color: var(--trust-navy);
  line-height: 1;
}
.hero__stat-number span { color: var(--pin-red); }
.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--steel-gray);
  margin-top: var(--space-1);
}
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
}
/* Floating elements around hero image */
.hero__float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}
.hero__float--rank {
  top: 10%;
  right: -10px;
  color: var(--map-green);
}
.hero__float--calls {
  bottom: 20%;
  left: -10px;
  color: var(--plumbing-blue);
}
.hero__float--pin {
  top: 50%;
  right: -20px;
  color: var(--pin-red);
}
.hero__float svg { width: 20px; height: 20px; }
/* Staggered float animations so cards move asynchronously */
.hero__float--rank  { animation-name: float; animation-duration: 3.2s; animation-delay: 0s; }
.hero__float--calls { animation-name: float; animation-duration: 3.8s; animation-delay: 0.6s; }
.hero__float--pin   { animation-name: float; animation-duration: 3.5s; animation-delay: 1.1s; }
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  40%       { transform: translateY(-9px) rotate(0.5deg); }
  60%       { transform: translateY(-6px) rotate(-0.3deg); }
}

/* --- Problem Section --- */
.problem { background: var(--white); }
.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.problem__image { border-radius: var(--radius-xl); }
.problem__points { margin-top: var(--space-6); }
.problem__point {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  align-items: flex-start;
}
.problem__point-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(233,71,67,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.problem__point-icon svg { width: 20px; height: 20px; color: var(--pin-red); }
.problem__point-text { color: var(--steel-gray); line-height: 1.6; }
.problem__point-text strong { color: var(--trust-navy); }

/* --- Leak Check Section --- */
.leak-check {
  background: linear-gradient(135deg, var(--trust-navy) 0%, var(--workwear-blue) 100%);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.leak-check::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(116,201,167,0.08);
  pointer-events: none;
}
.leak-check__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.leak-check h2 { color: var(--off-white); }
.leak-check p { color: rgba(250,250,247,0.8); }
.leak-check__checks { margin: var(--space-6) 0 var(--space-8); }
.leak-check__check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: rgba(250,250,247,0.9);
}
.leak-check__check svg { width: 20px; height: 20px; color: var(--map-green); flex-shrink: 0; }
.leak-check__image { border-radius: var(--radius-xl); }

/* --- Toolbox Section --- */
.toolbox { background: var(--off-white); }
.toolbox__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.toolbox__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.toolbox__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--plumbing-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.toolbox__card:hover {
  box-shadow: 0 12px 36px rgba(15,42,68,0.14);
  transform: translateY(-6px);
  border-color: rgba(23,107,154,0.2);
}
.toolbox__card:hover::before { transform: scaleX(1); }
.toolbox__card:hover .toolbox__card-icon {
  background: linear-gradient(135deg, rgba(23,107,154,0.18), rgba(23,107,154,0.07));
}
.toolbox__card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, rgba(23,107,154,0.1), rgba(23,107,154,0.03));
}
.toolbox__card-icon svg { width: 24px; height: 24px; color: var(--plumbing-blue); }
.toolbox__card h4 { margin-bottom: var(--space-2); font-size: var(--text-base); }
.toolbox__card p { color: var(--steel-gray); font-size: var(--text-sm); line-height: 1.6; }

/* --- Route Map Section --- */
.route-map { background: var(--white); }
.route-map__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.route-map__image { border-radius: var(--radius-xl); }
.route-map__features { margin-top: var(--space-6); }
.route-map__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.route-map__feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(116,201,167,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.route-map__feature-icon svg { width: 18px; height: 18px; color: var(--map-green); }

/* --- Job Board Section --- */
.job-board { background: var(--off-white); }
.job-board__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.job-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--plumbing-blue);
  transition: all var(--transition-base);
  cursor: default;
}
.job-card:hover {
  border-left-color: var(--pin-red);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
  background: rgba(233,71,67,0.03);
}
.job-card:hover .job-card__type { color: var(--pin-red); }
.job-card__type {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--trust-navy);
  margin-bottom: var(--space-1);
}
.job-card__keyword {
  font-size: var(--text-xs);
  color: var(--steel-gray);
}

/* --- Process Section --- */
.process { background: var(--white); }
.process__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  position: relative;
}
.process__timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--plumbing-blue), var(--map-green));
  z-index: 0;
}
.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process__step-number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--plumbing-blue), var(--workwear-blue));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: 0 4px 12px rgba(23,107,154,0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.process__step:hover .process__step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(23,107,154,0.38);
}
.process__step h4 { font-size: var(--text-sm); margin-bottom: var(--space-2); }
.process__step p { font-size: var(--text-xs); color: var(--steel-gray); line-height: 1.5; }

/* --- Why Different Section --- */
.why-different {
  background: linear-gradient(135deg, var(--trust-navy) 0%, #1a3a5c 100%);
  color: var(--off-white);
}
.why-different h2 { color: var(--off-white); }
.why-different__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.why-different__point {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.why-different__point:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(244,215,122,0.35);
  transform: translateY(-3px);
}
.why-different__point svg { width: 28px; height: 28px; color: var(--road-yellow); margin-bottom: var(--space-4); }
.why-different__point h4 { color: var(--off-white); margin-bottom: var(--space-3); }
.why-different__point p { color: rgba(250,250,247,0.7); font-size: var(--text-sm); }

/* --- Reporting Section --- */
.reporting { background: var(--off-white); }
.reporting__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.reporting__image { border-radius: var(--radius-xl); }
.reporting__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.reporting__metric {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--light-gray);
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.reporting__metric:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.reporting__metric-icon { margin-bottom: var(--space-2); }
.reporting__metric-icon svg { width: 24px; height: 24px; color: var(--plumbing-blue); margin: 0 auto; }
.reporting__metric h4 { font-size: var(--text-sm); margin-bottom: var(--space-1); }
.reporting__metric p { font-size: var(--text-xs); color: var(--steel-gray); }

/* --- Final CTA --- */
.final-cta {
  background: linear-gradient(135deg, var(--trust-navy) 0%, var(--workwear-blue) 100%);
  color: var(--off-white);
  text-align: center;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(233,71,67,0.06);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(116,201,167,0.05);
  pointer-events: none;
}
.final-cta h2 { color: var(--off-white); margin-bottom: var(--space-4); }
.final-cta p { color: rgba(250,250,247,0.8); font-size: var(--text-lg); max-width: 600px; margin: 0 auto var(--space-8); }
.final-cta__tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--road-yellow);
  margin-top: var(--space-6);
  font-size: var(--text-base);
}

/* --- Homepage Responsive --- */
@media (max-width: 1024px) {
  .toolbox__grid { grid-template-columns: repeat(2, 1fr); }
  .job-board__grid { grid-template-columns: repeat(2, 1fr); }
  .process__timeline { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .process__timeline::before { display: none; }
  .why-different__points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { padding: var(--space-10) 0 var(--space-12); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { max-width: none; }
  .hero__ctas { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__float { display: none; }
  .problem__inner { grid-template-columns: 1fr; }
  .leak-check__inner { grid-template-columns: 1fr; }
  .route-map__inner { grid-template-columns: 1fr; }
  .reporting__inner { grid-template-columns: 1fr; }
  .toolbox__grid { grid-template-columns: 1fr; }
  .job-board__grid { grid-template-columns: 1fr; }
  .process__timeline { grid-template-columns: 1fr; }
  .reporting__metrics { grid-template-columns: 1fr; }
}
