/* =============================================================================
   Kai Plaster – site styles only (reset + layout + home / header / footer)
   ============================================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --kai-blue: #0076AE;
    --kai-blue-dark: #005C88;
    --kai-blue-soft: #e3eefc;
    --kai-blue-tint: #d4e5fa;
    --kai-black: #0d0d0d;
    --kai-text: #1c1c1c;
    --kai-muted: #5a5a5a;
    --kai-border: #d4d4d8;
    --kai-border-light: #e8e8ec;
    --kai-bg-muted: #efeff2;
    --kai-bg-page: #ffffff;
    --kai-radius: 6px;
    --kai-radius-lg: 10px;
    --kai-shadow-card: 0 4px 24px rgba(15, 23, 42, 0.08);
    --kai-shadow-card-hover: 0 12px 40px rgba(30, 111, 217, 0.12);
    --kai-font-sans: "DM Sans", system-ui, sans-serif;
    --kai-font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--kai-font-sans);
    line-height: 1.6;
    color: var(--kai-text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.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;
}

/* Quote form flash messages (home) */
.quote-message {
    padding: 14px 20px;
    border-radius: var(--kai-radius);
    font-weight: 500;
}

.quote-message--success {
    background-color: #d4edda;
    color: #155724;
}

.quote-message--error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Header shell (shared with inner pages) */
.main-header {
    background-color: var(--white);
    box-shadow: 0 1px 0 var(--kai-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-khazma {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-khazma .logo-img {
    display: block;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.main-header .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-header .nav-link {
    text-decoration: none;
}

.main-header .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.main-header .hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--kai-text);
    transition: transform 0.3s, opacity 0.3s;
}

.main-header .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.main-header .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.main-header .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero slider structure */
.hero {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hero-controls button {
    pointer-events: auto;
}

.hero-prev,
.hero-next {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

.hero-prev:hover,
.hero-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-dots .dot.active {
    background-color: var(--white);
}

/* ----- Kai Plaster brand (header, home, footer) ----- */

.kai-plaster-header,
.kai-plaster-footer {
    font-family: var(--kai-font-sans);
}

.kai-plaster-header {
    background: var(--white);
    box-shadow: 0 1px 0 var(--kai-border-light);
}

.kai-plaster-header .kai-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    flex-wrap: wrap;
}

.kai-plaster-header .kai-logo .logo-img {
    height: 65px;
    max-width: 200px;
}

.kai-plaster-header .nav-menu {
    gap: 2px;
}

.kai-plaster-header .nav-link {
    font-family: var(--kai-font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--kai-text);
    padding: 10px 14px;
    border-radius: var(--kai-radius);
    letter-spacing: 0.01em;
}

.kai-plaster-header .nav-link:hover {
    color: var(--kai-blue);
    background: transparent;
}

.kai-plaster-header .nav-link.active {
    color: var(--kai-blue);
    background: var(--kai-blue-soft);
}

.btn-header-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--kai-blue);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--kai-radius);
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30, 111, 217, 0.25);
}

.btn-header-quote:hover {
    background: var(--kai-blue-dark);
    color: var(--white) !important;
    box-shadow: 0 4px 14px rgba(30, 111, 217, 0.35);
}

/* Home typography */
.kai-plaster-home {
    font-family: var(--kai-font-sans);
    color: var(--kai-text);
}

.kai-section-title,
.kai-hero-title,
.kai-bottom-cta-title {
    font-family: var(--kai-font-serif);
    font-weight: 700;
    color: var(--kai-black);
}

.kai-section-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    margin-bottom: 12px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.kai-section-title--center {
    text-align: center;
    margin-bottom: 44px;
}

/* Hero (Kai) */
.kai-plaster-home .kai-hero {
    min-height: 560px;
}

/* .kai-plaster-home .kai-hero .hero-image.kai-hero-image {
    filter: grayscale(100%) contrast(1.05) brightness(0.92);
} */

.kai-hero-overlay {
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.72) 0%, rgba(8, 12, 22, 0.5) 45%, rgba(8, 12, 22, 0.58) 100%);
}

.kai-hero-content {
    max-width: 900px;
    text-align: center;
    padding-top: 8px;
}

.kai-hero-title {
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    color: var(--white);
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.45);
    margin-bottom: 18px;
    line-height: 1.18;
    font-weight: 700;
}

.kai-hero-lead {
    font-size: clamp(1rem, 1.85vw, 1.2rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Inner page hero (About, Services, Contact) */
.kai-page-hero {
    position: relative;
    overflow: hidden;
    background: #2a2a2a;
    padding: clamp(92px, 10vw, 140px) 0 clamp(56px, 7vw, 84px);
}

.kai-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.kai-page-hero-overlay {
    position: absolute;
    inset: 0;
}

.kai-page-hero-content {
    position: relative;
    text-align: center;
}

.kai-page-hero-label {
    display: inline-block;
    padding: 10px 16px;
    border-radius: var(--kai-radius);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

@media (max-width: 576px) {
    .kai-page-hero-label {
        margin-bottom: 14px;
    }
}

.kai-hero-contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 48px;
    margin-bottom: 32px;
}

.kai-hero-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 15px;
}

.kai-hero-contact-item i {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.kai-hero-contact-item a {
    color: var(--white);
    text-decoration: none;
}

.kai-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn-kai-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 36px;
    background: var(--kai-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--kai-radius);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(30, 111, 217, 0.35);
}

.btn-kai-primary:hover {
    background: var(--kai-blue-dark);
    color: var(--white);
    box-shadow: 0 6px 22px rgba(30, 111, 217, 0.45);
    transform: translateY(-1px);
}

.btn-kai-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 36px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--kai-radius);
    border: 2px solid var(--white);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-kai-outline:hover {
    background: var(--white);
    color: var(--kai-blue);
    border-color: var(--white);
}

.btn-kai-outline--hero {
    background: rgba(255, 255, 255, 0.96);
    color: var(--kai-blue);
    border: 2px solid var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.btn-kai-outline--hero:hover {
    background: var(--white);
    color: var(--kai-blue-dark);
    border-color: var(--white);
}

/* About */
.kai-about {
    padding: 60px 0;
    background: var(--kai-bg-muted);
}

/* Services (inner page) */
.kai-services {
    padding: 60px 0;
    background: var(--kai-bg-muted);
}

.kai-services-head {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.kai-services-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--kai-radius);
    background: rgba(22, 101, 216, 0.08);
    color: var(--kai-blue);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 14px;
}

.kai-services-intro {
    color: var(--kai-muted);
    line-height: 1.75;
    margin: 14px auto 0;
    max-width: 680px;
    font-size: 16px;
}

.kai-services-list {
    display: grid;
    gap: 22px;
}

.kai-service-row {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
    grid-template-areas: "copy media";
    background: var(--white);
    border-radius: var(--kai-radius-lg);
    box-shadow: var(--kai-shadow-card);
    border: 1px solid var(--kai-border-light);
    padding: clamp(22px, 3vw, 30px);
}

.kai-service-copy {
    grid-area: copy;
}

.kai-service-media {
    grid-area: media;
}

.kai-service-row:nth-child(even) {
    grid-template-areas: "media copy";
}

.kai-service-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--kai-text);
    font-weight: 700;
}

.kai-service-desc {
    color: var(--kai-muted);
    line-height: 1.85;
    font-size: 16px;
    margin: 0;
    text-align: justify;
    hyphens: auto;
}

.kai-service-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kai-service-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--kai-radius-lg);
    border: 1px solid var(--kai-border-light);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    object-fit: cover;
}

@media (max-width: 860px) {
    .kai-service-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "media";
    }
}

.kai-about-shell {
    padding-bottom: 8px;
}

.kai-about-card {
    background: var(--white);
    border-radius: var(--kai-radius-lg);
    box-shadow: var(--kai-shadow-card);
    padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 48px) clamp(40px, 5vw, 56px);
    border: 1px solid var(--kai-border-light);
}

.kai-about-subtitle {
    text-align: center;
    color: var(--kai-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 28px;
    font-family: var(--kai-font-sans);
}

.kai-about .kai-section-title {
    text-align: center;
    margin-bottom: 12px;
}

.kai-about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 48px);
    max-width: 100%;
    margin: 0;
}

.kai-about-col p {
    color: var(--kai-muted);
    line-height: 1.85;
    font-size: 16px;
    text-align: justify;
    hyphens: auto;
}

.kai-about-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kai-about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--kai-radius-lg);
    border: 1px solid var(--kai-border-light);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    height: 500px;
    object-fit: cover;
}


.kai-about-banner {
    background: var(--kai-blue);
    color: var(--white);
    padding: clamp(16px, 3vw, 22px) clamp(16px, 4vw, 28px);
    font-weight: 600;
    font-size: clamp(0.85rem, 1.65vw, 1.05rem);
    letter-spacing: 0.01em;
    line-height: 1.45;
    margin-top: 40px;
}

.kai-about-banner-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: clamp(0.5rem, 2.5vw, 1.75rem);
    row-gap: 0.6rem;
}

.kai-about-banner-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 1 auto;
    text-align: left;
}

.kai-about-banner-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.92;
    flex-shrink: 0;
}

.kai-about-banner a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kai-about-banner a:hover {
    opacity: 0.92;
}

@media (max-width: 640px) {
    .kai-about-banner-list {
        flex-direction: column;
        align-items: center;
        row-gap: 0.5rem;
    }

    .kai-about-banner-list li {
        width: 100%;
        max-width: 22rem;
        justify-content: flex-start;
    }
}

/* Services grid */
.kai-services-home {
    padding: 96px 0;
    background: var(--kai-bg-page);
}

.kai-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.kai-service-card {
    background: var(--white);
    border: 1px solid var(--kai-border-light);
    border-radius: var(--kai-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.kai-service-card:hover {
    box-shadow: var(--kai-shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(30, 111, 217, 0.2);
}

.kai-service-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--light-gray);
    border-radius: var(--kai-radius-lg) var(--kai-radius-lg) 0 0;
}

.kai-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.kai-service-card:hover .kai-service-card-image img {
    transform: scale(1.04);
}

.kai-service-card-body {
    padding: 22px 24px 28px;
}

.kai-service-card-title {
    font-family: var(--kai-font-serif);
    color: var(--kai-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.kai-service-card-text {
    color: var(--kai-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.btn-kai-service {
    display: inline-block;
    padding: 10px 22px;
    background: var(--kai-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--kai-font-sans);
    border-radius: var(--kai-radius);
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(30, 111, 217, 0.25);
}

.btn-kai-service:hover {
    background: var(--kai-blue-dark);
    color: var(--white);
}

/* Why choose us */
.kai-why {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.kai-why-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(28, 32, 38, 0.78), rgba(28, 32, 38, 0.78)),
        url("../images/b2.png") center / cover no-repeat;
    transform: scale(1.02);
}

.kai-why-inner {
    position: relative;
    z-index: 1;
}

.kai-why-panel {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--kai-radius-lg);
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 52px);
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.kai-why-panel .kai-section-title {
    text-align: center;
}

.kai-why-subtitle {
    color: var(--kai-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 18px;
    text-align: center;
    font-family: var(--kai-font-sans);
}

.kai-why-intro {
    color: var(--kai-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.kai-why-intro--second {
    margin-bottom: 32px;
}

.kai-why-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.kai-why-box {
    background: var(--white);
    border: 1px solid var(--kai-border-light);
    border-radius: var(--kai-radius);
    padding: 22px 24px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.kai-why-box h3 {
    font-family: var(--kai-font-sans);
    color: var(--kai-blue);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.kai-why-box p {
    color: var(--kai-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Quote + testimonials */
.kai-quote-testimonials {
    padding: 96px 0;
    background: var(--kai-bg-page);
}

.kai-quote-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.kai-quote-testimonials .quote-message {
    margin-bottom: 18px;
    text-align: left;
}

.kai-quote-col .kai-section-title,
.kai-testimonial-col .kai-section-title {
    margin-bottom: 24px;
}

.kai-quote-form .form-group {
    margin-bottom: 16px;
}

.kai-quote-form input,
.kai-quote-form select,
.kai-quote-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--kai-border);
    border-radius: var(--kai-radius);
    font-family: var(--kai-font-sans);
    font-size: 15px;
    background: var(--white);
    color: var(--kai-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kai-quote-form input::placeholder,
.kai-quote-form textarea::placeholder {
    color: #9ca3af;
}

.kai-quote-form input:focus,
.kai-quote-form select:focus,
.kai-quote-form textarea:focus {
    outline: none;
    border-color: var(--kai-blue);
    box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.12);
}

.kai-quote-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5a5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    background-color: var(--white);
}

.kai-quote-form select:focus {
    background-color: var(--white);
}

.btn-kai-quote-submit {
    width: 100%;
    padding: 16px 20px;
    background: var(--kai-blue);
    color: var(--white);
    border: none;
    border-radius: var(--kai-radius);
    font-weight: 600;
    font-size: 16px;
    font-family: var(--kai-font-sans);
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(30, 111, 217, 0.3);
}

.btn-kai-quote-submit:hover {
    background: var(--kai-blue-dark);
}

.kai-testimonial-card {
    background: var(--kai-blue-tint);
    border-radius: var(--kai-radius-lg);
    padding: 28px 28px 56px;
    position: relative;
    min-height: 300px;
    border: 1px solid rgba(30, 111, 217, 0.14);
}

.kai-stars {
    color: #eab308;
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.kai-testimonial-quote {
    text-align: left;
    color: var(--kai-text);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 20px !important;
}

.kai-testimonial-name {
    color: var(--kai-blue);
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    font-family: var(--kai-font-sans);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: default;
}

.kai-testimonials-slider .testimonial-slide {
    display: none;
    padding: 0;
}

.kai-testimonials-slider .testimonial-slide.active {
    display: block;
}

.kai-testimonial-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.testimonial-nav-prev,
.testimonial-nav-next {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid var(--kai-blue);
    background: var(--white);
    color: var(--kai-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.testimonial-nav-prev:hover,
.testimonial-nav-next:hover {
    background: var(--kai-blue);
    color: var(--white);
}

.kai-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.kai-testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--kai-blue);
    cursor: pointer;
}

.kai-testimonial-dots .dot.active {
    background: var(--kai-blue);
}

/* Latest works */
.kai-latest-works {
    padding: 96px 0;
    background: var(--kai-bg-muted);
}

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

.kai-gallery-cell {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--kai-radius);
    background: #e4e6eb;
    border: 1px solid var(--kai-border-light);
    position: relative;
}

.kai-gallery-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: inherit;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kai-gallery-open:hover:not(:disabled),
.kai-gallery-open:focus-visible:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(30, 111, 217, 0.2);
    outline: 2px solid var(--kai-blue);
    outline-offset: 2px;
}

.kai-gallery-open:disabled {
    cursor: default;
}

.kai-gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.kai-gallery-cell.is-empty .kai-gallery-open {
    display: none;
}

.kai-gallery-cell.is-empty {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    position: relative;
}

.kai-gallery-cell.is-empty::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / 40px no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

/* Gallery lightbox */
.kai-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 4vw, 32px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.kai-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.kai-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(8, 12, 22, 0.92);
    cursor: pointer;
}

.kai-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kai-lightbox-img {
    display: block;
    max-width: min(90vw, 1100px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--kai-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.kai-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--kai-text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.kai-lightbox-close:hover {
    background: var(--kai-blue);
    color: var(--white);
}

.kai-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--kai-blue);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.kai-lightbox-nav:hover {
    background: var(--kai-blue);
    color: var(--white);
}

.kai-lightbox-prev {
    left: clamp(-8px, -2vw, -56px);
}

.kai-lightbox-next {
    right: clamp(-8px, -2vw, -56px);
}

@media (max-width: 768px) {
    .kai-lightbox-prev {
        left: 4px;
    }

    .kai-lightbox-next {
        right: 4px;
    }

    .kai-lightbox-close {
        top: 8px;
        right: 8px;
    }
}

body.kai-lightbox-open {
    overflow: hidden;
}

/* Bottom CTA */
.kai-bottom-cta {
    background: var(--kai-blue);
    padding: 64px 0;
    text-align: center;
}

.kai-bottom-cta-title {
    color: var(--white);
    font-size: clamp(1.4rem, 3vw, 2.05rem);
    margin-bottom: 32px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.12);
}

.kai-bottom-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.btn-kai-cta-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 32px;
    background: var(--white);
    color: var(--kai-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--kai-radius);
    transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-kai-cta-white:hover {
    color: var(--kai-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.btn-kai-cta-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 32px;
    background: var(--kai-black);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--kai-radius);
    transition: background 0.2s, transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-kai-cta-dark:hover {
    background: #1a1a1a;
    color: var(--white);
}

/* Footer */
.kai-plaster-footer {
    background: var(--kai-black);
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
}

.kai-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.kai-footer-brand {
    font-family: var(--kai-font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.kai-footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kai-footer-social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--kai-radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.kai-footer-social-link:hover {
    background: var(--kai-blue);
    color: var(--white);
}

.kai-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    margin-bottom: 40px;
    padding-top: 32px;
}

.kai-footer-heading {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    font-family: var(--kai-font-serif);
}

.kai-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kai-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: 15px;
    transition: color 0.2s;
}

.kai-footer-links a:hover {
    color: var(--white);
}

.kai-footer-contact,
.kai-footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.kai-footer-contact li,
.kai-footer-hours li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.kai-footer-contact i {
    color: var(--kai-blue);
    width: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.kai-footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.kai-footer-contact a:hover {
    color: var(--white);
}

.kai-footer-hours li {
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.kai-footer-map {
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.kai-footer-map iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

.kai-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0 24px;
    margin-top: 0;
}

.kai-footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.kai-footer-credit {
    color: #ff8c00;
    text-decoration: none;
}

.kai-footer-credit:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .kai-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .kai-quote-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .kai-plaster-home .kai-hero {
        min-height: 480px;
    }

    .hero {
        height: 520px;
    }

    .hero-controls {
        display: none;
    }

    .hero-content {
        width: 92%;
        max-width: 100%;
        padding: 0 24px;
    }

    .kai-plaster-header .hamburger {
        display: flex;
        order: 3;
    }

    .kai-plaster-header .btn-header-quote {
        order: 2;
        margin-left: auto;
        padding: 10px 16px;
        font-size: 13px;
    }

    .kai-plaster-header .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 20px;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .kai-plaster-header .nav-menu.active {
        left: 0;
    }

    .kai-plaster-header .nav-link {
        display: block;
        padding: 14px 18px;
    }

    .kai-plaster-header .nav-link.active {
        background: var(--kai-blue-soft);
    }

    .kai-about-columns {
        grid-template-columns: 1fr;
    }

    .kai-why-split {
        grid-template-columns: 1fr;
    }

    .kai-services-grid {
        grid-template-columns: 1fr;
    }

    .kai-testimonial-card {
        min-height: 260px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 400px;
    }

    /* Keep section spacing consistent on mobile */
    .kai-about,
    .kai-services-home,
    .kai-why,
    .kai-quote-testimonials,
    .kai-latest-works,
    .kai-bottom-cta {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* Hide contact row (Call/Email) on small mobile to match the Figma layout */
    .kai-hero-contact-row {
        display: none;
    }

    /* Hide hero CTA buttons on small mobile to match the Figma layout */
    .kai-hero-actions {
        display: none;
    }

    .kai-footer-grid {
        grid-template-columns: 1fr;
    }

    .kai-plaster-header .btn-header-quote {
        width: 100%;
        order: 4;
        margin-left: 0;
        justify-content: center;
        display: none;
    }

    .kai-plaster-header .kai-header-inner {
        padding: 12px;
    }
}

/* =============================================================================
   Contact page
   ============================================================================= */
.kai-contact {
    padding: 72px 0;
    background: linear-gradient(180deg, rgba(0, 118, 174, 0.06) 0%, rgba(255, 255, 255, 1) 55%);
}

.kai-contact-wrap {
    position: relative;
}

.kai-contact-header {
    text-align: center;
    margin-bottom: 26px;
}

.kai-contact-lead {
    max-width: 760px;
    margin: 10px auto 0;
    color: var(--kai-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.kai-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 26px;
    margin-top: 22px;
    align-items: start;
}

.kai-contact-aside {
    display: grid;
    gap: 16px;
}

.kai-contact-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px 18px;
    border-radius: var(--kai-radius-lg);
    background: var(--white);
    border: 1px solid var(--kai-border-light);
    box-shadow: var(--kai-shadow-card);
}

.kai-contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--kai-blue-soft), rgba(0, 118, 174, 0.08));
    border: 1px solid rgba(0, 118, 174, 0.16);
    color: var(--kai-blue-dark);
}

.kai-contact-card-icon i {
    font-size: 18px;
}

.kai-contact-card-body h3 {
    font-size: 1.02rem;
    line-height: 1.25;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--kai-text);
}

.kai-contact-card-body p {
    color: var(--kai-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.kai-contact-link {
    color: var(--kai-blue);
    font-weight: 700;
    text-decoration: none;
}

.kai-contact-link:hover {
    text-decoration: underline;
}

.kai-contact-muted {
    color: var(--kai-muted);
    font-weight: 600;
}

.kai-contact-hours {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.kai-contact-hours li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--kai-border-light);
    padding-bottom: 8px;
}

.kai-contact-hours li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.kai-contact-form-card {
    background: var(--white);
    border: 1px solid var(--kai-border-light);
    border-radius: 16px;
    box-shadow: var(--kai-shadow-card-hover);
    padding: 22px 22px;
}

.kai-contact-form-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--kai-text);
}

.kai-contact-form-subtitle {
    color: var(--kai-muted);
    margin-bottom: 16px;
}

.kai-contact-form {
    display: grid;
    gap: 14px;
}

.kai-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.kai-form-field {
    display: grid;
    gap: 8px;
}

.kai-form-field label {
    font-weight: 700;
    color: var(--kai-text);
    font-size: 0.95rem;
}

.kai-form-field input,
.kai-form-field select,
.kai-form-field textarea {
    width: 100%;
    border: 1px solid var(--kai-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--kai-font-sans);
    font-size: 0.98rem;
    color: var(--kai-text);
    background: #fbfbfd;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.kai-form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.kai-form-field input:focus,
.kai-form-field select:focus,
.kai-form-field textarea:focus {
    border-color: rgba(0, 118, 174, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 118, 174, 0.14);
    background: var(--white);
}

.kai-form-field--full {
    grid-column: 1 / -1;
}

.kai-form-actions {
    display: grid;
    gap: 10px;
    align-items: start;
    margin-top: 2px;
}

.kai-form-submit {
    width: 100%;
}

.kai-form-note {
    color: var(--kai-muted);
    font-size: 0.95rem;
    margin: 0;
}

.kai-form-note a {
    color: var(--kai-blue);
    font-weight: 700;
    text-decoration: none;
}

.kai-form-note a:hover {
    text-decoration: underline;
}

.kai-contact-map {
    padding: 0 0 76px;
    background: var(--white);
}

.kai-contact-map-shell {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--kai-border-light);
    box-shadow: var(--kai-shadow-card);
    line-height: 0;
}

.kai-contact-map-shell iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

@media (max-width: 992px) {
    .kai-contact-grid {
        grid-template-columns: 1fr;
    }

    .kai-contact-form-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .kai-contact {
        padding: 56px 0;
    }

    .kai-form-grid {
        grid-template-columns: 1fr;
    }

    .kai-contact-map-shell iframe {
        height: 340px;
    }
}
