/*
Theme Name: KC Home Service Elementor
Theme URI: https://kchomeservice.com/
Author: Custom Theme
Description: A lightweight, Elementor-compatible WordPress theme for KC Home Service-style home improvement websites.
Version: 3.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kc-home-service-elementor
License: GPL-2.0-or-later
*/

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --kc-orange: #d69a2d;
    --kc-orange-dark: #b97d1d;
    --kc-black: #111111;
    --kc-text: #333333;
    --kc-muted: #666666;
    --kc-light: #f5f5f3;
    --kc-white: #ffffff;
    --kc-border: #e5e5e5;
    --kc-container: 1400px;
    --kc-radius: 0;
    --kc-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--kc-text);
    background: var(--kc-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.admin-bar .kc-header {
    top: 32px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.kc-container {
    width: min(calc(100% - 40px), var(--kc-container));
    margin-inline: auto;
}

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

/* --------------------------------------------------------------------------
   3. Header / navigation
   -------------------------------------------------------------------------- */
.kc-header {
    position: relative;
    z-index: 1000;
    color: var(--kc-black);
    background: var(--kc-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.kc-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(100%, 1500px);
    min-height: 112px;
    padding: 0 40px;
    margin-inline: auto;
}

.kc-header-left {
    justify-self: start;
}

.kc-header-right {
    justify-self: end;
    text-align: right;
}

.kc-header-cta {
    display: flex;
    flex-direction: column;
    color: var(--kc-black);
    line-height: 1.2;
    text-decoration: none;
}

.kc-header-cta:hover {
    color: var(--kc-orange-dark);
}

.cta-small {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.6;
}

.cta-main {
    font-size: 15px;
    font-weight: 700;
}

.kc-header-logo {
    justify-self: center;
}

.kc-header-logo img {
    max-width: 215px;
    max-height: 80px;
}

.kc-navigation-wrapper {
    border-top: 1px solid #eeeeee;
}

.kc-navigation {
    display: flex;
    justify-content: center;
}

.kc-menu,
.kc-menu ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kc-menu {
    padding: 15px 20px;
}

.kc-menu li {
    position: relative;
}

.kc-menu a {
    display: block;
    padding: 4px 0;
    color: var(--kc-black);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.kc-menu a:hover,
.kc-menu .current-menu-item > a,
.kc-menu .current-menu-ancestor > a {
    color: var(--kc-orange-dark);
}

.kc-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1001;
    display: block;
    min-width: 240px;
    padding: 12px 0;
    background: var(--kc-white);
    border: 1px solid var(--kc-border);
    box-shadow: var(--kc-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

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

.kc-menu .sub-menu li {
    display: block;
}

.kc-menu .sub-menu a {
    padding: 8px 18px;
    font-size: 12px;
    white-space: nowrap;
}

.kc-mobile-toggle {
    display: none;
    border: 1px solid var(--kc-border);
    background: var(--kc-white);
    padding: 8px 12px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. Hero / buttons
   -------------------------------------------------------------------------- */
.kc-hero {
    display: flex;
    align-items: center;
    min-height: 690px;
    color: var(--kc-white);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2)),
        url("assets/images/hero-placeholder.svg") center / cover;
}

.kc-hero-content {
    max-width: 780px;
    padding: 110px 0;
}

.kc-eyebrow,
.kc-eyebrow-dark {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.kc-eyebrow-dark {
    color: var(--kc-orange-dark);
}

.kc-hero h1 {
    margin: 15px 0;
    color: var(--kc-white);
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.03;
}

.kc-hero p {
    max-width: 650px;
    font-size: 19px;
}

.kc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.kc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 2px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.kc-btn-primary {
    color: var(--kc-white);
    background: var(--kc-orange);
}

.kc-btn-primary:hover {
    color: var(--kc-white);
    background: var(--kc-orange-dark);
}

.kc-btn-outline {
    color: var(--kc-white);
    border-color: var(--kc-white);
}

.kc-btn-outline:hover {
    color: var(--kc-black);
    background: var(--kc-white);
}

/* --------------------------------------------------------------------------
   5. Sections / cards / content
   -------------------------------------------------------------------------- */
.kc-section {
    padding: 80px 0;
}

.kc-section-light {
    background: var(--kc-light);
}

.kc-section-head {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.kc-section-head h1,
.kc-section-head h2 {
    color: var(--kc-black);
    line-height: 1.1;
}

.kc-section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.kc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kc-card {
    overflow: hidden;
    background: var(--kc-white);
    border: 1px solid var(--kc-border);
}

.kc-card-image {
    height: 220px;
    background: #dddddd url("assets/images/service-placeholder.svg") center / cover;
}

.kc-card-body {
    padding: 25px;
}

.kc-card h3 {
    margin-top: 0;
    color: var(--kc-black);
    font-size: 22px;
}

.kc-card h3 a {
    text-decoration: none;
}

.kc-card h3 a:hover {
    color: var(--kc-orange-dark);
}

.kc-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.kc-about-image {
    min-height: 460px;
    background: #cccccc url("assets/images/about-placeholder.svg") center / cover;
}

.kc-about h2 {
    color: var(--kc-black);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
}

.kc-checks {
    padding: 0;
    list-style: none;
}

.kc-checks li {
    margin-bottom: 8px;
}

.kc-checks li::before {
    margin-right: 10px;
    color: var(--kc-orange);
    font-weight: 900;
    content: "✓";
}

.kc-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.kc-gallery-item {
    min-height: 250px;
    background: #bbbbbb url("assets/images/project-placeholder.svg") center / cover;
}

.kc-testimonial {
    padding: 30px;
    background: var(--kc-white);
    border: 1px solid var(--kc-border);
}

.kc-stars {
    color: var(--kc-orange);
    letter-spacing: 2px;
}

.kc-faq {
    max-width: 900px;
    margin-inline: auto;
}

.kc-faq details {
    padding: 18px 0;
    border-bottom: 1px solid #dddddd;
}

.kc-faq summary {
    color: var(--kc-black);
    font-weight: 700;
    cursor: pointer;
}

.kc-content h1,
.kc-content h2,
.kc-content h3 {
    color: var(--kc-black);
    line-height: 1.2;
}

.kc-content img {
    margin-block: 20px;
}

/* --------------------------------------------------------------------------
   6. Service page template
   -------------------------------------------------------------------------- */
.kc-page-hero {
    padding: 100px 0;
    color: var(--kc-white);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25)),
        url("assets/images/hero-placeholder.svg") center / cover;
}

.kc-page-hero h1 {
    max-width: 900px;
    margin: 10px 0;
    color: var(--kc-white);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
}

.kc-service-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 50px;
    align-items: start;
}

.kc-service-sidebar {
    padding: 30px;
    background: var(--kc-light);
    border: 1px solid var(--kc-border);
}

.kc-service-sidebar h3 {
    margin-top: 0;
    color: var(--kc-black);
}

.kc-service-sidebar ul {
    margin: 0;
    padding-left: 20px;
}

.kc-service-cta {
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   7. Final CTA / footer
   -------------------------------------------------------------------------- */
.kc-final-cta {
    padding: 90px 20px;
    color: var(--kc-white);
    text-align: center;
    background: #151515;
}

.kc-final-cta h2 {
    color: var(--kc-white);
    font-size: clamp(32px, 5vw, 58px);
}

.kc-footer {
    padding: 60px 0 20px;
    color: #dddddd;
    background: var(--kc-black);
}

.kc-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.kc-footer h3 {
    color: var(--kc-white);
}

.kc-footer a {
    text-decoration: none;
}

.kc-footer a:hover {
    color: var(--kc-orange);
}

.kc-footer ul {
    padding: 0;
    list-style: none;
}

.kc-footer-bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid #333333;
    font-size: 13px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   8. Elementor compatibility
   -------------------------------------------------------------------------- */

/*
 * Elementor must own the page canvas on Elementor-built pages.
 * Do not constrain the Elementor document inside the theme container.
 */
.kc-elementor-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.kc-elementor-page > .elementor,
.kc-elementor-page .elementor {
    width: 100%;
    max-width: none;
}

.elementor-page .elementor-section,
.elementor-page .elementor-container,
.elementor-page .e-con {
    box-sizing: border-box;
}

/* Never add theme container padding around an Elementor document. */
.elementor-page .kc-elementor-page .kc-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .kc-header-inner {
        min-height: 90px;
        padding: 0 24px;
    }

    .kc-header-logo img {
        max-width: 160px;
    }

    .kc-menu,
    .kc-menu ul {
        gap: 18px;
    }

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

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

@media (max-width: 850px) {
    .kc-header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .kc-navigation-wrapper {
        display: none;
    }

    .kc-header-logo {
        justify-self: center;
    }

    .kc-mobile-toggle {
        display: inline-flex;
    }

    .kc-about,
    .kc-service-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 650px) {
    .kc-container {
        width: calc(100% - 30px);
    }

    .kc-header-inner {
        min-height: 76px;
        padding: 0 15px;
    }

    .kc-header-logo img {
        max-width: 125px;
        max-height: 55px;
    }

    .kc-header-left .cta-small,
    .kc-header-right .cta-small {
        display: none;
    }

    .cta-main {
        font-size: 10px;
    }

    .kc-hero {
        min-height: 610px;
    }

    .kc-hero-content {
        padding: 80px 0;
    }

    .kc-hero h1 {
        font-size: 43px;
    }

    .kc-grid,
    .kc-gallery,
    .kc-footer-grid {
        grid-template-columns: 1fr;
    }

    .kc-section {
        padding: 60px 0;
    }
}
