/*
Theme Name: Dutchess Lawns Child
Theme URI: https://dutchesslawns.com
Description: GeneratePress child theme for Dutchess Lawns & Masonry. Holds the full premium design system (colors, typography, components). Built on GeneratePress Premium + GenerateBlocks Pro.
Author: Marc Flory
Template: generatepress
Version: 1.0.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --dl-green: #22b14c;
  --dl-green-dark: #1b8f3c;
  --dl-green-soft: #e8f7ee;
  --dl-dark: #1a1a1a;
  --dl-charcoal: #222;
  --dl-gray: #5b5b5b;
  --dl-gray-light: #8a8a8a;
  --dl-cream: #faf8f3;
  --dl-line: #ececec;
  --dl-white: #ffffff;
  --dl-shadow: 0 10px 30px rgba(0,0,0,.08);
  --dl-shadow-lg: 0 24px 60px rgba(0,0,0,.14);
  --dl-radius: 14px;
  --dl-radius-sm: 10px;
  --dl-maxw: 1180px;
  --dl-font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dl-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ============================================================
   BASE / TYPOGRAPHY
   ============================================================ */
body {
  font-family: var(--dl-font-body);
  color: var(--dl-charcoal);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--dl-font-head);
  color: var(--dl-dark);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
a { color: var(--dl-green-dark); text-decoration: none; }
a:hover { color: var(--dl-green); }
.dl-eyebrow {
  display: inline-block;
  font-family: var(--dl-font-head);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dl-green-dark);
  margin-bottom: .7rem;
}
.dl-lead { font-size: 1.18rem; color: var(--dl-gray); }
.dl-center { text-align: center; }
.dl-center .dl-eyebrow { display: inline-block; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.dl-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.dl-section--cream { background: var(--dl-cream); }
.dl-section--dark { background: var(--dl-dark); color: #e9e9e9; }
.dl-section--dark h2, .dl-section--dark h3 { color: #fff; }
.dl-section--green { background: var(--dl-green); color: #fff; }
.dl-section--green h2 { color: #fff; }
.dl-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.dl-btn, .wpforms-submit, .gb-button.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--dl-font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: 2px solid var(--dl-green);
  background: var(--dl-green);
  color: #fff !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 20px rgba(34,177,76,.28);
}
.dl-btn:hover, .wpforms-submit:hover {
  background: var(--dl-green-dark);
  border-color: var(--dl-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(34,177,76,.36);
  color: #fff !important;
}
.dl-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.7);
  box-shadow: none;
}
.dl-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.dl-btn--dark { background: var(--dl-dark); border-color: var(--dl-dark); box-shadow: none; }
.dl-btn--dark:hover { background: #000; border-color: #000; }

/* ============================================================
   HEADER / TOP BAR / NAV (GeneratePress)
   ============================================================ */
.dl-topbar {
  background: var(--dl-dark);
  color: #d8d8d8;
  font-size: .9rem;
}
.dl-topbar a { color: #d8d8d8; }
.dl-topbar a:hover { color: var(--dl-green); }
.dl-topbar .dl-topbar-inner {
  max-width: var(--dl-maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .55rem 1.25rem;
  flex-wrap: wrap;
}
.dl-topbar strong { color: #fff; }

.site-header { box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.main-navigation .main-nav ul li a { font-family: var(--dl-font-head); font-weight: 600; }
.main-navigation .main-nav ul li.dl-nav-cta a,
.main-navigation .main-nav ul li.menu-item-dl-cta a {
  background: var(--dl-green);
  color: #fff;
  border-radius: 999px;
  margin: .55rem 0 .55rem 1rem;
  padding: .65rem 1.35rem;
}
.main-navigation .main-nav ul li.dl-nav-cta a:hover { background: var(--dl-green-dark); }
/* Sticky header tweak */
.navigation-stick, .is-sticky.navigation-stick { box-shadow: 0 6px 20px rgba(0,0,0,.1); }

/* ============================================================
   HERO
   ============================================================ */
.dl-hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dl-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,15,15,.60) 0%, rgba(15,15,15,.30) 45%, rgba(15,15,15,0) 85%);
}
/* Keep all hero content (text + buttons) above the gradient overlay (::before). */
.dl-hero > *, .dl-hero > .gb-container, .dl-hero .dl-hero-inner { position: relative; z-index: 2; }
.dl-hero h1 { color: #fff; max-width: 16ch; }
.dl-hero .dl-lead { color: rgba(255,255,255,.9); max-width: 52ch; }
.dl-hero-badges { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-top: 1.4rem; }
.dl-hero-badge { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.dl-hero-badge svg, .dl-hero-badge .dl-ico { color: var(--dl-green); }
.dl-hero-stars { color: #ffc534; letter-spacing: 2px; }

/* Hero quote card (form) */
.dl-hero-form {
  background: #fff;
  color: var(--dl-charcoal);
  border-radius: var(--dl-radius);
  padding: 1.9rem;
  box-shadow: var(--dl-shadow-lg);
}
.dl-hero-form h3 { margin-top: 0; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.dl-trust {
  background: #fff;
  border-bottom: 1px solid var(--dl-line);
}
.dl-trust .dl-trust-grid {
  max-width: var(--dl-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.6rem 1.25rem;
}
.dl-trust-item { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--dl-charcoal); }
.dl-trust-item .dl-ico { color: var(--dl-green); flex: 0 0 auto; }

/* ============================================================
   SERVICE CARDS GRID
   ============================================================ */
.dl-grid { display: grid; gap: 1.5rem; }
.dl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dl-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* When WordPress wraps group-block children in a backwards-compat inner
   container, dissolve it so the cards become direct grid items. */
.dl-grid > .wp-block-group__inner-container { display: contents; }

.dl-card {
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  padding: 2rem 1.7rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--dl-shadow); border-color: transparent; }
.dl-card-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--dl-green-soft);
  color: var(--dl-green-dark);
  margin-bottom: 1.1rem;
  font-size: 1.6rem;
}
.dl-card h3 { margin: 0 0 .5rem; }
.dl-card p { color: var(--dl-gray); margin: 0 0 1.1rem; }
.dl-card .dl-card-link { font-family: var(--dl-font-head); font-weight: 700; }
.dl-card .dl-card-link::after { content: " →"; }

/* ============================================================
   STATS BAND
   ============================================================ */
.dl-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.5rem; text-align: center; }
.dl-stat-num { font-family: var(--dl-font-head); font-weight: 800; font-size: clamp(2.2rem,4vw,3rem); color: var(--dl-green); line-height: 1; }
.dl-stat-label { color: var(--dl-gray); font-weight: 600; margin-top: .4rem; }
.dl-section--dark .dl-stat-label { color: #bcbcbc; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.dl-quote {
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  padding: 2rem;
  box-shadow: var(--dl-shadow);
  height: 100%;
}
.dl-quote .dl-hero-stars { font-size: 1.1rem; }
.dl-quote blockquote { border: 0; margin: .8rem 0 1.2rem; padding: 0; font-size: 1.08rem; color: var(--dl-charcoal); font-style: normal; }
.dl-quote cite { font-style: normal; font-weight: 700; color: var(--dl-dark); }
.dl-quote .dl-quote-meta { color: var(--dl-gray-light); font-size: .9rem; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.dl-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; counter-reset: step; }
.dl-step { position: relative; padding-top: .5rem; }
.dl-step-num {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--dl-green); color: #fff;
  font-family: var(--dl-font-head); font-weight: 800;
  display: grid; place-items: center; margin-bottom: .9rem;
}
.dl-step h3 { font-size: 1.2rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.dl-cta {
  position: relative;
  background-size: cover; background-position: center;
  color: #fff; text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.dl-cta::before { content:""; position:absolute; inset:0; background: rgba(20,60,32,.86); }
.dl-cta .dl-cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.dl-cta h2 { color: #fff; }
.dl-cta .dl-lead { color: rgba(255,255,255,.92); }
.dl-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ============================================================
   SERVICE AREA GRID
   ============================================================ */
.dl-areas { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.dl-area-pill {
  display: block; text-align: center;
  background: #fff; border: 1px solid var(--dl-line);
  border-radius: 999px; padding: .9rem 1rem; font-weight: 600;
  color: var(--dl-charcoal); transition: all .18s ease;
}
.dl-area-pill:hover { background: var(--dl-green); color: #fff; border-color: var(--dl-green); transform: translateY(-2px); }

/* ============================================================
   FAQ ACCORDION (native details/summary fallback)
   ============================================================ */
.dl-faq details {
  background: #fff; border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius-sm); margin-bottom: .8rem; padding: 0 1.3rem;
}
.dl-faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--dl-font-head); font-weight: 700; font-size: 1.08rem;
  padding: 1.15rem 0; display: flex; justify-content: space-between; align-items: center;
}
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; color: var(--dl-green); font-size: 1.5rem; line-height: 1; }
.dl-faq details[open] summary::after { content: "–"; }
.dl-faq details[open] { box-shadow: var(--dl-shadow); }
.dl-faq details > p { margin-top: 0; padding-bottom: 1.2rem; color: var(--dl-gray); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer, .dl-footer { background: var(--dl-dark); color: #c7c7c7; }
.dl-footer a { color: #c7c7c7; }
.dl-footer a:hover { color: var(--dl-green); }
.dl-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.dl-footer .dl-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.dl-footer ul { list-style: none; margin: 0; padding: 0; }
.dl-footer ul li { margin-bottom: .55rem; }
.dl-foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .88rem; color: #9a9a9a; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; }

/* Floating mobile call/estimate bar */
.dl-mobile-bar { display: none; }

/* ============================================================
   WPFORMS POLISH
   ============================================================ */
.wpforms-container input[type=text],
.wpforms-container input[type=email],
.wpforms-container input[type=tel],
.wpforms-container select,
.wpforms-container textarea {
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius-sm);
  padding: .8rem .9rem;
  font-family: var(--dl-font-body);
}
.wpforms-container input:focus, .wpforms-container textarea:focus, .wpforms-container select:focus {
  border-color: var(--dl-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34,177,76,.15);
}
.wpforms-field-label { font-family: var(--dl-font-head); font-weight: 600; }

/* ============================================================
   COMPONENTS USED IN BLOCK CONTENT
   ============================================================ */
.dl-wrap { max-width: var(--dl-maxw); margin-left: auto; margin-right: auto; }
.dl-btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; align-items: center; }
.dl-phone { font-family: var(--dl-font-head); font-weight: 700; white-space: nowrap; }

/* Core button fallback so editor-inserted buttons match .dl-btn */
.wp-block-button__link {
  font-family: var(--dl-font-head); font-weight: 700;
  border-radius: 999px; padding: 1.05rem 1.9rem;
  background: var(--dl-green); color: #fff;
}
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; }

/* Check list */
.dl-check { list-style: none; margin: 0; padding: 0; }
.dl-check li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.dl-check li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--dl-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b8f3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/0.8rem no-repeat;
}
.dl-section--dark .dl-check li::before { background-color: rgba(255,255,255,.12); }

/* Split (image + text two column) */
.dl-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.dl-media {
  border-radius: var(--dl-radius); min-height: 380px;
  background-size: cover; background-position: center; box-shadow: var(--dl-shadow);
}

/* Gallery / project tiles */
.dl-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dl-tile {
  aspect-ratio: 4 / 3; border-radius: var(--dl-radius-sm);
  background-size: cover; background-position: center;
  box-shadow: var(--dl-shadow); transition: transform .2s ease;
}
.dl-tile:hover { transform: scale(1.02); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dl-grid--4, .dl-stats, .dl-steps, .dl-areas { grid-template-columns: repeat(2, 1fr); }
  .dl-grid--3, .dl-gallery { grid-template-columns: repeat(2, 1fr); }
  .dl-trust .dl-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-footer .dl-foot-grid { grid-template-columns: 1fr 1fr; }
  .dl-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 1rem; }
  .dl-grid--2, .dl-grid--3, .dl-grid--4, .dl-stats, .dl-steps, .dl-areas, .dl-gallery { grid-template-columns: 1fr; }
  .dl-media { min-height: 260px; }
  .dl-hero::before { background: linear-gradient(180deg, rgba(15,15,15,.30), rgba(15,15,15,.62)); }
  .dl-footer .dl-foot-grid { grid-template-columns: 1fr; }
  .dl-topbar .dl-topbar-inner { justify-content: center; }
  /* Sticky mobile action bar */
  .dl-mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    box-shadow: 0 -4px 16px rgba(0,0,0,.16);
  }
  .dl-mobile-bar a { padding: .95rem; text-align: center; font-family: var(--dl-font-head); font-weight: 700; color: #fff; }
  .dl-mobile-bar .dl-mb-call { background: var(--dl-dark); }
  .dl-mobile-bar .dl-mb-quote { background: var(--dl-green); }
  body { padding-bottom: 56px; }
}

/* ============================================================
   v1.1 FIXES — header, nav CTA, blog, post meta
   ============================================================ */

/* Condense the header: drop the redundant tagline, tighten spacing,
   keep the site title on one line. */
.site-description { display: none; }
.inside-header { padding: 16px 30px; }
.main-title { font-size: 1.45rem; line-height: 1.2; white-space: nowrap; }
.main-navigation .main-nav > ul { flex-wrap: wrap; }

/* Green nav is set in GeneratePress; make the CTA a contrasting dark pill. */
.main-navigation .main-nav ul li.dl-nav-cta a,
.main-navigation .main-nav ul li.menu-item-dl-cta a {
  background: var(--dl-dark);
  color: #fff;
  border-radius: 999px;
  margin: .45rem 0 .45rem 1rem;
  padding: .5rem 1.4rem;
}
.main-navigation .main-nav ul li.dl-nav-cta a:hover { background: #000; color: #fff; }

/* Hide post date, author, and comments link (evergreen + clean). */
.entry-meta .posted-on,
.entry-meta .byline,
.entry-meta .comments-link { display: none; }

/* Sleek blog archive: cream page, image-top cards, category pill. */
body.blog, body.archive, body.search { background-color: var(--dl-cream); }
.blog .site-main, .archive .site-main, .search .site-main { max-width: 880px; margin: 0 auto; padding-top: clamp(1.5rem, 4vw, 3rem); }
.blog article.post,
.archive article.post,
.search article.post {
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--dl-shadow);
}
.blog .inside-article,
.archive .inside-article,
.search .inside-article { display: flex; flex-direction: column; padding: 0 0 1.8rem; }
.blog .inside-article .post-image,
.archive .inside-article .post-image { order: -2; margin: 0; }
.blog .inside-article .post-image img,
.archive .inside-article .post-image img { width: 100%; height: 320px; object-fit: cover; display: block; }
.blog .inside-article > footer.entry-meta,
.archive .inside-article > footer.entry-meta { order: -1; padding: 1.4rem 2rem 0; border: 0; }
.blog .inside-article .entry-header,
.archive .inside-article .entry-header { padding: .45rem 2rem 0; }
.blog .inside-article .entry-summary,
.archive .inside-article .entry-summary { padding: 0 2rem; color: var(--dl-gray); }
.blog .inside-article .read-more-container,
.archive .inside-article .read-more-container { padding: .6rem 2rem 0; font-family: var(--dl-font-head); font-weight: 700; }
.blog .entry-title,
.archive .entry-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .5rem; line-height: 1.2; }
.blog .entry-title a,
.archive .entry-title a { color: var(--dl-dark); }
.blog .entry-title a:hover,
.archive .entry-title a:hover { color: var(--dl-green-dark); }
/* Category as a green pill — hide the folder icon */
.cat-links::before, .cat-links svg, .cat-links .dashicons, .cat-links img { display: none !important; }
.cat-links { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.cat-links a {
  display: inline-block; background: var(--dl-green-soft); color: var(--dl-green-dark);
  font-family: var(--dl-font-head); font-weight: 700; font-size: .7rem; letter-spacing: .07em;
  text-transform: uppercase; padding: .32rem .75rem; border-radius: 999px; line-height: 1;
}
.cat-links a:hover { background: var(--dl-green); color: #fff; }

/* Readable single-post column (no sidebar = full width otherwise). */
.single-post .entry-header,
.single-post .entry-content,
.single-post .entry-meta { max-width: 760px; margin-left: auto; margin-right: auto; }
.single-post .entry-content .dl-card { max-width: none; }

/* Mobile: center the menu CTA so it doesn't look stranded. */
@media (max-width: 768px) {
  .main-navigation .main-nav ul li.dl-nav-cta { text-align: center; }
  .main-navigation .main-nav ul li.dl-nav-cta a {
    display: inline-block; margin: .6rem auto;
  }
}

/* Remove GeneratePress footer credit ("Built with GeneratePress"). */
.site-info { display: none; }

/* Social icon links (header top bar + footer). */
.dl-social { display: inline-flex; align-items: center; gap: .55rem; }
.dl-topbar .dl-social { margin-left: .85rem; }
.dl-social a { display: inline-flex; color: var(--dl-green); }
.dl-social a:hover { color: #fff; opacity: 1; }
.dl-social svg { width: 16px; height: 16px; }
.dl-footer .dl-social { display: flex; margin-top: 1.1rem; gap: .8rem; }
.dl-footer .dl-social svg { width: 22px; height: 22px; }

/* Header logo (replaces the text site title + tagline). */
.main-title, .site-description { display: none; }
.custom-logo, img.header-image, .site-logo img { max-height: 56px; width: auto; height: auto; }
.site-header .site-branding { padding: 4px 0; }

/* One-line header: logo sits inside the green bar, level with the menu. */
.site-header { background-color: var(--dl-green); }
.site-header .site-logo img { display: block; }
.nav-float-right .inside-header { align-items: center; }

/* Compact header: stop the Free Estimate pill from stretching the bar height. */
.main-navigation .main-nav ul li.dl-nav-cta { display: flex; align-items: center; }
.main-navigation .main-nav ul li.dl-nav-cta a {
  margin: 0 0 0 .9rem;
  padding: .46rem 1.35rem;
  line-height: 1.4;
  background: #ffffff !important;
  color: var(--dl-green-dark) !important;
  font-weight: 700;
}
.main-navigation .main-nav ul li.dl-nav-cta a:hover { background: var(--dl-cream) !important; color: var(--dl-green-dark) !important; }
.custom-logo, img.header-image, .site-logo img { max-height: 44px; }

/* ============================================================
   v1.3 — pagination + free-estimate column
   ============================================================ */
/* Modern, centered blog pagination */
.paging-navigation .nav-links, .pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.paging-navigation .page-numbers, .pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 .95rem;
  border: 1px solid var(--dl-line); border-radius: 10px; background: #fff;
  font-family: var(--dl-font-head); font-weight: 700; color: var(--dl-dark);
  text-decoration: none; transition: all .15s ease;
}
.paging-navigation .page-numbers:hover { border-color: var(--dl-green); color: var(--dl-green-dark); }
.paging-navigation .page-numbers.current { background: var(--dl-green); border-color: var(--dl-green); color: #fff; }

/* Free Estimate: keep the "Prefer to Talk" column compact + top-aligned */
.wp-block-columns:has(.dl-estimate-card) { align-items: flex-start; }
.wp-block-columns .dl-card { height: auto; }

/* ============================================================
   v1.4 — footer gutters, social icon colors, WPForms buttons
   ============================================================ */
/* Footer: add side padding so it never touches the edge on mid widths */
.dl-footer .dl-wrap { padding-left: 30px; padding-right: 30px; box-sizing: border-box; }
@media (max-width: 1100px) { .dl-footer .dl-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dl-footer .dl-wrap { padding-left: 22px; padding-right: 22px; } .dl-foot-bottom { flex-direction: column; gap: .4rem; } }

/* Social icons: green by default, white on hover (header + footer) */
.dl-topbar .dl-social a, .dl-footer .dl-social a { color: var(--dl-green) !important; }
.dl-topbar .dl-social a:hover, .dl-footer .dl-social a:hover { color: #ffffff !important; opacity: 1; }

/* WPForms: green submit buttons (override WPForms' default blue #066aab) */
.wpforms-container {
  --wpforms-button-background-color: #22b14c !important;
  --wpforms-button-border-color: #22b14c !important;
  --wpforms-button-text-color: #ffffff !important;
}
.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit {
  background-color: var(--dl-green) !important;
  border-color: var(--dl-green) !important;
  color: #fff !important;
}
.wpforms-container button[type="submit"]:hover,
.wpforms-container .wpforms-submit:hover {
  background-color: var(--dl-green-dark) !important;
  border-color: var(--dl-green-dark) !important;
}

/* v1.5 — editable rebuild: dissolve bc inner-container so group-based grids work */
.dl-gallery > .wp-block-group__inner-container,
.dl-stats > .wp-block-group__inner-container,
.dl-steps > .wp-block-group__inner-container,
.dl-areas > .wp-block-group__inner-container,
.dl-trust-grid > .wp-block-group__inner-container { display: contents; }
/* Empty media/tile groups still show their background image */
.dl-media.has-background, .dl-tile.has-background { background-size: cover; background-position: center; }

/* ============================================================
   v1.6 — header alignment, trust bar, hero form, hero eyebrow, stats
   ============================================================ */
/* #3 Header: vertically center logo + menu + CTA */
@media (min-width: 1025px) { .site-header .inside-header { display: flex; align-items: center; } }
.main-navigation .main-nav > ul,
.main-navigation .menu-bar-items { align-items: center; }
.site-logo { display: flex; align-items: center; }
/* align header content edges with the 1180 page content (no extra side gutter on desktop) */
.inside-header { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 1199px) { .inside-header { padding-left: 20px !important; padding-right: 20px !important; } }

/* #6 Trust bar: center each item so the four are evenly spread full width */
.dl-trust-item { justify-content: center; }

/* #8 Hero eyebrow: bigger + light color so it stands out on the dark hero */
.dl-hero .dl-eyebrow { color: #bff3cd; font-size: 1.1rem; }

/* #7 Hero quote form: more compact */
.dl-hero-form { padding: 1.4rem 1.5rem; }
.dl-hero-form h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.dl-hero-form p { font-size: .9rem; margin-bottom: .8rem; }
.dl-hero-form .wpforms-field { padding: 0 0 .55rem !important; }
.dl-hero-form .wpforms-field-label { font-size: .82rem; margin-bottom: .2rem; }
.dl-hero-form input, .dl-hero-form select, .dl-hero-form textarea { padding: .55rem .7rem !important; font-size: .92rem !important; }
.dl-hero-form textarea { min-height: 64px; }
.dl-hero-form .wpforms-submit { padding: .6rem 1.3rem !important; font-size: .95rem !important; }

/* #5 Stats: 5 across, responsive */
@media (max-width: 1024px) { .dl-stats { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .dl-stats { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   v1.7 — tighter hero form + CTA vertical centering
   ============================================================ */
/* Hero quote form: hug the content, remove trailing white space */
.dl-hero-form { padding: 1.1rem 1.4rem !important; }
.dl-hero-form h3 { font-size: 1.2rem; margin: 0 0 .2rem !important; }
.dl-hero-form p { font-size: .88rem; margin: 0 0 .7rem !important; }
.dl-hero-form .wpforms-container { margin: 0 !important; }
.dl-hero-form form.wpforms-form { margin: 0 !important; }
.dl-hero-form .wpforms-field { padding: 0 0 .45rem !important; }
.dl-hero-form .wpforms-field-label { margin: 0 0 .15rem !important; font-size: .8rem; }
.dl-hero-form input, .dl-hero-form select { padding: .5rem .7rem !important; }
.dl-hero-form textarea { min-height: 52px !important; height: 56px !important; padding: .5rem .7rem !important; }
.dl-hero-form .wpforms-submit-container { padding: 0 !important; margin: .35rem 0 0 !important; }
.dl-hero-form .wpforms-submit { padding: .6rem 1.3rem !important; }

/* Free Estimate pill: vertically center within the menu bar — DESKTOP ONLY.
   On tablet/mobile, GeneratePress's hamburger menu takes over (do not force flex). */
@media (min-width: 1025px) {
  .main-navigation .main-nav > ul { display: flex !important; align-items: center !important; flex-wrap: wrap; }
  .main-navigation .main-nav > ul > li { align-items: center; }
  .main-navigation .main-nav ul li.dl-nav-cta { display: flex; align-items: center; }
  .main-navigation .main-nav ul li.dl-nav-cta a { margin: 0 0 0 .9rem !important; align-self: center; }
}

/* (v1.8 mobile header/menu overrides removed — using GP stock hamburger now.) */

/* #3 Hero quote form: make Name, Phone, Email, Service Needed full width */
.dl-hero-form .wpforms-field-medium,
.dl-hero-form .wpforms-field-small,
.dl-hero-form .wpforms-field-row,
.dl-hero-form .wpforms-field input,
.dl-hero-form .wpforms-field select { max-width: 100% !important; width: 100% !important; }

/* v1.9 — trust bar now has 3 items */
.dl-trust .dl-trust-grid { grid-template-columns: repeat(3, 1fr); }

/* v2.0 — services grid: flex with centered orphan row (3 + 2 centered, etc.) */
.dl-grid--3 { display: flex !important; flex-wrap: wrap; justify-content: center; }
.dl-grid--3 .dl-card { flex: 0 0 calc((100% - 3rem) / 3); }
@media (max-width: 1024px) {
  .dl-grid--3 .dl-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
}
@media (max-width: 768px) {
  .dl-grid--3 .dl-card { flex: 0 0 100%; }
}

/* v2.1 — center service-card icons + stats flex with centered orphan rows */
.dl-card-ico { margin-left: auto; margin-right: auto; }

.dl-stats { display: flex !important; flex-wrap: wrap; justify-content: center; }
.dl-stats > * { flex: 0 0 calc((100% - 6rem) / 5); }
@media (max-width: 1024px) { .dl-stats > * { flex: 0 0 calc((100% - 3rem) / 3); } }
@media (max-width: 640px)  { .dl-stats > * { flex: 0 0 calc((100% - 1.5rem) / 2); } }

/* v2.2 — tighter side padding on the homepage hero quote card so fields breathe */
.dl-hero-form { padding: 1.1rem .85rem !important; }

/* v2.3 — breathing room below blog pagination so it isn't crammed into the footer */
.paging-navigation,
.nav-below,
nav.pagination,
.blog .nav-links { margin-bottom: 3.5rem; }
@media (max-width: 768px) {
  .paging-navigation,
  .nav-below,
  nav.pagination,
  .blog .nav-links { margin-bottom: 2.5rem; }
}

/* v2.4 — HFS Financial mentions: trust-bar 4-up, callout boxes, footer accent */
.dl-trust .dl-trust-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .dl-trust .dl-trust-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem 1.5rem; }
}
/* Trust-bar links inherit chip text color so HFS Financial doesn't break the row */
.dl-trust-item a { color: inherit !important; text-decoration: underline; text-underline-offset: 2px; }
.dl-trust-item a:hover { text-decoration: none; }
.dl-financing {
  background: #f0f9ee;
  border: 1px solid #c5e6c1;
  border-left: 4px solid var(--dl-green);
  border-radius: var(--dl-radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: .95rem;
  line-height: 1.45;
}
.dl-financing strong { color: var(--dl-green); }
.dl-financing a { color: var(--dl-green); font-weight: 600; text-decoration: underline; }
.dl-financing a:hover { text-decoration: none; }
.dl-foot-financing { font-size: .92rem; margin-top: .35rem !important; opacity: .92; }
.dl-foot-financing a { color: #bff3cd; text-decoration: underline; }
.dl-foot-financing a:hover { text-decoration: none; }
.dl-cta-fin { font-size: .92rem; opacity: .88; margin: .15rem 0 .9rem !important; }
.dl-cta-fin a { color: #bff3cd; text-decoration: underline; }
.dl-cta-fin a:hover { text-decoration: none; }

/* ============================================================
   v2.5 — Hitlist 7: header tightening, hero centering, equal cards
   ============================================================ */

/* (1) Mobile header — keep it simple. Use GeneratePress's stock hamburger
       behaviour (button starts collapsed; tap to expand a dropdown list of
       items). The only thing the child theme touches on mobile is the logo
       size — everything else is GP defaults. */
@media (max-width: 1024px) {
  .custom-logo, img.header-image, .site-logo img { max-height: 60px !important; }
}
@media (max-width: 480px) {
  .custom-logo, img.header-image, .site-logo img { max-height: 52px !important; }
}

/* (3) Hero CTAs — center the button row + the badges row, both desktop and mobile */
.dl-hero .dl-btn-row,
.dl-hero .dl-hero-badges { justify-content: center; }
.dl-hero .dl-btn-row { margin-left: 0; margin-right: 0; }

/* (4) Hero text alignment — pin eyebrow / h1 / h2 / lead / button row to the left
       edge of the constrained content area. WP wraps these in a
       .wp-block-group__inner-container.is-layout-constrained, whose default
       rule auto-centers any child with max-width < contentSize (which is why
       the .dl-lead with max-width:52ch was drifting toward center). Override
       with descendant selectors, not `>`. */
.dl-hero .dl-eyebrow,
.dl-hero h1,
.dl-hero h1.wp-block-heading,
.dl-hero h2,
.dl-hero .dl-lead,
.dl-hero .dl-btn-row,
.dl-hero .dl-hero-badges { margin-left: 0 !important; margin-right: auto !important; }
.dl-hero .wp-block-group__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
/* Heading sometimes overflows its max-width: 16ch; bump so text wraps cleanly */
.dl-hero h1 { max-width: 28ch; }
/* Remove WP block-paragraph default left padding inside hero */
.dl-hero p.wp-block-paragraph { padding-left: 0; padding-right: 0; }

/* (5) Equal-height card grid: CSS Grid stretches cards in the same row to the
       tallest card's height automatically (align-items: stretch is the
       default). Dropped the grid-auto-rows: 1fr from the earlier pass — that
       was collapsing rows on narrower viewports and causing overlap. Result:
       within each row every card is equal height; rows themselves size to
       content. Cards become flex columns so card-internal content can grow. */
.dl-grid--equal {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.dl-grid--equal > .dl-card {
  height: auto;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .dl-grid--equal { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dl-grid--equal { grid-template-columns: 1fr; }
}
