/* McCoy Tree Service — above-fold.css
   Variables, reset, container, buttons, header, mobile nav.
   WordPress: enqueue with high priority. */
/* ============================================================
     MCCOY TREE SERVICE — MASTER CSS v4
     Deliver as single file; split into above-fold.css + style.css
     during WordPress build.
  ============================================================ */
/* ── Variables ─────────────────────────────────────────── */ :root {
  --green: #029445;
  --green-dk: #017a38;
  --green-lt: #e6f7ee;
  --brown: #5d3a1a;
  --brown-dk: #3e2710;
  --gold: #f9a825;
  --white: #ffffff;
  --black: #111111;
  --text: #111111;
  --muted: #555555;
  --border: #dddddd;
  --font: 'Poppins', sans-serif;
  --fw4: 400;
  --fw5: 500;
  --fw6: 600;
  --fw7: 700;
  --fw8: 800;
  --r-pill: 9999px;
  --r-form: 12px;
  --r-card: 12px;
  --t: all .27s ease;
  --max-w: 1440px;
  --px: 40px;
}
/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  font-size: 112.5%;
  line-height: 1.667em;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--t);
}
ul, ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}
p, h1,h2,h3,h4,h5,h6, ul, ol{
    margin-bottom: 1.25rem;
}
h1{
    font-size: 2.778em;
}
h2{
    font-size: 2.222em;
}
h3{
    font-size: 1.889em;
}
h4{
    font-size: 1.556em;
}
h5{
    font-size: 1.222em;
}
h6{
    font-size: 1em;
}
.round-corners{
    border-radius: 30px;
}
/* ── Container ─────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  width: 100%;
}
/* ── Section title ──────────────────────────────────────── */
.sec-title {
  font-size: 2.5rem;
  font-weight: var(--fw7);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.18;
  color: var(--black);
  text-align: center;
  margin-bottom: 50px;
}
.sec-title.white {
  color: var(--white);
}
.sec-title.left {
  text-align: left;
  margin-bottom: 1rem;
}
/* ── BUTTONS — single .btn class ────────────────────────── */
/*
    <a class="btn">          green pill (default)
    <a class="btn alt">      brown pill
    <a class="btn form-sub"> full-width 12px-radius (form submit)
  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: var(--fw7);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: var(--t);
}
.btn:hover {
  background: var(--green-dk);
  border-color: var(--green-dk);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(2, 148, 69, .3);
}
.btn.alt {
  background: var(--brown);
  border-color: var(--brown);
}
.btn.alt:hover {
  background: var(--brown-dk);
  border-color: var(--brown-dk);
  box-shadow: none;
}
/* Form submit override */
.btn.form-sub {
  display: block;
  width: 100%;
  border-radius: var(--r-form);
}
/* ============================================================
     HEADER
  ============================================================ */
.breadcrumb-bar {
  width: 100%;
  padding: 10px 0;
  margin-top: 0;
  position: relative;
  background: var(--green);
  font-size: 0.889em;
}
.nav-close {
  display: none;
}
.site-header {
  background: var(--white);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 25px 0;
}
/* Single-source layout: logo | [rating+phone / nav+cta] | hamburger */
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
    position: relative;
}
.site-header .logo {
  flex-shrink: 0;
}
.site-header .logo img {
  min-width: 250px;
  width: 250px;
  height: auto;
}
/* Right block: 2 rows */
.hdr-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-width: 0;
}
/* Row 1: rating + phone — push right */
.hdr-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}
.g-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.g-rating .g {
  font-size: .9rem;
  font-weight: var(--fw7);
  color: #4285F4;
  line-height: 1;
}
.g-rating .score {
  font-size: .9rem;
  font-weight: var(--fw7);
  color: var(--black);
}
.g-rating .stars {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .06em;
}
.g-rating .count {
  font-size: .75rem;
  color: var(--muted);
}
.hdr-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: var(--fw7);
  color: var(--black);
  white-space: nowrap;
  line-height: 1;
}
.hdr-phone i {
  color: var(--green);
  font-size: 1.05rem;
}
.hdr-phone:hover {
  color: var(--green);
}
/* Row 2: nav + CTA */
.hdr-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
/* Nav CTA — 18px */
.hdr-cta.btn {
  margin-left: 16px;
}
/* ── Main nav — WP-ready, NO classes on ul / li / a ────────
     WP auto-adds: current-menu-item on active <li>
                   menu-item-has-children on <li> with dropdowns
                   sub-menu on dropdown <ul>
  */
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
    margin: 0;
}
.main-nav li {
  position: relative;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: .35rem .8rem;
  font-weight: var(--fw7);
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  line-height: 1;
  border-radius: 6px;
  transition: var(--t);
}
.main-nav a:hover, .main-nav li.current-menu-item > a {
  color: var(--green);
}
/* Chevron on parent items */
.main-nav li.menu-item-has-children > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .55rem;
  margin-left: 2px;
  margin-top: 1px;
}
/* Dropdown (WP class: sub-menu) */
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .12);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--t);
  z-index: 500;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu li {
  width: 100%;
}
.main-nav .sub-menu a {
  display: block;
  padding: .6rem 1.1rem;
  font-size: .9375rem;
  font-weight: var(--fw5);
  text-transform: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.main-nav .sub-menu li:last-child a {
  border-bottom: none;
}
.main-nav .sub-menu a:hover {
  background: var(--green-lt);
  color: var(--green);
  padding-left: 1.375rem;
}
/* ── Hamburger ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 5px;
}
.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--t);
  display: block;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* ── Mobile nav ≤1199px — same HTML, hdr-right becomes the drawer ── */
@media (max-width: 1199px) {
  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
  }
  /* Hide from header bar; shown as fullscreen drawer when .open */
  .hdr-right {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    flex-direction: column;
    padding: 72px 28px 36px;
    overflow-y: auto;
    gap: 0;
  }
  .hdr-right.open {
    display: flex;
  }
  /* Close button (injected once by JS) */
  .hdr-right .nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
  }
  /* Nav + CTA first, then rating/phone below — flex order */
  .hdr-bottom {
    flex-direction: column;
    align-items: stretch;
    order: 1;
  }
  .hdr-top {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    order: 2;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 16px;
  }
  .hdr-phone {
    font-size: 1.125rem;
  }
  /* Nav links */
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .main-nav a {
    padding: .875rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1.125rem;
    justify-content: space-between;
  }
  .main-nav a:hover, .main-nav li.current-menu-item > a {
    color: var(--green);
    padding-left: 6px;
  }
  .main-nav li.menu-item-has-children > a::after {
    font-size: .7rem;
  }
  /* Sub-menu */
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--green);
    border-radius: 0;
    display: none;
    flex-direction: column;
    padding-left: 12px;
  }
  .main-nav li.sub-open > .sub-menu {
    display: flex;
  }
  .main-nav .sub-menu a {
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
    text-transform: none;
  }
  /* CTA full-width */
  .hdr-cta.btn {
    width: 100%;
    justify-content: center;
    margin: 20px 0 0;
  }
}