/* Nashville Plumbing - Shared Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #0a3d62;
  --primary-dark: #062c47;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --text: #1f2937;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --border: #e3e8ef;
  --success: #137a3f;
  --shadow: 0 6px 24px rgba(10, 61, 98, 0.10);
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; flex: 0 0 32px; }
.brand-tag { font-size: 0.78rem; font-weight: 400; opacity: 0.85; display: block; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: #fff; font-weight: 500; }
.nav .nav-cta { background: var(--accent); padding: 8px 16px; border-radius: 6px; color: #fff; font-weight: 700; }
.nav .nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(10, 61, 98, 0.92) 0%, rgba(29, 111, 165, 0.85) 100%),
    url('https://images.pexels.com/photos/28412260/pexels-photo-28412260.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  color: #fff;
  padding: 60px 0 70px;
}

/* Feature image bands */
.feature-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.feature-image-wrap {
  position: relative;
  overflow: hidden;
}
.feature-image-wrap .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(6, 44, 71, 0.85), rgba(6, 44, 71, 0));
  color: #fff;
  padding: 30px 20px 18px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (max-width: 560px) {
  .feature-image { height: 200px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; opacity: 0.95; margin-bottom: 20px; }
.hero ul.benefits { list-style: none; margin-top: 18px; }
.hero ul.benefits li {
  padding: 7px 0 7px 30px;
  position: relative;
  font-size: 1.02rem;
}
.hero ul.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 7px;
  width: 22px; height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
}

/* Form Card */
.form-card {
  background: #fff;
  color: var(--text);
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-card .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.field textarea { resize: vertical; min-height: 80px; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 14px 24px;
  border: none;
  border-radius: 7px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--accent-dark); }
.form-fineprint { font-size: 0.78rem; color: var(--muted); margin-top: 10px; text-align: center; }

.thank-you {
  background: #fff;
  color: var(--text);
  padding: 36px 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}
.thank-you .checkmark {
  width: 64px; height: 64px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
}
.thank-you h2 { color: var(--primary); margin-bottom: 8px; font-size: 1.6rem; }
.thank-you p { color: var(--muted); }
.hidden { display: none !important; }

/* Sections */
section.block { padding: 60px 0; }
section.block.alt { background: var(--bg-soft); }
section.block h2.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 14px;
  text-align: center;
}
section.block p.section-sub {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 44px; height: 44px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}
.service-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.15rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-item { text-align: center; padding: 16px; }
.why-item .big-icon {
  width: 60px; height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}
.why-item h3 { color: var(--primary); margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 0.95rem; }

/* Areas */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.areas-list span {
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  min-width: 130px;
  line-height: 1.25;
}
.areas-list span small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* CTA */
.cta-block {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.cta-block h2 { font-size: 1.9rem; margin-bottom: 10px; }
.cta-block p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 22px; }
.cta-block .btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1.08rem;
}
.cta-block .btn-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #cfd8e3;
  padding: 36px 0 22px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color: #cfd8e3; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  text-align: center;
  color: #97a4b3;
  font-size: 0.85rem;
}

/* Blog */
.page-header {
  background: linear-gradient(135deg, #0a3d62 0%, #1d6fa5 100%);
  color: #fff;
  padding: 50px 0 40px;
  text-align: center;
}
.page-header h1 { font-size: 2.4rem; margin-bottom: 8px; }
.page-header p { opacity: 0.92; font-size: 1.05rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card .thumb {
  height: 140px;
  background: linear-gradient(135deg, #0a3d62, #1d6fa5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.5rem;
}
.blog-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.15rem; }
.blog-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; flex: 1; }
.blog-card .read-more { color: var(--accent-dark); font-weight: 600; font-size: 0.93rem; }

/* Article */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 20px;
}
.article-wrap .breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.article-wrap h1 {
  color: var(--primary);
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-wrap .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-wrap h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 30px 0 12px;
}
.article-wrap h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 22px 0 10px;
}
.article-wrap p { margin-bottom: 14px; font-size: 1.05rem; }
.article-wrap ul, .article-wrap ol { margin: 0 0 16px 22px; }
.article-wrap li { margin-bottom: 6px; }
.article-inline-cta {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 22px 24px;
  border-radius: 6px;
  margin: 30px 0;
}
.article-inline-cta h3 { color: var(--primary); margin-bottom: 8px; }
.article-inline-cta p { margin-bottom: 12px; color: var(--text); }
.article-inline-cta a.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
}
.article-inline-cta a.btn:hover { background: var(--accent-dark); text-decoration: none; }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav a:not(.phone-link) { display: none; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 50px; }
  .hero h1 { font-size: 1.7rem; }
  section.block { padding: 44px 0; }
  section.block h2.section-title { font-size: 1.6rem; }
}
