/* ============================================================
   Kitzine — Visual & UI Enhancements v2
   Horizon Hero, Scroll Animations, Typography, Card Effects
   ============================================================ */

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f8f5f0; }
::-webkit-scrollbar-thumb { background: #D4A44C; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #b8882e; }

/* ============================================================
   HORIZON HERO
   ============================================================ */

.ktz-horizon {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
    cursor: default;
}

/* ── YouTube Video Backgrounds ── */
.ktz-hz-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Outer wrapper — handles opacity crossfade */
.ktz-hz-yt {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
    overflow: hidden;
}

.ktz-hz-yt--on { opacity: 1; }

/* Inner div — YT.Player target, fills wrapper before being replaced by iframe */
.ktz-hz-yt > div {
    position: absolute;
    inset: 0;
}

/* 16:9 cover: always fills the hero regardless of viewport ratio.
   !important overrides YouTube's hardcoded width/height HTML attributes */
.ktz-hz-yt iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: max(100vw, calc(100vh * 1.7778)) !important;
    height: max(100vh, calc(100vw * 0.5625)) !important;
    transform: translate(-50%, -50%) !important;
    border: none !important;
    pointer-events: none !important;
}

/* ── Overlay ── */
.ktz-hz-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top,  rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.15) 100%),
        linear-gradient(to right, rgba(0,0,0,0.55) 0%, transparent 60%);
}

/* ── Side panel ── */
.ktz-hz-side {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    opacity: 0;
}

.ktz-hz-burger {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 0;
}

.ktz-hz-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: rgba(255,255,255,0.75);
    transition: width 0.3s ease, background 0.3s ease;
}

.ktz-hz-burger span:nth-child(2) { width: 14px; }
.ktz-hz-burger:hover span        { width: 22px; background: #D4A44C; }

.ktz-hz-side-label {
    font-family: 'Lato', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.28);
    writing-mode: vertical-rl;
    text-transform: uppercase;
    margin: 0;
    user-select: none;
}

/* ── Slides ── */
.ktz-hz-track {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.ktz-hz-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    /* bottom padding: responsive using clamp */
    padding: 0
             clamp(24px, 8%, 110px)
             clamp(90px, 13vh, 165px)
             clamp(24px, 8%, 110px);
    pointer-events: none;
    visibility: hidden;
}

.ktz-hz-slide.ktz-hz-s--on {
    visibility: visible;
    pointer-events: auto;
}

.ktz-hz-body { max-width: 800px; width: 100%; }

/* Tagline */
.ktz-hz-tag {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #D4A44C;
    margin-bottom: 18px;
    opacity: 0;
}

/* Title */
.ktz-hz-title {
    font-family: 'Bebas Neue', 'BioRhyme', serif;
    font-size: clamp(56px, 9.5vw, 148px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 clamp(18px, 2.5vh, 30px) 0;
    /* prevent overflow on any screen */
    overflow-wrap: break-word;
    word-break: break-word;
}

.ktz-hz-row {
    display: block;
    overflow: hidden;
    line-height: 1;
}

.ktz-hz-char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Description */
.ktz-hz-desc {
    margin-bottom: clamp(24px, 3.5vh, 36px);
    opacity: 0;
}

.ktz-hz-desc p {
    font-family: 'Lato', sans-serif;
    font-size: clamp(13px, 1.3vw, 16px);
    font-weight: 300;
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
    margin: 0;
}

/* CTA */
.ktz-hz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
}

.ktz-hz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 2px;
    transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.ktz-hz-btn--fill {
    background: #D4A44C;
    color: #000;
    border: 1.5px solid #D4A44C;
}

.ktz-hz-btn--fill:hover,
.ktz-hz-btn--fill:focus {
    background: transparent;
    color: #D4A44C;
}

.ktz-hz-btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.42);
}

.ktz-hz-btn--ghost:hover,
.ktz-hz-btn--ghost:focus {
    border-color: #D4A44C;
    color: #D4A44C;
}

/* ── Footer bar (SCROLL + progress + counter) ── */
.ktz-hz-footer {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
}

.ktz-hz-scroll-lbl {
    font-family: 'Lato', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: rgba(255,255,255,0.33);
    text-transform: uppercase;
}

.ktz-hz-prog-track {
    width: 110px;
    height: 1px;
    background: rgba(255,255,255,0.16);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.ktz-hz-prog-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 0%;
    background: #D4A44C;
    transition: width 0.1s linear;
    border-radius: 1px;
}

.ktz-hz-counter {
    font-family: 'Lato', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.33);
    min-width: 38px;
}

/* ── Dot navigation ── */
.ktz-hz-dots {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ktz-hz-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.28);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.ktz-hz-dot--on {
    background: #D4A44C;
    transform: scale(1.6);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.ktz-stats-bar {
    background: #111;
    padding: 40px 0;
    border-top: 1px solid rgba(212,164,76,0.25);
}

.ktz-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.ktz-stat-item {
    text-align: center;
    padding: 16px 20px;
    border-right: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.3s ease;
}

.ktz-stat-item:last-child { border-right: none; }
.ktz-stat-item:hover      { transform: translateY(-4px); }

.ktz-stat-number {
    font-family: 'BioRhyme', serif;
    font-size: 46px;
    font-weight: 800;
    color: #D4A44C;
    display: inline-block;
    line-height: 1;
}

.ktz-stat-plus {
    font-family: 'BioRhyme', serif;
    font-size: 30px;
    font-weight: 800;
    color: #D4A44C;
    line-height: 1;
    vertical-align: super;
    display: inline-block;
}

.ktz-stat-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: 10px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.ktz-scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.ktz-scroll-reveal.ktz-revealed { opacity: 1; transform: translateY(0); }
.ktz-scroll-reveal--left  { transform: translateX(-32px); }
.ktz-scroll-reveal--left.ktz-revealed  { transform: translateX(0); }
.ktz-scroll-reveal--right { transform: translateX(32px); }
.ktz-scroll-reveal--right.ktz-revealed { transform: translateX(0); }
.ktz-reveal-delay-1 { transition-delay: 0.10s; }
.ktz-reveal-delay-2 { transition-delay: 0.20s; }
.ktz-reveal-delay-3 { transition-delay: 0.30s; }
.ktz-reveal-delay-4 { transition-delay: 0.40s; }

/* ============================================================
   GLOBAL SECTION ENHANCEMENTS
   ============================================================ */
.homepage .cmp-image,
.homepage .our-projects__imagecontainer,
.homepage .center-slide__item,
.homepage .squareImg,
.homepage .gallery-item { overflow: hidden; }

.homepage .cmp-image img,
.homepage .our-projects__image img,
.homepage .center-slide__img,
.homepage .squareImg img {
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1) !important;
    will-change: transform;
}

.homepage .cmp-image:hover img,
.homepage .our-projects__imagecontainer:hover img,
.homepage .squareImg:hover img { transform: scale(1.06); }

.homepage .cmp-teaser,
.homepage .teaserextended,
.homepage .our-projects__item,
.homepage .clientsay__item,
.homepage .ids-revamp-testimonial__card {
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), box-shadow 0.32s ease !important;
}

.homepage .cmp-teaser:hover,
.homepage .teaserextended:hover,
.homepage .our-projects__item:hover,
.homepage .clientsay__item:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,0.12) !important;
}

.primary_new_header_wrapper {
    transition: box-shadow 0.35s ease, background-color 0.35s ease !important;
}
.primary_new_header_wrapper.ktz-header-scrolled {
    box-shadow: 0 3px 24px rgba(0,0,0,0.09) !important;
}

.homepage .title__h1,
.homepage .title__h2,
.homepage .cmp-title__text,
.homepage .sleek-kitchen__title,
.homepage .sleek-title,
.homepage .common-title__text,
.homepage .whychooseus__title {
    font-family: 'BioRhyme', serif !important;
    letter-spacing: -0.5px;
}

.homepage .btn--primary,
.homepage .btn.btn--primary,
.homepage a.btn--primary {
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    position: relative;
    overflow: hidden;
}

.homepage #process_slide li img {
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.homepage #process_slide li.active img,
.homepage #process_slide li.bounce img { transform: scale(1.12) !important; }

.homepage .accordion button { transition: background 0.25s ease, color 0.25s ease !important; }

.homepage .ids-revamp-testimonial__card,
.homepage .clientsay__item-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.homepage .ids-revamp-testimonial__card:hover,
.homepage .clientsay__item-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.1) !important;
}

/* Footer links */
.footer__social_icon_list li a {
    transition: transform 0.25s ease, color 0.25s ease;
    display: inline-block;
}
.footer__social_icon_list li a:hover { transform: translateY(-3px) scale(1.15); }

.footer__category__main .cmp-contentfragment__element-value a {
    position: relative;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer__category__main .cmp-contentfragment__element-value a:hover {
    color: #D4A44C;
    padding-left: 6px;
}

/* Homepage slider */
.homepage .center-slider-wrapper .slick-slide img,
.homepage .center-slider-wrapper .center-slide__img {
    transition: transform 0.5s ease, filter 0.5s ease !important;
    filter: brightness(0.88) saturate(1.1);
}
.homepage .center-slider-wrapper .slick-current img,
.homepage .center-slider-wrapper .slick-current .center-slide__img {
    filter: brightness(1) saturate(1.15);
    transform: scale(1.02);
}

.homepage .common-title__text::after,
.homepage .title__h2::after,
.homepage .sleek-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #D4A44C, #f0c060);
    margin-top: 14px;
    border-radius: 2px;
}

.homepage .common-title--center .common-title__text::after,
.homepage .title--center .title__h2::after {
    margin-left: auto;
    margin-right: auto;
}

.homepage .whychooseus__icon,
.homepage .whychooseus__item-icon { transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.homepage .whychooseus__item:hover .whychooseus__icon,
.homepage .whychooseus__item:hover .whychooseus__item-icon { transform: scale(1.2) rotate(-5deg); }

.homepage .design_gallery__item,
.homepage .gal-item { overflow: hidden; position: relative; }
.homepage .design_gallery__item img,
.homepage .gal-item img { transition: transform 0.6s ease !important; }
.homepage .design_gallery__item:hover img,
.homepage .gal-item:hover img { transform: scale(1.08) !important; }

.homepage .swiper-pagination-bullet-active { background: #D4A44C !important; }
.homepage .swiper-pagination-bullet {
    opacity: 0.5;
    transition: opacity 0.3s ease, background 0.3s ease;
}
.homepage .swiper-pagination-bullet:hover { opacity: 0.8; }

/* ============================================================
   RESPONSIVE — HERO + STATS
   ============================================================ */

/* Large desktops (≥1400px) — push content slightly higher */
@media (min-width: 1400px) {
    .ktz-hz-slide {
        padding-bottom: clamp(120px, 15vh, 200px);
    }
}

/* Laptop / mid-size (≤1200px) */
@media (max-width: 1200px) {
    .ktz-hz-title { font-size: clamp(56px, 9vw, 130px); }
}

/* Tablet landscape (≤1024px) */
@media (max-width: 1024px) {
    .ktz-hz-side  { left: 18px; }
    .ktz-hz-dots  { right: 18px; }
    .ktz-hz-title { font-size: clamp(52px, 9vw, 112px); }
    .ktz-hz-slide { padding-left: clamp(20px, 6%, 80px); padding-right: clamp(20px, 6%, 80px); }
}

/* Tablet portrait (≤768px) */
@media (max-width: 768px) {
    .ktz-hz-side   { display: none; }
    .ktz-hz-dots   { display: none; }
    .ktz-hz-footer { bottom: 16px; gap: 12px; }
    .ktz-hz-prog-track { width: 80px; }
    .ktz-hz-slide  {
        padding-left: 5%;
        padding-right: 5%;
        padding-bottom: clamp(80px, 18vh, 130px);
    }
    .ktz-hz-title  { font-size: clamp(50px, 12vw, 90px); }
    .ktz-hz-desc p { font-size: 14px; }
    .ktz-hz-btn    { padding: 12px 22px; font-size: 10px; letter-spacing: 2px; }
    .ktz-hz-actions { gap: 10px; }

    .ktz-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ktz-stat-item:nth-child(2) { border-right: none; }
    .ktz-stat-item:nth-child(1),
    .ktz-stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding-bottom: 24px;
        margin-bottom: 4px;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .ktz-horizon   { height: 100svh; }
    .ktz-hz-slide  {
        padding-left: 5%;
        padding-right: 5%;
        padding-bottom: clamp(70px, 16vh, 110px);
    }
    .ktz-hz-title  { font-size: clamp(44px, 13vw, 68px); }
    .ktz-hz-tag    { font-size: 9px; letter-spacing: 4px; margin-bottom: 14px; }
    .ktz-hz-desc p { font-size: 13px; }
    .ktz-hz-actions { flex-direction: column; gap: 10px; }
    .ktz-hz-btn    {
        text-align: center;
        justify-content: center;
        width: 100%;
        max-width: 230px;
        padding: 13px 20px;
        font-size: 10px;
    }
    .ktz-stat-number { font-size: 36px; }
    .ktz-stat-label  { font-size: 9px; letter-spacing: 1.5px; }
}

/* Very small phones (≤375px) */
@media (max-width: 375px) {
    .ktz-hz-title  { font-size: clamp(38px, 12.5vw, 56px); }
    .ktz-hz-desc   { display: none; }
    .ktz-hz-footer { gap: 10px; }
    .ktz-hz-prog-track { width: 60px; }
}

/* Landscape mobile — very short viewports */
@media (max-height: 500px) and (orientation: landscape) {
    .ktz-hz-side   { display: none; }
    .ktz-hz-slide  {
        padding-bottom: clamp(48px, 10vh, 70px);
        padding-left: 5%;
        padding-right: 5%;
    }
    .ktz-hz-title  { font-size: clamp(32px, 7vh, 60px); margin-bottom: 8px; }
    .ktz-hz-desc   { display: none; }
    .ktz-hz-tag    { margin-bottom: 8px; }
    .ktz-hz-footer { bottom: 10px; gap: 10px; }
    .ktz-hz-prog-track { width: 70px; }
}

/* ============================================================
   SEO CONTENT SECTIONS
   ============================================================ */
.ktz-seo-section {
    background: #faf9f7;
    padding: 56px 0 48px;
    border-top: 1px solid #ede9e0;
    font-family: 'Lato', 'Open Sans', sans-serif;
}

.ktz-seo-intro { margin-bottom: 36px; }

.ktz-seo-intro__title {
    font-family: 'BioRhyme', serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.3;
}

.ktz-seo-intro p { font-size: 16px; line-height: 1.8; color: #444; max-width: 820px; }

.ktz-service-areas {
    background: #fff;
    border: 1px solid #e8e2d8;
    border-left: 4px solid #D4A44C;
    border-radius: 4px;
    padding: 22px 24px;
    margin-bottom: 28px;
}

.ktz-service-areas__title {
    font-family: 'BioRhyme', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #D4A44C;
    margin-bottom: 14px;
}

.ktz-service-areas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 24px;
}

.ktz-service-areas__grid > div { font-size: 13.5px; color: #555; line-height: 1.7; }
.ktz-service-areas__grid strong { color: #1a1a1a; font-weight: 700; }

.ktz-seo-address {
    background: #111;
    color: #e8e0d0;
    border-radius: 6px;
    padding: 22px 28px;
    display: inline-block;
}

.ktz-seo-address address { font-style: normal; font-size: 14px; line-height: 1.9; color: #ccc; }
.ktz-seo-address strong { font-size: 15px; font-weight: 700; color: #D4A44C; display: block; margin-bottom: 4px; }
.ktz-seo-address a { color: #D4A44C; text-decoration: none; }
.ktz-seo-address a:hover { text-decoration: underline; }

.ktz-faq { margin-top: 36px; border-top: 1px solid #ede9e0; padding-top: 28px; }
.ktz-faq__title { font-family: 'BioRhyme', serif; font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; }
.ktz-faq__item { border: 1px solid #ede9e0; border-radius: 6px; padding: 18px 22px; margin-bottom: 12px; background: #fff; }
.ktz-faq__q { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 10px 0; line-height: 1.5; }
.ktz-faq__a { font-size: 14.5px; color: #555; line-height: 1.8; margin: 0; }

.ktz-seo-body { margin-bottom: 32px; }
.ktz-seo-body h2 { font-family: 'BioRhyme', serif; font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: #1a1a1a; margin: 28px 0 12px; line-height: 1.3; }
.ktz-seo-body ul { padding-left: 22px; margin-bottom: 18px; }
.ktz-seo-body li { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 6px; }
.ktz-seo-body p  { font-size: 15.5px; color: #444; line-height: 1.8; margin-bottom: 14px; }

@media (max-width: 768px) {
    .ktz-seo-section { padding: 40px 0 32px; }
    .ktz-service-areas__grid { grid-template-columns: 1fr; }
    .ktz-seo-address { display: block; }
    .ktz-faq__item { padding: 14px 16px; }
}
