/*
  PROJECT: Water Heater Repair Fort Worth TX
  COLOR SCHEME: Option D - #1e293b + #ea580c, supported by #0f766e
  FONTS: Combo C - Montserrat + Open Sans
  LAYOUT: Hero image background with full-width service sections
*/
:root {
  --primary: #1e293b;
  --primary-2: #334155;
  --accent: #ea580c;
  --teal: #0f766e;
  --ink: #172033;
  --body: #4b5563;
  --line: #d9e2ec;
  --light: #f8fafc;
  --soft: #eef6f4;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(30, 41, 59, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: linear-gradient(180deg, #fbfdff 0%, #eef6f4 42%, #f8fafc 100%);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 1rem;
}
h1 { font-size: 3.15rem; max-width: 850px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.btn { min-height: 44px; border-radius: 8px; font-weight: 700; padding: 0.78rem 1.15rem; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22); }
.btn-accent:hover { background: #c2410c; border-color: #c2410c; color: var(--white); transform: translateY(-1px); }
.btn-light-outline { color: var(--white); border: 1px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.1); }
.btn-light-outline:hover { background: var(--white); color: var(--primary); }
.top-strip { background: var(--primary); color: var(--white); font-size: 0.95rem; padding: 0.55rem 0; }
.top-strip span { font-weight: 700; }
.top-strip span + span::before { content: '|'; color: rgba(255,255,255,0.45); margin: 0 0.65rem 0 0; }
.top-phone { color: var(--white); font-weight: 800; }
.main-nav { background: rgba(255,255,255,0.96); border-bottom: 1px solid rgba(217,226,236,0.9); box-shadow: 0 10px 30px rgba(30,41,59,0.07); }
.main-nav.scrolled { box-shadow: 0 14px 34px rgba(30,41,59,0.13); }
.navbar-brand { display: flex; align-items: center; min-height: 54px; }
.brand-picture img { width: 180px; height: auto; max-height: 54px; object-fit: contain; }
.nav-link { color: var(--primary); font-weight: 700; padding: 0.9rem 0.7rem !important; }
.nav-link.active, .nav-link:hover { color: var(--accent); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.dropdown-item { color: var(--primary); font-weight: 600; min-height: 42px; display: flex; align-items: center; }
.dropdown-item:hover { background: var(--soft); color: var(--teal); }
.nav-call { margin-left: 1rem; }
.hero { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; }
.hero-picture, .hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-picture img { object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,41,59,0.86), rgba(30,41,59,0.62), rgba(15,118,110,0.26)); }
.hero-content { position: relative; z-index: 2; padding: 4rem 0 6rem; }
.hero-copy { max-width: 860px; color: var(--white); }
.hero-copy h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,0.28); }
.hero-text { font-size: 1.15rem; max-width: 780px; color: #f8fafc; }
.eyebrow { color: #fed7aa; font-weight: 800; text-transform: uppercase; font-size: 0.86rem; margin-bottom: 0.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.3rem; }
.interior-hero { background: linear-gradient(135deg, var(--primary), var(--teal)); color: var(--white); padding: 5rem 0; }
.interior-hero h1, .interior-hero p { color: var(--white); max-width: 840px; }
.status-hero { min-height: 460px; display: flex; align-items: center; }
.trust-strip { margin-top: -68px; position: relative; z-index: 4; }
.trust-item { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; min-height: 116px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; }
.trust-item strong { color: var(--primary); font-family: 'Montserrat', Arial, sans-serif; }
.trust-item span { font-size: 0.95rem; }
.section-pad { padding: 5rem 0; }
.content-band { padding: 4.5rem 0; background: rgba(255,255,255,0.72); }
.content-band:nth-of-type(even) { background: var(--soft); }
.service-detail.section-row-reverse { flex-direction: row-reverse; }
.section-picture img, .before-after-picture img, .gallery-picture img, .coupon-picture img { border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.section-picture img { aspect-ratio: 4 / 3; }
.warning-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.85rem; }
.warning-list li { background: var(--white); border-left: 4px solid var(--accent); border-radius: 8px; padding: 1rem; box-shadow: 0 10px 24px rgba(30,41,59,0.08); }
.warning-list strong { color: var(--primary); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.before-after > div { position: relative; }
.before-after-picture img { aspect-ratio: 1 / 1; }
.before-after span { position: absolute; left: 12px; bottom: 12px; background: rgba(30,41,59,0.88); color: var(--white); border-radius: 8px; padding: 0.35rem 0.7rem; font-weight: 800; }
.stats-band { background: var(--primary); color: var(--white); padding: 3rem 0; }
.stat { border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 1.4rem 1rem; background: rgba(255,255,255,0.06); min-height: 128px; display: flex; flex-direction: column; justify-content: center; }
.stat span { color: #fed7aa; font-size: 2.1rem; font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; line-height: 1; }
.stat small { color: #e2e8f0; margin-top: 0.45rem; font-weight: 700; }
.section-heading { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.service-card { min-height: 122px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 1.2rem; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 12px 28px rgba(30,41,59,0.08); transition: transform 180ms ease, border-color 180ms ease; }
.service-card span { color: var(--primary); font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; }
.service-card small { color: var(--teal); font-weight: 800; margin-top: 0.35rem; }
.service-card:hover, .service-card.current { transform: translateY(-3px); border-color: var(--accent); }
.gallery-section { background: var(--soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.gallery-item { min-height: 150px; }
.gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(5), .gallery-item:nth-child(6) { grid-column: span 1; }
.gallery-picture img { aspect-ratio: 1 / 1; }
.faq-section { background: var(--white); }
.accordion-item { border: 1px solid var(--line); border-radius: 8px !important; overflow: hidden; margin-bottom: 0.8rem; }
.accordion-button { font-weight: 800; color: var(--primary); min-height: 54px; }
.accordion-button:not(.collapsed) { background: var(--soft); color: var(--teal); box-shadow: none; }
.coupon-band { padding: 4rem 0; background: linear-gradient(135deg, var(--teal), var(--primary)); color: var(--white); }
.coupon-band h2, .coupon-band p { color: var(--white); }
.coupon-link { display: block; border-radius: 8px; }
.coupon-picture img { background: var(--white); }
.contact-section { background: linear-gradient(180deg, #ffffff, #f1f5f9); }
.service-form { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow); }
.service-form legend { float: none; width: auto; color: var(--primary); font-family: 'Montserrat', Arial, sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.form-control { min-height: 48px; border-radius: 8px; border-color: #cbd5e1; font-size: 1rem; }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 0.2rem rgba(15,118,110,0.12); }
.service-message { min-height: 128px; resize: vertical; }
.form-submit { margin: 1rem 0 0; text-align: center; }
.btn-submit { min-width: 190px; }
.contact-list { padding-left: 1.2rem; }
.sitemap-list ul { columns: 2; padding-left: 1.2rem; }
.site-footer {
  background: #0b0f19;
  color: #cbd5e1;
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--accent);
  position: relative;
}
.site-footer h2 {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.site-footer h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a {
  color: #94a3b8;
  transition: color 0.25s ease;
}
.site-footer a:hover {
  color: var(--white);
}
.site-footer li, .site-footer a {
  overflow-wrap: anywhere;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 1.5fr 2fr;
  gap: 3rem;
  align-items: start;
}
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo img {
  width: 170px;
  background: var(--white);
  border-radius: 8px;
  padding: 0.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-logo img:hover {
  transform: scale(1.03);
}
.footer-name {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
}
.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.35);
}
.social-btn img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links li {
  position: relative;
  padding-left: 1.1rem;
}
.footer-links li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.footer-links li:hover::before {
  transform: translateX(3px);
}
.footer-links a {
  font-size: 0.92rem;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
}
.contact-item svg {
  color: var(--accent);
  margin-top: 0.25rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.contact-item:hover svg {
  transform: scale(1.15);
}
.contact-link {
  color: #94a3b8;
  transition: color 0.2s ease;
}
.contact-link:hover {
  color: var(--white);
}
.contact-item.text-accent {
  color: #fed7aa;
}
.contact-item.text-accent strong {
  color: var(--accent);
}
.footer-col-map {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.map-container {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.site-footer iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
}
.map-info {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}
.blog-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.blog-hero-picture,
.blog-hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.blog-hero-picture img {
  object-fit: cover;
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 6rem;
  color: var(--white);
}
.blog-hero-content h1,
.blog-hero-title {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}
.blog-hero-title {
  display: block;
  max-width: 850px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.blog-trust-strip {
  margin-top: -58px;
}
.blog-feed-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), #eef6f4);
}
.blog-feed-shell {
  display: grid;
  gap: 1.25rem;
}
.blogbox {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(30,41,59,0.09);
  transition: transform 180ms ease, border-color 180ms ease;
}
.blogbox:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.blogbox .blogimg img,
.blogpost .blog_wrapper img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.blogbox h2 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
.blogbox h2 a,
.blogbox a h2 {
  color: var(--ink);
}
.blogbox h2 a:hover,
.blogbox a:hover h2 {
  color: var(--accent);
}
.blogbox p {
  margin-bottom: 0.9rem;
}
.blogbox .read-more {
  margin: 0;
}
.blogbox .read-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--white);
  font-weight: 800;
  padding: 0.65rem 1rem;
  box-shadow: 0 12px 24px rgba(234,88,12,0.18);
}
.blogbox .read-more a:hover {
  background: #c2410c;
  border-color: #c2410c;
  color: var(--white);
}
.blogpost {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.blogpost .blog_wrapper {
  max-width: 920px;
  margin: 0 auto;
}
.blogpost h1 {
  font-size: 2.35rem;
}
.blogpost h2 {
  font-size: 1.55rem;
  margin-top: 2rem;
}
.blogpost h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}
.blogpost .blog_wrapper img {
  margin: 0 0 1.3rem;
}
.blogpost ul,
.blogpost ol {
  padding-left: 1.25rem;
}
.socialbox {
  margin-top: 2rem;
  text-align: center;
}
.social-share-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.social-share-btns .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: var(--white);
  font-weight: 800;
}
.social-share-btns .share-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.share-btn-twitter {
  background: #0f766e;
}
.share-btn-facebook {
  background: #1e293b;
}
.share-btn-linkedin {
  background: #334155;
}
.share-btn:hover {
  color: var(--white);
  filter: brightness(0.92);
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.mobile-call { display: none; }
@media (max-width: 1199px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 991px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.65rem; }
  .hero { min-height: 610px; }
  .nav-call { margin: 0.5rem 0 0; width: 100%; }
  .trust-strip { margin-top: 0; padding-top: 1rem; }
  .blog-trust-strip { margin-top: 0; }
  .blogbox { grid-template-columns: 1fr; }
  .service-detail.section-row-reverse { flex-direction: column; }
  .footer-grid { gap: 2rem; }
}
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 68px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .top-strip .container { gap: 0.5rem !important; }
  .top-strip span + span::before { display: none; }
  .brand-picture img { width: 148px; }
  .hero { min-height: 620px; }
  .blog-hero { min-height: 580px; }
  .blog-hero-content { padding: 3rem 1rem 4rem; }
  .blog-hero-title { font-size: 2rem; }
  .hero-content { padding: 3rem 1rem 4rem; }
  .hero-text { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .section-pad, .content-band { padding: 3.5rem 0; }
  .before-after { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-list ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; min-height: 58px; align-items: center; justify-content: center; background: var(--accent); color: var(--white); font-weight: 800; z-index: 1060; box-shadow: 0 -8px 20px rgba(30,41,59,0.18); }
  .mobile-call:hover { color: var(--white); background: #c2410c; }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 104px; }
}
