/* A focused visual polish layer for the Dehomes theme. */
:root {
    --dehomes-ink: #12263a;
    --dehomes-muted: #5f6f7d;
    --dehomes-brand: #d96c3d;
    --dehomes-brand-dark: #b95329;
    --dehomes-surface: #ffffff;
    --dehomes-soft: #f6f8fa;
    --dehomes-border: #e6eaee;
    --dehomes-shadow: 0 14px 38px rgba(18, 38, 58, .09);
}

body {
    color: var(--dehomes-muted);
    background: var(--dehomes-surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.section-title h2,
.section-title h3 {
    color: var(--dehomes-ink);
    letter-spacing: -.025em;
}

p {
    line-height: 1.75;
}

a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(217, 108, 61, .38);
    outline-offset: 3px;
}

.container {
    width: min(100% - 32px, 1200px);
}

.btn,
.btn.ss-btn,
button,
input[type="submit"],
.elementor-button {
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: .01em;
}

.btn:hover,
.btn.ss-btn:hover,
input[type="submit"]:hover,
.elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(217, 108, 61, .22);
}

.elementor-button,
.btn.ss-btn,
input[type="submit"] {
    background-color: var(--dehomes-brand);
    border-color: var(--dehomes-brand);
}

.elementor-button:hover,
.btn.ss-btn:hover,
input[type="submit"]:hover {
    background-color: var(--dehomes-brand-dark);
    border-color: var(--dehomes-brand-dark);
}

.elementor-widget-container > .elementor-image img,
.elementor-widget-image img {
    border-radius: 4px;
}

.service-box,
.single-team,
.portfolio-box,
.blog-item,
.sidebar-widget .widget,
.elementor-widget-container .property-item {
    border: 1px solid var(--dehomes-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(18, 38, 58, .05);
}

.service-box:hover,
.single-team:hover,
.portfolio-box:hover,
.blog-item:hover,
.elementor-widget-container .property-item:hover {
    box-shadow: var(--dehomes-shadow);
    transform: translateY(-4px);
}

.footer-bg {
    background-color: var(--dehomes-ink);
}

.footer-bg a:hover {
    color: #fff;
}

/* Homepage hierarchy and component treatment. */
.header-three .menu-area {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(18, 38, 58, .08);
    box-shadow: 0 4px 18px rgba(18, 38, 58, .035);
}

.header-three .main-menu ul li a {
    color: var(--dehomes-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.header-three .main-menu ul li a::before {
    background-color: var(--dehomes-brand);
}

.header-three .main-menu .sub-menu,
.header-three .menu .children {
    border: 1px solid var(--dehomes-border);
    border-radius: 8px;
    box-shadow: var(--dehomes-shadow);
    overflow: hidden;
}

.slider-four .slider-bg {
    min-height: clamp(540px, 68vw, 760px);
    position: relative;
}

.slider-four .slider-bg::after,
.slider-four .image-layer::after {
    background: linear-gradient(90deg, rgba(10, 24, 37, .82) 0%, rgba(10, 24, 37, .56) 46%, rgba(10, 24, 37, .14) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.slider-four .slider-bg .container,
.slider-four .slider-bg .content-lines-wrapper2 {
    position: relative;
    z-index: 1;
}

.s-slider-content {
    max-width: 680px;
}

.s-slider-content h2 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    letter-spacing: -.045em;
    line-height: 1.04;
    text-wrap: balance;
}

.s-slider-content p {
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.7;
    max-width: 590px;
}

.slider-four .call-box {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 10px 0 0 10px;
}

.services {
    background: linear-gradient(180deg, #fff 0%, var(--dehomes-soft) 100%);
}

.services-08-item {
    background: #fff;
    border: 1px solid var(--dehomes-border) !important;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(18, 38, 58, .055);
    height: 100%;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.services-08-item:hover {
    box-shadow: var(--dehomes-shadow);
    transform: translateY(-7px);
}

.services-08-thumb {
    overflow: hidden;
}

.services-08-thumb img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .45s ease;
    width: 100%;
}

.services-08-item:hover .services-08-thumb img {
    transform: scale(1.045);
}

.services-08-content {
    padding: 30px 28px 28px;
}

.services-08-content h3 a {
    color: var(--dehomes-ink);
}

.services-08-content h3 a:hover,
.section-title a:hover {
    color: var(--dehomes-brand);
}

.about-area {
    overflow: hidden;
}

.s-about-img img {
    box-shadow: var(--dehomes-shadow);
    width: 100%;
}

.about-title h5,
.section-title h5 {
    color: var(--dehomes-brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.about-title h2,
.section-title h2 {
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: 1.15;
    text-wrap: balance;
}

.about-gallery img {
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(18, 38, 58, .08);
    transition: transform .25s ease;
}

.about-gallery img:hover {
    transform: translateY(-4px);
}

.blog-area {
    background-color: var(--dehomes-soft);
    padding-top: 110px;
}

.blog-area .section-title a {
    border-bottom: 2px solid var(--dehomes-brand);
    color: var(--dehomes-ink);
    font-weight: 800;
    padding-bottom: 5px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

    h1, .elementor-heading-title.elementor-size-default {
        letter-spacing: -.02em;
    }

    .header-three .menu-area {
        background: #fff;
    }

    .slider-four .slider-bg {
        min-height: 560px;
    }

    .slider-four .slider-bg::after,
    .slider-four .image-layer::after {
        background: rgba(10, 24, 37, .7);
    }

    .s-slider-content h2 {
        font-size: 2.5rem;
    }

    .services-08-content {
        padding: 24px;
    }

    .about-content.s-about-content {
        padding-left: 0;
        padding-top: 36px;
    }

    .about-gallery .col-md-4 {
        margin-bottom: 16px;
    }

    .blog-area {
        padding-top: 75px;
    }
}
