/*
Theme Name: GreenFlow Child
Theme URI: https://greenflowhvac.com
Description: GreenFlow Heating & Cooling — Astra child theme matching Wix brand
Author: GreenFlow
Template: astra
Version: 1.0.2
Text Domain: greenflow-child
*/

/* ============================================
   BRAND TOKENS (from Wix site)
   ============================================ */
:root {
  --gf-green: #266B2D;
  --gf-green-light: #7BBD81;
  --gf-green-dark: #1a4e21;
  --gf-blue: #086994;
  --gf-blue-bright: #116dff;
  --gf-dark: #4D4949;
  --gf-gray: #5f6360;
  --gf-light: #FAFAFA;
  --gf-white: #FFFFFF;
  --gf-accent-gold: #E2C07D;
  
  --gf-font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --gf-font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --gf-font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   TOP INFO BAR (green: "Free Same-Day Estimates | 24/7...")
   ============================================ */
.gf-topbar {
  background: var(--gf-green);
  color: var(--gf-white);
  font-family: var(--gf-font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  text-align: right;
}
.gf-topbar a { color: var(--gf-white); text-decoration: none; }
.gf-topbar .gf-topbar-phone {
  margin-left: 20px;
  font-size: 16px;
  font-weight: 700;
}

/* ============================================
   HEADER (logo + reviews + CTA)
   ============================================ */
.site-header,
.ast-primary-header-bar {
  background: var(--gf-white) !important;
  border-bottom: 0 !important;
  padding: 10px 0 !important;
}
.ast-site-identity { padding: 5px 0; }

/* Google reviews chip */
.gf-reviews-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-family: var(--gf-font-body);
  font-size: 14px;
}
.gf-reviews-chip .stars { color: #FBBC05; letter-spacing: 2px; }
.gf-reviews-chip .rating { font-weight: 700; }

/* Schedule Now header button */
.ast-builder-menu .menu-item.gf-cta > a,
.gf-schedule-btn {
  background: var(--gf-blue) !important;
  color: var(--gf-white) !important;
  padding: 14px 28px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: background 0.2s;
}
.gf-schedule-btn:hover { background: var(--gf-green) !important; }

/* ============================================
   PRIMARY NAV (dark gray bar)
   ============================================ */
.ast-secondary-header-bar,
.gf-nav-bar {
  background: var(--gf-dark) !important;
}
.ast-secondary-header-bar .menu-item > a,
.gf-nav-bar a {
  color: var(--gf-white) !important;
  font-family: var(--gf-font-heading) !important;
  font-weight: 500 !important;
  font-size: 18px !important;
  letter-spacing: 0.3px !important;
  padding: 20px 24px !important;
  text-transform: none !important;
}
.ast-secondary-header-bar .menu-item.current-menu-item > a,
.ast-secondary-header-bar .menu-item > a:hover {
  color: var(--gf-blue-bright) !important;
}
.gf-nav-social {
  display: inline-flex;
  gap: 12px;
  padding: 0 24px;
  align-items: center;
}
.gf-nav-social a {
  color: var(--gf-white);
  font-size: 20px;
  transition: opacity 0.2s;
}
.gf-nav-social a:hover { opacity: 0.7; }

/* ============================================
   HERO (large image with overlay text)
   ============================================ */
.gf-hero {
  position: relative;
  min-height: 620px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--gf-white);
}
.gf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%);
}
.gf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
  width: 100%;
}
.gf-hero-eyebrow {
  font-family: var(--gf-font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--gf-white);
}
.gf-hero-title {
  font-family: var(--gf-font-heading);
  font-size: 80px;
  font-weight: 300;
  line-height: 1.1;
  margin: 10px 0;
  color: var(--gf-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.gf-hero-subtitle {
  font-family: var(--gf-font-heading);
  font-size: 24px;
  font-weight: 400;
  margin: 15px 0 25px;
  color: var(--gf-white);
}
.gf-hero-cta {
  display: inline-block;
  background: var(--gf-green);
  color: var(--gf-white);
  padding: 20px 50px;
  font-family: var(--gf-font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}
.gf-hero-cta:hover { background: var(--gf-green-dark); color: var(--gf-white); }
.gf-hero-phone {
  color: var(--gf-white);
  margin-top: 15px;
  font-size: 16px;
}
.gf-hero-phone a { color: var(--gf-white); text-decoration: underline; }

/* ============================================
   TRUST BAR (blue "5.0★ | Trusted by...")
   ============================================ */
.gf-trust-bar {
  background: var(--gf-blue);
  color: var(--gf-white);
  padding: 15px 20px;
  text-align: center;
  font-family: var(--gf-font-heading);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.gf-trust-bar strong { font-weight: 700; }

/* ============================================
   SECTION HEADINGS (green H2 uppercase)
   ============================================ */
.entry-content h2 {
  color: var(--gf-green) !important;
  font-family: var(--gf-font-heading) !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 40px 0 20px !important;
  text-align: center;
}
.entry-content h3 {
  color: var(--gf-dark) !important;
  font-family: var(--gf-font-heading) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  margin: 30px 0 15px !important;
}
.entry-content h4 {
  color: var(--gf-blue) !important;
  font-family: var(--gf-font-heading) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  margin: 25px 0 12px !important;
}

/* Page title (H1) */
.ast-single-post-header h1,
.entry-title {
  color: var(--gf-dark) !important;
  font-family: var(--gf-font-heading) !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
}

/* ============================================
   BODY TEXT
   ============================================ */
body,
.entry-content p,
.entry-content li {
  font-family: var(--gf-font-body) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #333 !important;
}

.entry-content a {
  color: var(--gf-blue-bright);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(17,109,255,0.3);
  text-underline-offset: 3px;
}
.entry-content a:hover {
  color: var(--gf-green);
  text-decoration-color: var(--gf-green);
}

/* Phone links */
a[href^="tel:"] {
  color: inherit;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================
   BUTTONS (Elementor + generic)
   ============================================ */
.wp-block-button__link,
.gf-btn,
input[type="submit"],
button.wp-block-search__button {
  background-color: var(--gf-green) !important;
  color: var(--gf-white) !important;
  border: 0 !important;
  border-radius: 4px !important;
  padding: 16px 36px !important;
  font-family: var(--gf-font-heading) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer;
  transition: background 0.2s;
}
.wp-block-button__link:hover,
.gf-btn:hover { background-color: var(--gf-green-dark) !important; }
.gf-btn-blue { background-color: var(--gf-blue) !important; }
.gf-btn-blue:hover { background-color: var(--gf-blue-bright) !important; }

/* ============================================
   3-COLUMN SERVICE CARDS (Heating/Cooling/IAQ)
   ============================================ */
.gf-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}
.gf-service-card {
  text-align: center;
  padding: 30px 20px;
}
.gf-service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 25px;
}
.gf-service-card h3 {
  color: var(--gf-green) !important;
  text-transform: uppercase !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  margin-bottom: 15px !important;
}
.gf-service-card p {
  color: var(--gf-gray) !important;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.gf-faq { margin: 40px 0; }
.gf-faq details {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}
.gf-faq details summary {
  font-family: var(--gf-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--gf-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.gf-faq details summary::-webkit-details-marker { display: none; }
.gf-faq details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 28px;
  color: var(--gf-green);
  font-weight: 300;
}
.gf-faq details[open] summary::after { content: "−"; }
.gf-faq details p {
  margin-top: 15px;
  color: var(--gf-gray);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
.ast-footer-overlay {
  background: var(--gf-dark) !important;
  color: var(--gf-white) !important;
}
.site-footer a { color: var(--gf-green-light) !important; }
.site-footer h3,
.site-footer h4 {
  color: var(--gf-white) !important;
  text-transform: uppercase;
  font-family: var(--gf-font-heading);
}
.ast-small-footer {
  background: #1c1a1a !important;
  color: #bbb !important;
  border-top: 0;
}

/* Sticky mobile CTA (click-to-call) */
.gf-sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gf-green);
  color: var(--gf-white);
  padding: 15px;
  text-align: center;
  font-family: var(--gf-font-heading);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
}
.gf-sticky-mobile-cta:hover { background: var(--gf-green-dark); color: var(--gf-white); }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  .gf-hero-title { font-size: 44px !important; }
  .gf-hero-subtitle { font-size: 18px !important; }
  .gf-hero-inner { padding: 60px 20px; }
  .gf-services-grid { grid-template-columns: 1fr; }
  .entry-content h2 { font-size: 28px !important; }
  .entry-title { font-size: 32px !important; }
  .gf-sticky-mobile-cta { display: block; }
  body { padding-bottom: 60px; }
  .gf-topbar { text-align: center; }
  .gf-topbar .gf-topbar-phone { display: block; margin: 5px 0 0; }
}

/* ============================================
   HOMEPAGE POLISH — hide default page title AND redundant site title (logo shows brand)
   ============================================ */
.home .entry-header,
.page-id-101 .entry-header,
.page-id-101 .ast-page-header-title,
.home .ast-page-header-title,
.page-id-101 h1.entry-title,
.home h1.entry-title,
body.home h1.entry-title,
body.page-id-101 h1.entry-title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide the redundant text site title next to the logo — logo has the brand */
.wp-custom-logo .site-title,
.wp-custom-logo .site-description,
.ast-site-title-wrap .site-title,
.ast-site-title-wrap .site-description {
  display: none !important;
}

.home .site-content > .container > .site-main > article,
.home .content-area,
.home .site-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.home .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* Also strip container width for full-bleed hero on home */
.home .ast-container,
.home #primary,
.home .single-content-inner,
.home .entry-content > * {
  max-width: none !important;
  padding: 0 !important;
}

/* Top bar formatting */
.gf-topbar {
  background: #266B2D;
  color: #fff;
  padding: 8px 24px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}
.gf-topbar-phone {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 700;
}
.gf-topbar-phone:hover { color: #7BBD81; }

/* Sticky mobile CTA (functions.php injects the element) */
.gf-sticky-mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  .gf-sticky-mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #266B2D;
    color: #fff;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
  }
  body { padding-bottom: 60px !important; }
  .gf-hero h1 { font-size: 36px !important; }
  .gf-hero { padding: 60px 20px !important; min-height: auto !important; }
}

/* ============================================
   HOMEPAGE DARK SECTIONS — force light text
   ============================================ */
.home .gf-dark-section,
.home .gf-dark-section h1,
.home .gf-dark-section h2,
.home .gf-dark-section h3,
.home .gf-dark-section h4,
.home .gf-dark-section p,
.home .gf-dark-section a {
  color: #ffffff !important;
}
.home .gf-dark-section .gf-kicker { color: #7BBD81 !important; }

.home .gf-cta-section,
.home .gf-cta-section h1,
.home .gf-cta-section h2,
.home .gf-cta-section h3,
.home .gf-cta-section p {
  color: #ffffff !important;
}
.home .gf-cta-section .gf-cta-button {
  background: #ffffff !important;
  color: #266B2D !important;
}

/* Also make sure homepage inline styles override Astra defaults */
.home .entry-content h1,
.home .entry-content h2,
.home .entry-content h3,
.home .entry-content h4 {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   HERO — force text colors over Astra defaults
   ============================================ */
.home .gf-hero p,
.home .gf-hero h1,
.home .gf-hero a { color: inherit; }
.home .gf-hero .gf-hero-inner h1 { color: #ffffff !important; }
.home .gf-hero .gf-hero-inner p.gf-eyebrow { color: #8fd695 !important; }
.home .gf-hero .gf-hero-inner p.gf-subtitle { color: #ffffff !important; }
.home .gf-hero .gf-hero-inner p.gf-reviews { color: #ffffff !important; }
.home .gf-hero .gf-hero-inner p.gf-reviews strong { color: #ffffff !important; }

/* ===== HERO CTA BANNER for service/city pages ===== */
.gf-page-hero-cta {
    background: linear-gradient(135deg, #266B2D 0%, #1e5624 100%);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 0 auto 30px;
    max-width: 100%;
}
.gf-page-hero-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.gf-page-hero-cta-text {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
}
.gf-page-hero-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.gf-page-hero-cta a.call-btn {
    background: #fff;
    color: #266B2D !important;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    border-radius: 6px;
    display: inline-block;
    transition: transform 0.15s ease;
}
.gf-page-hero-cta a.call-btn:hover { transform: translateY(-2px); }
.gf-page-hero-cta a.schedule-btn {
    background: #1976d2;
    color: #fff !important;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    border-radius: 6px;
    display: inline-block;
    transition: transform 0.15s ease;
}
.gf-page-hero-cta a.schedule-btn:hover { transform: translateY(-2px); background: #1565c0; }
@media (max-width: 640px) {
    .gf-page-hero-cta { padding: 20px 16px; }
    .gf-page-hero-cta-text { font-size: 16px; }
    .gf-page-hero-cta a.call-btn, .gf-page-hero-cta a.schedule-btn { padding: 12px 20px; font-size: 15px; width: 100%; text-align: center; }
}

/* ===== END HERO CTA ===== */

/* Improve service page content readability */
.page .entry-content h2 {
    color: #266B2D;
    font-size: 30px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}
.page .entry-content h3 {
    color: #4D4949;
    font-size: 22px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 14px;
}
.page .entry-content ul li,
.page .entry-content ol li {
    margin-bottom: 8px;
    line-height: 1.65;
}
.page .entry-content p {
    line-height: 1.75;
    font-size: 16.5px;
    color: #333;
    margin-bottom: 18px;
}
.page .entry-content a {
    color: #266B2D;
    font-weight: 600;
}
.page .entry-content a:hover {
    color: #1976d2;
}

/* Better section spacing */
.page.page-id-104 .entry-content,
.page.page-id-105 .entry-content,
.page.page-id-106 .entry-content,
.page.page-id-102 .entry-content,
.page.page-id-109 .entry-content,
.page.page-id-103 .entry-content,
.page.page-id-107 .entry-content,
.page.page-id-108 .entry-content,
.page.page-id-110 .entry-content,
.page.page-id-131 .entry-content,
.page.page-id-133 .entry-content,
.page.page-id-135 .entry-content,
.page.page-id-134 .entry-content,
.page.page-id-137 .entry-content,
.page.page-id-136 .entry-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 40px;
}

/* City page entry content */
.page[class*="hvac-services-"] .entry-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 40px;
}
