/* Kutyacica homepage layout correction and shared custom header */

html,
body.home {
    overflow-x: hidden;
}

/* Blocksy constrains custom front-page templates unless these wrappers are reset. */
body.home #main-container,
body.home #main-container > .ct-container,
body.home .site-main,
body.home .content-area,
body.home .entry-content,
body.home .ct-container,
body.home .ct-container-full {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .kc-homepage {
    position: relative;
    left: 50%;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 0 0 -50vw !important;
    padding: 0 !important;
}

body.home .kc-homepage > *,
body.home .kc-homepage .alignfull {
    max-width: none;
}

body.home .kc-homepage .alignwide {
    width: min(1280px, calc(100vw - 64px)) !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
}

/*
 * All project templates still call get_header() so WordPress/Blocksy can emit
 * wp_head(), body classes and accessibility hooks. On surfaces that then render
 * kc-site-header, suppress only Blocksy's visual header to avoid two nav bars.
 */
body.kc-project-header-active #header,
body.kc-project-header-active header.ct-header {
    display: none !important;
}

.kc-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(98, 76, 74, 0.08);
    background: rgba(255, 252, 248, 0.9);
    box-shadow: 0 8px 30px rgba(83, 62, 62, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

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

.kc-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, calc(100vw - 64px));
    min-height: 78px;
    margin-inline: auto;
    gap: 32px;
}

.kc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #433839;
    text-decoration: none;
}

.kc-brand__mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffd9ca, #eee8ff);
    box-shadow: 0 10px 28px rgba(111, 81, 81, 0.12);
    font-size: 1.35rem;
}

.kc-brand__text {
    display: grid;
    line-height: 1.05;
}

.kc-brand__text strong {
    font-size: 1.18rem;
    letter-spacing: -0.025em;
}

.kc-brand__text small {
    margin-top: 5px;
    color: #897b78;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kc-primary-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: clamp(18px, 2.2vw, 34px);
    list-style: none;
}

.kc-primary-nav a {
    color: #625654;
    font-size: 0.94rem;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease;
}

.kc-primary-nav a:hover,
.kc-primary-nav a:focus-visible {
    color: #df715f;
}

.kc-header-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    background: #ee806e;
    color: #fff;
    box-shadow: 0 10px 28px rgba(213, 99, 82, 0.22);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

/* Correct the desktop hero proportions. */
.kc-hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
}

.kc-hero__grid {
    width: min(1280px, calc(100vw - 64px)) !important;
    max-width: 1280px !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr) !important;
    gap: clamp(56px, 6vw, 96px) !important;
    margin-inline: auto !important;
}

.kc-hero__copy {
    min-width: 0;
}

.kc-hero__title {
    max-width: 720px !important;
    font-size: clamp(3.7rem, 5.2vw, 5.6rem) !important;
    line-height: 0.98 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
}

.kc-hero__lead,
.kc-hero-search,
.kc-pet-choices {
    max-width: 700px !important;
}

.kc-choice .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px !important;
    border: 2px solid currentColor !important;
    border-radius: 999px !important;
    line-height: 1.2;
}

@media (max-width: 1180px) {
    .kc-site-header__inner,
    body.home .kc-homepage .alignwide,
    .kc-hero__grid {
        width: min(100vw - 40px, 1120px) !important;
    }

    .kc-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr) !important;
        gap: 44px !important;
    }

    .kc-hero__title {
        font-size: clamp(3.25rem, 5vw, 4.8rem) !important;
    }
}

@media (max-width: 980px) {
    .kc-site-header__inner {
        min-height: 70px;
    }

    .kc-primary-nav {
        display: none;
    }

    .kc-hero {
        min-height: auto;
    }

    .kc-hero__grid {
        grid-template-columns: 1fr !important;
    }

    .kc-hero__copy {
        max-width: 760px;
        margin-inline: auto;
    }
}

@media (max-width: 782px) {
    .admin-bar .kc-site-header {
        top: 46px;
    }
}

@media (max-width: 680px) {
    .kc-site-header__inner,
    body.home .kc-homepage .alignwide,
    .kc-hero__grid {
        width: calc(100vw - 24px) !important;
    }

    .kc-site-header__inner {
        min-height: 64px;
        gap: 12px;
    }

    .kc-brand__mark {
        width: 39px;
        height: 39px;
        border-radius: 14px;
    }

    .kc-brand__text small {
        display: none;
    }

    .kc-header-cta {
        min-height: 40px;
        padding-inline: 15px;
        font-size: 0.82rem;
    }

    .kc-hero__title {
        font-size: clamp(2.75rem, 12vw, 4rem) !important;
    }
}
