/*
Theme Name: GeneratePress Child
Theme URI: https://1800plumbingpros.com
Description: Child theme for GeneratePress
Author: Daniel Sava
Author URI: https://1800plumbingpros.com
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* Your custom CSS can go here */


/* ==========================================================================
   SINGLE POST TEMPLATE STYLES
   ========================================================================== */

/* --- B. STRIPPED TOP BRANDING ROW --- */
.custom-post-header {
  background: #ffffff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 40px !important;
  border-bottom: 1px solid #eeeeee !important;
}
.header-inside-row {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
}
.header-logo-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}
.header-logo-img {
  width: 40px !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: 40px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: inline-block !important;
}
.header-site-title {
  color: #222222 !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  font-family: sans-serif !important;
  text-decoration: none !important;
  line-height: 1.1 !important;
}

/* --- C. HERO BANNER FRAME --- */
.plumbing-hero {
  position: relative !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  width: 100% !important;
  min-height: 500px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  padding: 40px 20px !important;
  margin-top: 0px !important;
  margin-bottom: 20px !important;
}
.hero-overlay {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  z-index: 1 !important;
}
.hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 780px !important;
  width: 100% !important;
  color: #ffffff !important;
}
.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 2.8rem !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  margin: 0 0 15px 0 !important;
}
.hero-content p {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.25rem !important;
  color: #eeeeee !important;
  margin: 0 0 30px 0 !important;
  line-height: 1.5 !important;
}

/* --- D. RED BRANDING BUTTON --- */
.hero-btn {
  font-family: 'Space Grotesk', sans-serif !important;
  background: #ba0909 !important;
  color: #ffffff !important;
  padding: 15px 35px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  border-radius: 5px !important;
  display: inline-block !important;
  font-size: 1.15rem !important;
}

/* --- E. SINGLE POST BODY TEXT COLUMN --- */
.post-template-body {
  font-family: 'Inter', sans-serif !important;
  max-width: 740px !important;
  margin: 0 auto !important;
  padding: 20px 20px 80px 20px !important;
  font-size: 1.2rem !important;
  line-height: 1.7 !important;
  color: #222222 !important;
  box-sizing: border-box !important;
}
.post-template-body p {
  font-family: 'Inter', sans-serif !important;
  margin-bottom: 25px !important;
}
.post-template-body li {
  font-family: 'Inter', sans-serif !important;
}
.post-template-body h1,
.post-template-body h2,
.post-template-body h3,
.post-template-body h4 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
}

/* --- F. TABLE OF CONTENTS CENTERING --- */
#ez-toc-container,
.ez-toc-v2,
.lwptoc,
.toc,
div[id*="ez-toc"] {
  display: table !important;
  margin: 35px auto 50px auto !important;
  padding-bottom: 20px !important;
  float: none !important;
  clear: both !important;
  text-align: left !important;
}

/* --- G. DARK CUSTOM FOOTER --- */
.cdf-footer {
  background: #1a1a1a;
  color: #e5e5e5;
  padding: 40px 20px 20px;
}
.cdf-inside {
  max-width: 1200px;
  margin: 0 auto;
}
.cdf-branding {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.cdf-logo {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}
.cdf-title {
  font-size: 20px;
  margin: 0 0 10px;
  color: #fff;
}
.cdf-tagline {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #b0b0b0;
}
.cdf-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.cdf-nav .cdf-link {
  display: inline-block;
  color: #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.cdf-nav .cdf-link:hover {
  color: #fff;
  text-decoration: underline;
}
.cdf-disclaimer {
  max-width: 900px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.cdf-disclaimer-heading {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  color: rgba(255,255,255,0.55);
}
.cdf-disclaimer p {
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: #7a7a7a;
}
.cdf-disclaimer p:last-child {
  margin-bottom: 0;
}
.cdf-copyright {
  margin: 28px 0 0;
  text-align: center;
  font-size: 13px;
  color: #8a8a8a;
}

/* --- H. RESPONSIVE --- */
@media (max-width: 768px) {
  .custom-post-header {
    padding: 10px 20px !important;
  }
  .header-logo-img {
    width: 35px !important;
    height: 35px !important;
  }
  .header-site-title {
    font-size: 1.15rem !important;
  }
  .plumbing-hero {
    width: 100% !important;
    min-height: 420px !important;
    background-position: 68% center !important;
    padding: 30px 15px !important;
  }
  .hero-content h1 { font-size: 1.85rem !important; }
  .hero-content p { font-size: 1rem !important; margin-bottom: 25px !important; }
  .hero-btn { padding: 14px 28px !important; font-size: 1rem !important; }
}

@media (max-width: 600px) {
  .cdf-footer {
    padding: 30px 16px 16px;
  }
  .cdf-branding {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cdf-nav {
    gap: 16px;
  }
  .cdf-disclaimer {
    padding-left: 4px;
    padding-right: 4px;
  }
}