/* ─── Daniels Landscaping — Global CSS ────────────────────────────────────── */

/* ─── Color System ─────────────────────────────────────────────────────────── */
:root {
    --color-green:         #1A5C1E;   /* primary — dark forest green (logo banner) */
    --color-green-mid:     #1A5C1E;   /* was leaf green; set to the logo green, owner wants no light green */
    --color-green-deep:    #123F14;   /* darker than the logo green: card depth and hover states.
                                         Depth comes from going darker, never lighter. */
    --color-orange:        #A84D1C;   /* accent — deep burnt orange (reads at small sizes) */
    --color-orange-hover:  #8C3F14;   /* accent hover                              */
    --color-cream:         #F5F0E3;   /* background / reversed text                */
    --color-cream-dark:    #EDE8D8;   /* slightly deeper cream for alternating bg  */
    --color-dark:          #1A1A17;   /* near-black for footer / dark sections     */
    --color-text:          #2A2A26;   /* body text on light backgrounds            */
    --color-text-muted:    #6B6B60;   /* muted / secondary text                    */
    --color-divider:       #D8D3C4;   /* hairline dividers on cream                */
    --color-white:         #FAFAF5;   /* off-white for reversed text               */
}

/* ─── Typography System ────────────────────────────────────────────────────── */
:root {
    --font-display: 'Oswald', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Scale */
    --fs-display: clamp(3rem, 9vw, 7rem);
    --fs-h1:      clamp(2.25rem, 6vw, 4.5rem);
    --fs-h2:      clamp(1.75rem, 3.5vw, 2.75rem);
    --fs-h3:      clamp(1.25rem, 2vw, 1.625rem);
    --fs-body-lg: clamp(1rem, 1.3vw, 1.125rem);
    --fs-body:    clamp(0.9375rem, 1.1vw, 1rem);
    --fs-small:   0.875rem;
    --fs-label:   0.6875rem;
    --fs-caption: 0.8125rem;

    /* Weights */
    --fw-display: 700;
    --fw-bold:    600;
    --fw-med:     500;
    --fw-regular: 400;

    /* Letter spacing */
    --ls-display: -0.01em;
    --ls-label:    0.1em;

    /* Line heights */
    --lh-display: 1.0;
    --lh-heading: 1.1;
    --lh-body:    1.7;

    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  7rem;

    /* Transitions */
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.2s;
    --duration-med:  0.4s;

    /* Fixed-nav height. nav.js overwrites this at runtime with the measured
       value; these fallbacks approximate the unscrolled header so content is
       not tucked under the bar before the script runs. */
    /* Logo box (width x 161/256) plus 12px of .dl-nav__inner padding.
       Mobile logo is 101px wide, so 64 + 12. */
    --nav-height: 82px;
}

@media (min-width: 901px) {
    /* Desktop logo is 132px wide, so 83 + 12. */
    :root { --nav-height: 103px; }
}

/* ─── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

/* Branded text-selection highlight */
::selection      { background: rgba(26, 92, 30, 0.22); color: var(--color-text); }
::-moz-selection { background: rgba(26, 92, 30, 0.22); color: var(--color-text); }

/* Spacer after the fixed nav — gives its Elementor section the correct height */
.dl-nav__spacer {
    display: block;
    height: var(--nav-height, 80px);
    pointer-events: none;
    background: transparent;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Typography helpers ───────────────────────────────────────────────────── */
.dl-display {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: var(--fw-display);
    line-height: var(--lh-display);
    letter-spacing: var(--ls-display);
    text-transform: uppercase;
}

.dl-h1 {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: var(--fw-display);
    line-height: var(--lh-heading);
    text-transform: uppercase;
}

.dl-h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-display);
    line-height: var(--lh-heading);
    text-transform: uppercase;
}

.dl-h3 {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: var(--fw-display);
    line-height: var(--lh-heading);
    text-transform: uppercase;
}

.dl-label {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

.dl-caption {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
}

/* ─── Utility ──────────────────────────────────────────────────────────────── */
.dl-accent  { color: var(--color-orange); }
.dl-green   { color: var(--color-green); }
.dl-muted   { color: var(--color-text-muted); }

.dl-divider {
    width: 100%;
    height: 1px;
    background: var(--color-divider);
    border: none;
}

/* ─── Button system ────────────────────────────────────────────────────────── */
.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    line-height: 1;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.dl-btn--primary {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}
.dl-btn--primary:hover {
    background: #cc5016;
    border-color: #cc5016;
}

.dl-btn--outline {
    background: transparent;
    color: var(--color-green);
    border-color: var(--color-green);
}
.dl-btn--outline:hover {
    background: var(--color-green);
    color: var(--color-cream);
}

.dl-btn--outline-light {
    background: transparent;
    color: var(--color-cream);
    border-color: rgba(245, 240, 227, 0.45);
}
.dl-btn--outline-light:hover {
    background: rgba(245, 240, 227, 0.1);
    border-color: var(--color-cream);
}

/* ─── Elementor wrapper resets ─────────────────────────────────────────────── */
.elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-section,
.elementor-container,
.elementor-column,
.elementor-column-wrap,
.e-con,
.e-con-inner {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ─── Elementor editor: keep everything visible ────────────────────────────── */
/* NOTE: Do NOT add clip-path: none here — it would break the before/after sliders */
.elementor-edit-mode *,
.elementor-editor-active * {
    opacity: 1 !important;
    transform: none !important;
}

/* Restore slider clip-path in editor so it still renders the split */
.elementor-edit-mode .dl-ba__after,
.elementor-edit-mode .dl-gallery__after,
.elementor-editor-active .dl-ba__after,
.elementor-editor-active .dl-gallery__after {
    clip-path: inset(0 0 0 50%) !important;
}

/* ─── Global mobile ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .dl-services__grid,
    .dl-services-hub__grid,
    .dl-ba__grid {
        grid-template-columns: 1fr;
    }

    .dl-intro__grid,
    .dl-quote__grid,
    .dl-footer__grid {
        grid-template-columns: 1fr;
    }

    .dl-gallery__grid--3col,
    .dl-gallery__grid--2col {
        grid-template-columns: 1fr;
    }

    .dl-area__columns {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ─── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto !important; }
    .dl-hero__bg { animation: none !important; }
}

/* ── Skip link ───────────────────────────────────────────────────────────── */
.dl-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.85rem 1.4rem;
    background: var(--color-green);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-weight: var(--fw-bold);
    font-size: var(--fs-small);
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.dl-skip:focus {
    left: 0;
}

/* ── Visible focus for keyboard users ────────────────────────────────────
   Only two focus-visible rules existed in the whole theme, so tabbing through
   the site was close to invisible. Mouse users are unaffected.              */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 3px;
    border-radius: 2px;
}
/* On green and dark backgrounds the orange ring is too low contrast. */
.dl-hero :focus-visible,
.dl-footer :focus-visible,
.dl-faq :focus-visible,
.dl-ba :focus-visible,
.dl-quote :focus-visible {
    outline-color: var(--color-cream);
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.dl-404 {
    background: var(--color-cream);
    padding: clamp(4rem, 12vw, 8rem) 1.5rem clamp(3rem, 8vw, 5rem);
}
.dl-404__inner { max-width: 60rem; margin: 0 auto; }
.dl-404__eyebrow { color: var(--color-orange); margin-bottom: 0.75rem; }
.dl-404__heading { color: var(--color-green); margin: 0 0 1rem; }
.dl-404__sub {
    font-size: var(--fs-body-lg);
    color: var(--color-text-muted);
    max-width: 34rem;
    margin: 0 0 2rem;
}
.dl-404__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 3.5rem; }
.dl-404__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-divider);
}
.dl-404__col-title { color: var(--color-green); margin: 0 0 1rem; }
.dl-404__list { list-style: none; margin: 0; padding: 0; }
.dl-404__list li { margin-bottom: 0.6rem; }
.dl-404__list a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.dl-404__list a:hover { color: var(--color-orange); border-bottom-color: currentColor; }
.dl-404__phone {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-divider);
    font-size: var(--fs-body-lg);
    color: var(--color-text-muted);
}
.dl-404__phone a {
    color: var(--color-green);
    font-weight: var(--fw-bold);
    text-decoration: none;
}
.dl-404__phone a:hover { color: var(--color-orange); }
.dl-404__lic {
    display: inline-block;
    margin-left: 1rem;
    font-size: var(--fs-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 404 header and footer bands, since the real nav and footer are page widgets */
.dl-404__bar { background: var(--color-dark); padding: 1rem 1.5rem; }
.dl-404__bar-inner {
    max-width: 75rem; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.dl-404__logo img { display: block; width: 180px; height: auto; }
.dl-404__bar-phone {
    color: var(--color-cream); font-family: var(--font-display);
    font-size: var(--fs-body-lg); letter-spacing: 0.02em; text-decoration: none;
}
.dl-404__bar-phone:hover { color: var(--color-orange); }

.dl-404__foot { background: var(--color-dark); color: var(--color-cream); padding: 3rem 1.5rem; }
.dl-404__foot-inner { max-width: 75rem; margin: 0 auto; text-align: center; }
.dl-404__foot-brand {
    font-family: var(--font-display); font-size: var(--fs-h3);
    letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.5rem;
}
.dl-404__foot-meta { font-size: var(--fs-small); opacity: 0.75; margin: 0 0 1.25rem; }
.dl-404__foot-meta a { color: inherit; }
.dl-404__foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 0; }
.dl-404__foot-links a {
    color: var(--color-cream); font-size: var(--fs-small);
    text-decoration: none; opacity: 0.85;
    border-bottom: 1px solid transparent;
}
.dl-404__foot-links a:hover { opacity: 1; color: var(--color-orange); border-bottom-color: currentColor; }
@media (max-width: 600px) {
    .dl-404__bar-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ── Silo related-links block (money pages + city hubs) ─────────────────── */
.dl-silo-rel { background: var(--color-cream-dark); padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.dl-silo-rel__inner { max-width: 60rem; margin: 0 auto; }
.dl-silo-rel__heading { color: var(--color-green); margin: 0 0 0.75rem; }
.dl-silo-rel__lead { color: var(--color-text-muted); margin: 0 0 1.5rem; font-size: var(--fs-body); max-width: 42rem; }
.dl-silo-rel__list {
    list-style: none; margin: 0 0 1.5rem; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.4rem 1.5rem;
}
.dl-silo-rel__list a {
    display: block; padding: 0.6rem 0;
    color: var(--color-green); font-weight: var(--fw-med); text-decoration: none;
    border-bottom: 1px solid var(--color-divider);
    transition: color 0.2s ease;
}
.dl-silo-rel__list a:hover { color: var(--color-orange); }
.dl-silo-rel__meta { margin: 0; font-size: var(--fs-body); color: var(--color-text-muted); line-height: 1.7; }
.dl-silo-rel__meta a { color: var(--color-green); font-weight: var(--fw-med); }
.dl-silo-rel__meta a:hover { color: var(--color-orange); }
