/* =========================================
   NEARBY PLUMBING — styles.css
   ========================================= */

:root {
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --black: #080c14;
  --surface: #0f1724;
  --surface2: #162035;
  --border: rgba(255,255,255,0.08);
  --text: #e8edf5;
  --muted: #8a97b0;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.22s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: 90%; max-width: 1160px; margin-inline: auto; }

/* ── TYPOGRAPHY ─────────────────────────── */
h1, h2 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.05rem; font-weight: 600; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(29,78,216,0.4); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: var(--red-dark); box-shadow: 0 6px 20px rgba(220,38,38,0.4); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.pulse { animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,78,216,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(29,78,216,0); }
}

/* ── HEADER ─────────────────────────────── */
.header {
  background: rgba(8,12,20,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { cursor: pointer; }
.logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--white); }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.32) saturate(0.6); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,12,20,0.85) 0%, rgba(29,78,216,0.12) 55%, rgba(8,12,20,0.6) 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }

.badge {
  display: inline-block;
  background: rgba(29,78,216,0.22);
  border: 1px solid rgba(29,78,216,0.45);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  animation: fadeUp 0.6s ease both;
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; animation: fadeUp 0.7s 0.1s ease both; }
.hero-sub { font-size: 1.1rem; color: #b4c0d4; max-width: 480px; margin-bottom: 32px; animation: fadeUp 0.7s 0.2s ease both; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; animation: fadeUp 0.7s 0.3s ease both; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); animation: fadeUp 0.7s 0.4s ease both; }
.trust-row span { display: flex; align-items: center; gap: 5px; }

/* ── FORM CARD ───────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.7s 0.2s ease both;
}
.form-card h2 { font-size: 1.6rem; color: var(--white); margin-bottom: 4px; }
.form-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; letter-spacing: 0.05em; text-transform: uppercase; }
.req { color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-card input::placeholder, .form-card textarea::placeholder { color: #4a5568; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.2);
}
.form-card textarea { resize: vertical; min-height: 80px; }
.form-card select { cursor: pointer; }
.success { background: rgba(22,163,74,0.15); border: 1px solid rgba(22,163,74,0.4); color: #86efac; border-radius: 7px; padding: 12px 14px; font-size: 0.9rem; margin-top: 12px; }
.error-msg { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.35); color: #fca5a5; border-radius: 7px; padding: 12px 14px; font-size: 0.9rem; margin-top: 12px; }
[hidden] { display: none !important; }

/* ── SECTION HEADER ─────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #60a5fa; margin-bottom: 10px; }
.eyebrow.light { color: #93c5fd; }
.section-header h2 { color: var(--white); margin-bottom: 12px; }
.section-header p { color: var(--muted); max-width: 520px; margin-inline: auto; }

/* ── SERVICES ────────────────────────────── */
.services { padding: 100px 0; background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: block;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(29,78,216,0.4); box-shadow: 0 12px 32px rgba(29,78,216,0.15); }
.service-icon { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 { color: var(--white); margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── WHY US ──────────────────────────────── */
.why { padding: 100px 0; background: var(--black); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-text h2 { color: var(--white); margin-bottom: 32px; }
.why-text .btn { margin-top: 32px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-check { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: rgba(29,78,216,0.2); color: #60a5fa; border-radius: 50%; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.why-list strong { display: block; color: var(--white); margin-bottom: 2px; }
.why-list p { font-size: 0.88rem; color: var(--muted); }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--white); line-height: 1; }
.stat-num small { font-size: 1.4rem; }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── GALLERY ─────────────────────────────── */
.gallery { padding: 100px 0; background: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; border: 1px solid var(--border); }
.gallery-item.g-wide { grid-column: span 2; }
.gallery-item.before-after { grid-column: span 2; cursor: default; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: var(--white); font-size: 0.82rem; font-weight: 500; padding: 24px 14px 10px; opacity: 0; transform: translateY(4px); transition: opacity var(--transition), transform var(--transition); }
.gallery-item:hover figcaption, .gallery-item:focus figcaption { opacity: 1; transform: translateY(0); }
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.ba-panel { position: relative; overflow: hidden; }
.ba-panel img { width: 100%; height: 100%; object-fit: cover; }
.ba-label { position: absolute; top: 10px; left: 12px; background: rgba(0,0,0,0.7); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.06em; }

/* ── CONTACT CTA ─────────────────────────── */
.contact-cta { padding: 100px 0; background: linear-gradient(135deg, #0f1724 0%, #1e3a8a 60%, #1d4ed8 100%); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.cta-text h2 { color: var(--white); margin-bottom: 16px; }
.cta-text p { color: #bfdbfe; margin-bottom: 28px; }
.cta-text .btn + .btn { margin-left: 12px; }
.cta-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 18px 20px; }
.info-card strong { display: block; color: var(--white); margin-bottom: 4px; }
.info-card p, .info-card a { color: #93c5fd; font-size: 0.9rem; }
.info-card a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────── */
.footer { background: #050810; border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-brand img { margin-inline: auto; margin-bottom: 8px; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.88rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; color: #3d4f6b; }

/* ── STICKY CALL BUTTON ───────────────────── */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: var(--red);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(220,38,38,0.5);
  transition: background var(--transition), transform var(--transition);
}
.sticky-call:hover { background: var(--red-dark); transform: scale(1.05); }

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 960px) {
  .hero { min-height: auto; padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .trust-row { justify-content: center; }
  .form-card { max-width: 540px; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 50px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-text .btn + .btn { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item.g-wide, .gallery-item.before-after { grid-column: span 2; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .sticky-call { display: flex; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.g-wide, .gallery-item.before-after { grid-column: span 1; }
  .ba-wrap { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
