/*
Theme Name: Hello Elementor Child - DC Home Renovations
Theme URI: https://dchomerenovationsinc.com
Description: Child theme for DC Home Renovations Inc. Holds the luxury white/black/gold brand tokens, fonts, and light performance tweaks. Built on Hello Elementor.
Author: DC Home Renovations Inc
Template: hello-elementor
Version: 1.0.9
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   Brand tokens (single source of truth for the palette).
   Elementor global kit also carries these; keeping them here lets custom
   CSS and shortcode output stay on-brand.
   ========================================================================== */
:root {
    --dc-ink: #0E0E0E;        /* near-black: headings, dark sections, footer */
    --dc-white: #FFFFFF;      /* backgrounds, cards */
    --dc-offwhite: #F7F5F1;   /* warm alt section background */
    --dc-gold: #C6A15B;       /* satin gold accent */
    --dc-gold-deep: #A67C2E;  /* gold hover state */
    --dc-gray: #6B6B6B;       /* secondary body text */
    --dc-hairline: rgba(198, 161, 91, 0.35); /* thin gold divider */
}

/* Keep the header nav on one line on desktop */
@media (min-width: 1025px) {
    .elementor-location-header .elementor-widget-nav-menu {
        width: auto;
        flex: 0 0 auto;
    }
    .elementor-location-header .elementor-nav-menu--main {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
    }
    .elementor-location-header .elementor-nav-menu--main .elementor-item {
        white-space: nowrap;
    }
}

/* ==========================================================================
   Mobile refinements (the brief requires an excellent mobile experience)
   ========================================================================== */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 767px) {
    /* Scale headings so nothing overflows the viewport */
    .elementor-widget-heading h1.elementor-heading-title {
        font-size: 30px !important;
        line-height: 1.22 !important;
    }
    .elementor-widget-heading h2.elementor-heading-title {
        font-size: 24px !important;
        line-height: 1.28 !important;
    }
    .elementor-widget-heading h3.elementor-heading-title {
        font-size: 20px !important;
    }
    .elementor-widget-heading .elementor-heading-title {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    /* Eyebrow labels: tighten spacing so they fit one line */
    .elementor-widget-heading h6.elementor-heading-title {
        letter-spacing: 1px !important;
        font-size: 11px !important;
        overflow-wrap: break-word;
    }
    /* Buttons: comfortable tap targets, avoid overflow */
    .elementor-button {
        white-space: normal;
    }
}

/* Header on tablet/mobile: force a single row, logo left, menu toggle right.
   Elementor containers flip to column on the mobile breakpoint, so this
   overrides direction explicitly. The desktop nav/phone/CTA collapse into the
   burger menu. */
@media (max-width: 1024px) {
    .dc-site-header > .e-con-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 68px;
    }
    .dc-logo {
        order: 1;
        flex: 0 0 auto !important;
    }
    .dc-nav-center {
        order: 2;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
    .dc-nav-center > .e-con-inner,
    .dc-nav-center .elementor-widget-nav-menu,
    .dc-nav-center .elementor-nav-menu--main {
        justify-content: flex-end !important;
        margin-left: auto !important;
    }
    /* Fold the phone + Get a Quote into the mobile menu for a clean header. */
    .dc-header-actions {
        display: none !important;
    }
    .elementor-location-header .elementor-container,
    .elementor-location-header > .e-con-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==========================================================================
   MODERN DESIGN LAYER
   ========================================================================== */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: #1c1c1c;
}

/* --- Typography: bolder, tighter, more modern --- */
h1.elementor-heading-title {
    font-size: clamp(40px, 5.4vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.07;
}
h2.elementor-heading-title {
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
}
h3.elementor-heading-title {
    letter-spacing: -0.01em;
}
.elementor-widget-icon-box .elementor-icon-box-title,
.elementor-widget-icon-box .elementor-icon-box-title span {
    letter-spacing: -0.005em;
}

/* --- Buttons: sharp, architectural, with motion --- */
.elementor-button {
    border-radius: 0 !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    font-size: 12.5px !important;
    padding: 17px 34px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease !important;
}
.elementor-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(14, 14, 14, 0.18);
}
.dc-btn {
    border-radius: 0;
    letter-spacing: 0.1em;
    padding: 16px 32px;
}
.dc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(14, 14, 14, 0.18);
}

/* --- Header --- */
.dc-site-header {
    min-height: 84px;
    box-shadow: 0 1px 0 rgba(14, 14, 14, 0.07);
    transition: box-shadow 0.3s ease;
}
.dc-site-header.elementor-sticky--effects {
    box-shadow: 0 8px 34px rgba(14, 14, 14, 0.10);
    min-height: 72px;
}
.dc-logo img {
    transition: opacity 0.2s ease;
}
.dc-logo:hover img {
    opacity: 0.82;
}
.dc-header-actions {
    width: auto !important;
    flex: 0 0 auto !important;
}
.dc-logo {
    flex: 0 0 auto !important;
}
.dc-nav-center {
    flex: 1 1 auto !important;
}
/* Nav with animated gold underline */
.dc-nav .elementor-nav-menu--main .elementor-item {
    position: relative;
    padding: 10px 0 !important;
    margin: 0 18px !important;
}
.dc-nav .elementor-nav-menu--main .elementor-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--dc-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}
.dc-nav .elementor-nav-menu--main .elementor-item:hover::after,
.dc-nav .elementor-nav-menu--main .elementor-item.elementor-item-active::after {
    transform: scaleX(1);
}
.dc-nav .elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: var(--dc-ink) !important;
}
/* Phone */
.dc-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dc-ink);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.dc-phone-link svg {
    color: var(--dc-gold);
    flex: none;
}
.dc-phone-link span {
    color: var(--dc-ink);
}
.dc-phone-link:hover,
.dc-phone-link:hover span {
    color: var(--dc-gold-deep);
}
/* Vertically center the phone text with the CTA button */
.dc-header-phone,
.dc-header-phone .elementor-widget-container {
    display: flex;
    align-items: center;
}
.dc-header-phone p {
    margin: 0 !important;
    line-height: 1;
}
/* Header CTA: modern solid ink button, gold on hover */
.dc-header-cta .elementor-button {
    background-color: var(--dc-ink) !important;
    color: #ffffff !important;
    padding: 15px 30px !important;
    box-shadow: none !important;
}
.dc-header-cta .elementor-button:hover {
    background-color: var(--dc-gold) !important;
    color: var(--dc-ink) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Cards: refined with hover lift --- */
.dc-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    border-color: rgba(14, 14, 14, 0.08) !important;
}
.dc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(14, 14, 14, 0.10);
    border-color: rgba(198, 161, 91, 0.55) !important;
}
.dc-card .elementor-icon-box-icon .elementor-icon {
    transition: transform 0.3s ease;
}
.dc-card:hover .elementor-icon-box-icon .elementor-icon {
    transform: translateY(-2px);
}

/* Thin gold divider helper (used between sections) */
.dc-hairline {
    height: 1px;
    width: 100%;
    background: var(--dc-hairline);
    border: 0;
    margin: 0;
}

/* Small gold eyebrow label above headings */
.dc-eyebrow {
    display: inline-block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dc-gold);
}

/* Baseline button treatment for non-Elementor buttons (e.g. shortcode CTA) */
.dc-btn {
    display: inline-block;
    padding: 0.9em 1.9em;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--dc-ink);
    background: var(--dc-gold);
    border: 1px solid var(--dc-gold);
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dc-btn:hover {
    background: var(--dc-gold-deep);
    border-color: var(--dc-gold-deep);
    color: var(--dc-white);
}
.dc-btn--ghost {
    background: transparent;
    color: var(--dc-ink);
}
.dc-btn--ghost:hover {
    background: var(--dc-ink);
    color: var(--dc-white);
    border-color: var(--dc-ink);
}

/* ==========================================================================
   Project category archive (child theme PHP template)
   ========================================================================== */
.dc-tax-archive h1,
.dc-tax-archive h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}
.dc-tax-hero {
    background: var(--dc-ink);
    color: var(--dc-white);
    text-align: center;
    padding: 84px 20px;
}
.dc-tax-hero__inner {
    max-width: 820px;
    margin: 0 auto;
}
.dc-tax-hero h1 {
    color: var(--dc-white);
    font-size: clamp(30px, 5vw, 46px);
    margin: 10px 0 14px;
}
.dc-tax-hero p {
    color: #E7E7E7;
    font-size: 18px;
    margin-bottom: 26px;
}
.dc-tax-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.dc-tax-body {
    background: var(--dc-white);
    padding: 80px 20px;
}
.dc-tax-body__inner {
    max-width: 1140px;
    margin: 0 auto;
}
.dc-tax-cta {
    background: var(--dc-offwhite);
    text-align: center;
    padding: 70px 20px;
}
.dc-tax-cta__inner {
    max-width: 720px;
    margin: 0 auto;
}
.dc-tax-cta h2 {
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 12px;
}
.dc-tax-cta p {
    color: var(--dc-gray);
    margin-bottom: 22px;
}

/* ==========================================================================
   Blog: listing + single post
   ========================================================================== */
.dc-post-hero {
    background: var(--dc-ink);
    color: var(--dc-white);
    text-align: center;
    padding: 76px 20px;
}
.dc-post-hero__inner {
    max-width: 820px;
    margin: 0 auto;
}
.dc-post-hero h1 {
    color: var(--dc-white);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 42px);
    margin: 10px 0 12px;
    line-height: 1.2;
}
.dc-post-hero__date {
    color: var(--dc-gold);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
}
.dc-post-body {
    background: var(--dc-white);
    padding: 64px 20px;
}
.dc-post-body__inner {
    max-width: 760px;
    margin: 0 auto;
}
.dc-post-featured {
    margin: 0 0 34px;
}
.dc-post-featured img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.dc-post-content {
    font-size: 17.5px;
    line-height: 1.8;
    color: #2a2a2a;
}
.dc-post-content h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 26px;
    margin: 40px 0 14px;
    color: var(--dc-ink);
}
.dc-post-content h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 21px;
    margin: 30px 0 12px;
    color: var(--dc-ink);
}
.dc-post-content p {
    margin: 0 0 20px;
}
.dc-post-content a {
    color: var(--dc-gold-deep);
    text-decoration: underline;
}
.dc-post-content ul,
.dc-post-content ol {
    margin: 0 0 20px 20px;
}
.dc-post-content li {
    margin-bottom: 8px;
}
.dc-pagination {
    margin-top: 40px;
    text-align: center;
}
.dc-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: var(--dc-ink);
    border: 1px solid rgba(14, 14, 14, 0.18);
    border-radius: 2px;
    text-decoration: none;
}
.dc-pagination .page-numbers.current,
.dc-pagination .page-numbers:hover {
    background: var(--dc-gold);
    border-color: var(--dc-gold);
}
