/* John Smith Plumbing - High-Impact Demo */
:root {
  --primary: #0f2744;
  --primary-mid: #1e3a5f;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; height: auto; display: block; }

/* Header */
.header {
  background: var(--primary);
  color: white;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  font-weight: 500;
  opacity: 0.9;
}

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover, .nav a.active { color: white; }

.btn-call {
  background: var(--accent);
  color: white !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-call:hover { background: var(--accent-hover); }

/* Hero with image */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-plumber.jpg') center/cover no-repeat;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,39,68,0.92) 0%, rgba(15,39,68,0.75) 45%, rgba(15,39,68,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 80px 0;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.25);
  border: 1px solid rgba(37,99,235,0.4);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
}

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 44px;
  font-size: 1.05rem;
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,39,68,0.12);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Trust bar */
.trust-bar {
  background: var(--primary);
  color: white;
  padding: 28px 0;
  text-align: center;
}

.trust-bar p {
  font-size: 1.05rem;
  opacity: 0.9;
}

.trust-bar strong {
  color: #93c5fd;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: var(--primary);
}

.contact-info p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover { text-decoration: underline; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 320px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-small {
  margin-top: 6px;
  opacity: 0.55;
  font-size: 0.8rem;
}

/* Password Gate */
.password-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2744, #1e3a5f);
  padding: 20px;
}

.password-box {
  background: white;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.password-box h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.password-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.password-box input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 14px;
}

.password-box button {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.password-box button:hover { background: var(--accent-hover); }

.error-msg {
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: 12px;
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero { min-height: 480px; }
  .hero-content { padding: 60px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}
