/*
Theme Name:     Dumpster Dogs Theme
Theme URI:      http://localhost:8080
Description:    Child theme for Dumpster Dogs dumpster rental — built on GeneratePress for speed, SEO, and conversions.
Author:         Dumpster Dogs
Author URI:     http://localhost:8080
Template:       generatepress
Version:        2.0.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    dumpsterdogs-theme
*/

/* ==========================================================================
   CSS Custom Properties — Brand Tokens (from docs/branding/brand-guide.md)
   ========================================================================== */

:root {
    /* Primary — Dumpster Orange (logo-derived) */
    --dd-primary:           #F26A21;
    --dd-primary-light:     #F58B4D;
    --dd-primary-dark:      #D45A18;

    /* Secondary — Charcoal */
    --dd-secondary:         #2D2D2D;
    --dd-secondary-light:   #404040;
    --dd-secondary-dark:    #1A1A1A;

    /* Neutrals */
    --dd-white:             #FFFFFF;
    --dd-off-white:         #F7F7F7;
    --dd-light-gray:        #E5E5E5;
    --dd-mid-gray:          #999999;
    --dd-dark-gray:         #666666;

    /* CTA / Action */
    --dd-cta-primary:       #F26A21;
    --dd-cta-primary-hover: #D45A18;
    --dd-cta-secondary:     #2D2D2D;
    --dd-cta-secondary-hover: #1A1A1A;

    /* Functional / Status */
    --dd-success:           #2E7D32;
    --dd-warning:           #F57F17;
    --dd-error:             #C62828;
    --dd-info:              #1565C0;

    /* Typography */
    --dd-font-heading:      'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --dd-font-body:         'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --dd-font-size-base:    1rem;
    --dd-line-height:       1.6;

    /* Border Radius */
    --dd-radius-sm:         4px;
    --dd-radius-md:         6px;
    --dd-radius-lg:         8px;
    --dd-radius-xl:         12px;
    --dd-radius-full:       9999px;

    /* Spacing Scale */
    --dd-space-2xs:         0.125rem;
    --dd-space-xs:          0.25rem;
    --dd-space-sm:          0.5rem;
    --dd-space-md:          1rem;
    --dd-space-lg:          1.5rem;
    --dd-space-xl:          2rem;
    --dd-space-2xl:         3rem;
    --dd-space-3xl:         4rem;
    --dd-space-4xl:         6rem;

    /* Shadows */
    --dd-shadow-sm:         0 1px 3px rgba(0, 0, 0, 0.1);
    --dd-shadow-md:         0 4px 12px rgba(0, 0, 0, 0.1);
    --dd-shadow-lg:         0 8px 24px rgba(0, 0, 0, 0.12);

    /* Layout */
    --dd-max-width:         1200px;

    /* Transition */
    --dd-transition:        0.2s ease;
}

/* ==========================================================================
   Base / Reset Overrides
   ========================================================================== */

body {
    font-family: var(--dd-font-body);
    font-size: var(--dd-font-size-base);
    line-height: var(--dd-line-height);
    color: var(--dd-secondary);
    background-color: var(--dd-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dd-font-heading);
    color: var(--dd-secondary);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--dd-primary);
    text-decoration: none;
    transition: color var(--dd-transition);
}

a:hover,
a:focus {
    color: var(--dd-primary-dark);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.dd-container {
    max-width: var(--dd-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--dd-space-md);
    padding-right: var(--dd-space-md);
}

.dd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.dd-text-center {
    text-align: center;
}

.dd-section {
    padding: var(--dd-space-3xl) 0;
}

.dd-section--alt {
    background-color: var(--dd-off-white);
}

.dd-section--dark {
    background-color: var(--dd-secondary);
    color: var(--dd-white);
}

.dd-section--dark h2,
.dd-section--dark h3,
.dd-section--dark h4 {
    color: var(--dd-white);
}

.dd-section--primary {
    background-color: var(--dd-primary);
    color: var(--dd-white);
}

.dd-section--primary h2,
.dd-section--primary h3,
.dd-section--primary h4 {
    color: var(--dd-white);
}

.dd-body-lg {
    font-size: 1.125rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.dd-btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--dd-font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--dd-radius-md);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background-color var(--dd-transition), box-shadow var(--dd-transition), border-color var(--dd-transition);
}

.dd-btn:focus {
    outline: 3px solid var(--dd-primary-light);
    outline-offset: 2px;
}

.dd-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Primary — Orange CTA */
.dd-btn--primary {
    background-color: var(--dd-cta-primary);
    color: var(--dd-white);
    border-color: var(--dd-cta-primary);
}

.dd-btn--primary:hover,
.dd-btn--primary:focus {
    background-color: var(--dd-cta-primary-hover);
    border-color: var(--dd-cta-primary-hover);
    color: var(--dd-white);
    box-shadow: var(--dd-shadow-sm);
}

.dd-btn--primary:active {
    background-color: var(--dd-primary-dark);
    box-shadow: none;
}

/* Secondary — Charcoal */
.dd-btn--secondary {
    background-color: var(--dd-cta-secondary);
    color: var(--dd-white);
    border-color: var(--dd-cta-secondary);
}

.dd-btn--secondary:hover,
.dd-btn--secondary:focus {
    background-color: var(--dd-cta-secondary-hover);
    border-color: var(--dd-cta-secondary-hover);
    color: var(--dd-white);
    box-shadow: var(--dd-shadow-sm);
}

.dd-btn--secondary:active {
    background-color: var(--dd-secondary-dark);
    box-shadow: none;
}

/* Outline — Dark border on light backgrounds */
.dd-btn--outline {
    background-color: transparent;
    color: var(--dd-secondary);
    border-color: var(--dd-secondary);
}

.dd-btn--outline:hover,
.dd-btn--outline:focus {
    background-color: var(--dd-secondary);
    color: var(--dd-white);
}

/* Outline Light — White border on dark backgrounds */
.dd-btn--outline-light {
    background-color: transparent;
    color: var(--dd-white);
    border-color: var(--dd-white);
}

.dd-btn--outline-light:hover,
.dd-btn--outline-light:focus {
    background-color: var(--dd-white);
    color: var(--dd-secondary);
}

/* Phone CTA — Always prominent orange */
.dd-btn--phone {
    background-color: var(--dd-cta-primary);
    color: var(--dd-white);
    border-color: var(--dd-cta-primary);
}

.dd-btn--phone:hover,
.dd-btn--phone:focus {
    background-color: var(--dd-cta-primary-hover);
    border-color: var(--dd-cta-primary-hover);
    color: var(--dd-white);
}

/* Button sizes */
.dd-btn--sm {
    padding: 10px 20px;
    font-size: 0.875rem;
    border-radius: var(--dd-radius-sm);
}

.dd-btn--lg {
    padding: 18px 36px;
    font-size: 1.125rem;
    border-radius: var(--dd-radius-lg);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.dd-card {
    background: var(--dd-white);
    border: 1px solid var(--dd-light-gray);
    border-radius: var(--dd-radius-lg);
    padding: var(--dd-space-lg);
    transition: border-color var(--dd-transition), box-shadow var(--dd-transition);
}

.dd-card:hover {
    box-shadow: var(--dd-shadow-sm);
}

/* Feature card — service pages, size comparison */
.dd-card--feature {
    border-width: 2px;
    padding: var(--dd-space-xl);
    box-shadow: var(--dd-shadow-sm);
}

.dd-card--feature:hover {
    border-color: var(--dd-primary);
    box-shadow: var(--dd-shadow-md);
}

/* CTA card — orange or charcoal background */
.dd-card--cta {
    background: var(--dd-primary);
    border: none;
    padding: var(--dd-space-2xl);
    color: var(--dd-white);
}

.dd-card--cta h2,
.dd-card--cta h3,
.dd-card--cta h4 {
    color: var(--dd-white);
}

.dd-card--cta-dark {
    background: var(--dd-secondary);
    border: none;
    padding: var(--dd-space-2xl);
    color: var(--dd-white);
}

.dd-card--cta-dark h2,
.dd-card--cta-dark h3,
.dd-card--cta-dark h4 {
    color: var(--dd-white);
}

/* Card grid layout */
.dd-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--dd-space-lg);
}

/* Badge / pill for cards */
.dd-badge {
    display: inline-block;
    padding: var(--dd-space-xs) var(--dd-space-sm);
    font-family: var(--dd-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--dd-radius-full);
    background-color: var(--dd-primary);
    color: var(--dd-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.dd-hero {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 60%, #3a2a1a 100%);
    position: relative;
}

/* When hero background image is available, uncomment and update URL:
.dd-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                      url('../images/hero-dumpster-driveway.jpg');
    background-size: cover;
    background-position: center;
}
*/

/* ==========================================================================
   Trust Bar — Badge Layout
   ========================================================================== */

.dd-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--dd-space-lg) var(--dd-space-xl);
}

.dd-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--dd-space-xs);
    font-family: var(--dd-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dd-secondary);
    white-space: nowrap;
}

.dd-trust-badge__stars {
    color: #F5A623;
    font-size: 1rem;
    letter-spacing: -1px;
}

.dd-trust-badge__grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #00529B;
    color: var(--dd-white);
    font-family: var(--dd-font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--dd-radius-sm);
}

.dd-trust-badge__icon {
    color: var(--dd-primary);
    font-size: 1.125rem;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.dd-review-aggregate {
    text-align: center;
    margin-top: var(--dd-space-lg);
}

.dd-review-stars {
    font-size: 2rem;
    color: #F5A623;
    letter-spacing: 2px;
}

.dd-review-rating {
    font-family: var(--dd-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dd-secondary);
    margin: var(--dd-space-xs) 0;
}

.dd-review-count {
    font-size: 0.9375rem;
    color: var(--dd-dark-gray);
    margin: 0;
}

/* ==========================================================================
   Rescue Partnership Section
   ========================================================================== */

.dd-rescue-section {
    position: relative;
}

/* ==========================================================================
   Size Card Price Display
   ========================================================================== */

.dd-size-price {
    line-height: 1.1;
}

/* ==========================================================================
   Social Links (Footer)
   ========================================================================== */

.dd-social-links {
    display: flex;
    gap: var(--dd-space-sm);
    margin-top: var(--dd-space-sm);
}

.dd-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--dd-radius-sm);
    background-color: var(--dd-secondary-light);
    color: var(--dd-mid-gray);
    font-family: var(--dd-font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--dd-transition), color var(--dd-transition);
}

.dd-social-links a:hover {
    background-color: var(--dd-primary);
    color: var(--dd-white);
}

.dd-footer__address {
    font-size: 0.875rem;
    color: var(--dd-mid-gray);
}

/* ==========================================================================
   Forms (WPForms overrides)
   ========================================================================== */

.dd-form-container {
    background: var(--dd-white);
    border: 1px solid var(--dd-light-gray);
    border-radius: var(--dd-radius-lg);
    padding: var(--dd-space-xl);
}

/* WPForms input styling */
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form input[type="url"],
div.wpforms-container-full .wpforms-form input[type="number"],
div.wpforms-container-full .wpforms-form select,
div.wpforms-container-full .wpforms-form textarea {
    background: var(--dd-white);
    border: 1px solid var(--dd-light-gray);
    border-radius: var(--dd-radius-md);
    padding: 12px 16px;
    font-family: var(--dd-font-body);
    font-size: 1rem;
    color: var(--dd-secondary);
    transition: border-color var(--dd-transition), box-shadow var(--dd-transition);
}

div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form select:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
    border-color: var(--dd-primary);
    box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.15);
    outline: none;
}

div.wpforms-container-full .wpforms-form .wpforms-field-label {
    font-family: var(--dd-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dd-secondary);
}

div.wpforms-container-full .wpforms-form textarea {
    min-height: 120px;
}

div.wpforms-container-full .wpforms-form button[type="submit"],
div.wpforms-container-full .wpforms-form .wpforms-submit {
    background-color: var(--dd-cta-primary);
    color: var(--dd-white);
    border: none;
    border-radius: var(--dd-radius-md);
    padding: 18px 36px;
    font-family: var(--dd-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    width: 100%;
    transition: background-color var(--dd-transition);
}

div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
div.wpforms-container-full .wpforms-form .wpforms-submit:hover {
    background-color: var(--dd-cta-primary-hover);
}

/* ==========================================================================
   Top Bar (above header — phone + hours)
   ========================================================================== */

.dd-top-bar {
    background-color: var(--dd-secondary-dark);
    color: var(--dd-white);
    font-size: 0.875rem;
    padding: var(--dd-space-xs) 0;
}

.dd-top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--dd-space-sm);
}

.dd-top-bar a {
    color: var(--dd-white);
    text-decoration: none;
}

.dd-top-bar a:hover {
    color: var(--dd-primary-light);
}

/* ==========================================================================
   Header CTA Area
   ========================================================================== */

.dd-header-cta {
    display: flex;
    align-items: center;
    gap: var(--dd-space-md);
}

.dd-header-cta__phone {
    font-family: var(--dd-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dd-primary);
    white-space: nowrap;
}

.dd-header-cta__phone a {
    color: var(--dd-primary);
}

.dd-header-cta__phone a:hover {
    color: var(--dd-primary-dark);
}

/* ==========================================================================
   Sticky Mobile CTA
   ========================================================================== */

.dd-mobile-cta {
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.dd-footer {
    background-color: var(--dd-secondary-dark);
    color: var(--dd-mid-gray);
    padding: var(--dd-space-2xl) 0 var(--dd-space-lg);
}

.dd-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--dd-space-lg);
}

.dd-footer h3,
.dd-footer h4 {
    color: var(--dd-white);
    font-size: 1.125rem;
    margin-bottom: var(--dd-space-sm);
}

.dd-footer a {
    color: var(--dd-mid-gray);
}

.dd-footer a:hover {
    color: var(--dd-primary);
}

.dd-footer__bottom {
    border-top: 1px solid var(--dd-secondary-light);
    margin-top: var(--dd-space-lg);
    padding-top: var(--dd-space-md);
    text-align: center;
    font-size: 0.875rem;
    color: var(--dd-mid-gray);
}

/* ==========================================================================
   FAQ Accordion (HTML details/summary)
   ========================================================================== */

.dd-faq-item {
    border-bottom: 1px solid var(--dd-light-gray);
    padding: var(--dd-space-md) 0;
}

.dd-faq-item summary {
    font-family: var(--dd-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--dd-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dd-faq-item summary::-webkit-details-marker {
    display: none;
}

.dd-faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dd-primary);
    transition: transform var(--dd-transition);
}

.dd-faq-item[open] summary::after {
    content: "\2212";
}

.dd-faq-item p {
    margin-top: var(--dd-space-sm);
    color: var(--dd-dark-gray);
}

/* ==========================================================================
   How It Works Steps
   ========================================================================== */

.dd-steps {
    counter-reset: step-counter;
}

.dd-step {
    counter-increment: step-counter;
    position: relative;
    padding-left: var(--dd-space-3xl);
    margin-bottom: var(--dd-space-xl);
}

.dd-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--dd-primary);
    color: var(--dd-white);
    font-family: var(--dd-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: var(--dd-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-step h3 {
    margin-bottom: var(--dd-space-xs);
}

/* ==========================================================================
   Responsive — Mobile First
   ========================================================================== */

/* Mobile: sticky CTA bar */
@media (max-width: 767px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .dd-section {
        padding: var(--dd-space-2xl) 0;
    }

    /* Hero responsive */
    .dd-hero h1 {
        font-size: 2rem !important;
    }

    /* Trust badges stack on mobile */
    .dd-trust-badges {
        flex-direction: column;
        gap: var(--dd-space-sm);
    }

    /* Review stars smaller on mobile */
    .dd-review-stars {
        font-size: 1.5rem;
    }

    .dd-review-rating {
        font-size: 1.25rem;
    }

    .dd-mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--dd-white);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
        padding: var(--dd-space-sm);
        gap: var(--dd-space-sm);
        z-index: 999;
    }

    .dd-mobile-cta .dd-btn {
        flex: 1;
        text-align: center;
        padding: 14px 8px;
    }

    /* Add padding at bottom so content isn't hidden behind sticky CTA */
    body {
        padding-bottom: 70px;
    }

    .dd-header-cta {
        display: none;
    }

    .dd-top-bar__hours {
        display: none;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .dd-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dd-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .dd-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dd-card-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .dd-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dd-top-bar__inner {
        flex-wrap: nowrap;
    }
}

/* ==========================================================================
   WordPress Block Editor Overrides
   ========================================================================== */

/* Gutenberg buttons */
.wp-block-button__link {
    font-family: var(--dd-font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--dd-radius-md);
    transition: background-color var(--dd-transition), box-shadow var(--dd-transition);
}

/* Gutenberg columns spacing */
.wp-block-columns {
    gap: var(--dd-space-lg);
}

/* Gutenberg separator */
.wp-block-separator {
    border-color: var(--dd-light-gray);
}

/* Ensure images are responsive */
.wp-block-image img {
    height: auto;
    max-width: 100%;
}

/* Gutenberg group blocks with background */
.wp-block-group.has-background {
    padding: var(--dd-space-2xl) var(--dd-space-md);
}

/* ==========================================================================
   GeneratePress Override Corrections
   ========================================================================== */

/* Override GP's default link underline behavior */
a {
    text-decoration: none;
}

/* Override GP's default button colors for blocks with .has-background */
a.wp-block-button__link.has-background {
    text-decoration: none;
}

/* Override GP's content container padding that interferes with full-width sections */
.one-container .site-main .wp-block-group__inner-container {
    padding: 0;
}

/* Override GP's separate-container article padding for full-width homepage */
.page-id-6 .inside-article {
    padding: 0;
}

.page-id-6 .entry-content {
    padding: 0;
}

/* Ensure full-width blocks actually span full width */
.full-width-content .entry-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* GP footer credit bar — style to match brand */
.site-info {
    background-color: var(--dd-secondary-dark);
    color: var(--dd-mid-gray);
    font-size: 0.8125rem;
}

.site-info a {
    color: var(--dd-mid-gray);
}

.site-info a:hover {
    color: var(--dd-primary);
}

/* Override GP's nav hover color to use brand orange */
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a {
    color: var(--dd-primary);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--dd-primary);
}

/* Override GP default button for non-brand-colored buttons */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background) {
    background-color: var(--dd-primary);
    color: var(--dd-white);
    font-family: var(--dd-font-heading);
    font-weight: 700;
    border-radius: var(--dd-radius-md);
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
a.wp-block-button__link:not(.has-background):hover {
    background-color: var(--dd-primary-dark);
    color: var(--dd-white);
}

/* =========================================================================
   Sticky Header & Dark Header (Phase 15)
   ========================================================================= */

/* Sticky header — top bar scrolls away, header sticks */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Hide text site title/tagline when logo is present */
.site-header .site-title,
.site-header .site-description {
    display: none;
}

/* Logo sizing in header */
.site-header .custom-logo {
    max-height: 44px;
    width: auto;
}

/* Nav inline with header — remove separate nav background */
.nav-float-right .main-navigation {
    background-color: transparent;
}

/* Nav link styling for dark header */
.nav-float-right .main-navigation .main-nav ul li a {
    color: #FFFFFF;
    font-family: var(--dd-font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
}

.nav-float-right .main-navigation .main-nav ul li a:hover,
.nav-float-right .main-navigation .main-nav ul li.sfHover > a {
    color: var(--dd-primary);
    background-color: rgba(255,255,255,0.08);
}

/* Submenu dropdown styling */
.nav-float-right .main-navigation ul ul {
    background-color: #363636;
    border-top: 2px solid var(--dd-primary);
    min-width: 200px;
}

.nav-float-right .main-navigation ul ul li a {
    color: #FFFFFF;
    font-size: 14px;
    padding: 10px 20px;
}

.nav-float-right .main-navigation ul ul li a:hover {
    background-color: var(--dd-primary);
    color: #FFFFFF;
}

/* Header CTA in dark header context */
.dd-header-cta__phone a {
    color: var(--dd-primary) !important;
}

/* Top bar — ensure it doesn't conflict with sticky header */
.dd-top-bar {
    position: relative;
    z-index: 998;
}

/* =========================================================================
   CTA Button Hover Interactions (Phase 15A)
   ========================================================================= */
.elementor-button-wrapper .elementor-button {
    transition: all 0.18s ease;
}

.elementor-button-wrapper .elementor-button:hover {
    transform: scale(1.04);
    filter: brightness(1.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =========================================================================
   Global Card Hover Effects (Phase 15B)
   ========================================================================= */

/* =========================================================================
   Hero — Phase 18C: Bright image, localized text treatment only
   ========================================================================= */

/* Hero text container — NO background rectangle, text effects only */
.dd-hero-text-backdrop {
    background: none;
    padding: 40px 30px 30px;
    max-width: 780px;
    margin: 0 auto;
}

/* Headline — strong multi-layer text shadow */
.dd-hero-text-backdrop h1 {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.95),
        0 0 8px rgba(0,0,0,0.9),
        0 0 20px rgba(0,0,0,0.7),
        0 0 32px rgba(0,0,0,0.5);
}

/* Price line */
.dd-hero-price {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.95),
        0 0 8px rgba(0,0,0,0.9),
        0 0 20px rgba(0,0,0,0.7),
        0 0 32px rgba(0,0,0,0.5);
}

/* Subheadline — layered glow radiating from glyphs only, subtle stroke */
.dd-hero-text-backdrop p {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.95),
        0 0 6px rgba(0,0,0,0.95),
        0 0 16px rgba(0,0,0,0.75),
        0 0 28px rgba(0,0,0,0.55);
    -webkit-text-stroke: 0.4px rgba(0,0,0,0.75);
    paint-order: stroke fill;
}

/* Trust micro-line below buttons */
.dd-hero-section .elementor-heading-title {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.95),
        0 0 6px rgba(0,0,0,0.95),
        0 0 16px rgba(0,0,0,0.75);
}

@media (max-width: 767px) {
    .dd-hero-text-backdrop {
        padding: 24px 16px 20px;
        max-width: 100%;
        background: none;
    }

    .dd-hero-text-backdrop h1 {
        font-size: 28px !important;
    }

    .dd-hero-price {
        font-size: 40px !important;
    }

    .dd-hero-text-backdrop p:last-child {
        font-size: 16px !important;
    }
}

/* =========================================================================
   Section Dividers — Phase 18C: 75% width orange gradient bars
   ========================================================================= */
.dd-divider {
    width: 75%;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent 0%, #F26A21 30%, #F26A21 70%, transparent 100%);
    border: none;
}

/* =========================================================================
   Project Cards — Phase 18C: Clickable selection with hover effects
   ========================================================================= */
.dd-size-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.dd-size-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 12px 36px rgba(242,106,33,0.2),
        0 4px 12px rgba(0,0,0,0.08),
        0 0 0 2px rgba(242,106,33,0.3);
    border-color: #F26A21 !important;
}

.dd-size-card:hover .dd-card-cta {
    background: #D4590F;
}

/* =========================================================================
   Button Hover — Phase 18C: Scale + brightness + shadow
   ========================================================================= */
.elementor-button-wrapper .elementor-button {
    transition: transform 0.2s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.elementor-button-wrapper .elementor-button:hover {
    transform: scale(1.04);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* =========================================================================
   Link Hover — Phase 18C: Color shift only
   ========================================================================= */
a:not(.elementor-button):hover {
    color: #F26A21;
}

/* =========================================================================
   Review Carousel (Phase 17B)
   ========================================================================= */
.dd-reviews-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dd-reviews-carousel::-webkit-scrollbar {
    display: none;
}

.dd-carousel-wrapper {
    overflow: hidden;
}

.dd-carousel-arrow {
    transition: all 0.2s ease;
}

.dd-carousel-arrow:hover {
    background: #F26A21 !important;
    color: #fff !important;
    border-color: #F26A21 !important;
    transform: translateY(-50%) scale(1.1);
}

/* Review cards — no hover effect (not clickable) */
.dd-review-card {
    transition: none;
}

@media (max-width: 767px) {
    .dd-carousel-arrow {
        display: none !important;
    }

    .dd-reviews-carousel {
        padding: 10px 4px;
    }
}

/* =========================================================================
   Quote Form Two-Column Layout (Phase 15B)
   ========================================================================= */

/* Hide image column on mobile */
@media (max-width: 767px) {
    .quote-form-image-col {
        display: none !important;
    }
}

/* Compact form fields inside quote form section — Phase 18A reduced height */
.quote-form-section .wpforms-form .wpforms-field {
    margin-bottom: 6px;
}

.quote-form-section .wpforms-form input[type="text"],
.quote-form-section .wpforms-form input[type="email"],
.quote-form-section .wpforms-form input[type="tel"],
.quote-form-section .wpforms-form select {
    padding: 8px 12px !important;
    font-size: 0.9375rem !important;
}

.quote-form-section .wpforms-form textarea {
    min-height: 60px !important;
    padding: 8px 12px !important;
    font-size: 0.9375rem !important;
}

.quote-form-section .wpforms-form .wpforms-field-label {
    font-size: 0.8125rem !important;
    margin-bottom: 2px !important;
}

.quote-form-section .wpforms-form button[type="submit"],
.quote-form-section .wpforms-form .wpforms-submit {
    padding: 12px 24px !important;
    font-size: 1rem !important;
}

/* =========================================================================
   Footer Social Icons — SVG (Fix Sprint)
   ========================================================================= */
.dd-social-links a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Footer Book Now — black text on orange */
.dd-footer .dd-btn--primary {
    color: #1A1A1A;
}

.dd-footer .dd-btn--primary:hover,
.dd-footer .dd-btn--primary:focus {
    color: #1A1A1A;
}

/* =========================================================================
   Blog Archive — Modern Card Grid (Phase 20)
   ========================================================================= */
body.blog,
body.single-post {
    overflow-x: hidden;
}

body.blog .site-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px 40px;
}
body.blog .site-main > .dd-hero-section,
body.blog .site-main > .dd-blog-archive-hero {
    grid-column: 1 / -1;
}
body.blog .site-main > nav,
body.blog .site-main > .paging-navigation,
body.blog .site-main > .posts-navigation {
    grid-column: 1 / -1;
}
body.blog .site-main article.post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
body.blog .site-main article.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
body.blog .site-main article.post .inside-article {
    display: flex;
    flex-direction: column;
    flex: 1;
}
/* Reorder so image is on top */
body.blog .site-main .post-image {
    order: -3;
}
body.blog .site-main .dd-archive-cat-badge {
    order: -2;
    margin-top: 14px;
}
body.blog .site-main .entry-header {
    order: -1;
}
body.blog .site-main .post-image {
    overflow: hidden;
    line-height: 0;
}
body.blog .site-main .post-image a {
    display: block;
}
body.blog .site-main .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
body.blog .site-main article.post:hover .post-image img {
    transform: scale(1.06);
}
body.blog .site-main .inside-article .entry-header {
    padding: 20px 20px 0;
}
body.blog .site-main .inside-article .entry-header .entry-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
}
body.blog .site-main .inside-article .entry-header .entry-title a {
    color: #2D2D2D;
    text-decoration: none;
    transition: color 0.2s ease;
}
body.blog .site-main article.post:hover .entry-title a {
    color: #F26A21;
}
body.blog .site-main .inside-article .entry-meta {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}
body.blog .site-main .inside-article .entry-summary {
    padding: 10px 20px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    flex: 1;
}
/* Archive category badge */
.dd-archive-cat-badge {
    display: inline-block;
    background: #F26A21;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0 20px;
}
@media (max-width: 1024px) {
    body.blog .site-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 640px) {
    body.blog .site-main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px 30px;
    }
    body.blog .site-main .post-image img {
        height: 180px;
    }
}
/* Blog archive hero */
.dd-blog-archive-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px -40px 30px;
    width: calc(100% + 80px);
}
.dd-blog-archive-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.08));
}
.dd-blog-archive-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}
.dd-blog-archive-hero__content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.95), 0 0 16px rgba(0,0,0,.75), 0 0 28px rgba(0,0,0,.55);
}
.dd-blog-archive-hero__content p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 17px;
    color: rgba(255,255,255,0.95);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 8px rgba(0,0,0,.5);
}
body.blog .site-main > .dd-blog-archive-hero {
    grid-column: 1 / -1;
}
@media (max-width: 768px) {
    .dd-blog-archive-hero {
        min-height: 240px;
        width: auto;
        margin: -30px -30px 20px;
    }
    .dd-blog-archive-hero__content {
        padding: 30px 20px;
    }
    .dd-blog-archive-hero__content h1 {
        font-size: 22px;
        overflow-wrap: break-word;
    }
    .dd-blog-archive-hero__content h1 br {
        display: none;
    }
    .dd-blog-archive-hero__content p {
        font-size: 13px;
    }
}

/* =========================================================================
   Single Post — Template_2026 (Phase 20)
   ========================================================================= */

/* Hero */
.dd-blog-post-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px -40px 30px;
    width: calc(100% + 80px);
}
.dd-blog-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.18));
}
.dd-blog-post-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 50px 30px;
    max-width: 800px;
}
.dd-blog-post-hero__badge {
    display: inline-block;
    background: #F26A21;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.dd-blog-post-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 14px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 0 12px rgba(0,0,0,0.4);
}
.dd-blog-post-hero__meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.dd-meta-sep {
    margin: 0 8px;
}

/* Content layout: inside-article becomes flex container */
body.single-post .inside-article {
    display: flex;
    flex-wrap: wrap;
    gap: 0 40px;
    align-items: flex-start;
}
body.single-post .entry-content {
    flex: 1;
    min-width: 0;
    max-width: 720px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}
body.single-post .entry-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #2D2D2D;
    margin-top: 36px;
    margin-bottom: 12px;
}
body.single-post .entry-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2D2D2D;
}
body.single-post .entry-content a {
    color: #F26A21;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.single-post .entry-content ul,
body.single-post .entry-content ol {
    padding-left: 24px;
}
body.single-post .entry-content li {
    margin-bottom: 6px;
}

/* Sidebar CTA */
.dd-blog-sidebar-cta {
    width: 280px;
    flex-shrink: 0;
}
.dd-sidebar-cta-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.10);
    text-align: center;
    border-top: 4px solid #F26A21;
}
.dd-sidebar-cta-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #F26A21;
}
.dd-sidebar-cta-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #2D2D2D;
    margin: 0 0 8px;
}
.dd-sidebar-cta-card > p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 0 18px;
}
.dd-sidebar-cta-btn {
    display: block;
    width: 100%;
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-radius: 8px;
    border: 2px solid #1A1A1A;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.dd-sidebar-cta-phone {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #2D2D2D;
    text-decoration: none;
    margin-bottom: 10px;
}
.dd-sidebar-cta-phone:hover {
    color: #F26A21;
}
.dd-sidebar-cta-sub {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Hide GP defaults on single posts (hero replaces them) */
body.single-post .entry-header {
    display: none;
}
body.single-post .post-image,
body.single-post .featured-image {
    display: none;
}
body.single-post .entry-meta,
body.single-post .cat-links,
body.single-post .post-navigation {
    display: none;
}

/* Trust section */
.dd-blog-trust-section {
    background: #F9F9F9;
    border-top: 1px solid #E8E8E8;
    padding: 30px 20px;
    margin-top: 10px;
}
.dd-blog-trust-items {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}
.dd-trust-item {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}
.dd-trust-check {
    color: #F26A21;
    font-weight: 700;
    margin-right: 4px;
}

/* Mobile adjustments for single post template */
@media (max-width: 768px) {
    .dd-blog-post-hero {
        min-height: 240px;
        width: auto;
        margin: -30px -30px 20px;
    }
    .dd-blog-post-hero__title {
        font-size: 18px;
        overflow-wrap: break-word;
    }
    .dd-blog-post-hero__content {
        padding: 20px 16px;
    }
    body.single-post .inside-article {
        flex-direction: column;
        gap: 20px;
    }
    .dd-blog-sidebar-cta {
        width: 100%;
        order: -1;
    }
    .dd-sidebar-cta-card {
        position: static;
    }
    .dd-blog-trust-items {
        gap: 16px;
    }
    .dd-trust-item {
        font-size: 13px;
    }
}

/* ==========================================================================
   Service Area — Clickable City/Neighborhood Cards (Phase 24)
   ========================================================================== */

.dd-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.dd-area-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dd-area-card:hover {
    border-color: var(--dd-primary);
    box-shadow: 0 2px 8px rgba(242, 106, 33, 0.12);
}

.dd-area-card--city {
    border-left: 3px solid var(--dd-primary);
}

.dd-area-card--hood {
    border-left: 3px solid #FFB900;
}

.dd-area-card__name {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #2D2D2D;
    margin-bottom: 4px;
}

.dd-area-card__label {
    font-family: Open Sans, sans-serif;
    font-size: 12px;
    color: #999;
}

@media (max-width: 480px) {
    .dd-area-grid {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────────────────────────────────
   AMELIA BOOKING V3 — Dumpster Dogs Branding Overrides
   Colors applied via CSS custom properties on the wrapper.
   ────────────────────────────────────────────────────────────────── */

/* Brand colors — override Amelia defaults via CSS custom properties */
.amelia-v2-booking .am-fs__wrapper {
    --am-c-primary: #F26A21 !important;
    --am-c-sb-bgr: #2D2D2D !important;
    --am-c-sb-text: #FFFFFF !important;
    --am-c-main-heading-text: #2D2D2D !important;
    --am-c-btn-prim: #F26A21 !important;
    --am-c-btn-prim-text: #FFFFFF !important;
    --am-c-btn-sec: #2D2D2D !important;
    --am-c-btn-sec-text: #FFFFFF !important;
}

/* Calendar date cells — orange highlight */
.amelia-v2-booking .am-fs__wrapper .am-fs__main {
    --am-c-cal-init: #F26A21 !important;
    --am-c-cal-init-text: #F26A21 !important;
    --am-c-cal-selected: #F26A21 !important;
    --am-c-cal-selected-text: #FFFFFF !important;
    --am-c-cal-low: #F26A21 !important;
    --am-c-cal-low-text: #F26A21 !important;
    --am-c-cal-high: #F26A21 !important;
    --am-c-cal-high-text: #F26A21 !important;
}

/* Extras: show descriptions expanded by default (scoped to extras step only) */
.amelia-v2-booking #amelia-container .am-fs__extras-main .am-collapse-item__content-close {
    height: auto !important;
    overflow: visible !important;
    animation: none !important;
}

/* Hide the "Learn More" trigger on extras only */
.amelia-v2-booking #amelia-container .am-fs__extras-main .am-collapse-item__trigger {
    display: none !important;
}

/* Hide "Powered by Amelia" if it shows */
.amelia-v2-booking #amelia-container [class*="powered-by"] {
    display: none !important;
}
