/*
Theme Name: JB Restoration
Description: Landing page for J. Blanton Water Restoration Services
Version: 1.0
Author: Max Skupin
*/

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #1a1a2e;
  --darker: #12121f;
  --red: #c01b1b;
  --red-dark: #9e1515;
  --gold: #d4a853;
  --light: #f5f5f5;
  --white: #ffffff;
  --gray: #b0b0b0;
  --text: #e0e0e0;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--darker);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header / Top Bar ─────────────────────────────────────────── */
.top-bar {
  background: var(--darker);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--gray);
}
.top-bar-left svg { width: 16px; height: 16px; fill: var(--red); flex-shrink: 0; }
.top-bar-left a { display: flex; align-items: center; gap: 6px; }
.top-bar-left a:hover { color: var(--white); }

.header {
  background: var(--dark);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img { height: 56px; width: auto; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}
.header-cta:hover { background: var(--red-dark); }
.header-cta svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,18,31,0.92) 0%, rgba(18,18,31,0.65) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,27,27,0.15);
  border: 1px solid rgba(192,27,27,0.4);
  color: var(--red);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 550px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
}
.hero-features li svg { width: 20px; height: 20px; fill: var(--red); flex-shrink: 0; }
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── Trust Bar ────────────────────────────────────────────────── */
.trust-bar {
  background: var(--red);
  padding: 24px 0;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trust-item svg { width: 28px; height: 28px; fill: var(--white); opacity: 0.9; }
.trust-item strong {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}
.trust-item span {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
}

/* ─── Section Base ─────────────────────────────────────────────── */
section { padding: 80px 0; }
.section-label {
  display: inline-block;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
}
.section-header { margin-bottom: 48px; }
.bg-dark { background: var(--dark); }
.bg-darker { background: var(--darker); }

/* ─── Intro / About ───────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-img { position: relative; border-radius: 8px; overflow: hidden; }
.intro-img img { border-radius: 8px; }
.intro-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(18,18,31,0.5));
  border-radius: 0 0 8px 8px;
}
.intro-text p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.7;
}
.intro-text p strong { color: var(--white); }
.intro-highlight {
  background: rgba(192,27,27,0.1);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text);
}

/* ─── Services Grid ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(192,27,27,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.service-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(192,27,27,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card-icon img { width: 36px; height: 36px; object-fit: contain; }
.service-card-icon svg { width: 28px; height: 28px; fill: var(--red); }
.service-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── Why Choose Us ────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}
.why-card:hover {
  background: rgba(192,27,27,0.06);
  border-color: rgba(192,27,27,0.2);
}
.why-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(192,27,27,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.why-card-icon svg { width: 28px; height: 28px; fill: var(--red); }
.why-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Process Steps ────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 32px;
  background: var(--darker);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  counter-increment: step;
}
.process-step::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.process-step h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 12px;
}
.process-step p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Causes Section ───────────────────────────────────────────── */
.causes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.causes-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.causes-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text);
  transition: background 0.2s;
}
.causes-list li:hover { background: rgba(192,27,27,0.08); }
.causes-list li svg { width: 18px; height: 18px; fill: var(--red); flex-shrink: 0; }
.causes-img { border-radius: 8px; overflow: hidden; }
.causes-img img { border-radius: 8px; }

/* ─── Residential/Commercial ───────────────────────────────────── */
.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.serve-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
  color: var(--text);
}
.serve-list li svg { width: 20px; height: 20px; fill: var(--red); flex-shrink: 0; }

/* ─── Insurance Section ────────────────────────────────────────── */
.insurance-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.insurance-text p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ─── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-white {
  background: var(--white);
  color: var(--red);
}
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--white); transform: translateY(-2px); }

/* ─── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--darker);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; max-width: 360px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col li a, .footer-col li span {
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--white); }
.footer-col li svg { width: 16px; height: 16px; fill: var(--red); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .intro-grid, .causes-grid, .serve-grid, .insurance-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .process-steps, .causes-list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-features { flex-direction: column; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
  .top-bar-left { flex-direction: column; align-items: flex-start; }
  .header .container { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
