/*
 Theme Name:   Canadian Crafted - Hello Elementor Child
 Theme URI:    https://www.cancrafted.ca
 Description:  Child theme for Hello Elementor — Canadian Crafted Roofing & Renovations
 Author:       Canadian Crafted
 Author URI:   https://www.cancrafted.ca
 Template:     hello-elementor
 Version:      4.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hello-elementor-child
*/

/* ==========================================================================
   PREMIUM DARK THEME — Canadian Crafted Roofing & Renovations
   ========================================================================== */

:root {
    --cc-deep: #1a1a1a;
    --cc-card: #252525;
    --cc-elevated: #2d2d2d;
    --cc-footer: #111111;
    --cc-alt: #1e1e1e;
    --cc-text: #ffffff;
    --cc-text-secondary: #c0c0c0;
    --cc-text-muted: #808080;
    --cc-red: #c41230;
    --cc-red-dark: #9e0e27;
    --cc-red-glow: rgba(196, 18, 48, 0.12);
    --cc-white: #ffffff;
    --cc-border: rgba(255,255,255,0.08);
    --cc-border-light: rgba(255,255,255,0.12);
    --cc-max-width: 1320px;
}

/* ========== Global ========== */
html {
    scroll-behavior: smooth;
    background-color: var(--cc-deep);
}

body,
body.elementor-page,
.elementor-page {
    font-family: 'Inter', 'Open Sans', sans-serif !important;
    background: var(--cc-deep) !important;
    background-color: var(--cc-deep) !important;
    color: var(--cc-text-secondary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--cc-text);
    letter-spacing: -0.02em;
}

a {
    color: var(--cc-red);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--cc-red-dark);
}

/* ========== Wide Screen Constraint ========== */
.elementor-section > .elementor-container,
.elementor-container.elementor-column-gap-default {
    max-width: var(--cc-max-width) !important;
}
/* Ensure containers match section widths */
.e-con.e-con-boxed {
    max-width: var(--cc-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Icon boxes row specifically */
.elementor-element[data-id="eaf5579"] {
    max-width: 100% !important;
    width: 100% !important;
}
.elementor-element[data-id="eaf5579"] > .e-con-inner {
    max-width: var(--cc-max-width) !important;
    margin: 0 auto !important;
}

/* ========== NO HORIZONTAL SCROLL ========== */
html, body {
    overflow-x: hidden !important;
}

/* ========== Sticky Header ========== */
.elementor-location-header {
    position: sticky !important;
    top: 0;
    z-index: 999;
    background: rgba(26, 26, 26, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* Header content also constrained */
.elementor-location-header .elementor-section > .elementor-container {
    max-width: var(--cc-max-width) !important;
}

/* ========== Dropdown Menu ========== */
.elementor-nav-menu--dropdown,
.elementor-nav-menu__container {
    background-color: var(--cc-card) !important;
    border: 1px solid var(--cc-border-light) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) !important;
    padding: 8px 0 !important;
}
.elementor-nav-menu--dropdown a,
.elementor-nav-menu--dropdown .elementor-item {
    color: var(--cc-text-secondary) !important;
    font-size: 13px !important;
    padding: 10px 24px !important;
    transition: all 0.2s !important;
    border-radius: 6px !important;
    margin: 0 8px !important;
}
.elementor-nav-menu--dropdown a:hover,
.elementor-nav-menu--dropdown .elementor-item:hover {
    color: var(--cc-text) !important;
    background: rgba(196,18,48,0.08) !important;
}
.elementor-nav-menu--dropdown .elementor-nav-menu--dropdown {
    border-left: 2px solid var(--cc-red) !important;
    margin-left: 0 !important;
}
.menu-group-label > a,
.elementor-nav-menu--dropdown li.menu-group-label > a {
    color: var(--cc-red) !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    pointer-events: none;
    padding: 14px 24px 6px !important;
    margin: 0 8px !important;
}
.elementor-nav-menu .sub-arrow svg { fill: var(--cc-text-muted) !important; }
.elementor-nav-menu .elementor-item:hover .sub-arrow svg { fill: var(--cc-text) !important; }

/* ========== Nav Link Styling ========== */
.elementor-widget-nav-menu .elementor-item.elementor-item-active,
.elementor-widget-nav-menu .elementor-item.elementor-item-active:hover {
    color: var(--cc-red) !important;
}
.e--pointer-underline .elementor-item.elementor-item-active::after {
    background-color: var(--cc-red) !important;
}

/* ========== Hero ========== */
.elementor-element-h01,
.elementor-section[data-id="h01"] {
    overflow: hidden !important;
}
.elementor-section[data-id="h01"]::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(196, 18, 48, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.elementor-section[data-id="h01"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, var(--cc-deep), transparent);
    pointer-events: none;
    z-index: 1;
}

/* ========== Section Defaults ========== */
.elementor-section {
    background-color: var(--cc-deep);
}

/* ========== Section Labels (red uppercase) — make MORE visible ========== */
.elementor-widget-text-editor p[style*="text-transform:uppercase"],
.elementor-widget-text-editor p[style*="letter-spacing:3px"] {
    font-size: 13px !important;
    letter-spacing: 3px !important;
    margin-bottom: 12px !important;
}

/* ========== Buttons ========== */
.elementor-button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.02em !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

/* ========== Alternating Section Backgrounds ========== */
/* "Why Choose Us" and "Testimonials" get noticeably darker bg */
.elementor-section[data-id="h40"],
.elementor-section[data-id="h43"],
.elementor-section[data-id="h60"],
.elementor-element[data-id="b4e47e0"] {
    background-color: #111111 !important;
}
/* Subtle top/bottom edge lines for section separation */
.elementor-section[data-id="h40"] {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}
.elementor-section[data-id="h43"] {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.elementor-section[data-id="h60"] {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

/* ========== Icon Boxes ========== */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
    padding: 32px 28px;
    border-radius: 16px;
    background: #222222;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
    border-color: rgba(196,18,48,0.3);
    box-shadow: 0 0 30px var(--cc-red-glow), 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(-4px);
}
/* Ensure no light icon box backgrounds leak through */
.elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon {
    color: var(--cc-red) !important;
}
.elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon i {
    color: var(--cc-red) !important;
}
.elementor-widget-icon-box .elementor-icon-box-title {
    color: var(--cc-text) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-top: 12px !important;
}
.elementor-widget-icon-box .elementor-icon-box-description {
    color: var(--cc-text-secondary) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}
/* Icon itself */
.elementor-widget-icon-box .elementor-icon {
    transition: transform 0.3s ease !important;
}
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover .elementor-icon {
    transform: scale(1.1) !important;
}

/* ========== Counter Widget ========== */
.elementor-widget-counter .elementor-counter-number-wrapper {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--cc-red) !important;
}
.elementor-widget-counter {
    text-align: center !important;
}
.elementor-widget-counter .elementor-counter-number-wrapper {
    justify-content: center !important;
}
.elementor-widget-counter .elementor-counter-title {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.3 !important;
    text-align: center !important;
}

/* ========== Stats Bar — Add column dividers ========== */
.elementor-section[data-id="h20"] .elementor-column {
    position: relative;
}
.elementor-section[data-id="h20"] .elementor-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: #e0e0e0;
}

/* ========== Reviews / Testimonials Carousel ========== */
.elementor-widget-reviews .elementor-testimonial__text,
.elementor-widget-testimonial-carousel .elementor-testimonial__text {
    color: var(--cc-text-secondary) !important;
    font-style: italic;
    font-size: 15px !important;
    line-height: 1.8 !important;
}
.elementor-widget-reviews .elementor-testimonial__name,
.elementor-widget-testimonial-carousel .elementor-testimonial__name {
    color: var(--cc-text) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
}
.elementor-widget-reviews .elementor-testimonial__title,
.elementor-widget-testimonial-carousel .elementor-testimonial__title {
    color: var(--cc-text-muted) !important;
}
/* Star ratings — clean gold stars */
.elementor-widget-reviews .elementor-star-rating i {
    font-family: inherit !important;
    font-style: normal !important;
    color: #f5a623 !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}
/* Override unicode rendering to use clean CSS stars */
.elementor-widget-reviews .elementor-star-rating {
    display: flex !important;
    gap: 2px !important;
    font-size: 0 !important;
}
.elementor-widget-reviews .elementor-star-rating i {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 0 !important;
    background: #f5a623 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat !important;
    color: transparent !important;
}
.elementor-widget-reviews .elementor-star-rating i.elementor-star-empty {
    background: #444444 !important;
}
/* Navigation */
.swiper-pagination-bullet {
    background: var(--cc-text-muted) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
}
.swiper-pagination-bullet-active {
    background: var(--cc-red) !important;
    width: 28px !important;
    border-radius: 5px !important;
}
/* Carousel arrows — centered vertically */
.elementor-swiper-button {
    color: var(--cc-text) !important;
    background: rgba(255,255,255,0.08) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    transition: all 0.3s !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.elementor-swiper-button:hover {
    background: var(--cc-red) !important;
}
/* Reviews widget arrows specifically */
.elementor-widget-reviews .elementor-swiper-button {
    top: 40% !important;
}
.elementor-widget-reviews .elementor-swiper-button-prev {
    left: -8px !important;
}
.elementor-widget-reviews .elementor-swiper-button-next {
    right: -8px !important;
}

/* ========== Headings on dark ========== */
.elementor-widget-heading .elementor-heading-title {
    color: var(--cc-text);
}

/* ========== Text editor ========== */
.elementor-widget-text-editor {
    color: var(--cc-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ========== Service Card Columns — force gap ========== */
.elementor-section[data-id="h34"] > .elementor-container {
    gap: 28px !important;
}
.elementor-section[data-id="h34"] > .elementor-container > .elementor-column {
    width: calc(50% - 14px) !important;
}
.elementor-section[data-id="h34"] > .elementor-container > .elementor-column > .elementor-widget-wrap {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.elementor-section[data-id="h34"] > .elementor-container > .elementor-column > .elementor-widget-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(196,18,48,0.15);
}

/* ========== Service Card Images — full bleed to card edge ========== */
.elementor-section[data-id="h34"] .elementor-widget-image {
    width: calc(100% + 88px) !important;
    margin-left: -44px !important;
    margin-right: -44px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    overflow: hidden;
}
.elementor-section[data-id="h34"] .elementor-widget-image img,
.cc-service-card-img img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block;
    transition: transform 0.6s ease !important;
    margin: 0 !important;
}
.elementor-section[data-id="h34"] > .elementor-container > .elementor-column > .elementor-widget-wrap:hover .elementor-widget-image img {
    transform: scale(1.05) !important;
}

/* ========== Service Pills ========== */
.cc-service-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 28px !important;
}
.cc-service-pills span {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    color: var(--cc-text-secondary);
    transition: all 0.3s;
    display: inline-block;
}
.cc-service-pills span:hover {
    border-color: var(--cc-red);
    color: var(--cc-text);
    background: rgba(196,18,48,0.06);
}
.cc-service-pills a {
    text-decoration: none !important;
    color: inherit !important;
}
.cc-service-pills a:hover span {
    border-color: var(--cc-red);
    color: var(--cc-text);
    background: rgba(196,18,48,0.06);
}

/* ========== Why Choose Us Icons ========== */
.cc-why-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(196, 18, 48, 0.18);
    border: 1px solid rgba(196, 18, 48, 0.35);
    box-shadow: 0 0 20px rgba(196, 18, 48, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}
.cc-why-icon:hover {
    background: rgba(196, 18, 48, 0.15);
    border-color: rgba(196, 18, 48, 0.3);
    transform: scale(1.05);
}
.cc-why-icon i {
    font-size: 28px;
    color: var(--cc-red);
}
.cc-why-icon svg {
    stroke: var(--cc-red) !important;
}

/* ========== Project Thumbnails ========== */
.cc-project-thumb {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}
.cc-project-thumb img {
    border-radius: 12px !important;
    height: 280px !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    width: 100% !important;
}
.cc-project-thumb:hover img {
    transform: scale(1.08) !important;
}

/* ========== Inner Sections — transparent ========== */
.elementor-inner-section {
    background: transparent !important;
}
.elementor-inner-section > .elementor-container {
    background: transparent !important;
}
.elementor-inner-section .elementor-column > .elementor-widget-wrap {
    background: transparent !important;
}

/* ========== Forms on Dark Theme ========== */
.elementor-widget-form .elementor-field-group .elementor-field,
.elementor-widget-form .elementor-field-group .elementor-select-wrapper select,
.elementor-widget-form .elementor-field-group textarea {
    background-color: #1a1a1a !important;
    color: var(--cc-text) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
}
.elementor-widget-form .elementor-field-group .elementor-field::placeholder {
    color: var(--cc-text-muted) !important;
}
.elementor-widget-form .elementor-field-group .elementor-field:focus {
    border-color: var(--cc-red) !important;
    outline: none !important;
}
.elementor-widget-form .elementor-field-label {
    color: var(--cc-text) !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}
/* Select dropdown arrow visibility */
.elementor-widget-form .elementor-select-wrapper::after,
.elementor-widget-form .elementor-field-group select {
    color: var(--cc-text) !important;
}
.elementor-widget-form .elementor-select-wrapper {
    color: var(--cc-text) !important;
}
/* Form submit button */
.elementor-widget-form .elementor-button[type="submit"] {
    background-color: var(--cc-red) !important;
    color: var(--cc-white) !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
}
.elementor-widget-form .elementor-button[type="submit"]:hover {
    background-color: var(--cc-red-dark) !important;
}
/* Also fix any standalone form on the page (like the home page quote form) */
.elementor-form .elementor-field,
.elementor-form select,
.elementor-form textarea {
    background-color: #1a1a1a !important;
    color: var(--cc-text) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.elementor-form select option {
    background-color: #1a1a1a !important;
    color: var(--cc-text) !important;
}

/* ========== Scroll Animations & Premium Micro-interactions ========== */

/* Smooth reveal for all animated elements */
.elementor-invisible {
    visibility: visible !important;
}

/* Slow down Elementor's default animation speed for elegance */
.animated {
    animation-duration: 0.8s !important;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Stagger animations feel more natural with slower timing */
.animated.fadeInUp {
    animation-duration: 0.7s !important;
}
.animated.fadeInLeft,
.animated.fadeInRight {
    animation-duration: 0.8s !important;
}
.animated.fadeIn {
    animation-duration: 1s !important;
}

/* Premium hover effects for links */
.elementor-widget-text-editor a:not(.elementor-button) {
    position: relative;
    transition: color 0.3s ease;
}
.elementor-widget-text-editor a:not(.elementor-button)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cc-red);
    transition: width 0.3s ease;
}
.elementor-widget-text-editor a:not(.elementor-button):hover::after {
    width: 100%;
}

/* Smooth image loading */
.elementor-widget-image img,
.elementor-widget-theme-post-featured-image img {
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Nav menu link underline animation */
.elementor-widget-nav-menu .elementor-item {
    position: relative;
    transition: color 0.3s ease !important;
}

/* Section separator subtle gradient */
.elementor-section + .elementor-section,
.e-con + .e-con {
    border-top: 1px solid rgba(255,255,255,0.02);
}

/* Heading reveal shimmer effect */
@keyframes headingShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Counter number smooth appearance */
.elementor-counter-number-wrapper {
    transition: color 0.3s ease;
}

/* Card lift with smooth spring */
.elementor-widget-icon-box .elementor-icon-box-wrapper,
.elementor-section[data-id="h34"] > .elementor-container > .elementor-column > .elementor-widget-wrap,
.elementor-element[data-id="3f5b84c"] > .e-con,
.cc-project-thumb {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Button press effect */
.elementor-button:active {
    transform: translateY(0) scale(0.98) !important;
    transition: transform 0.1s !important;
}

/* Smooth page load — fade in body */
@keyframes pageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}
body {
    animation: pageLoad 0.5s ease-out;
}

/* Parallax-style subtle movement on hero background */
.elementor-section[data-id="h01"] .elementor-background-overlay {
    transition: opacity 0.5s ease;
}

/* Review card subtle entrance */
.elementor-widget-reviews .swiper-slide-active {
    transition: transform 0.5s ease !important;
}

/* Footer link stagger hover */
.cc-footer-links li a {
    transition: color 0.3s ease, padding-left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Scroll indicator pulse (for hero) */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

/* ========== Selection & Focus ========== */
::selection {
    background-color: var(--cc-red);
    color: var(--cc-white);
}
:focus-visible {
    outline: 2px solid var(--cc-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== Footer ========== */
.elementor-location-footer {
    background: var(--cc-footer) !important;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.elementor-location-footer .elementor-section > .elementor-container {
    max-width: var(--cc-max-width) !important;
}
.elementor-location-footer a:hover {
    color: var(--cc-red) !important;
}

.cc-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.cc-footer-links li {
    margin-bottom: 12px;
}
.cc-footer-links li a {
    font-size: 14px;
    color: var(--cc-text-secondary);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}
.cc-footer-links li a:hover {
    color: var(--cc-red);
    padding-left: 4px;
}

.cc-footer-social {
    display: flex;
    gap: 12px;
}
.cc-footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cc-text-secondary);
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
}
.cc-footer-social a:hover {
    border-color: var(--cc-red) !important;
    color: var(--cc-red) !important;
    background: rgba(196, 18, 48, 0.08);
    transform: translateY(-2px);
}

.cc-footer-contact .cc-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.cc-footer-contact .cc-contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.7;
}
.cc-footer-contact .cc-contact-item span {
    font-size: 14px;
    color: var(--cc-text-secondary);
    line-height: 1.6;
}
.cc-footer-contact .cc-contact-item a {
    color: var(--cc-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.cc-footer-contact .cc-contact-item a:hover {
    color: var(--cc-red);
}

.cc-hours {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cc-hours .cc-hours-label {
    font-weight: 600;
    color: var(--cc-text);
    font-size: 14px;
    margin-bottom: 4px;
}
.cc-hours span {
    font-size: 14px;
    color: var(--cc-text-secondary);
    line-height: 1.6;
}

/* ========== Flip Boxes ========== */
.elementor-widget-flip-box {
    perspective: 1200px;
}
.elementor-widget-flip-box .elementor-flip-box__front {
    background-color: #1e1e1e !important;
    background-image: none !important;
    border: 1px solid var(--cc-border-light) !important;
}
.elementor-widget-flip-box .elementor-flip-box__back {
    background-color: var(--cc-red) !important;
    background-image: none !important;
}
.elementor-widget-flip-box .elementor-flip-box__front .elementor-flip-box__layer__title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: var(--cc-text) !important;
}
.elementor-widget-flip-box .elementor-flip-box__front .elementor-flip-box__layer__description {
    color: var(--cc-text-secondary) !important;
}
.elementor-widget-flip-box .elementor-flip-box__front .elementor-icon {
    color: var(--cc-red) !important;
}
.elementor-widget-flip-box .elementor-flip-box__front .elementor-icon i {
    color: var(--cc-red) !important;
}
.elementor-widget-flip-box .elementor-flip-box__back .elementor-flip-box__layer__title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: var(--cc-text) !important;
}
.elementor-widget-flip-box .elementor-flip-box__back .elementor-flip-box__layer__description {
    color: rgba(255,255,255,0.85) !important;
    line-height: 1.7 !important;
}
.elementor-widget-flip-box .elementor-flip-box__back .elementor-flip-box__button {
    background-color: #ffffff !important;
    color: var(--cc-red) !important;
    border-radius: 6px !important;
}
.elementor-widget-flip-box .elementor-flip-box__back .elementor-flip-box__button:hover {
    background-color: #f0f0f0 !important;
}

/* ========== Animated Headline ========== */
.elementor-widget-animated-headline .elementor-headline {
    font-family: 'Montserrat', sans-serif !important;
}
.elementor-widget-animated-headline .elementor-headline-dynamic-wrapper {
    color: var(--cc-red) !important;
}

/* ========== Media Carousel ========== */
.elementor-widget-media-carousel .swiper-slide img {
    border-radius: 12px !important;
}
.elementor-widget-media-carousel .elementor-swiper-button {
    color: var(--cc-text) !important;
    background: rgba(0,0,0,0.4) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
}
.elementor-widget-media-carousel .elementor-swiper-button:hover {
    background: var(--cc-red) !important;
}

/* ========== Hero Quote Form Card — stand out from hero ========== */
.elementor-element[data-id="906e73a"] {
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========== Floating Bar Popup ========== */
.elementor-popup-modal .dialog-message {
    background: rgba(26,26,26,0.98) !important;
    backdrop-filter: blur(12px) !important;
}

/* ========== Default Page Content Styling (non-Elementor pages) ========== */
.page-content,
.entry-content,
.site-main .post-content,
.elementor-widget-theme-post-content,
article .entry-content {
    color: var(--cc-text-secondary) !important;
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
}
.page-content h1, .entry-content h1,
.page-content h2, .entry-content h2,
.page-content h3, .entry-content h3,
.page-content h4, .entry-content h4 {
    color: var(--cc-text) !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.page-content h1, .entry-content h1 { font-size: 36px; font-weight: 700; }
.page-content h2, .entry-content h2 { font-size: 28px; font-weight: 700; }
.page-content h3, .entry-content h3 { font-size: 22px; font-weight: 600; }
.page-content p, .entry-content p {
    margin-bottom: 1.2em;
    color: var(--cc-text-secondary);
}
.page-content ul, .entry-content ul,
.page-content ol, .entry-content ol {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5em;
}
.page-content ul li, .entry-content ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.page-content ul li::before, .entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cc-red);
}
.page-content ol li, .entry-content ol li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.page-content a, .entry-content a {
    color: var(--cc-red) !important;
    font-weight: 600;
    text-decoration: none;
}
.page-content a:hover, .entry-content a:hover {
    color: var(--cc-red-dark) !important;
    text-decoration: underline;
}
.page-content strong, .entry-content strong {
    color: var(--cc-text);
    font-weight: 700;
}
.page-content blockquote, .entry-content blockquote {
    border-left: 3px solid var(--cc-red);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(255,255,255,0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--cc-text-secondary);
}
/* Page title on non-Elementor pages */
.page-header .entry-title,
h1.entry-title {
    color: var(--cc-text) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    padding: 60px 0 20px;
}
/* Main content area padding */
.site-main {
    padding: 0 40px;
    max-width: var(--cc-max-width);
    margin: 0 auto;
}

/* ========== Service Template Styling ========== */
/* Post content area — style the dynamic content */
.elementor-widget-theme-post-content {
    color: var(--cc-text-secondary) !important;
    font-size: 16px;
    line-height: 1.8;
}
.elementor-widget-theme-post-content h2 {
    color: var(--cc-text) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
}
.elementor-widget-theme-post-content h3 {
    color: var(--cc-text) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
}
.elementor-widget-theme-post-content ul {
    padding-left: 0;
    list-style: none;
}
.elementor-widget-theme-post-content ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.elementor-widget-theme-post-content ul li:last-child {
    border-bottom: none;
}
.elementor-widget-theme-post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cc-red);
}
.elementor-widget-theme-post-content ul li strong {
    color: var(--cc-text);
}
.elementor-widget-theme-post-content a {
    color: var(--cc-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.elementor-widget-theme-post-content a:hover {
    color: var(--cc-red-dark);
    text-decoration: underline;
}
/* Featured image styling */
.elementor-widget-theme-post-featured-image img {
    border-radius: 16px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}
/* Process step cards on service template */
.elementor-element[data-id="3f5b84c"] > .e-con {
    background: var(--cc-card);
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    padding: 40px 28px;
    transition: all 0.3s ease;
}
.elementor-element[data-id="3f5b84c"] > .e-con:hover {
    border-color: rgba(196,18,48,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* ========== Tablet (1024px) ========== */
@media (max-width: 1024px) {
    .elementor-section > .elementor-container {
        padding: 0 28px;
    }
    /* Stats bar dividers hidden on tablet */
    .elementor-section[data-id="h20"] .elementor-column::after {
        display: none !important;
    }
    /* Service template — trust badges 2x2 */
    .elementor-element[data-id="cbd423c"] {
        flex-wrap: wrap !important;
    }
    .elementor-element[data-id="cbd423c"] > .elementor-widget {
        width: 48% !important;
        flex: 0 0 48% !important;
    }
    /* Content area — stack on tablet */
    .elementor-element[data-id="71000c4"] {
        flex-direction: column !important;
    }
    .elementor-element[data-id="71000c4"] > .e-con {
        width: 100% !important;
    }
}

/* ========== Mobile (767px) ========== */
@media (max-width: 767px) {

    /* ── GLOBAL MOBILE — minimize padding, maximize text width ── */
    .elementor-section {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .elementor-section > .elementor-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .elementor-column > .elementor-widget-wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    /* Center all text by default on mobile */
    .elementor-widget-text-editor,
    .elementor-widget-heading .elementor-heading-title {
        text-align: center !important;
    }
    .elementor-widget-divider .elementor-divider-separator {
        margin: 0 auto !important;
    }

    /* ── HEADER ── */
    .elementor-location-header .elementor-section[data-id="hd01"] {
        padding: 8px 12px !important;
    }
    .elementor-location-header .elementor-section[data-id="hd01"] > .elementor-container {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
    }
    .elementor-element-hd02 {
        width: auto !important;
        flex: 0 0 auto !important;
    }
    .elementor-location-header .elementor-widget-image img {
        max-width: 140px !important;
    }
    .elementor-element-hd04 {
        width: auto !important;
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
    .elementor-element-hd06 {
        display: none !important;
    }

    .elementor-nav-menu--dropdown {
        background-color: var(--cc-card) !important;
        border: 1px solid var(--cc-border-light) !important;
        border-radius: 12px !important;
    }
    .elementor-nav-menu--dropdown a {
        color: var(--cc-text) !important;
        padding: 12px 20px !important;
    }
    .elementor-nav-menu--dropdown a:hover {
        color: var(--cc-red) !important;
    }

    /* ── HERO — full width text, centered ── */
    .elementor-section[data-id="h01"] {
        min-height: auto !important;
        padding: 70px 12px 50px !important;
    }
    .elementor-section[data-id="h01"] > .elementor-container {
        padding: 0 !important;
    }
    .elementor-section[data-id="h01"] > .elementor-container > .elementor-column {
        padding: 0 !important;
        width: 100% !important;
    }
    .elementor-section[data-id="h01"] .elementor-widget-wrap {
        padding: 0 12px !important;
        text-align: center !important;
    }
    .elementor-section[data-id="h01"] .elementor-heading-title {
        font-size: 32px !important;
        line-height: 1.12 !important;
        text-align: center !important;
    }
    /* Hero buttons — full width, stacked */
    .elementor-section[data-id="h01"] .elementor-inner-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .elementor-section[data-id="h01"] .elementor-inner-section > .elementor-container {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        gap: 10px !important;
    }
    .elementor-section[data-id="h01"] .elementor-inner-section .elementor-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
    }
    .elementor-section[data-id="h01"] .elementor-inner-section .elementor-column > .elementor-widget-wrap {
        padding: 0 !important;
    }
    .elementor-section[data-id="h01"] .elementor-inner-section .elementor-widget-button,
    .elementor-section[data-id="h01"] .elementor-inner-section .elementor-widget-button .elementor-widget-container {
        width: 100% !important;
    }
    .elementor-section[data-id="h01"] .elementor-inner-section .elementor-button {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        padding: 14px 20px !important;
    }

    /* ── STATS BAR — 2x2 tight grid ── */
    .elementor-section[data-id="h20"] {
        margin-top: -16px !important;
        padding: 0 8px !important;
    }
    .elementor-section[data-id="h20"] > .elementor-container {
        flex-wrap: wrap !important;
        padding: 20px 12px !important;
        gap: 12px !important;
    }
    .elementor-section[data-id="h20"] .elementor-column {
        width: 46% !important;
        flex: 0 0 46% !important;
    }
    .elementor-section[data-id="h20"] .elementor-column::after {
        display: none !important;
    }
    .elementor-section[data-id="h20"] .elementor-counter-number-wrapper {
        font-size: 30px !important;
    }
    .elementor-section[data-id="h20"] .elementor-counter-title {
        font-size: 9px !important;
    }

    /* ── SERVICES — full width stacked cards ── */
    .elementor-section[data-id="h34"] > .elementor-container {
        flex-direction: column !important;
        padding: 0 4px !important;
    }
    .elementor-section[data-id="h34"] .elementor-column {
        width: 100% !important;
        margin-bottom: 16px !important;
    }
    .cc-service-card-img img {
        width: calc(100% + 88px) !important;
        margin-left: -44px !important;
    }
    /* Service pills wrap tighter */
    .cc-service-pills {
        justify-content: center !important;
    }

    /* ── WHY CHOOSE US — single column on mobile ── */
    .elementor-section[data-id="h43"] > .elementor-container {
        flex-direction: column !important;
    }
    .elementor-section[data-id="h43"] .elementor-column {
        width: 100% !important;
        margin-bottom: 16px !important;
    }
    .elementor-section[data-id="h43"] .elementor-widget-wrap {
        text-align: center !important;
    }
    /* Tighter icon box cards on mobile */
    .elementor-widget-icon-box .elementor-icon-box-wrapper {
        padding: 24px 16px !important;
    }

    /* ── PROJECTS — 2 columns ── */
    .elementor-section[data-id="h57"] > .elementor-container {
        flex-wrap: wrap !important;
        padding: 0 4px !important;
    }
    .elementor-section[data-id="h57"] .elementor-column {
        width: 48% !important;
        flex: 0 0 48% !important;
        margin-bottom: 8px !important;
    }
    .cc-project-thumb img {
        height: 160px !important;
    }

    /* ── REVIEWS — single slide, full width ── */
    .elementor-widget-reviews,
    .elementor-widget-testimonial-carousel {
        padding: 0 !important;
    }
    .elementor-widget-reviews .swiper-slide,
    .elementor-widget-testimonial-carousel .swiper-slide {
        min-height: auto !important;
    }

    /* ── CTA — tight padding, full width buttons ── */
    .elementor-section[data-id="h70"] {
        padding: 50px 12px !important;
    }
    .elementor-section[data-id="h70"] .elementor-heading-title {
        font-size: 28px !important;
    }
    .elementor-section[data-id="h70"] .elementor-inner-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .elementor-section[data-id="h70"] .elementor-inner-section > .elementor-container {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        gap: 10px !important;
    }
    .elementor-section[data-id="h70"] .elementor-inner-section .elementor-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
    }
    .elementor-section[data-id="h70"] .elementor-inner-section .elementor-column > .elementor-widget-wrap {
        padding: 0 !important;
    }
    .elementor-section[data-id="h70"] .elementor-inner-section .elementor-button {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
    }

    /* ── SERVICE TEMPLATE — responsive ── */
    /* Trust badges row — 2x2 grid */
    .elementor-element[data-id="cbd423c"] {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .elementor-element[data-id="cbd423c"] > .elementor-widget {
        width: 46% !important;
        flex: 0 0 46% !important;
    }
    .elementor-element[data-id="cbd423c"] .elementor-icon-box-wrapper {
        padding: 16px 12px !important;
    }
    .elementor-element[data-id="cbd423c"] .elementor-icon-box-title {
        font-size: 13px !important;
    }
    .elementor-element[data-id="cbd423c"] .elementor-icon-box-description {
        font-size: 11px !important;
        display: none !important;
    }
    /* Content area — stack image above content */
    .elementor-element[data-id="71000c4"] {
        flex-direction: column !important;
    }
    .elementor-element[data-id="71000c4"] > .e-con {
        width: 100% !important;
    }
    /* Process steps — stack vertically */
    .elementor-element[data-id="3f5b84c"] {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .elementor-element[data-id="3f5b84c"] > .e-con {
        width: 100% !important;
    }
    /* Post content on mobile */
    .elementor-widget-theme-post-content {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    .elementor-widget-theme-post-content h2 {
        font-size: 24px !important;
    }
    .elementor-widget-theme-post-content h3 {
        font-size: 20px !important;
    }

    /* ── FOOTER — compact on mobile ── */
    .elementor-section[data-id="ft01"] {
        padding: 40px 12px 12px !important;
    }
    .elementor-location-footer .elementor-widget {
        margin-bottom: 8px !important;
    }
    .cc-footer-links li {
        margin-bottom: 8px !important;
    }
    .cc-footer-contact .cc-contact-item {
        margin-bottom: 12px !important;
    }
    .elementor-section[data-id="ft01"] > .elementor-container {
        flex-direction: column !important;
        padding: 0 !important;
    }
    .elementor-section[data-id="ft01"] .elementor-column {
        width: 100% !important;
        margin-bottom: 28px !important;
    }
    .elementor-section[data-id="ft01"] .elementor-widget-wrap {
        text-align: center !important;
        align-items: center !important;
        padding: 0 8px !important;
    }
    .cc-footer-social { justify-content: center !important; }
    .cc-footer-contact .cc-contact-item { justify-content: center !important; }
    .cc-footer-links { text-align: center !important; }

    .elementor-section[data-id="ft40"] {
        padding: 20px 12px !important;
    }
    .elementor-section[data-id="ft40"] > .elementor-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 0 !important;
    }
    .elementor-section[data-id="ft40"] .elementor-column { width: 100% !important; }
    .elementor-section[data-id="ft40"] p { text-align: center !important; }

    /* ── REDUCE VERTICAL SPACING ── */
    .elementor-section[data-id="h30"],
    .elementor-section[data-id="h34"],
    .elementor-section[data-id="h40"],
    .elementor-section[data-id="h43"],
    .elementor-section[data-id="h55"],
    .elementor-section[data-id="h57"],
    .elementor-section[data-id="h5c"],
    .elementor-section[data-id="h60"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* ── NO HORIZONTAL SCROLL ── */
    *, *::before, *::after { max-width: 100vw; }
    .elementor-section, .elementor-container, .elementor-column, .elementor-widget-wrap {
        max-width: 100% !important;
    }
    img { max-width: 100% !important; height: auto !important; }
}
