/*
Theme Name:   GD Pest Control — Astra Child
Theme URI:    https://gdpest.com/
Description:  Child theme for Astra tuned to GD Pest Control branding. Adds brand color tokens, global form styling and a few section helpers used by the Elementor templates.
Author:       GD Pest Control
Author URI:   https://gdpest.com/
Template:     astra
Version:      1.0.0
Text Domain:  astra-child-gdpest
*/

/* ===========================================================
   1. Brand tokens
   =========================================================== */
:root {
  --gdp-orange:    #F58220;
  --gdp-orange-dk: #D96A0F;
  --gdp-yellow:    #FFC72C;
  --gdp-ink:       #1A1A1A;
  --gdp-slate:     #2D3A45;
  --gdp-body:      #4A4A4A;
  --gdp-muted:     #7A7A7A;
  --gdp-line:      #E6E6E6;
  --gdp-paper:     #FFFFFF;
  --gdp-cream:     #F7F4EE;
  --gdp-green:     #2E8B4A;
  --gdp-red:       #D43A2F;

  --gdp-font-head: "Poppins", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gdp-font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===========================================================
   2. Typography defaults (Astra picks these up; Elementor honors via theme)
   =========================================================== */
body { font-family: var(--gdp-font-body); color: var(--gdp-body); }
h1, h2, h3, h4, h5, h6, .entry-title { font-family: var(--gdp-font-head); color: var(--gdp-ink); }

/* ===========================================================
   3. Reusable helper classes used by Elementor templates
   =========================================================== */

/* Top emergency bar */
.gdp-topbar {
  background: var(--gdp-ink);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.gdp-topbar a { color: #fff; text-decoration: none; }
.gdp-topbar .gdp-topbar__phone {
  color: var(--gdp-yellow);
  font-weight: 600;
}

/* Primary CTA button (matches Astra .menu-item style) */
.gdp-btn-cta a,
a.gdp-btn-cta {
  background: var(--gdp-orange) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 10px 20px !important;
  font-weight: 600;
  transition: background .15s ease;
}
.gdp-btn-cta a:hover,
a.gdp-btn-cta:hover { background: var(--gdp-orange-dk) !important; }

/* Section title eyebrow */
.gdp-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gdp-orange);
  margin-bottom: 10px;
}

/* Service card hover */
.gdp-service-card {
  border: 1px solid var(--gdp-line);
  border-radius: 10px;
  padding: 28px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  background: #fff;
}
.gdp-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gdp-orange);
  box-shadow: 0 14px 30px rgba(26, 26, 26, .08);
}

/* Dark CTA strip */
.gdp-cta-strip {
  background: linear-gradient(90deg, var(--gdp-orange) 0%, #ffa14a 100%);
  color: #fff;
}
.gdp-cta-strip h2 { color: #fff !important; }

/* Footer */
.site-footer, footer.site-footer {
  background: var(--gdp-ink);
  color: #cfcfcf;
}
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: var(--gdp-orange); }

/* Small print bar at the very bottom */
.gdp-copyright {
  border-top: 1px solid #2a2a2a;
  font-size: 13px;
  padding: 14px 0;
  color: #8c8c8c;
}

/* Forms in pages (Elementor / Astra default) */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="time"], select, textarea {
  border-radius: 6px;
  border: 1px solid var(--gdp-line);
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gdp-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, .15);
}

/* Quick utility for hero overlays */
.gdp-hero {
  position: relative;
  color: #fff;
}
.gdp-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(26,26,26,.78) 0%, rgba(26,26,26,.45) 60%, rgba(26,26,26,.15) 100%);
  z-index: 0;
}
.gdp-hero > .elementor-container { position: relative; z-index: 1; }

/* Pin numbers (1.. 2.. 3.. on "How it works") */
.gdp-step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--gdp-orange);
  color: #fff;
  font-family: var(--gdp-font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

/* ===========================================================
   4. Sticky / shrink-on-scroll header
   Fallback styles used by 09-header.json (Elementor Theme Builder).
   They activate when Elementor adds .elementor-sticky--effects
   to the primary header section after the configured scroll threshold.
   =========================================================== */

.gdp-header {
  transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.gdp-header.elementor-sticky--effects {
  background-color: rgba(255, 255, 255, .97) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(26, 26, 26, .08);
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.gdp-header.elementor-sticky--effects .elementor-widget-site-logo img,
.gdp-header.elementor-sticky--effects img {
  max-height: 38px !important;
  transition: max-height .25s ease;
}

/* Make sure the sticky header always sits on top of Elementor sections */
.gdp-header,
.gdp-header.elementor-sticky--active {
  z-index: 99 !important;
}

/* Mobile nav: nicer hamburger + slide-down menu spacing */
@media (max-width: 1024px) {
  .gdp-header .elementor-nav-menu--dropdown {
    padding: 6px 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .gdp-header .elementor-nav-menu--dropdown a.elementor-item {
    border-bottom: 1px solid rgba(26, 26, 26, .06) !important;
  }
  .gdp-header .elementor-nav-menu--dropdown a.elementor-item:last-child {
    border-bottom: 0 !important;
  }
}

/* Desktop dropdown (hover): cap height with internal scroll so 15 services don't push off-screen */
.gdp-header .elementor-nav-menu .sub-menu {
  max-height: min(70vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}
.gdp-header .elementor-nav-menu .sub-menu::-webkit-scrollbar { width: 6px; }
.gdp-header .elementor-nav-menu .sub-menu::-webkit-scrollbar-track { background: transparent; }
.gdp-header .elementor-nav-menu .sub-menu::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

/* Polish for the modern footer (uses icon-list, social-icons) */
.gdp-footer .elementor-icon-list-item a { transition: color .15s ease; }
.gdp-footer .elementor-icon-list-icon i { transition: color .15s ease, transform .15s ease; }
.gdp-footer .elementor-icon-list-item:hover .elementor-icon-list-icon i { transform: translateX(2px); }

.gdp-footer .elementor-social-icon { transition: background-color .2s ease, transform .15s ease; }
.gdp-footer .elementor-social-icon:hover { transform: translateY(-2px); }

/* Column dividers on desktop for a more "magazine" feel */
@media (min-width: 1025px) {
  .gdp-footer > .elementor-container > .elementor-column + .elementor-column {
    border-left: 1px solid rgba(255, 255, 255, .06);
    padding-left: 28px;
  }
}

/* Push the page content down so it doesn't slide under the fixed header
   (only needed when sticky is enabled; harmless otherwise). */
body.elementor-page .gdp-header + * { scroll-margin-top: 90px; }

/* Footer link hover */
.gdp-footer a { transition: color .15s ease; }
.gdp-footer a:hover { color: var(--gdp-orange) !important; }

/* Copyright bar links */
.gdp-copyright a:hover { color: #fff !important; }
