:root {
    --dfwcc-ink: #102f2d;
    --dfwcc-deep: #0b3b38;
    --dfwcc-deeper: #092725;
    --dfwcc-gold: #b9924f;
    --dfwcc-gold-light: #d8bf8a;
    --dfwcc-cream: #f5f2ec;
    --dfwcc-paper: #fbfaf7;
    --dfwcc-border: #ded9cf;
    --dfwcc-text: #243330;
    --dfwcc-muted: #66726f;
    --dfwcc-serif: "Cormorant Garamond", Georgia, serif;
    --dfwcc-sans: "Inter", Arial, sans-serif;
    --dfwcc-container: 1180px;
}

body.dfwcc-core-active {
    margin: 0;
    color: var(--dfwcc-text);
    background: var(--dfwcc-paper);
    font-family: var(--dfwcc-sans);
    -webkit-font-smoothing: antialiased;
}

/*
 * Defensive fallback only. Server-side removal of the GeneratePress
 * header/navigation/title/sidebar/footer actions and filters
 * (dfw-cleaning-core.php) is the primary suppression mechanism; these
 * rules exist in case a GeneratePress or GP Premium update changes
 * hook behavior before this plugin is updated to match. Every
 * selector below is scoped under a dfwcc- body class - never global.
 */
body.dfwcc-custom-header-active #masthead,
body.dfwcc-custom-header-active .site-header,
body.dfwcc-custom-header-active #site-navigation,
body.dfwcc-custom-header-active .main-navigation,
body.dfwcc-custom-header-active .mobile-menu-control-wrapper,
body.dfwcc-custom-header-active .site-header .menu-toggle,
body.dfwcc-custom-header-active .main-navigation .menu-toggle,
body.dfwcc-custom-footer-active .site-footer,
body.dfwcc-custom-footer-active .site-info,
body.dfwcc-custom-footer-active #footer-widgets,
body.dfwcc-custom-footer-active .footer-widgets {
    display: none !important;
}

body.dfwcc-full-width-page #right-sidebar,
body.dfwcc-full-width-page .inside-right-sidebar,
body.dfwcc-full-width-page .widget-area.sidebar,
body.dfwcc-full-width-page .entry-header,
body.dfwcc-full-width-page .page-header,
body.dfwcc-full-width-page h1.entry-title,
body.dfwcc-full-width-page .comments-area,
body.dfwcc-full-width-page .post-navigation {
    display: none !important;
}

body.dfwcc-full-width-page .site.grid-container,
body.dfwcc-full-width-page .site-content,
body.dfwcc-full-width-page #primary,
body.dfwcc-full-width-page .content-area,
body.dfwcc-full-width-page .inside-article,
body.dfwcc-full-width-page main.site-main,
body.dfwcc-full-width-page article,
body.dfwcc-full-width-page .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Never hide the DFW custom header, homepage, quote form, or footer. */
body.dfwcc-full-width-page .dfwcc-site-header,
body.dfwcc-full-width-page .dfwcc-homepage,
body.dfwcc-full-width-page .dfwcc-shared-form,
body.dfwcc-full-width-page .dfwcc-form-fallback,
body.dfwcc-full-width-page .dfwcc-site-footer {
    display: revert !important;
}

.dfwcc-site-header {
    position: relative;
    z-index: 999;
    background: rgba(251, 250, 247, 0.97);
    border-bottom: 1px solid rgba(16, 47, 45, 0.12);
    backdrop-filter: blur(12px);
}

.dfwcc-header-inner {
    max-width: var(--dfwcc-container);
    min-height: 104px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 30px;
}

.dfwcc-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dfwcc-ink);
    text-decoration: none;
    line-height: 1;
}

.dfwcc-logo-mark {
    font-family: var(--dfwcc-serif);
    font-weight: 600;
    font-size: 44px;
    letter-spacing: -2px;
}

.dfwcc-logo-words {
    font-family: var(--dfwcc-sans);
    font-size: 10px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 2.1px;
}

.dfwcc-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-height: 88px;
    object-fit: contain;
}

.dfwcc-primary-nav {
    justify-self: end;
}

.dfwcc-menu,
.dfwcc-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dfwcc-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.dfwcc-menu > li {
    position: relative;
}

.dfwcc-menu a {
    display: block;
    padding: 30px 0;
    color: #243330;
    font-family: var(--dfwcc-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
}

.dfwcc-menu > li > a::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    margin-top: 5px;
    background: var(--dfwcc-gold);
    transition: width 180ms ease;
}

.dfwcc-menu > li:hover > a::after,
.dfwcc-menu > li.current-menu-item > a::after {
    width: 100%;
}

.dfwcc-menu .sub-menu {
    position: absolute;
    left: -18px;
    top: calc(100% - 8px);
    min-width: 230px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--dfwcc-border);
    box-shadow: 0 18px 35px rgba(9, 39, 37, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 180ms ease;
}

.dfwcc-menu li:hover > .sub-menu,
.dfwcc-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dfwcc-menu .sub-menu a {
    padding: 10px 0;
    font-size: 11px;
}

.dfwcc-header-cta,
.dfwcc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 23px;
    border: 1px solid transparent;
    background: var(--dfwcc-ink);
    color: #fff;
    font-family: var(--dfwcc-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.dfwcc-header-cta:hover,
.dfwcc-button:hover {
    color: #fff;
    background: var(--dfwcc-deeper);
    transform: translateY(-1px);
}

.dfwcc-button-gold {
    background: var(--dfwcc-gold);
    color: #fff;
}

.dfwcc-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
}

.dfwcc-menu-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--dfwcc-ink);
}

.dfwcc-trust-strip {
    background: var(--dfwcc-deep);
    color: #fff;
}

.dfwcc-trust-inner {
    max-width: var(--dfwcc-container);
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.dfwcc-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.dfwcc-trust-item:last-child {
    border-right: 0;
}

.dfwcc-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    color: var(--dfwcc-gold-light);
}

.dfwcc-icon svg {
    width: 100%;
    height: 100%;
}

.dfwcc-trust-item strong,
.dfwcc-trust-item small {
    display: block;
    line-height: 1.35;
}

.dfwcc-trust-item strong {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dfwcc-trust-item small {
    margin-top: 2px;
    color: rgba(255,255,255,.76);
    font-size: 10px;
}

/*
 * Shared Fluent Forms quote form. Centralized here (not in the Homepage
 * plugin) so the same [dfwcc_quote_form] output looks consistent on the
 * homepage CTA, the Contact page, and any future service/industry/
 * service-area page. Everything is scoped under .dfwcc-quote-form-shell /
 * .dfwcc-shared-form so it never leaks into wp-admin or unrelated forms.
 */
.dfwcc-quote-form-shell {
    background: var(--dfwcc-deep);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 4px;
    padding: 40px;
}

.dfwcc-shared-form fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.dfwcc-shared-form .ff-el-group:has([data-name="service_needed"]),
.dfwcc-shared-form .ff-el-group:has([data-name="message"]),
.dfwcc-shared-form .ff-el-group:has([data-name="consent"]),
.dfwcc-shared-form .ff_submit_btn_wrapper {
    grid-column: 1 / -1;
}

.dfwcc-shared-form .ff-el-form-control,
.dfwcc-shared-form select,
.dfwcc-shared-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, .05) !important;
    color: #fff !important;
    font-family: var(--dfwcc-sans);
    font-size: 13px !important;
    box-shadow: none !important;
    transition: border-color 160ms ease, background 160ms ease;
}

.dfwcc-shared-form textarea {
    min-height: 110px;
}

.dfwcc-shared-form ::placeholder {
    color: rgba(255, 255, 255, .55) !important;
    opacity: 1;
}

.dfwcc-shared-form .ff-el-form-control:focus,
.dfwcc-shared-form select:focus,
.dfwcc-shared-form textarea:focus {
    border-color: var(--dfwcc-gold) !important;
    background: rgba(255, 255, 255, .08) !important;
    outline: 2px solid rgba(185, 146, 79, .4);
    outline-offset: 1px;
}

.dfwcc-shared-form label,
.dfwcc-shared-form .ff-el-input--label label {
    display: inline-block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .92) !important;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dfwcc-shared-form .ff-el-is-required {
    color: rgba(255, 255, 255, .92) !important;
}

.dfwcc-shared-form .ff-el-form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.dfwcc-shared-form input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-height: 0;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--dfwcc-gold);
}

.dfwcc-shared-form .ff-el-form-check-label span {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
}

.dfwcc-shared-form button,
.dfwcc-shared-form .ff-btn-submit {
    width: 100%;
    min-height: 52px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--dfwcc-gold) !important;
    color: var(--dfwcc-ink) !important;
    font-family: var(--dfwcc-sans);
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.dfwcc-shared-form button:hover,
.dfwcc-shared-form .ff-btn-submit:hover {
    background: var(--dfwcc-gold-light) !important;
    transform: translateY(-1px);
}

.dfwcc-shared-form button:focus-visible,
.dfwcc-shared-form .ff-btn-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.dfwcc-shared-form .error {
    display: block;
    margin-top: 6px;
    color: #ffb4b0 !important;
    font-size: 11px !important;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 760px) {
    .dfwcc-quote-form-shell {
        padding: 28px 20px;
    }

    .dfwcc-shared-form fieldset {
        grid-template-columns: 1fr;
    }
}

.dfwcc-form-fallback {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}

.dfwcc-form-fallback h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--dfwcc-serif);
    font-size: 30px;
}

.dfwcc-site-footer {
    position: relative;
    z-index: 5;
    background: #142323;
    color: rgba(255,255,255,.75);
}

.dfwcc-footer-inner {
    max-width: var(--dfwcc-container);
    margin: 0 auto;
    padding: 54px 24px 44px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 56px;
}

.dfwcc-logo-footer {
    color: #fff;
}

.dfwcc-footer-brand p {
    max-width: 290px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.8;
}

.dfwcc-socials {
    display: flex;
    gap: 9px;
}

.dfwcc-socials a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
}

.dfwcc-footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dfwcc-footer-column h3 {
    margin: 5px 0 12px;
    color: #fff;
    font-family: var(--dfwcc-sans);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dfwcc-footer-column a,
.dfwcc-footer-column span {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.dfwcc-footer-column a:hover {
    color: var(--dfwcc-gold-light);
}

.dfwcc-footer-bottom {
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,.11);
    color: rgba(255,255,255,.6);
    text-align: center;
    font-size: 11px;
}

@media (max-width: 1080px) {
    .dfwcc-header-inner {
        grid-template-columns: auto auto 1fr;
        min-height: 90px;
    }
    .dfwcc-logo-image {
        max-height: 74px;
    }
    .dfwcc-menu-toggle {
        display: block;
        justify-self: end;
        grid-column: 3;
    }
    .dfwcc-primary-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        background: #fff;
        border-top: 1px solid var(--dfwcc-border);
        box-shadow: 0 18px 36px rgba(9,39,37,.12);
    }
    .dfwcc-primary-nav.is-open {
        display: block;
    }
    .dfwcc-menu {
        display: block;
        padding: 16px 24px 24px;
    }
    .dfwcc-menu a {
        padding: 12px 0;
    }
    .dfwcc-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 18px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .dfwcc-header-cta {
        display: none;
    }
    .dfwcc-trust-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .dfwcc-trust-item:nth-child(2) {
        border-right: 0;
    }
    .dfwcc-trust-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.2);
    }
    .dfwcc-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .dfwcc-header-inner {
        min-height: 76px;
        padding: 0 18px;
    }
    .dfwcc-logo-mark {
        font-size: 36px;
    }
    .dfwcc-logo-words {
        font-size: 8px;
    }
    .dfwcc-logo-image {
        max-height: 60px;
    }
    .dfwcc-trust-inner {
        grid-template-columns: 1fr;
        padding: 8px 18px;
    }
    .dfwcc-trust-item {
        justify-content: flex-start;
        padding: 14px 4px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.17);
    }
    .dfwcc-trust-item:last-child {
        border-bottom: 0;
    }
    .dfwcc-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 42px 22px 34px;
    }
}

.dfwcc-floating-call {
    position: fixed;
    right: 20px;
    top: 45%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    background: var(--dfwcc-gold);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(9, 39, 37, 0.28);
    text-decoration: none;
    line-height: 1;
    transition: background-color 180ms ease, transform 180ms ease;
}

.dfwcc-floating-call:hover,
.dfwcc-floating-call:focus-visible {
    background: var(--dfwcc-deep);
    color: #fff;
    transform: translateY(calc(-50% - 2px));
}

.dfwcc-floating-call svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.dfwcc-floating-call-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: var(--dfwcc-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    padding-right: 4px;
}

@media (min-width: 1081px) {
    .dfwcc-floating-call {
        right: 36px;
    }

    .dfwcc-floating-call-text {
        font-size: 15px;
    }
}

body:has(.dfwcc-primary-nav.is-open) .dfwcc-floating-call {
    display: none;
}
