/* ============================================
   KKI Multilang — Language Switcher Styles
   Palette: navy #131a24 · gold #b8a97d · cream #f0eee9
   ============================================ */

.kki-ml-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.kki-ml-switcher__item {
    margin: 0;
    padding: 0;
}

.kki-ml-switcher__item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    color: #131a24;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}

.kki-ml-switcher__item a:hover {
    color: #b8a97d;
    background: rgba(184, 169, 125, 0.08);
}

.kki-ml-switcher__item.is-active a {
    color: #b8a97d;
    font-weight: 600;
    background: rgba(184, 169, 125, 0.12);
}

.kki-ml-switcher__flag {
    display: inline-flex;
    align-items: center;
}

.kki-ml-switcher__flag img {
    width: 20px;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.kki-ml-switcher__label {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}

.kki-ml-switcher__native {
    font-size: 13px;
    font-weight: 500;
}

.kki-ml-switcher__code {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #999;
    margin-left: auto;
    padding-left: 12px;
    font-weight: 600;
}

.kki-ml-switcher__check {
    color: #b8a97d;
    font-weight: 600;
    margin-left: 8px;
}

/* ============================================
   DROPDOWN STYLE
   ============================================ */

.kki-ml-switcher--dropdown {
    position: relative;
    display: inline-block;
}

.kki-ml-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    color: #131a24;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.kki-ml-switcher__trigger:hover {
    background: rgba(184, 169, 125, 0.12);
}

.kki-ml-switcher__trigger .kki-ml-switcher__flag img {
    width: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8);
}

.kki-ml-switcher__caret {
    font-size: 11px;
    color: #8a7a4e;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.kki-ml-switcher--dropdown.is-open .kki-ml-switcher__caret {
    transform: rotate(180deg);
}

.kki-ml-switcher__menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid rgba(184, 169, 125, 0.3);
    border-radius: 4px;
    box-shadow:
        0 4px 16px rgba(19, 26, 36, 0.08),
        0 12px 40px rgba(19, 26, 36, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 10000;
    max-height: 420px;
    overflow-y: auto;
}

.kki-ml-switcher--dropdown.is-open .kki-ml-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Left-aligned menu when dropdown is on left side */
.kki-ml-float-top-left .kki-ml-switcher__menu,
.kki-ml-float-bottom-left .kki-ml-switcher__menu {
    right: auto;
    left: 0;
}

.kki-ml-switcher--dropdown .kki-ml-switcher__item {
    display: block;
}

.kki-ml-switcher--dropdown .kki-ml-switcher__item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #131a24;
    font-size: 13px;
}

.kki-ml-switcher--dropdown .kki-ml-switcher__item a:hover {
    background: rgba(184, 169, 125, 0.08);
    color: #131a24;
}

.kki-ml-switcher--dropdown .kki-ml-switcher__item.is-active a {
    background: rgba(184, 169, 125, 0.12);
    color: #b8a97d;
    font-weight: 600;
}

.kki-ml-switcher--dropdown .kki-ml-switcher__native {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: inherit;
}

.kki-ml-switcher--dropdown .kki-ml-switcher__flag img {
    width: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* ============================================
   FLOATING CONTAINER
   ============================================ */

.kki-ml-float {
    position: fixed;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid rgba(184, 169, 125, 0.4);
    border-radius: 100px;
    padding: 2px;
    box-shadow:
        0 2px 8px rgba(19, 26, 36, 0.08),
        0 8px 24px rgba(19, 26, 36, 0.06);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    animation: kki-ml-fadein 0.4s ease-out;
}

.kki-ml-float--dropdown {
    border-radius: 100px;
    padding: 0;
    overflow: visible;
}

@keyframes kki-ml-fadein {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kki-ml-float:hover {
    box-shadow:
        0 4px 12px rgba(19, 26, 36, 0.12),
        0 12px 32px rgba(19, 26, 36, 0.1);
    border-color: rgba(184, 169, 125, 0.7);
}

.kki-ml-float-top-right    { top: 24px;    right: 24px; }
.kki-ml-float-top-left     { top: 24px;    left: 24px; }
.kki-ml-float-bottom-right { bottom: 24px; right: 24px; }
.kki-ml-float-bottom-left  { bottom: 24px; left: 24px; }

.kki-ml-float .kki-ml-switcher {
    gap: 0;
    padding: 0;
    background: transparent;
}

.kki-ml-float .kki-ml-switcher--inline .kki-ml-switcher__item a {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    color: #131a24;
}

.kki-ml-float .kki-ml-switcher--inline .kki-ml-switcher__item.is-active a {
    background: #131a24;
    color: #f0eee9;
    box-shadow: 0 2px 4px rgba(19, 26, 36, 0.15);
}

/* Mobile */
@media (max-width: 768px) {
    .kki-ml-float {
        top: auto;
        left: auto;
        right: 16px;
        bottom: 16px;
    }
    .kki-ml-float-top-right,
    .kki-ml-float-top-left,
    .kki-ml-float-bottom-right,
    .kki-ml-float-bottom-left {
        top: auto;
        left: auto;
        right: 16px;
        bottom: 16px;
    }
    .kki-ml-switcher__trigger {
        padding: 8px 14px;
        font-size: 12px;
    }
    .kki-ml-switcher__menu {
        min-width: 200px;
        right: 0;
        left: auto;
    }
    /* On mobile: open upward to avoid being cut off */
    .kki-ml-float .kki-ml-switcher__menu {
        top: auto;
        bottom: calc(100% + 6px);
    }
}

/* ============================================
   NAVBAR INJECTION — In-theme menu style
   ============================================ */

/* ============================================
   Navbar switcher as PILL SWITCH — EN | TH inline toggle.
   No dropdown, no JS gymnastics, no flexnav conflicts.
   Every language link is directly visible and clickable.
   ============================================ */

.kki-ml-menu-item {
    position: relative;
    list-style: none !important;
    display: inline-flex !important;
    align-items: center;
}
.kki-ml-menu-item::marker { content: none; }

/* Pill container — rounded border, houses links side-by-side */
.kki-ml-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
    padding: 3px;
    border: 1px solid rgba(184, 169, 125, 0.4);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Form wrapper — strip defaults */
.kki-ml-pill-form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Each language link/button styled as pill segment */
.kki-ml-pill-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    border-radius: 100px !important;
    color: inherit !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    opacity: 0.65;
    white-space: nowrap;
    /* Button reset (for <button> element used in form) */
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    font-family: inherit !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}
/* span variant (active) — cursor default, no pointer */
span.kki-ml-pill-link {
    cursor: default !important;
}
button.kki-ml-pill-link {
    cursor: pointer !important;
}
.kki-ml-pill-link:hover {
    opacity: 1 !important;
    background: rgba(184, 169, 125, 0.1) !important;
    color: inherit !important;
}
.kki-ml-pill-link:focus-visible {
    outline: 2px solid #b8a97d !important;
    outline-offset: 2px !important;
}

/* Active state — highlighted in gold */
.kki-ml-pill-link.is-active {
    background: #b8a97d !important;
    color: #131a24 !important;
    opacity: 1 !important;
    box-shadow: 0 1px 3px rgba(19, 26, 36, 0.15);
}
.kki-ml-pill-link.is-active:hover {
    background: #b8a97d !important;
    color: #131a24 !important;
}

/* Flag in pill */
.kki-ml-pill-flag {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    display: inline-block !important;
    vertical-align: middle;
}

.kki-ml-pill-label {
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    font-weight: 700 !important;
}

/* Dark/light context adjustments */
body.light-bg .kki-ml-pill,
.light-content .kki-ml-pill {
    border-color: rgba(19, 26, 36, 0.15);
    background: rgba(19, 26, 36, 0.03);
}

/* ============================================
   Header-mount pill — works outside nav menu for BOTH desktop + mobile.
   Nav menu version is always hidden (theme intercepts clicks inside nav).
   ============================================ */

/* Always hide nav-menu-injected version — theme breaks clicks inside menu */
#menu-main-menu > li.kki-ml-menu-item,
.flexnav > li.kki-ml-menu-item,
.menu-main-menu-container li.kki-ml-menu-item {
    display: none !important;
}

/* Hide pre-move body element (JS relocates) */
.kki-ml-standalone-mount {
    display: none !important;
}

/* ============================================
   NAV MENU TYPOGRAPHY — professional sans, uppercase tracked
   Style inspired by luxury real estate firms (Sotheby's, Christie's, Knight Frank)
   Conveys trust, institution, precision — not decorative
   ============================================ */
#menu-main-menu li a,
#menu-main-menu li a .before-span span,
#menu-main-menu li a span[data-hover],
.menu-main-menu-container li a,
.menu-main-menu-container li a .before-span span,
.menu-main-menu-container li a span[data-hover],
nav.menu-main-menu-container a {
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    font-feature-settings: 'cv11' 1, 'ss01' 1;
}

/* Mobile menu — LARGER text (theme burger menu opens a full-screen overlay) */
@media (max-width: 1024px) {
    #menu-main-menu li a,
    .menu-main-menu-container li a,
    .flexnav li a {
        font-size: 1.625rem !important;       /* 26px — big, readable in overlay */
        letter-spacing: 0.12em !important;
        line-height: 1.35 !important;
        padding: 16px 0 !important;
    }
    #menu-main-menu li a span[data-hover],
    .menu-main-menu-container li a span[data-hover] {
        font-size: 1.625rem !important;
        letter-spacing: 0.12em !important;
    }
}
@media (max-width: 640px) {
    #menu-main-menu li a,
    .menu-main-menu-container li a,
    .flexnav li a {
        font-size: 1.375rem !important;       /* 22px phone */
        padding: 14px 0 !important;
    }
    #menu-main-menu li a span[data-hover],
    .menu-main-menu-container li a span[data-hover] {
        font-size: 1.375rem !important;
    }
}

/* ============================================
   LANGUAGE SWITCHER — SPLIT BEHAVIOR
   Desktop: inline in nav menu list
   Mobile: floating bottom-right
   ============================================ */

/* DESKTOP (≥1025px) — show in nav menu, hide floating */
@media (min-width: 1025px) {
    #menu-main-menu > li.kki-ml-menu-item,
    .flexnav > li.kki-ml-menu-item,
    .menu-main-menu-container li.kki-ml-menu-item {
        display: inline-flex !important;
        align-items: center;
        margin-left: 24px !important;
        list-style: none !important;
    }
    .kki-ml-header-mount {
        display: none !important;
    }
    #menu-main-menu .kki-ml-pill {
        padding: 3px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(184, 169, 125, 0.35);
        border-radius: 100px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    #menu-main-menu .kki-ml-pill-link {
        padding: 5px 12px !important;
        font-family: 'Inter', system-ui, sans-serif !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        color: #f0eee9 !important;
        opacity: 0.7 !important;
        line-height: 1.2 !important;
    }
    #menu-main-menu .kki-ml-pill-link:hover {
        opacity: 1 !important;
        color: #f0eee9 !important;
    }
    #menu-main-menu .kki-ml-pill-link.is-active {
        background: #b8a97d !important;
        color: #131a24 !important;
        opacity: 1 !important;
    }
    #menu-main-menu .kki-ml-pill-flag {
        width: 12px !important;
        height: 12px !important;
    }
    #menu-main-menu .kki-ml-pill-label {
        font-size: 10px !important;
        letter-spacing: 0.12em !important;
        font-weight: 700 !important;
    }
}

/* MOBILE (<1025px) — centered in navbar (header) */
@media (max-width: 1024px) {
    /* Hide nav-menu-injected version */
    #menu-main-menu > li.kki-ml-menu-item,
    .flexnav > li.kki-ml-menu-item,
    .menu-main-menu-container li.kki-ml-menu-item {
        display: none !important;
    }
    /* Show header-mount centered in navbar */
    .kki-ml-header-mount {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        display: inline-flex !important;
        align-items: center;
        pointer-events: auto;
        animation: kki-pill-fadein 0.6s ease-out 0.6s backwards;
    }
    /* Compact sizing for mobile navbar */
    .kki-ml-header-mount .kki-ml-pill {
        padding: 3px;
        background: rgba(11, 16, 23, 0.65);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(184, 169, 125, 0.35);
        border-radius: 100px;
    }
    .kki-ml-header-mount .kki-ml-pill-link {
        padding: 4px 10px !important;
        font-size: 10px !important;
        letter-spacing: 0.1em !important;
    }
    .kki-ml-header-mount .kki-ml-pill-flag {
        width: 11px !important;
        height: 11px !important;
    }
    .kki-ml-header-mount .kki-ml-pill-label {
        font-size: 9px !important;
        letter-spacing: 0.1em !important;
    }
}

/* Ensure header-container is positioned-relative so absolute pill centers properly */
#header-container {
    position: relative !important;
}

/* Legacy (no longer primary but keep for fallback) */
.kki-ml-header-mount--legacy-fixed {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 999 !important;
    display: inline-flex !important;
    align-items: center;
    pointer-events: auto;
    animation: kki-pill-fadein 0.6s ease-out 0.8s backwards;
}

@keyframes kki-pill-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kki-ml-header-mount .kki-ml-pill {
    padding: 4px;
    background: rgba(11, 16, 23, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(184, 169, 125, 0.4);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kki-ml-header-mount .kki-ml-pill-link {
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    color: #f0eee9 !important;
    opacity: 0.7 !important;
}

.kki-ml-header-mount .kki-ml-pill-link:hover {
    opacity: 1 !important;
    color: #f0eee9 !important;
    background: rgba(184, 169, 125, 0.15) !important;
}

.kki-ml-header-mount .kki-ml-pill-link.is-active {
    background: #b8a97d !important;
    color: #131a24 !important;
    opacity: 1 !important;
}

.kki-ml-header-mount .kki-ml-pill-flag {
    width: 14px !important;
    height: 14px !important;
}

.kki-ml-header-mount .kki-ml-pill-label {
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .kki-ml-header-mount {
        bottom: 16px !important;
        right: 16px !important;
    }
    .kki-ml-header-mount .kki-ml-pill-link {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
    .kki-ml-header-mount .kki-ml-pill-flag {
        width: 12px !important;
        height: 12px !important;
    }
    .kki-ml-header-mount .kki-ml-pill-label {
        font-size: 9px !important;
    }
}

.kki-ml-nav-submenu .kki-ml-nav-native {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .kki-ml-nav-submenu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        max-height: none !important;
    }
}

/* ============================================
   THAI TYPOGRAPHY — proper Thai font stack
   Applied when page lang is Thai OR body has .kki-ml-lang-th class
   ============================================ */

html[lang="th-TH"],
html[lang="th"],
body.kki-ml-lang-th {
    /* Body text uses Sarabun (more readable on screen for Thai) */
    font-family: 'Sarabun', 'IBM Plex Sans Thai Looped', 'IBM Plex Sans Thai',
                 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size-adjust: 0.5;
}

html[lang="th-TH"] p,
html[lang="th-TH"] li,
html[lang="th-TH"] span:not(.kki-ml-pill-label):not(.kki-ml-pill-label *),
html[lang="th"] p,
html[lang="th"] li,
body.kki-ml-lang-th p,
body.kki-ml-lang-th li {
    font-family: 'Sarabun', 'IBM Plex Sans Thai', system-ui, sans-serif !important;
    line-height: 1.75 !important;
    letter-spacing: 0.005em !important;
}

/* Headings — Thai font stack (exclude theme's .hero-title which theme controls) */
html[lang="th-TH"] h1:not(.hero-title),
html[lang="th-TH"] h2,
html[lang="th-TH"] h3,
html[lang="th-TH"] h4,
html[lang="th-TH"] h5,
html[lang="th-TH"] h6,
html[lang="th"] h1:not(.hero-title),
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4,
html[lang="th"] h5,
html[lang="th"] h6,
body.kki-ml-lang-th h1:not(.hero-title),
body.kki-ml-lang-th h2,
body.kki-ml-lang-th h3,
body.kki-ml-lang-th h4 {
    font-family: 'Noto Serif Thai', 'IBM Plex Sans Thai', Georgia, serif !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

/* HARD CAP font-size for Gutenberg content H1s only (NOT theme's hero-title) */
html[lang="th-TH"] h1.wp-block-heading,
html[lang="th"] h1.wp-block-heading,
html[lang="th-TH"] main h1:not(.hero-title),
html[lang="th"] main h1:not(.hero-title) {
    font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
    line-height: 1.3 !important;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html[lang="th-TH"] h2,
html[lang="th"] h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
    line-height: 1.35 !important;
}

html[lang="th-TH"] h3,
html[lang="th"] h3 {
    font-size: clamp(1.25rem, 2.25vw, 1.5rem) !important;
    line-height: 1.4 !important;
}

/* Italic quotes — Thai italic doesn't exist */
html[lang="th-TH"] .wp-block-quote h1,
html[lang="th-TH"] .wp-block-quote p,
html[lang="th-TH"] p[style*="italic"],
html[lang="th"] .wp-block-quote h1,
html[lang="th"] .wp-block-quote p {
    font-style: normal !important;
    font-weight: 500 !important;
}

/* Body paragraphs in Thai */
html[lang="th-TH"] section p,
html[lang="th"] section p {
    line-height: 1.8 !important;
    font-size: 1rem !important;
}

/* Lead/large body */
html[lang="th-TH"] section p[style*="font-size:1.25rem"],
html[lang="th"] section p[style*="font-size:1.25rem"] {
    font-size: 1.125rem !important;
}

/* Mobile — smaller display sizes for Thai */
@media (max-width: 768px) {
    html[lang="th-TH"] h1,
    html[lang="th"] h1 {
        font-size: 1.75rem !important;
        line-height: 1.35 !important;
    }
    html[lang="th-TH"] h2,
    html[lang="th"] h2 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    html[lang="th-TH"] h3,
    html[lang="th"] h3 {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
    }
}

/* Body class hooks */
body.kki-ml-lang-th { /* Thai-specific adjustments */ }
body.kki-ml-lang-en { /* English-specific */ }

/* ============================================
   FINAL CTA / "START THE CONVERSATION" SECTION — content alignment
   Target narrow (880px) sections that serve as CTAs
   ============================================ */

/* All direct children of constrained-880 layouts center-aligned */
section.wp-block-group.alignfull.has-background > .wp-block-group__inner-container > *,
section.wp-block-group.alignfull.has-background .is-layout-constrained > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Paragraphs + headings inside CTA sections centered */
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] p,
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] p,
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] h1,
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] h2,
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] h3,
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] h1,
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] h2,
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] h3 {
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* CTA button cluster — centered */
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] .wp-block-buttons,
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] .wp-block-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: auto;
    margin-right: auto;
}

/* Microtext below CTA — centered, narrow */
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] p[style*="opacity:0.7"],
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] p[style*="opacity:0.7"],
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] p[style*="font-size:0.8125rem"],
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] p[style*="font-size:0.8125rem"] {
    text-align: center !important;
    max-width: 680px;
    margin: 32px auto 0 !important;
}

/* Eyebrow above CTA — centered */
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] p[style*="text-transform:uppercase"],
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] p[style*="text-transform:uppercase"] {
    text-align: center !important;
}

/* CTA section inner layout — flex column centered */
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] .wp-block-group__inner-container,
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
}

/* H2 in CTA — limit max-width for elegant line breaks */
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] h2.wp-block-heading,
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] h2.wp-block-heading {
    max-width: 22ch;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Body/sub paragraph in CTA — comfortable reading width */
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] p[style*="font-size:1.1875rem"],
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] p[style*="font-size:1.25rem"],
section.wp-block-group.alignfull.has-background[style*="background-color:#131a24"] p[style*="font-size:1.125rem"],
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] p[style*="font-size:1.1875rem"],
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] p[style*="font-size:1.25rem"],
section.wp-block-group.alignfull.has-background[style*="background-color:#0b1017"] p[style*="font-size:1.125rem"] {
    max-width: 54ch;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ============================================
   TYPOGRAPHY SYSTEM — section-appropriate font families
   Font roles:
     - Display   = Cormorant Garamond (EN) / Noto Serif Thai (TH)    → H1, H2 display
     - Editorial = Cormorant Garamond italic                          → pull quotes, lead
     - Body      = Inter (EN) / Sarabun (TH)                         → paragraphs, lists
     - UI        = Inter                                              → buttons, nav, eyebrow
     - Stat      = Cormorant Garamond (serif numerals)                → big numbers
     - Mono      = JetBrains Mono / IBM Plex Mono                    → week labels, specs
   ============================================ */

/* DISPLAY — H1 (hero titles) + H2 (section headings) */
h1.wp-block-heading,
h2.wp-block-heading,
.hero-title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, 'IBM Plex Serif', serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1;
}

/* H3 — subsection headings, use slightly different weight */
h3.wp-block-heading {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25;
}

/* EDITORIAL — italic pull quotes + manifesto blocks */
.kki-bridge p[style*="italic"],
.kki-hero-fill-quote,
section.wp-block-group p[style*="italic"],
blockquote p,
.wp-block-quote p {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 500 !important;
    letter-spacing: -0.005em !important;
    line-height: 1.5 !important;
}

/* BODY — paragraphs inside content sections */
section.wp-block-group.alignfull p:not(.has-text-align-center),
section.wp-block-group.alignfull li,
.wp-block-columns p,
.wp-block-columns li {
    font-family: 'Inter', 'Sarabun', 'IBM Plex Sans Thai', system-ui, sans-serif !important;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
}

/* UI — buttons, links in nav, pill switcher */
.wp-block-button .wp-block-button__link,
.kki-ml-pill-link,
#menu-main-menu a,
.menu-main-menu-container a,
.kki-hero-fill-tagline,
.kki-hero-fill-label {
    font-family: 'Inter', 'Sarabun', 'IBM Plex Sans Thai', system-ui, sans-serif !important;
}

/* EYEBROW — small uppercase labels (eyebrow above headings, stage labels) */
p[style*="text-transform:uppercase"][style*="letter-spacing"],
p[style*="letter-spacing:0.15em"],
p[style*="letter-spacing:0.18em"],
p[style*="letter-spacing:0.2em"] {
    font-family: 'Inter', 'Sarabun', 'IBM Plex Sans Thai', system-ui, sans-serif !important;
    font-weight: 700 !important;
}

/* STAT (large decorative numerals — trust bar, methodology step indices) */
p[style*="font-size:3rem"][style*="font-family:monospace"],
p[style*="font-size:4rem"][style*="font-family:monospace"],
p[style*="font-size:5rem"][style*="font-family:monospace"],
p[style*="font-size:6rem"][style*="font-family:monospace"],
p[style*="font-size:2.25rem"][style*="font-family:monospace"],
p[style*="font-size:2.5rem"][style*="font-family:monospace"],
h3[style*="font-family:monospace"],
.wp-block-column h3[style*="font-family:monospace"] {
    font-family: 'Cormorant Garamond', 'IBM Plex Serif', Georgia, serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    font-variant-numeric: lining-nums;
    font-feature-settings: 'lnum' 1;
}

/* MONO — week labels, specs, inline code, timeline indicators */
p[style*="fontFamily:monospace"][style*="letterSpacing:0.15em"],
p[style*="font-family:monospace"]:not([style*="font-size:3rem"]):not([style*="font-size:4rem"]):not([style*="font-size:5rem"]):not([style*="font-size:6rem"]):not([style*="font-size:2.25rem"]):not([style*="font-size:2.5rem"]),
code,
.wp-block-code {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace !important;
    letter-spacing: 0.12em;
}

/* THAI — override display headings to Noto Serif Thai */
html[lang="th-TH"] h1.wp-block-heading,
html[lang="th-TH"] h2.wp-block-heading,
html[lang="th-TH"] h3.wp-block-heading,
html[lang="th"] h1.wp-block-heading,
html[lang="th"] h2.wp-block-heading,
html[lang="th"] h3.wp-block-heading,
html[lang="th-TH"] .wp-block-quote p,
html[lang="th"] .wp-block-quote p {
    font-family: 'Noto Serif Thai', 'IBM Plex Sans Thai', serif !important;
    font-style: normal !important;  /* Thai has no italic */
    letter-spacing: 0 !important;
}

/* THAI — body copy uses Sarabun (screen-optimized) */
html[lang="th-TH"] p,
html[lang="th-TH"] li,
html[lang="th"] p,
html[lang="th"] li {
    font-family: 'Sarabun', 'IBM Plex Sans Thai', sans-serif !important;
    letter-spacing: 0 !important;
    line-height: 1.8;
}

/* ============================================
   SOCIAL LINKS — replace text with icons (svg backgrounds)
   ============================================ */

/* Container for social icons */
.social-icons-wrap,
.social-links,
ul.social-menu,
.footer-social,
nav.social-nav,
.jssocials-share {
    display: flex !important;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Generic social link (any <a> inside social containers) */
.social-icons-wrap a,
.social-links a,
ul.social-menu a,
.footer-social a,
nav.social-nav a,
footer a[href*="facebook.com"],
footer a[href*="instagram.com"],
footer a[href*="line.me"],
footer a[href*="lin.ee"],
footer a[href*="twitter.com"],
footer a[href*="x.com"],
footer a[href*="linkedin.com"],
footer a[href*="youtube.com"],
footer a[href*="tiktok.com"],
footer a[href*="wa.me"],
footer a[href*="mailto:"],
footer a[href*="tel:"],
a.social-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(184, 169, 125, 0.35);
    border-radius: 50%;
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    transition: all 0.25s ease;
    background-color: transparent;
    background-size: 18px 18px;
    background-position: center center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Hover */
.social-icons-wrap a:hover,
.social-links a:hover,
ul.social-menu a:hover,
footer a[href*="facebook.com"]:hover,
footer a[href*="instagram.com"]:hover,
footer a[href*="line.me"]:hover,
footer a[href*="lin.ee"]:hover,
footer a[href*="twitter.com"]:hover,
footer a[href*="x.com"]:hover,
footer a[href*="linkedin.com"]:hover,
footer a[href*="youtube.com"]:hover,
footer a[href*="tiktok.com"]:hover,
footer a[href*="wa.me"]:hover,
a.social-icon:hover {
    border-color: #b8a97d !important;
    background-color: rgba(184, 169, 125, 0.1) !important;
    transform: translateY(-2px);
}

/* ICONS — SVG as data URIs, gold stroke (#b8a97d) */

/* Facebook */
footer a[href*="facebook.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8a97d'%3E%3Cpath d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z'/%3E%3C/svg%3E") !important;
}

/* Instagram */
footer a[href*="instagram.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8a97d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E") !important;
}

/* LINE */
footer a[href*="line.me"],
footer a[href*="lin.ee"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8a97d'%3E%3Cpath d='M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.345 0 .627.285.627.63 0 .349-.282.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314'/%3E%3C/svg%3E") !important;
    background-size: 20px 20px !important;
}

/* Twitter / X */
footer a[href*="twitter.com"],
footer a[href*="x.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8a97d'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") !important;
}

/* LinkedIn */
footer a[href*="linkedin.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8a97d'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.063 2.063 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E") !important;
}

/* YouTube */
footer a[href*="youtube.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8a97d'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E") !important;
}

/* TikTok */
footer a[href*="tiktok.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8a97d'%3E%3Cpath d='M19.321 5.562a5.124 5.124 0 01-.443-.258 6.228 6.228 0 01-1.137-.966c-.849-.971-1.166-1.957-1.282-2.647h.005C16.369 1.15 16.408.66 16.416 0h-3.447v13.312c0 .178 0 .354-.008.529l-.001.066-.004.045v.004a3.792 3.792 0 01-2.054 3.011 3.795 3.795 0 01-1.848.458 3.822 3.822 0 013.81-3.812c.406 0 .789.07 1.163.177v-3.5a7.182 7.182 0 00-1.162-.094A7.263 7.263 0 008 12.259a7.263 7.263 0 003.818 6.371 7.294 7.294 0 003.819 1.081 7.256 7.256 0 005.229-2.134 7.253 7.253 0 002.134-5.228V7.113a9.654 9.654 0 003.33 1.196V4.862a4.06 4.06 0 01-2.009-.6z'/%3E%3C/svg%3E") !important;
}

/* WhatsApp */
footer a[href*="wa.me"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8a97d'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") !important;
}

/* Email */
footer a[href*="mailto:"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8a97d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") !important;
}

/* Phone */
footer a[href*="tel:"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8a97d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") !important;
}

/* ============================================
   NAV HEADER — gradient backdrop (dark → transparent)
   ============================================ */
header.inherit-header,
header.classic-menu,
#header-container {
    background: linear-gradient(
        180deg,
        rgba(11, 16, 23, 0.92) 0%,
        rgba(11, 16, 23, 0.75) 40%,
        rgba(11, 16, 23, 0.35) 80%,
        rgba(11, 16, 23, 0) 100%
    ) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-bottom: 20px;
}

/* Menu links visible on gradient */
#menu-main-menu li a,
.menu-main-menu-container li a {
    color: #f0eee9 !important;
}

#menu-main-menu li a:hover,
.menu-main-menu-container li a:hover {
    color: #b8a97d !important;
}

/* Active / current menu item — gold accent */
#menu-main-menu .current-menu-item > a,
#menu-main-menu .current_page_item > a {
    color: #b8a97d !important;
}

/* Hairline under nav (subtle gold divider) */
header.inherit-header::after,
header.classic-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(184, 169, 125, 0.25) 30%,
        rgba(184, 169, 125, 0.25) 70%,
        transparent 100%
    );
    pointer-events: none;
}

/* ============================================
   WP BLOCK GROUP — remove all margin (sections sit flush)
   ============================================ */
.wp-block-group,
section.wp-block-group,
.wp-block-group.alignfull,
section.wp-block-group.alignfull {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ============================================
   HERO — locked to viewport height + filled with content
   ============================================ */

/* Force hero = exactly 1 screen tall, no bottom padding */
#hero,
#hero.has-image {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
@supports (height: 100dvh) {
    #hero,
    #hero.has-image {
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
    }
}

/* Thai hero title — font family only */
html[lang="th-TH"] #hero.has-image .hero-title,
html[lang="th"] #hero.has-image .hero-title {
    font-family: 'Noto Serif Thai', 'IBM Plex Sans Thai', Georgia, serif !important;
}

/* Hide theme's default hero-footer — we replace with our content-rich fill below */
#hero.has-image #hero-footer {
    display: none !important;
}

/* Hero fill — STICKS TO BOTTOM of hero section */
.kki-hero-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    pointer-events: none;
    padding: 32px clamp(24px, 5vw, 96px) 40px;
    text-align: center;
    /* Subtle gradient backdrop so content is readable regardless of hero image */
    background: linear-gradient(
        180deg,
        rgba(11, 16, 23, 0) 0%,
        rgba(11, 16, 23, 0.45) 40%,
        rgba(11, 16, 23, 0.85) 100%
    );
    animation: kki-hero-fill-fade 1.2s ease-out 0.4s backwards;
}

.kki-hero-fill-container {
    max-width: 1280px;
    margin: 0 auto;
}

@keyframes kki-hero-fill-fade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 1. Italic pull quote — the brand manifesto */
.kki-hero-fill-quote {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif !important;
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    font-style: italic;
    font-weight: 500;
    color: #f0eee9;
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.45;
    letter-spacing: -0.005em;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* 2. Gold hairline separator */
.kki-hero-fill-hairline {
    max-width: 320px;
    margin: 0 auto 20px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(184, 169, 125, 0.6) 50%,
        transparent 100%
    );
}

/* 3. Tagline — small caps tagline */
.kki-hero-fill-tagline {
    font-family: 'Inter', 'Sarabun', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b8a97d;
    margin: 0 0 32px 0;
    line-height: 1.4;
}

/* 4. Stats row */
.kki-hero-fill-inner {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 0 16px;
}

.kki-hero-fill-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    color: #f0eee9;
}

/* NUMBERS — modern sans with tabular numerals (no italic old-style figures) */
.kki-hero-fill-num {
    font-family: 'Inter', 'Sarabun', system-ui, -apple-system, sans-serif !important;
    font-size: 1.625rem;
    font-weight: 500;
    font-style: normal !important;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: 'lnum' 1, 'tnum' 1, 'ss01' 1;
    color: #b8a97d;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}

/* LABELS — uppercase small-caps, readable but subordinate */
.kki-hero-fill-label {
    font-family: 'Inter', 'Sarabun', system-ui, sans-serif !important;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(240, 238, 233, 0.72);
    line-height: 1;
    white-space: nowrap;
}

/* SEPARATOR — small gold dot, properly centered */
.kki-hero-fill-sep {
    color: rgba(184, 169, 125, 0.45);
    font-size: 0.875rem;
    line-height: 1;
    user-select: none;
    font-weight: 400;
}

/* Tablet */
@media (max-width: 1024px) {
    .kki-hero-fill-num {
        font-size: 1.375rem;
    }
}

/* Mobile — compact */
@media (max-width: 768px) {
    #hero.has-image {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    @supports (height: 100dvh) {
        #hero.has-image {
            height: 100dvh !important;
            min-height: 100dvh !important;
        }
    }
    .kki-hero-fill {
        padding: 24px 16px 28px;
    }
    .kki-hero-fill-quote {
        font-size: 0.9375rem;
        margin-bottom: 20px;
    }
    .kki-hero-fill-tagline {
        font-size: 0.625rem;
        letter-spacing: 0.15em;
        margin-bottom: 20px;
    }
    .kki-hero-fill-inner {
        gap: 12px;
    }
    .kki-hero-fill-stat {
        gap: 6px;
    }
    .kki-hero-fill-num {
        font-size: 1rem;
        font-weight: 600;
    }
    .kki-hero-fill-label {
        font-size: 0.5625rem;
        letter-spacing: 0.16em;
    }
    .kki-hero-fill-sep {
        font-size: 0.75rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .kki-hero-fill-quote {
        font-size: 0.875rem;
    }
    .kki-hero-fill-sep:nth-of-type(2) {
        display: none;
    }
    .kki-hero-fill-inner {
        gap: 10px 14px;
    }
}

/* (Reverted) Full-viewport 100vh sections removed — theme parallax manages section heights */

/* (Reverted) Scroll-snap removed — theme's smooth-scrollbar + ScrollTrigger
   manage scroll behavior and parallax. Letting them work without override. */

/* (Reverted) smooth-scrollbar override removed — theme manages #content-scroll */

/* ============================================
   GLOBAL BRAND CONTRAST FIXES
   Forces proper contrast on sections with navy/cream backgrounds
   created by brand-polished Gutenberg blocks.
   ============================================ */

/* Boost gold eyebrow contrast on light bgs — was too pale. */
section[style*="background-color:#f0eee9"] p[style*="color:#b8a97d"],
section[style*="background-color:#f8f6f1"] p[style*="color:#b8a97d"],
section[style*="background-color:#ffffff"] p[style*="color:#b8a97d"],
section[style*="background-color:#fff"]    p[style*="color:#b8a97d"] {
    color: #8a7a4e !important;   /* darker gold — AA compliant */
    font-weight: 700 !important;  /* heavier weight boosts legibility */
}

/* Navy sections: ensure theme-injected text is light, not default dark. */
section[style*="background-color:#0b1017"],
section[style*="background-color:#131a24"],
section[style*="background-color:#1e2938"] {
    color: #f0eee9;
}
section[style*="background-color:#0b1017"] *:not([style*="color"]),
section[style*="background-color:#131a24"] *:not([style*="color"]),
section[style*="background-color:#1e2938"] *:not([style*="color"]) {
    color: inherit;
}

/* Table readability on cream sections */
section[style*="background-color:#f0eee9"] .wp-block-table table,
section[style*="background-color:#f8f6f1"] .wp-block-table table {
    border-collapse: collapse;
}
section[style*="background-color:#f0eee9"] .wp-block-table th,
section[style*="background-color:#f8f6f1"] .wp-block-table th {
    background: rgba(19, 26, 36, 0.04);
    color: #131a24;
    font-weight: 600;
    padding: 16px 12px;
    border-bottom: 2px solid #b8a97d;
    text-align: left;
}
section[style*="background-color:#f0eee9"] .wp-block-table td,
section[style*="background-color:#f8f6f1"] .wp-block-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(19, 26, 36, 0.08);
    color: #2a3340;
    line-height: 1.5;
}
/* First column (our brand column) highlight */
section[style*="background-color:#f0eee9"] .wp-block-table td:nth-child(2),
section[style*="background-color:#f8f6f1"] .wp-block-table td:nth-child(2) {
    background: rgba(184, 169, 125, 0.08);
    font-weight: 500;
    color: #131a24;
}

/* Section transition: soft gold-hairline between light sections */
section[style*="background-color:#f0eee9"] + section[style*="background-color:#f8f6f1"],
section[style*="background-color:#f8f6f1"] + section[style*="background-color:#f0eee9"],
section[style*="background-color:#ffffff"] + section[style*="background-color:#f8f6f1"],
section[style*="background-color:#f8f6f1"] + section[style*="background-color:#ffffff"] {
    border-top: 1px solid rgba(184, 169, 125, 0.2);
}

/* Navy sections — make the list bullet marker legible */
section[style*="background-color:#0b1017"] ul li,
section[style*="background-color:#131a24"] ul li {
    color: inherit;
}
section[style*="background-color:#0b1017"] ul li::marker,
section[style*="background-color:#131a24"] ul li::marker {
    color: #b8a97d;
}

/* Theme preloader + header — ensure they don't clash with dark brand sections */
body .kki-brand-polished #header-container {
    mix-blend-mode: normal; /* reset theme's menu color blending on dark bg */
}

/* Buttons: crisp focus ring on all brand-polished CTAs */
.wp-block-button__link:focus-visible {
    outline: 2px solid #b8a97d !important;
    outline-offset: 3px !important;
}

/* Link styling inside brand sections */
section[style*="background-color:#f0eee9"] a:not(.wp-block-button__link):not(.kki-ml-nav-link),
section[style*="background-color:#f8f6f1"] a:not(.wp-block-button__link):not(.kki-ml-nav-link) {
    color: #8a7a4e;
    text-decoration: underline;
    text-decoration-color: rgba(138, 122, 78, 0.4);
    text-underline-offset: 3px;
}
section[style*="background-color:#f0eee9"] a:not(.wp-block-button__link):not(.kki-ml-nav-link):hover,
section[style*="background-color:#f8f6f1"] a:not(.wp-block-button__link):not(.kki-ml-nav-link):hover {
    color: #b8a97d;
    text-decoration-color: #b8a97d;
}

section[style*="background-color:#0b1017"] a:not(.wp-block-button__link):not(.kki-ml-nav-link),
section[style*="background-color:#131a24"] a:not(.wp-block-button__link):not(.kki-ml-nav-link) {
    color: #ddd2b3;
    text-decoration: underline;
    text-decoration-color: rgba(221, 210, 179, 0.4);
    text-underline-offset: 3px;
}
section[style*="background-color:#0b1017"] a:not(.wp-block-button__link):not(.kki-ml-nav-link):hover,
section[style*="background-color:#131a24"] a:not(.wp-block-button__link):not(.kki-ml-nav-link):hover {
    color: #f0eee9;
}

/* Fix Harington theme preloader clash — hide during brand pages if user set a class */
body.kki-no-preloader .preloader-wrap {
    display: none !important;
}
body.kki-no-preloader .cd-index {
    opacity: 1 !important;
}

/* Typography: ensure consistent heading hierarchy across brand sections */
section[style*="background-color"] h1,
section[style*="background-color"] h2,
section[style*="background-color"] h3 {
    margin-top: 0;
}
section[style*="background-color"] h1 + p,
section[style*="background-color"] h2 + p,
section[style*="background-color"] h3 + p {
    margin-top: 16px;
}

/* Pricing tier card "Most common" badge visibility */
.has-primary-navy-background-color p[style*="text-transform:uppercase"] {
    display: inline-block;
    background: rgba(184, 169, 125, 0.15);
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid rgba(184, 169, 125, 0.3);
}

/* Block quotes — make the manifesto-style quote pop more */
section[style*="background-color:#0b1017"] .wp-block-quote,
section[style*="background-color:#131a24"] .wp-block-quote {
    padding-left: 32px;
}
section[style*="background-color:#0b1017"] .wp-block-quote h1,
section[style*="background-color:#131a24"] .wp-block-quote h1 {
    position: relative;
}
section[style*="background-color:#0b1017"] .wp-block-quote h1::before,
section[style*="background-color:#131a24"] .wp-block-quote h1::before {
    content: "\201C";
    position: absolute;
    left: -48px;
    top: -32px;
    font-size: 120px;
    color: #b8a97d;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
@media (max-width: 768px) {
    section[style*="background-color:#0b1017"] .wp-block-quote h1::before,
    section[style*="background-color:#131a24"] .wp-block-quote h1::before {
        font-size: 60px;
        left: -24px;
        top: -16px;
    }
}

/* RTL support for Arabic */
body.kki-ml-lang-ar .kki-ml-switcher__menu {
    right: auto;
    left: 0;
}

/* ========================================================================== */
/* v9.6.0 — UI Enhancements: Hero padding, Sticky nav, Float CTA, Inquiry form*/
/* ========================================================================== */

/* ---------- 1. Hero — prevent menu overlap ---------- */
#hero,
.hero-section,
.site-hero,
.has-hero #primary {
    padding-top: 120px !important;
}
@media (max-width: 768px) {
    #hero,
    .hero-section,
    .site-hero,
    .has-hero #primary {
        padding-top: 96px !important;
    }
}

/* ---------- 2. Sticky navbar with blur on scroll ---------- */
.kki-ml-sticky-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9990;
    transition: background-color 0.28s ease, backdrop-filter 0.28s ease,
                box-shadow 0.28s ease, padding 0.28s ease;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}
.kki-ml-sticky-nav.kki-ml-scrolled {
    background: rgba(11, 16, 23, 0.82) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 rgba(184, 169, 125, 0.18),
                0 12px 32px -12px rgba(0, 0, 0, 0.6);
}
.kki-ml-sticky-nav.kki-ml-scrolled .site-logo,
.kki-ml-sticky-nav.kki-ml-scrolled .logo img {
    transform: scale(0.92);
    transition: transform 0.28s ease;
}

/* ---------- 3. Floating LINE + Tel FAB stack ---------- */
.kki-ml-fab-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9995;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
@media (max-width: 480px) {
    .kki-ml-fab-stack {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }
}
.kki-ml-fab {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, width 0.28s ease;
    position: relative;
    overflow: hidden;
}
.kki-ml-fab:hover,
.kki-ml-fab:focus-visible {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(0, 0, 0, 0.18);
    outline: none;
}
.kki-ml-fab-line { background: #06c755; }
.kki-ml-fab-tel  { background: #b8a97d; }

.kki-ml-fab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.24), transparent 60%);
    pointer-events: none;
}
.kki-ml-fab-label {
    display: none;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
@media (min-width: 1100px) {
    .kki-ml-fab:hover .kki-ml-fab-label,
    .kki-ml-fab:focus-visible .kki-ml-fab-label {
        display: inline;
    }
}
.kki-ml-fab-line::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #06c755;
    opacity: 0;
    animation: kki-ml-fab-pulse 2.4s ease-out 1.5s 3;
}
@keyframes kki-ml-fab-pulse {
    0%   { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 0;   transform: scale(1.4); }
}

/* ---------- 4. Quick Inquiry Form ---------- */
.kki-ml-inquiry {
    background: #f8f6f1;
    border: 1px solid rgba(184, 169, 125, 0.25);
    border-radius: 14px;
    padding: 32px;
    margin: 24px auto;
    max-width: 720px;
    position: relative;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
                0 18px 40px -24px rgba(19, 26, 36, 0.22);
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}
.kki-ml-inquiry::before {
    content: "";
    position: absolute;
    top: 0; left: 32px;
    width: 48px; height: 2px;
    background: #b8a97d;
    border-radius: 2px;
}
.kki-ml-inquiry--hero {
    background: rgba(255, 255, 255, 0.96);
    max-width: 560px;
    padding: 24px;
}
@media (max-width: 600px) {
    .kki-ml-inquiry { padding: 20px; border-radius: 10px; }
    .kki-ml-inquiry::before { left: 20px; }
}
.kki-ml-inquiry__heading { margin-bottom: 20px; }
.kki-ml-inquiry__title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', 'Sarabun', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #131a24;
    line-height: 1.25;
    margin: 0 0 6px;
}
.kki-ml-inquiry--hero .kki-ml-inquiry__title { font-size: 20px; }
.kki-ml-inquiry__sub {
    font-size: 13.5px;
    color: #6b6f78;
    margin: 0;
    line-height: 1.5;
}
.kki-ml-inquiry__row { margin-bottom: 12px; }
.kki-ml-inquiry__row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .kki-ml-inquiry__row--2 { grid-template-columns: 1fr; }
}
.kki-ml-inquiry__field { display: block; }
.kki-ml-inquiry__field > span {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #2a2e36;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.kki-ml-inquiry__field em { font-style: normal; color: #b8a97d; }
.kki-ml-inquiry__field input[type="text"],
.kki-ml-inquiry__field input[type="email"],
.kki-ml-inquiry__field input[type="tel"],
.kki-ml-inquiry__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid rgba(43, 46, 54, 0.18);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    background: #fff;
    color: #2a2e36;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.kki-ml-inquiry__field input:focus,
.kki-ml-inquiry__field textarea:focus {
    outline: none;
    border-color: #b8a97d;
    box-shadow: 0 0 0 3px rgba(184, 169, 125, 0.18);
}
.kki-ml-inquiry__field textarea { resize: vertical; min-height: 72px; }
.kki-ml-inquiry__services { border: none; padding: 0; margin: 0; }
.kki-ml-inquiry__services legend {
    font-size: 11.5px;
    font-weight: 600;
    color: #2a2e36;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.kki-ml-inquiry__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kki-ml-inquiry__chip { position: relative; cursor: pointer; }
.kki-ml-inquiry__chip input[type="radio"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.kki-ml-inquiry__chip span {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid rgba(43, 46, 54, 0.18);
    border-radius: 100px;
    font-size: 13px;
    color: #2a2e36;
    background: #fff;
    transition: all 0.18s ease;
}
.kki-ml-inquiry__chip:hover span { border-color: #b8a97d; color: #b8a97d; }
.kki-ml-inquiry__chip input[type="radio"]:checked + span {
    background: #131a24;
    color: #f0eee9;
    border-color: #131a24;
}
.kki-ml-inquiry__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}
.kki-ml-inquiry__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #131a24;
    color: #f0eee9;
    border: none;
    border-radius: 100px;
    padding: 13px 26px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}
.kki-ml-inquiry__submit:hover:not(:disabled) {
    background: #b8a97d;
    color: #131a24;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(19, 26, 36, 0.16);
}
.kki-ml-inquiry__submit:disabled { opacity: 0.5; cursor: wait; }
.kki-ml-inquiry__submit-arrow { transition: transform 0.22s ease; }
.kki-ml-inquiry__submit:hover:not(:disabled) .kki-ml-inquiry__submit-arrow {
    transform: translateX(3px);
}
.kki-ml-inquiry__privacy {
    margin: 0;
    font-size: 11px;
    color: #6b6f78;
    flex: 1;
    min-width: 200px;
}
.kki-ml-inquiry__status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    display: none;
}
.kki-ml-inquiry__status.is-success {
    display: block;
    background: #ecf5ef;
    border-left: 3px solid #2e5f4a;
    color: #1d3d31;
}
.kki-ml-inquiry__status.is-error {
    display: block;
    background: #fdeeee;
    border-left: 3px solid #a03030;
    color: #7b2424;
}
.kki-ml-inquiry.is-sent .kki-ml-inquiry__form > *:not(.kki-ml-inquiry__status) {
    opacity: 0.35;
    pointer-events: none;
}

/* ---------- End v9.6.0 additions ---------- */

/* ========================================================================== */
/* v9.7.0 — UX Audit Sprint 1: Consent banner, Footer, H1 hiding              */
/* ========================================================================== */

/* --- Consent banner --- */
.kki-ml-consent {
    position: fixed;
    left: 50%; bottom: 22px;
    transform: translateX(-50%);
    max-width: 640px;
    width: calc(100% - 24px);
    background: #f8f6f1;
    border: 1px solid rgba(184, 169, 125, 0.4);
    border-radius: 14px;
    box-shadow: 0 24px 48px -12px rgba(19, 26, 36, 0.32),
                0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    padding: 20px 22px 18px;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
    font-size: 13.5px;
    color: #2a2e36;
    animation: kki-ml-consent-in 0.35s ease-out;
}
@keyframes kki-ml-consent-in {
    from { opacity: 0; transform: translate(-50%, 18px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 640px) {
    .kki-ml-consent { bottom: 12px; width: calc(100% - 16px); padding: 16px 18px; }
}
.kki-ml-consent__title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    color: #131a24;
    margin: 0 0 4px;
    line-height: 1.3;
}
.kki-ml-consent__body {
    margin: 0 0 12px;
    font-size: 13px;
    color: #4a4f59;
    line-height: 1.55;
}
.kki-ml-consent__body a {
    color: #b8a97d;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.kki-ml-consent__details summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #6b6f78;
    padding: 6px 0 8px;
    list-style: none;
    position: relative;
    user-select: none;
    padding-left: 18px;
}
.kki-ml-consent__details summary::-webkit-details-marker { display: none; }
.kki-ml-consent__details summary::before {
    content: "▸";
    position: absolute;
    left: 2px; top: 6px;
    color: #b8a97d;
    transition: transform 0.2s ease;
    font-size: 11px;
}
.kki-ml-consent__details[open] summary::before { transform: rotate(90deg); }
.kki-ml-consent__grid {
    display: grid;
    gap: 10px;
    margin: 10px 0 14px;
}
.kki-ml-consent__opt {
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(43, 46, 54, 0.12);
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}
.kki-ml-consent__opt input[type="checkbox"] {
    width: 16px; height: 16px; margin-top: 3px;
    accent-color: #131a24;
}
.kki-ml-consent__opt.is-locked { background: #f0eee9; opacity: 0.85; cursor: not-allowed; }
.kki-ml-consent__opt-label {
    grid-column: 2;
    display: block;
    font-weight: 600;
    color: #131a24;
    font-size: 13px;
}
.kki-ml-consent__opt small {
    grid-column: 2;
    font-size: 11.5px;
    color: #6b6f78;
    line-height: 1.4;
    margin-top: 1px;
    display: block;
}
.kki-ml-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.kki-ml-consent__btn {
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    transition: all 0.18s ease;
}
.kki-ml-consent__btn--ghost {
    background: transparent;
    color: #6b6f78;
    border-color: rgba(43, 46, 54, 0.15);
}
.kki-ml-consent__btn--ghost:hover { color: #131a24; border-color: #b8a97d; }
.kki-ml-consent__btn--primary {
    background: #131a24;
    color: #f0eee9;
}
.kki-ml-consent__btn--primary:hover {
    background: #b8a97d;
    color: #131a24;
}

/* --- Footer injection --- */
.kki-ml-footer {
    background: #0b1017;
    color: #d4c79d;
    padding: 60px 24px 28px;
    margin-top: 0;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}
.kki-ml-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 900px) {
    .kki-ml-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .kki-ml-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .kki-ml-footer__inner { grid-template-columns: 1fr; }
}
.kki-ml-footer__brand {
    display: flex; flex-direction: column; gap: 10px;
}
.kki-ml-footer__name {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #f0eee9;
    margin: 0;
    letter-spacing: 0.02em;
}
.kki-ml-footer__tag {
    margin: 0;
    font-size: 12.5px;
    color: #d4c79d;
    line-height: 1.5;
    max-width: 320px;
}
.kki-ml-footer__contact-line {
    font-size: 13px;
    color: #f0eee9;
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    margin-top: 6px;
}
.kki-ml-footer__contact-line a { color: #f0eee9 !important; text-decoration: none; }
.kki-ml-footer__contact-line a:hover { color: #b8a97d !important; }
.kki-ml-footer__contact-line span { color: #6b6f78; }
.kki-ml-footer__social {
    display: flex; gap: 10px; margin-top: 10px;
}
.kki-ml-footer__social a {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #d4c79d !important;
    text-decoration: none !important;
    padding: 6px 10px;
    border: 1px solid rgba(184, 169, 125, 0.3);
    border-radius: 100px;
    transition: all 0.2s;
}
.kki-ml-footer__social a:hover {
    background: #b8a97d;
    color: #0b1017 !important;
    border-color: #b8a97d;
}
.kki-ml-footer__col { display: flex; flex-direction: column; }
.kki-ml-footer__heading {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8a97d;
    margin: 4px 0 16px;
}
.kki-ml-footer__links { list-style: none; margin: 0; padding: 0; }
.kki-ml-footer__links li { margin-bottom: 8px; }
.kki-ml-footer__links a {
    color: #d4c79d !important;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.15s;
}
.kki-ml-footer__links a:hover { color: #f0eee9 !important; }
.kki-ml-footer__bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(184, 169, 125, 0.18);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 11.5px;
    color: #6b6f78;
}
.kki-ml-footer__bottom a { color: #b8a97d; text-decoration: none; }
.kki-ml-footer__bottom a:hover { color: #f0eee9; }

/* --- H1 hiding (visually when injected, accessible to SR) --- */
.kki-ml-h1-injected.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
    padding: 0; margin: -1px;
    border: 0;
}

/* --- Hide theme's weak <footer class="hidden"> so ours replaces it cleanly --- */
body .theme-footer-strip,
body footer.hidden { display: none !important; }

/* --- End v9.7.0 additions --- */

/* ========================================================================== */
/* v9.8.0 — UX Audit Sprint 2                                                 */
/*   Breadcrumbs · Services CTA · Search drawer                               */
/* ========================================================================== */

/* --- Breadcrumbs --- */
.kki-ml-breadcrumbs {
    max-width: 1200px;
    margin: 24px auto 16px;
    padding: 0 24px;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
    font-size: 12px;
    color: #6b6f78;
}
.kki-ml-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.kki-ml-breadcrumbs li { display: inline-flex; align-items: center; }
.kki-ml-breadcrumbs a {
    color: #6b6f78;
    text-decoration: none;
    transition: color 0.15s;
}
.kki-ml-breadcrumbs a:hover { color: #b8a97d; }
.kki-ml-breadcrumbs [aria-current="page"] {
    color: #131a24;
    font-weight: 600;
}
.kki-ml-breadcrumbs__sep {
    color: #b8a97d;
    font-size: 14px;
    opacity: 0.6;
    margin: 0 4px;
}
@media (max-width: 640px) {
    .kki-ml-breadcrumbs {
        font-size: 11.5px;
        margin: 16px auto 12px;
    }
}

/* --- Services CTA (end-of-page) --- */
.kki-ml-service-cta {
    background: linear-gradient(135deg, #0b1017 0%, #1c2535 100%);
    color: #f0eee9;
    padding: 72px 24px;
    margin: 60px 0 0;
    position: relative;
    overflow: hidden;
}
.kki-ml-service-cta::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 40px;
    background: #b8a97d;
    transform: translateX(-50%);
}
.kki-ml-service-cta__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 900px) {
    .kki-ml-service-cta__inner { grid-template-columns: 1fr; gap: 36px; }
    .kki-ml-service-cta { padding: 56px 20px; }
}
.kki-ml-service-cta__eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8a97d;
    margin: 0 0 10px;
}
.kki-ml-service-cta__title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 14px;
    color: #f0eee9;
    letter-spacing: -0.01em;
}
@media (max-width: 640px) {
    .kki-ml-service-cta__title { font-size: 30px; }
}
.kki-ml-service-cta__sub {
    font-size: 15px;
    line-height: 1.6;
    color: #d4c79d;
    margin: 0 0 18px;
    max-width: 440px;
}
.kki-ml-service-cta__alt {
    font-size: 13px;
    color: #6b6f78;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(184, 169, 125, 0.2);
    max-width: 440px;
}
.kki-ml-service-cta__form .kki-ml-inquiry {
    background: rgba(255, 255, 255, 0.96);
    max-width: 100%;
}

/* --- Search trigger + panel --- */
.kki-ml-search-trigger {
    position: fixed;
    top: 22px;
    right: 82px;            /* sit next to lang switcher */
    z-index: 9992;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(184, 169, 125, 0.3);
    background: rgba(11, 16, 23, 0.88);
    color: #b8a97d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.kki-ml-search-trigger:hover,
.kki-ml-search-trigger:focus-visible {
    background: #b8a97d;
    color: #131a24;
    border-color: #b8a97d;
    outline: none;
}
@media (max-width: 1024px) {
    .kki-ml-search-trigger { top: 18px; right: 72px; width: 36px; height: 36px; }
}

.kki-ml-search-panel {
    position: fixed;
    inset: 0;
    z-index: 10001;
}
.kki-ml-search-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 23, 0.82);
    backdrop-filter: blur(6px);
    animation: kki-ml-search-fade 0.2s ease-out;
}
@keyframes kki-ml-search-fade { from { opacity: 0; } to { opacity: 1; } }
.kki-ml-search-panel__inner {
    position: relative;
    max-width: 720px;
    margin: 80px auto;
    padding: 48px 44px 36px;
    background: #f8f6f1;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
    animation: kki-ml-search-slide 0.28s ease-out;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}
@keyframes kki-ml-search-slide {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
    .kki-ml-search-panel__inner {
        margin: 40px 12px;
        padding: 32px 24px 24px;
    }
}
.kki-ml-search-panel__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.kki-ml-search-panel__title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #131a24;
    margin: 0;
}
.kki-ml-search-panel__close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #6b6f78;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.15s;
}
.kki-ml-search-panel__close:hover { color: #131a24; }
.kki-ml-search-panel__form {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 22px;
}
.kki-ml-search-panel__field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(43, 46, 54, 0.18);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.kki-ml-search-panel__field:focus-within {
    border-color: #b8a97d;
    box-shadow: 0 0 0 3px rgba(184, 169, 125, 0.18);
}
.kki-ml-search-panel__field svg { color: #6b6f78; flex-shrink: 0; margin-right: 10px; }
.kki-ml-search-panel__field input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 16px;
    background: transparent;
    color: #131a24;
    font-family: inherit;
}
.kki-ml-search-panel__submit {
    padding: 0 22px;
    background: #131a24;
    color: #f0eee9;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.18s;
    font-family: inherit;
}
.kki-ml-search-panel__submit:hover { background: #b8a97d; color: #131a24; }
.kki-ml-search-panel__examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(43, 46, 54, 0.1);
}
.kki-ml-search-panel__ex-label {
    font-size: 11.5px;
    color: #6b6f78;
    margin-right: 8px;
    letter-spacing: 0.04em;
}
.kki-ml-search-panel__ex {
    padding: 5px 12px;
    font-size: 12.5px;
    border: 1px solid rgba(43, 46, 54, 0.15);
    border-radius: 100px;
    color: #2a2e36;
    text-decoration: none;
    background: #fff;
    transition: all 0.15s;
}
.kki-ml-search-panel__ex:hover {
    border-color: #b8a97d;
    color: #b8a97d;
    background: rgba(184, 169, 125, 0.06);
}

/* Prevent body scroll when search open */
body.kki-ml-search-open { overflow: hidden; }

/* --- End v9.8.0 additions --- */

/* ========================================================================== */
/* v9.9.0 — UX Audit Sprint 3: 404 enrichment + misc polish                   */
/* ========================================================================== */

/* --- 404 page --- */
.kki-ml-404 {
    padding: 100px 24px 80px;
    background: #f8f6f1;
    min-height: 60vh;
}
.kki-ml-404__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}
.kki-ml-404__eye {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #b8a97d;
    margin: 0 0 12px;
}
.kki-ml-404__title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    color: #131a24;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
@media (max-width: 640px) {
    .kki-ml-404__title { font-size: 38px; }
    .kki-ml-404 { padding: 64px 18px 50px; }
}
.kki-ml-404__sub {
    font-size: 15.5px;
    color: #2a2e36;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 0 22px;
}
.kki-ml-404__home {
    display: inline-block;
    color: #131a24;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 11px 22px;
    border: 1px solid #131a24;
    border-radius: 100px;
    transition: all 0.18s;
    margin-bottom: 56px;
}
.kki-ml-404__home:hover {
    background: #131a24;
    color: #f0eee9;
}
.kki-ml-404__sec {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #131a24;
    margin: 40px 0 18px;
}
.kki-ml-404__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .kki-ml-404__grid { grid-template-columns: 1fr; } }
.kki-ml-404__card {
    position: relative;
    display: block;
    padding: 22px 22px 26px;
    background: #fff;
    border: 1px solid rgba(43, 46, 54, 0.12);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.18s;
    color: inherit;
}
.kki-ml-404__card:hover {
    border-color: #b8a97d;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(19, 26, 36, 0.2);
}
.kki-ml-404__card h3 {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    color: #131a24;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.kki-ml-404__card p {
    font-size: 13px;
    color: #6b6f78;
    line-height: 1.5;
    margin: 0 0 4px;
}
.kki-ml-404__card-arrow {
    position: absolute;
    bottom: 18px;
    right: 22px;
    color: #b8a97d;
    font-size: 18px;
    transition: transform 0.2s;
}
.kki-ml-404__card:hover .kki-ml-404__card-arrow { transform: translateX(4px); }

/* --- End v9.9.0 additions --- */

/* ========================================================================== */
/* v9.10.0 — Trust band (stats · logos · testimonials)                        */
/* ========================================================================== */

.kki-ml-trust {
    padding: 56px 24px;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}
.kki-ml-trust__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.kki-ml-trust__eye {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b8a97d;
    margin: 0 0 28px;
    text-align: center;
}

/* --- stats --- */
.kki-ml-trust--stats {
    background: #131a24;
    color: #f0eee9;
    padding: 72px 24px;
    position: relative;
}
.kki-ml-trust--stats::before {
    content: "";
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 2px; height: 28px;
    background: #b8a97d;
}
.kki-ml-trust__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 720px) {
    .kki-ml-trust__stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}
.kki-ml-trust__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    position: relative;
}
.kki-ml-trust__stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: rgba(184, 169, 125, 0.22);
}
@media (max-width: 720px) {
    .kki-ml-trust__stat::after { display: none; }
}
.kki-ml-trust__stat-value {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 48px;
    font-weight: 500;
    color: #b8a97d;
    line-height: 1;
    letter-spacing: -0.02em;
}
@media (max-width: 720px) {
    .kki-ml-trust__stat-value { font-size: 38px; }
}
.kki-ml-trust__stat-label {
    font-size: 11.5px;
    color: #d4c79d;
    letter-spacing: 0.08em;
    margin-top: 4px;
    text-transform: uppercase;
}

/* --- logos --- */
.kki-ml-trust--logos {
    background: #f8f6f1;
    padding: 48px 24px;
    border-top: 1px solid rgba(184, 169, 125, 0.15);
    border-bottom: 1px solid rgba(184, 169, 125, 0.15);
}
.kki-ml-trust--logos .kki-ml-trust__eye { color: #6b6f78; }
.kki-ml-trust__logos {
    list-style: none; padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px 48px;
}
.kki-ml-trust__logo {
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.25s;
}
.kki-ml-trust__logo:hover {
    filter: grayscale(0);
    opacity: 1;
}
.kki-ml-trust__logo img {
    max-height: 36px;
    max-width: 140px;
    display: block;
}
.kki-ml-trust__logo-text {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #6b6f78;
    letter-spacing: 0.03em;
}

/* --- testimonials --- */
.kki-ml-trust--testimonials {
    background: #f0eee9;
    padding: 72px 24px;
}
.kki-ml-trust__testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .kki-ml-trust__testimonials { grid-template-columns: 1fr; gap: 16px; }
}
.kki-ml-trust__testimonial {
    background: #fff;
    padding: 28px 26px 26px;
    border-radius: 14px;
    box-shadow: 0 14px 28px -18px rgba(19, 26, 36, 0.18);
    position: relative;
    margin: 0;
}
.kki-ml-trust__quote-mark {
    position: absolute;
    top: -12px;
    left: 22px;
    color: #b8a97d;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 80px;
    line-height: 1;
    opacity: 0.4;
    pointer-events: none;
}
.kki-ml-trust__testimonial p {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 18px;
    line-height: 1.45;
    color: #131a24;
    margin: 0 0 16px;
    font-weight: 500;
}
.kki-ml-trust__testimonial footer {
    border-top: 1px solid rgba(43, 46, 54, 0.1);
    padding-top: 12px;
    font-size: 12.5px;
    color: #6b6f78;
    font-style: normal;
}
.kki-ml-trust__name {
    font-style: normal;
    font-weight: 700;
    color: #131a24;
    display: block;
    margin-bottom: 2px;
}
.kki-ml-trust__title { font-size: 11.5px; }

/* --- end v9.10.0 --- */

/* ========================================================================== */
/* v10.0.0 — Business Platform                                                */
/*   Booking · Newsletter · Property · Client Portal                          */
/* ========================================================================== */

/* --- Booking --- */
.kki-ml-booking {
    background: #f8f6f1;
    padding: 28px 26px;
    border-radius: 14px;
    max-width: 720px;
    margin: 24px auto;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
    border: 1px solid rgba(184, 169, 125, 0.25);
}
.kki-ml-booking__title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 22px; font-weight: 500; color: #131a24; margin: 0 0 4px;
}
.kki-ml-booking__sub { font-size: 13px; color: #6b6f78; margin: 0 0 18px; }
.kki-ml-booking__row { margin-bottom: 12px; }
.kki-ml-booking__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width:600px) { .kki-ml-booking__row--2 { grid-template-columns: 1fr; } }
.kki-ml-booking__field > span {
    display: block; font-size: 11.5px; font-weight: 600; color: #2a2e36;
    margin-bottom: 4px; letter-spacing: 0.02em;
}
.kki-ml-booking__field em { color: #b8a97d; font-style: normal; }
.kki-ml-booking__field input,
.kki-ml-booking__field textarea {
    width: 100%; box-sizing: border-box;
    padding: 10px 13px; border: 1px solid rgba(43, 46, 54, 0.18);
    border-radius: 8px; font-size: 14px; background: #fff; color: #2a2e36;
    font-family: inherit;
}
.kki-ml-booking__field input:focus { outline: 2px solid #b8a97d; outline-offset: -2px; }
.kki-ml-booking__hint { font-size: 12px; color: #6b6f78; margin: 8px 0; }
.kki-ml-booking__slots-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
}
.kki-ml-booking__slot {
    padding: 8px 4px; background: #fff; border: 1px solid rgba(43, 46, 54, 0.15);
    border-radius: 6px; font-size: 13px; cursor: pointer;
    transition: all 0.15s; font-family: inherit;
}
.kki-ml-booking__slot:hover:not(.is-taken) { border-color: #b8a97d; color: #b8a97d; }
.kki-ml-booking__slot.is-selected { background: #131a24; color: #f0eee9; border-color: #131a24; }
.kki-ml-booking__slot.is-taken { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.kki-ml-booking__slot.is-taken small { font-size: 9px; }
.kki-ml-booking__submit {
    margin-top: 12px; background: #131a24; color: #f0eee9;
    border: none; border-radius: 100px; padding: 12px 26px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.kki-ml-booking__submit:hover:not(:disabled) { background: #b8a97d; color: #131a24; }
.kki-ml-booking__submit:disabled { opacity: 0.45; cursor: not-allowed; }
.kki-ml-booking__status { margin-top: 12px; font-size: 13.5px; padding: 10px 14px; border-radius: 8px; display:none; }
.kki-ml-booking__status.is-success { display:block; background: #ecf5ef; border-left: 3px solid #2e5f4a; color: #1d3d31; }
.kki-ml-booking__status.is-error   { display:block; background: #fdeeee; border-left: 3px solid #a03030; color: #7b2424; }

/* --- Newsletter --- */
.kki-ml-nl {
    background: #f8f6f1; padding: 24px 22px; border-radius: 12px;
    max-width: 520px; margin: 24px auto; text-align: center;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}
.kki-ml-nl__eye {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 20px; font-weight: 500; color: #131a24; margin: 0 0 4px;
}
.kki-ml-nl__sub { font-size: 13px; color: #6b6f78; margin: 0 0 16px; }
.kki-ml-nl__field { display: flex; gap: 6px; }
.kki-ml-nl__field input[type=email] {
    flex: 1; padding: 11px 14px; border: 1px solid rgba(43, 46, 54, 0.18);
    border-radius: 100px; font-size: 14px; font-family: inherit;
}
.kki-ml-nl__field button {
    padding: 11px 20px; background: #131a24; color: #f0eee9;
    border: none; border-radius: 100px; font-weight: 700;
    font-size: 12.5px; letter-spacing: 0.04em; cursor: pointer;
    font-family: inherit;
}
.kki-ml-nl__field button:hover { background: #b8a97d; color: #131a24; }
.kki-ml-nl__privacy { font-size: 11px; color: #6b6f78; margin: 10px 0 0; }
.kki-ml-nl__status { margin: 10px 0 0; font-size: 13px; }
.kki-ml-nl__status.is-success { color: #2e5f4a; }
.kki-ml-nl__status.is-error   { color: #a03030; }

/* --- Property Search & Grid --- */
.kki-ml-prop {
    max-width: 1200px; margin: 30px auto; padding: 0 20px;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}
.kki-ml-prop__filters {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
    padding: 16px; background: #f8f6f1; border-radius: 10px;
    align-items: center;
}
.kki-ml-prop__filters input, .kki-ml-prop__filters select {
    padding: 9px 12px; border: 1px solid rgba(43, 46, 54, 0.18);
    border-radius: 8px; font-size: 13.5px; background: #fff; font-family: inherit;
    min-width: 120px;
}
.kki-ml-prop__filters button {
    padding: 10px 18px; background: #131a24; color: #f0eee9;
    border: none; border-radius: 100px; font-weight: 700; font-size: 12.5px;
    letter-spacing: 0.04em; cursor: pointer; font-family: inherit;
}
.kki-ml-prop__filters button[type=reset] { background: #fff; color: #6b6f78; border: 1px solid rgba(43, 46, 54, 0.2); }
.kki-ml-prop__meta { font-size: 12px; color: #6b6f78; margin-bottom: 16px; }
.kki-ml-prop__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.kki-ml-prop__card {
    display: block; background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(43, 46, 54, 0.12); text-decoration: none; color: inherit;
    transition: all 0.2s;
}
.kki-ml-prop__card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(19, 26, 36, 0.2); border-color: #b8a97d; }
.kki-ml-prop__thumb { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #f0eee9; }
.kki-ml-prop__thumb--empty { background: linear-gradient(135deg, #f8f6f1, #d4c79d); }
.kki-ml-prop__body { padding: 14px 16px 18px; }
.kki-ml-prop__loc { font-size: 11px; color: #b8a97d; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 4px; }
.kki-ml-prop__title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 17px; font-weight: 500; color: #131a24; margin: 0 0 6px; line-height: 1.3;
}
.kki-ml-prop__meta-line { font-size: 12px; color: #6b6f78; margin: 0 0 6px; }
.kki-ml-prop__price { font-weight: 700; color: #131a24; margin: 4px 0 0; font-size: 15px; }
.kki-ml-prop__pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.kki-ml-prop__pager button {
    padding: 6px 12px; background: #fff; border: 1px solid rgba(43, 46, 54, 0.2); border-radius: 100px;
    cursor: pointer; font-size: 12px;
}
.kki-ml-prop__pager button.is-active { background: #131a24; color: #f0eee9; border-color: #131a24; }

/* --- Client Portal --- */
.kki-ml-portal {
    max-width: 1100px; margin: 40px auto; padding: 0 20px;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}
.kki-ml-portal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.kki-ml-portal__hi { font-size: 12px; color: #6b6f78; margin: 0; }
.kki-ml-portal__title {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 32px; font-weight: 500; color: #131a24; margin: 2px 0 0;
}
.kki-ml-portal__logout { color: #b8a97d; font-size: 13px; }
.kki-ml-portal__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px;
}
@media (max-width:640px) { .kki-ml-portal__stats { grid-template-columns: 1fr; } }
.kki-ml-portal__stats > div {
    background: #f8f6f1; padding: 20px; border-radius: 10px; text-align: center;
}
.kki-ml-portal__stats span { font-size: 11px; color: #6b6f78; text-transform: uppercase; letter-spacing: 0.08em; }
.kki-ml-portal__stats strong {
    display: block; font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px; font-weight: 500; color: #131a24; margin-top: 4px;
}
.kki-ml-portal__stat--net { background: #131a24 !important; }
.kki-ml-portal__stat--net span, .kki-ml-portal__stat--net strong { color: #b8a97d; }
.kki-ml-portal__section { margin-bottom: 32px; }
.kki-ml-portal__section h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px; font-weight: 500; color: #131a24; margin: 0 0 12px;
    border-bottom: 1px solid #d8d3c6; padding-bottom: 8px;
}
.kki-ml-portal__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kki-ml-portal__table th { text-align: left; padding: 8px 10px; background: #f0eee9; font-size: 11.5px; color: #6b6f78; }
.kki-ml-portal__table td { padding: 10px; border-bottom: 1px solid #e5e2d9; }
.kki-ml-portal__table tr.is-in td { color: #2e5f4a; }
.kki-ml-portal__table tr.is-out td { color: #a03030; }
.kki-ml-portal__properties { list-style: none; padding: 0; }
.kki-ml-portal__properties li {
    padding: 10px 14px; background: #f8f6f1; border-left: 3px solid #b8a97d;
    margin-bottom: 6px; border-radius: 0 6px 6px 0;
}
.kki-ml-portal--login { text-align: center; padding: 60px 20px; }

/* --- End v10.0.0 --- */

/* ========================================================================== */
/* v10.1.0 — Clean page layout policy                                         */
/*                                                                            */
/* Philosophy: content HTML carries ZERO sizing/padding/color. CSS owns it.   */
/*                                                                            */
/*   1. Remove theme's .content-max-width 1320px constraint — site uses       */
/*      full viewport width for visual bands.                                 */
/*   2. Inner readable containers get a sensible max-width (1280px).          */
/*   3. .has-background blocks span viewport + center inner text.             */
/*   4. Paragraphs / headings stay readable (max 920px) centered.             */
/*   5. Utility classes: .is-eyebrow · .is-lede for typography variants.      */
/* ========================================================================== */

/* --- 1. Release theme's outer container constraint ------------------------ */
#main-page-content.content-max-width,
.content-max-width {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* --- 2. Release Gutenberg content-size 880/1280 constraints --------------- */
[class*="wp-container-core-"] > :where(:not(.alignleft):not(.alignright)) {
    max-width: 100% !important;
}
.is-layout-constrained > :where(:not(.alignleft):not(.alignright)) {
    max-width: 100% !important;
}

/* --- 3. Full-bleed visual bands ------------------------------------------- */
.wp-block-group.has-background,
.wp-block-group[style*="background-color"],
.wp-block-group[style*="background:"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Inner content in a band keeps readable width and centers */
.wp-block-group.has-background > *,
.wp-block-group[style*="background-color"] > *,
.wp-block-group[style*="background:"] > *,
.wp-block-group__inner-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* --- 4. Plain content blocks (no band) — readable line length ------------- */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-list {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* --- 5. Branded content typography — pages we built ----------------------- */
.entry-content h1,
#main-page-content h1 {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #131a24;
    margin: 0 0 20px;
}
.entry-content h2,
#main-page-content h2 {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.2;
    color: #131a24;
    margin: 56px 0 16px;
    position: relative;
}
.entry-content h2::before {
    content: '';
    display: block;
    width: 36px; height: 2px;
    background: #b8a97d;
    margin-bottom: 16px;
}
.entry-content h3,
#main-page-content h3 {
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: #131a24;
    margin: 32px 0 10px;
}
.entry-content p,
#main-page-content p {
    font-size: 16px;
    line-height: 1.65;
    color: #2a2e36;
    margin: 0 0 16px;
}
.entry-content ul,
.entry-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #2a2e36;
}
.entry-content a {
    color: #b8a97d;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.entry-content a:hover { color: #131a24; }

/* --- 6. Semantic utility classes (usable in any content) ------------------ */
.entry-content .is-eyebrow,
.is-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b8a97d;
    margin: 48px auto 10px !important;
    max-width: 920px !important;
}
.entry-content .is-lede,
.is-lede {
    font-size: clamp(17px, 1.6vw, 20px) !important;
    line-height: 1.5 !important;
    color: #2a2e36 !important;
    margin: 0 auto 36px !important;
    max-width: 920px !important;
    font-weight: 400;
}

/* --- 7. Columns — readable grid ------------------------------------------- */
.wp-block-columns {
    gap: 28px;
    margin-bottom: 28px;
}

/* --- 8. First heading in a page gets a top spacer ------------------------- */
.entry-content > :first-child,
#main-page-content > :first-child {
    margin-top: 72px;
}

/* --- 9. Responsive tightening --------------------------------------------- */
@media (max-width: 640px) {
    .entry-content > p,
    .entry-content > ul,
    .entry-content > ol,
    .entry-content > h1,
    .entry-content > h2,
    .entry-content > h3 {
        padding-left: 18px;
        padding-right: 18px;
    }
    .entry-content > :first-child { margin-top: 40px; }
    .entry-content h2 { margin-top: 36px; }
}

/* --- End v10.1.0 --- */

/* ========================================================================== */

/* Base: all theme wrappers on every page fill the viewport */
html body .content-max-width,
html body #main-page-content,
html body #main-page-content.content-max-width,
html body #hero-caption.content-max-width,
html body .light-section-container,
html body .light-section-container.content-max-width,
html body .dark-section-container,
html body .dark-section-container.content-max-width,
html body .parallax-image-content.content-max-width {
    max-width: 100% !important;
    width:     100% !important;
    padding-left:  0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Override every responsive breakpoint the theme declares */
@media only screen and (max-width: 1537px) {
    html body .content-max-width,
    html body .content-full-width {
        padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important;
    }
}
@media only screen and (max-width: 1024px) {
    html body .content-max-width,
    html body .content-full-width {
        padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important;
    }
}
@media only screen and (max-width: 768px) {
    html body .content-max-width,
    html body .content-full-width {
        padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important;
    }
}
@media only screen and (max-width: 480px) {
    html body .content-max-width,
    html body .content-full-width {
        padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important;
    }
}

/* ========================================================================== */
/* v10.1.5 — Harden theme footer hide + footer layout polish                  */
/* ========================================================================== */

/* Brutally hide the theme footer (both class="hidden" and any state the JS
   sets — target the container + content too). Our .kki-ml-footer replaces it. */
html body footer.hidden,
html body > footer.hidden,
html body footer[class="hidden"],
html body #footer-container,
html body .footer-middle,
html body .footer-top-content,
html body footer.hidden .socials-wrap,
html body footer.hidden #backtotop,
html body footer.hidden .copyright {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* If the themes JS removes .hidden class at runtime, also catch it via

/* ========================================================================== */
/* v10.1.5 — Harden theme footer hide + footer layout polish                  */
/* ========================================================================== */

/* Brutally hide the theme footer regardless of class state */
html body footer.hidden,
html body > footer.hidden,
html body footer[class="hidden"],
html body #footer-container,
html body .footer-middle,
html body .footer-top-content,
html body footer.hidden .socials-wrap,
html body footer.hidden #backtotop,
html body footer.hidden .copyright {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Catch any theme footer that loses .hidden class at runtime */
html body > footer:not(.kki-ml-footer) {
    display: none !important;
}

/* Our footer stays as the actual page footer */
.kki-ml-footer {
    position: relative !important;
    z-index: 5;
    clear: both;
    display: block !important;
    margin-top: 0;
}

/* Layout across widths */
@media (min-width: 1100px) {
    .kki-ml-footer__inner {
        grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr !important;
        gap: 48px !important;
    }
}
@media (min-width: 740px) and (max-width: 1099px) {
    .kki-ml-footer__inner {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 32px !important;
    }
    .kki-ml-footer__brand {
        grid-column: 1 / -1 !important;
    }
}
@media (max-width: 739px) {
    .kki-ml-footer__inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px 20px !important;
    }
    .kki-ml-footer__brand {
        grid-column: 1 / -1 !important;
    }
}
@media (max-width: 479px) {
    .kki-ml-footer__inner {
        grid-template-columns: 1fr !important;
    }
    .kki-ml-footer { padding: 48px 20px 24px !important; }
}

/* End v10.1.5 */

/* ========================================================================== */
/* v10.2.0 — Footer · full refactor                                           */
/*                                                                            */
/* Clean semantic structure with CSS-only styling. Minimal !important (only   */
/* where a theme rule genuinely needs to be overridden).                      */
/* ========================================================================== */

/* Strip older .kki-ml-footer rules by overriding at higher specificity below.
   We keep the theme-footer-hide from v10.1.5 (still needed). */

/* --- Layout shell -------------------------------------------------------- */
footer.kki-ml-footer {
    display: block;
    position: relative;
    z-index: 5;
    background: #0b1017;
    color: #d4c79d;
    padding: 72px 0 0;
    margin: 0;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
footer.kki-ml-footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #b8a97d 22%, #b8a97d 78%, transparent 100%);
    margin: 0 0 72px;
    opacity: 0.35;
}

footer.kki-ml-footer .kki-ml-footer__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

/* --- Main 3-zone grid ---------------------------------------------------- */
footer.kki-ml-footer .kki-ml-footer__main {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr;
    gap: 72px;
    align-items: start;
}
@media (max-width: 1099px) {
    footer.kki-ml-footer .kki-ml-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 48px 40px;
    }
    footer.kki-ml-footer .kki-ml-footer__brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    footer.kki-ml-footer .kki-ml-footer__main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    footer.kki-ml-footer .kki-ml-footer__container {
        padding: 0 22px;
    }
}

/* --- Brand block --------------------------------------------------------- */
footer.kki-ml-footer .kki-ml-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
footer.kki-ml-footer .kki-ml-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #f0eee9;
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
}
footer.kki-ml-footer .kki-ml-footer__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #b8a97d;
    color: #0b1017;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
}
footer.kki-ml-footer .kki-ml-footer__tagline {
    margin: 0;
    font-size: 13.5px;
    color: #d4c79d;
    line-height: 1.6;
    max-width: 320px;
}

/* Contact block */
footer.kki-ml-footer .kki-ml-footer__contact {
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-style: normal;
}
footer.kki-ml-footer .kki-ml-footer__contact-item {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: #f0eee9;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease, color 0.18s ease;
    width: fit-content;
    max-width: 100%;
}
footer.kki-ml-footer .kki-ml-footer__contact-item:hover {
    color: #b8a97d;
    border-bottom-color: rgba(184, 169, 125, 0.6);
}
footer.kki-ml-footer .kki-ml-footer__contact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b8a97d;
    line-height: 1;
}
footer.kki-ml-footer .kki-ml-footer__contact-item strong {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

/* Hours line */
footer.kki-ml-footer .kki-ml-footer__hours {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b6f78;
    line-height: 1.5;
}
footer.kki-ml-footer .kki-ml-footer__hours-label {
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8a97d;
    font-size: 10px;
    display: block;
    margin-bottom: 2px;
}

/* --- Nav columns --------------------------------------------------------- */
footer.kki-ml-footer .kki-ml-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 520px) {
    footer.kki-ml-footer .kki-ml-footer__nav {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
}
footer.kki-ml-footer .kki-ml-footer__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
footer.kki-ml-footer .kki-ml-footer__heading {
    font-family: 'Inter', 'IBM Plex Sans Thai', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b8a97d;
    margin: 0;
    line-height: 1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(184, 169, 125, 0.18);
}
footer.kki-ml-footer .kki-ml-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
footer.kki-ml-footer .kki-ml-footer__list a {
    color: #d4c79d;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.4;
    display: inline-block;
    position: relative;
    padding: 2px 0;
    transition: color 0.15s ease, transform 0.18s ease;
}
footer.kki-ml-footer .kki-ml-footer__list a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #b8a97d;
    opacity: 0;
    transform: translateY(-50%) scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
footer.kki-ml-footer .kki-ml-footer__list a:hover,
footer.kki-ml-footer .kki-ml-footer__list a:focus-visible {
    color: #f0eee9;
    transform: translateX(8px);
    outline: none;
}
footer.kki-ml-footer .kki-ml-footer__list a:hover::before,
footer.kki-ml-footer .kki-ml-footer__list a:focus-visible::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* --- CTA / Newsletter ---------------------------------------------------- */
footer.kki-ml-footer .kki-ml-footer__cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
footer.kki-ml-footer .kki-ml-footer__stay-sub {
    margin: 0;
    font-size: 12.5px;
    color: #d4c79d;
    line-height: 1.55;
}

/* Newsletter widget: restyle inside footer dark background */
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl {
    background: transparent;
    padding: 0;
    margin: 0;
    max-width: 100%;
    text-align: left;
}
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__eye,
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__sub {
    display: none; /* heading handled by our own CTA block */
}
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__field {
    gap: 0;
    border: 1px solid rgba(184, 169, 125, 0.4);
    border-radius: 100px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__field input[type="email"] {
    border: none;
    background: transparent;
    color: #f0eee9;
    padding: 11px 18px;
    border-radius: 100px 0 0 100px;
    font-size: 13px;
}
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__field input[type="email"]::placeholder {
    color: #6b6f78;
}
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__field button {
    background: #b8a97d;
    color: #0b1017;
    border: none;
    padding: 11px 20px;
    border-radius: 0 100px 100px 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__field button:hover {
    background: #d4c79d;
}
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__privacy {
    color: #6b6f78;
    font-size: 10.5px;
    margin: 8px 0 0;
}
footer.kki-ml-footer .kki-ml-footer__newsletter .kki-ml-nl__status {
    color: #d4c79d;
    font-size: 12px;
    margin: 6px 0 0;
}

/* LINE pill button */
footer.kki-ml-footer .kki-ml-footer__line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    border: 1px solid rgba(184, 169, 125, 0.4);
    border-radius: 100px;
    color: #f0eee9;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    width: fit-content;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
footer.kki-ml-footer .kki-ml-footer__line:hover {
    background: #06c755;
    border-color: #06c755;
    color: #fff;
}
footer.kki-ml-footer .kki-ml-footer__line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #06c755;
    color: #fff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
}
footer.kki-ml-footer .kki-ml-footer__line:hover .kki-ml-footer__line-icon {
    background: #fff;
    color: #06c755;
}

/* --- Social row ---------------------------------------------------------- */
footer.kki-ml-footer .kki-ml-footer__social {
    list-style: none;
    padding: 36px 0;
    margin: 56px 0 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(184, 169, 125, 0.18);
}
footer.kki-ml-footer .kki-ml-footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    border: 1px solid rgba(184, 169, 125, 0.25);
    border-radius: 100px;
    background: transparent;
    color: #d4c79d;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
footer.kki-ml-footer .kki-ml-footer__social a:hover,
footer.kki-ml-footer .kki-ml-footer__social a:focus-visible {
    background: #b8a97d;
    color: #0b1017;
    border-color: #b8a97d;
    outline: none;
}
footer.kki-ml-footer .kki-ml-footer__social-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(184, 169, 125, 0.18);
    color: #b8a97d;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 11px;
    transition: all 0.2s ease;
}
footer.kki-ml-footer .kki-ml-footer__social a:hover .kki-ml-footer__social-mark,
footer.kki-ml-footer .kki-ml-footer__social a:focus-visible .kki-ml-footer__social-mark {
    background: #0b1017;
    color: #b8a97d;
}
footer.kki-ml-footer .kki-ml-footer__social-label {
    line-height: 1;
}

/* --- Bottom row ---------------------------------------------------------- */
footer.kki-ml-footer .kki-ml-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px 32px;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(184, 169, 125, 0.12);
    font-size: 11.5px;
    color: #6b6f78;
}
@media (max-width: 900px) {
    footer.kki-ml-footer .kki-ml-footer__bottom {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }
    footer.kki-ml-footer .kki-ml-footer__legal {
        justify-content: center;
    }
}
footer.kki-ml-footer .kki-ml-footer__copyright {
    margin: 0;
    line-height: 1.4;
}
footer.kki-ml-footer .kki-ml-footer__copyright span {
    opacity: 0.8;
}
footer.kki-ml-footer .kki-ml-footer__legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 4px 18px;
    flex-wrap: wrap;
}
footer.kki-ml-footer .kki-ml-footer__legal a {
    color: #d4c79d;
    text-decoration: none;
    font-size: 11.5px;
    transition: color 0.15s ease;
}
footer.kki-ml-footer .kki-ml-footer__legal a:hover {
    color: #b8a97d;
    text-decoration: underline;
    text-underline-offset: 3px;
}
footer.kki-ml-footer .kki-ml-footer__lang {
    margin: 0;
    font-size: 11px;
    color: #6b6f78;
    font-weight: 600;
    letter-spacing: 0.08em;
}
footer.kki-ml-footer .kki-ml-footer__lang span {
    padding: 2px 8px;
    border: 1px solid rgba(184, 169, 125, 0.3);
    border-radius: 100px;
    color: #b8a97d;
    font-size: 10px;
    letter-spacing: 0.16em;
    margin-right: 6px;
}

/* End v10.2.0 */

/* ========================================================================== */
/* v10.2.1 — Testimonial markup migration: blockquote -> figure               */
/* ========================================================================== */
.kki-ml-trust__testimonial[data-idx] {
    background: #fff;
    padding: 28px 26px 26px;
    border-radius: 14px;
    box-shadow: 0 14px 28px -18px rgba(19, 26, 36, 0.18);
    position: relative;
    margin: 0;
    display: block;
}
.kki-ml-trust__quote {
    margin: 0 0 16px;
    padding: 0;
    border: none;
}
.kki-ml-trust__quote p {
    font-family: Cormorant Garamond, Noto Serif Thai, Georgia, serif;
    font-size: 18px; line-height: 1.45; color: #131a24;
    margin: 0; font-weight: 500;
}
.kki-ml-trust__attribution {
    border-top: 1px solid rgba(43, 46, 54, 0.1);
    padding-top: 12px;
    font-size: 12.5px;
    color: #6b6f78;
    font-style: normal;
    display: block;
}
/* End v10.2.1 */

/* ========================================================================== */
/* v10.5.0 — Hero padding restore (after content-max-width strip)             */
/* Only the hero gets side padding. Content bands below stay full-bleed.     */
/* ========================================================================== */
#hero #hero-caption,
#hero #hero-footer {
    box-sizing: border-box;
    padding-left:  clamp(24px, 5vw, 80px);
    padding-right: clamp(24px, 5vw, 80px);
}

/* Also ensure the inner content width behaves on very wide screens */
#hero #hero-caption .inner {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
#hero #hero-footer {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (max-width: 640px) {
    #hero #hero-caption,
    #hero #hero-footer {
        padding-left:  22px;
        padding-right: 22px;
    }
}
/* End v10.5.0 */

/* ========================================================================== */
/* v10.5.1 — Page content padding (after content-max-width strip)             */
/* Give #main-page-content comfortable side padding · bands break out.        */
/* ========================================================================== */

/* Main page wrapper gets responsive side padding */
#main-page-content {
    box-sizing: border-box;
    padding-left:  clamp(22px, 5vw, 80px);
    padding-right: clamp(22px, 5vw, 80px);
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* But visual bands break out to full viewport (hero navy, trust bands, etc.) */
#main-page-content .wp-block-group.has-background,
#main-page-content .kki-ml-trust,
#main-page-content .kki-ml-service-cta,
#main-page-content .kki-ml-breadcrumbs,
#main-page-content .kki-ml-404 {
    width: 100vw;
    max-width: 100vw;
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Breadcrumb stays at top flush with viewport */
#main-page-content .kki-ml-breadcrumbs {
    margin-top: -1px;
}

@media (max-width: 640px) {
    #main-page-content {
        padding-left:  18px;
        padding-right: 18px;
    }
}

/* End v10.5.1 */

/* ========================================================================== */
/* v10.5.2 — Hero + navbar overlap fix                                        */
/* Remove earlier padding-top:120px from #hero · let the theme show hero at   */
/* full 100vh · navbar overlays transparent at top (becomes solid on scroll). */
/* ========================================================================== */

/* Neutralize v9.6 padding-top that was pushing hero content down */
html body #hero,
html body #hero.has-image,
html body .hero-section,
html body .site-hero {
    padding-top: 0 !important;
}
@media (max-width: 768px) {
    html body #hero,
    html body .hero-section,
    html body .site-hero {
        padding-top: 0 !important;
    }
}

/* Make sure navbar sits ON TOP of hero (not pushing it) */
.kki-ml-sticky-nav {
    background: transparent;
    box-shadow: none;
}
.kki-ml-sticky-nav:not(.kki-ml-scrolled) {
    background: linear-gradient(to bottom, rgba(11, 16, 23, 0.55) 0%, rgba(11, 16, 23, 0) 100%);
}

/* Keep content below hero respecting any breadcrumb / body offsets */
/* (breadcrumbs are disabled now — no offset needed) */

/* End v10.5.2 */

/* v10.5.6 — cursor pointer for <a> pill (renderer now uses plain anchor) */
a.kki-ml-pill-link,
.kki-ml-pill a.kki-ml-pill-link,
.kki-ml-header-mount a.kki-ml-pill-link {
    cursor: pointer !important;
    text-decoration: none !important;
    pointer-events: auto !important;
}

/* ========================================================================== */
/* v10.5.7 — Search trigger in navbar (replaces floating position)            */
/* ========================================================================== */

/* Once moved into navbar, become inline-flex with the pill area */
.kki-ml-search-trigger.kki-ml-search-trigger--in-nav {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-flex !important;
    vertical-align: middle;
    margin-right: 10px;
    width: 34px !important;
    height: 34px !important;
    background: transparent !important;
    border: 1px solid rgba(184, 169, 125, 0.4) !important;
    color: #b8a97d !important;
    z-index: auto !important;
}
.kki-ml-search-trigger.kki-ml-search-trigger--in-nav:hover,
.kki-ml-search-trigger.kki-ml-search-trigger--in-nav:focus-visible {
    background: rgba(184, 169, 125, 0.12) !important;
    color: #f0eee9 !important;
    border-color: #b8a97d !important;
    outline: none;
}

/* If the navbar is scrolled (dark bg), search stays visible */
.kki-ml-sticky-nav.kki-ml-scrolled .kki-ml-search-trigger--in-nav {
    color: #d4c79d !important;
}

/* Mobile tighter */
@media (max-width: 1024px) {
    .kki-ml-search-trigger.kki-ml-search-trigger--in-nav {
        width: 30px !important;
        height: 30px !important;
        margin-right: 6px;
    }
}
/* End v10.5.7 */

/* ========================================================================== */
/* v10.6.0 — Search autocomplete input in navbar                              */
/* ========================================================================== */

/* The widget container */
.kki-ml-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
}

/* Inside menu <li> wrapper */
#menu-main-menu li.kki-ml-search-menu-item {
    list-style: none !important;
    display: inline-flex !important;
    align-items: center;
    padding: 0 !important;
    margin: 0 10px 0 0;
    background: transparent !important;
    border: none !important;
}

/* The input form — pill shape with icon + input */
.kki-ml-search__form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 12px;
    height: 34px;
    box-sizing: border-box;
    border: 1px solid rgba(184, 169, 125, 0.35);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    width: 180px;
}
.kki-ml-search__form:focus-within,
.kki-ml-search:hover .kki-ml-search__form {
    border-color: #b8a97d;
    background: rgba(255, 255, 255, 0.1);
    width: 260px;
}

.kki-ml-search__icon {
    color: #b8a97d;
    flex-shrink: 0;
}

.kki-ml-search__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #f0eee9;
    font-size: 12.5px;
    font-family: inherit;
    padding: 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.kki-ml-search__input::placeholder {
    color: #6b6f78;
    opacity: 0.85;
}
.kki-ml-search__input::-webkit-search-cancel-button {
    appearance: none;
    width: 14px; height: 14px;
    background: #6b6f78;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
}

/* Suggestion dropdown */
.kki-ml-search__suggest {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 320px;
    max-width: 420px;
    max-height: 460px;
    overflow-y: auto;
    background: #131a24;
    border: 1px solid rgba(184, 169, 125, 0.25);
    border-radius: 12px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
    list-style: none;
    margin: 0;
    padding: 8px;
    z-index: 100002;
}
.kki-ml-search__suggest[hidden] { display: none; }

.kki-ml-search__status {
    padding: 12px 14px;
    font-size: 12.5px;
    color: #6b6f78;
    text-align: center;
}

.kki-ml-search__item {
    display: block;
    border-radius: 8px;
    transition: background 0.12s;
}
.kki-ml-search__item a {
    display: block;
    padding: 10px 14px;
    color: #d4c79d;
    text-decoration: none;
}
.kki-ml-search__item:hover,
.kki-ml-search__item.is-active {
    background: rgba(184, 169, 125, 0.12);
}
.kki-ml-search__item:hover a,
.kki-ml-search__item.is-active a {
    color: #f0eee9;
}
.kki-ml-search__item-type {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8a97d;
    margin-bottom: 4px;
}
.kki-ml-search__item-title {
    display: block;
    font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: #f0eee9;
    line-height: 1.3;
    margin-bottom: 3px;
}
.kki-ml-search__item-excerpt {
    display: block;
    font-size: 11.5px;
    color: #6b6f78;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kki-ml-search__item mark,
.kki-ml-search__status mark {
    background: rgba(184, 169, 125, 0.35);
    color: #f0eee9;
    padding: 0 2px;
    border-radius: 2px;
}

.kki-ml-search__all {
    margin-top: 4px;
    border-top: 1px solid rgba(184, 169, 125, 0.12);
    padding-top: 8px;
}
.kki-ml-search__all a {
    display: block;
    padding: 10px 14px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b8a97d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}
.kki-ml-search__all a:hover {
    background: #b8a97d;
    color: #0b1017;
}

/* Responsive — narrower input on smaller screens */
@media (max-width: 1200px) {
    .kki-ml-search__form { width: 150px; }
    .kki-ml-search__form:focus-within { width: 220px; }
}
@media (max-width: 1024px) {
    .kki-ml-search__form { width: 120px; height: 30px; padding: 2px 8px 2px 10px; }
    .kki-ml-search__form:focus-within { width: 180px; }
    .kki-ml-search__input { font-size: 11.5px; }
    .kki-ml-search__suggest { min-width: 280px; max-width: 340px; }
}
@media (max-width: 640px) {
    .kki-ml-search__form { width: 36px; padding: 2px; justify-content: center; }
    .kki-ml-search__form:focus-within { width: 200px; padding: 2px 8px 2px 10px; }
    .kki-ml-search__input { width: 0; }
    .kki-ml-search__form:focus-within .kki-ml-search__input { width: auto; }
    .kki-ml-search__suggest {
        position: fixed;
        top: auto; right: 12px; left: 12px;
        min-width: 0; max-width: 100%;
    }
}

/* Hide old drawer-style UI if it ever renders */
.kki-ml-search-trigger,
.kki-ml-search-panel { display: none !important; }

/* End v10.6.0 */

/* ========================================================================== */
/* v10.6.1 — Center search in navbar                                          */
/* ========================================================================== */
.kki-ml-search-mount {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 50;
    pointer-events: auto;
}
#header-container { position: relative; }

@media (max-width: 1024px) {
    .kki-ml-search-mount {
        left: auto !important;
        right: 80px !important;
        transform: translateY(-50%) !important;
    }
}
/* End v10.6.1 */

/* ========================================================================== */
/* v10.6.2 — Emergency: restore native scroll                                 */
/* Earlier 'overflow-x: hidden' + theme smooth-scrollbar conflict blocked     */
/* vertical scroll. Remove all scroll locks.                                  */
/* ========================================================================== */
html, body {
    overflow-x: visible !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}
body.smooth-scroll { overflow-y: auto !important; }
/* Reset any scroll-freeze from theme scrollbar init */
html.is-locked, body.is-locked, body.scroll-locked { overflow-y: auto !important; }

/* ========================================================================== */
/* v10.6.3 — LINE FAB redesign · subtle, premium, label slide-in               */
/* ========================================================================== */
.kki-ml-fab-stack {
    gap: 14px;
}
.kki-ml-fab {
    overflow: visible;
    position: relative;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50%;
    box-shadow: 0 10px 30px -8px rgba(6, 199, 85, 0.35), 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.28s cubic-bezier(.2,.8,.2,1) !important;
}
.kki-ml-fab-line {
    background: #06c755 !important;
    color: #fff !important;
}
.kki-ml-fab-line::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #06c755;
    opacity: 0.35;
    animation: kki-fab-ripple 2.6s ease-out infinite;
    pointer-events: none;
}
@keyframes kki-fab-ripple {
    0%   { opacity: 0.5; transform: scale(0.95); }
    70%  { opacity: 0;   transform: scale(1.35); }
    100% { opacity: 0;   transform: scale(1.35); }
}
.kki-ml-fab-line::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%);
    pointer-events: none;
}
.kki-ml-fab-line:hover,
.kki-ml-fab-line:focus-visible {
    background: #05b04a !important;
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 14px 40px -8px rgba(6, 199, 85, 0.55), 0 6px 14px rgba(0, 0, 0, 0.18) !important;
}

/* Label slides in from the left on hover (desktop) */
.kki-ml-fab .kki-ml-fab-label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #131a24;
    color: #f0eee9;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 8px 18px -6px rgba(0,0,0,0.3);
    display: block !important;
    margin: 0 !important;
}
.kki-ml-fab .kki-ml-fab-label::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #131a24;
}
.kki-ml-fab:hover .kki-ml-fab-label,
.kki-ml-fab:focus-visible .kki-ml-fab-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
@media (max-width: 1024px) {
    .kki-ml-fab .kki-ml-fab-label { display: none !important; }
    .kki-ml-fab { width: 52px !important; height: 52px !important; }
}
/* End v10.6.3 */
/* ========================================================================== */
/* v11.2.0 — UX audit · P1/P2 fixes                                           */
/* 1. Search: collapse-to-icon anchored right (fixes overlap w/ METHODOLOGY)  */
/* 2. Active menu state: clearly visible gold                                 */
/* 3. Admin bar: hidden on frontend (handled server-side too)                 */
/* 4. LINE FAB: gold outline style (replaces green luxury-clash)              */
/* 5. Testimonial card: clean gold-accent divider                             */
/* ========================================================================== */

/* ── 1. Search · right-anchored icon-first ───────────────────────────────── */
.kki-ml-search-mount {
    position: absolute !important;
    top: 50% !important;
    left: auto !important;
    right: 96px !important;
    transform: translateY(-50%) !important;
    z-index: 60;
    pointer-events: auto;
}
.kki-ml-search__form {
    width: 40px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center;
    background: transparent !important;
    border-color: rgba(184, 169, 125, 0.28) !important;
    transition: width 0.28s cubic-bezier(.2,.8,.2,1),
                padding 0.28s cubic-bezier(.2,.8,.2,1),
                background 0.22s,
                border-color 0.22s;
    overflow: hidden;
}
.kki-ml-search__form:focus-within,
.kki-ml-search-mount:hover .kki-ml-search__form {
    width: 260px !important;
    padding: 4px 14px 4px 12px !important;
    justify-content: flex-start;
    background: rgba(19, 26, 36, 0.7) !important;
    border-color: #b8a97d !important;
}
.kki-ml-search__icon {
    width: 16px;
    height: 16px;
}
.kki-ml-search__input {
    width: 0;
    opacity: 0;
    transition: width 0.28s cubic-bezier(.2,.8,.2,1), opacity 0.22s 0.06s;
}
.kki-ml-search__form:focus-within .kki-ml-search__input,
.kki-ml-search-mount:hover .kki-ml-search__input {
    width: auto;
    opacity: 1;
    flex: 1;
}

@media (max-width: 1024px) {
    .kki-ml-search-mount { right: 72px !important; }
    .kki-ml-search__form:focus-within,
    .kki-ml-search-mount:hover .kki-ml-search__form { width: 220px !important; }
}
@media (max-width: 768px) {
    .kki-ml-search-mount { right: 64px !important; }
    .kki-ml-search__form:focus-within,
    .kki-ml-search-mount:hover .kki-ml-search__form { width: 180px !important; }
}

/* ── 2. Active menu state · gold + bold ──────────────────────────────────── */
.flexnav li.current-menu-item > a,
.flexnav li.current-menu-parent > a,
#menu-main-menu li.current-menu-item > a,
#menu-main-menu li.current-menu-parent > a,
nav[role="navigation"] li.current-menu-item > a {
    color: #b8a97d !important;
    font-weight: 600 !important;
    position: relative;
}
.flexnav li.current-menu-item > a::after,
#menu-main-menu li.current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: #b8a97d;
    border-radius: 1px;
    opacity: 0.95;
}
.flexnav li.current-menu-item > a .before-span > span,
#menu-main-menu li.current-menu-item > a .before-span > span {
    color: #b8a97d !important;
}

/* ── 3. WP admin toolbar · hide on frontend ──────────────────────────────── */
html { margin-top: 0 !important; }
html.admin-bar { margin-top: 0 !important; }
body.admin-bar { padding-top: 0 !important; }
#wpadminbar { display: none !important; }
@media screen and (max-width: 782px) {
    html { margin-top: 0 !important; }
    body.admin-bar { margin-top: 0 !important; }
}

/* ── 4. LINE FAB · gold-outline luxury restyle ───────────────────────────── */
.kki-ml-fab-line {
    background: transparent !important;
    color: #0a0f1a !important;
    border: 1.5px solid rgba(184, 169, 125, 0.7) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px -10px rgba(19, 26, 36, 0.45),
                0 2px 6px rgba(184, 169, 125, 0.15) !important;
}
.kki-ml-fab-line:hover {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: #b8a97d !important;
    color: #06c755 !important;
    transform: translateY(-2px);
}
.kki-ml-fab-line svg { color: inherit !important; }
.kki-ml-fab-line svg path[fill="#06c755"] { fill: #b8a97d !important; }
.kki-ml-fab-line:hover svg path[fill="#06c755"] { fill: #06c755 !important; }
.kki-ml-fab-line::before {
    border-color: rgba(184, 169, 125, 0.45) !important;
}
.kki-ml-fab-stack .kki-ml-fab {
    width: 52px !important;
    height: 52px !important;
}
.kki-ml-fab-label {
    background: #131a24 !important;
    color: #f0eee9 !important;
    border: 1px solid rgba(184, 169, 125, 0.35);
    font-weight: 500 !important;
}

/* ── 5. Testimonial card · clean gold divider ────────────────────────────── */
.kki-ml-trust__testimonial,
.testimonial-card,
.wp-block-quote.is-style-large {
    background: #fbfaf6 !important;
    border: 1px solid rgba(184, 169, 125, 0.3) !important;
    border-radius: 2px !important;
    padding: 28px 32px !important;
    box-shadow: 0 4px 18px -8px rgba(19, 26, 36, 0.12);
}
.kki-ml-trust__testimonial .author,
.kki-ml-trust__testimonial cite,
.testimonial-card cite,
.testimonial-card .author {
    background: transparent !important;
    display: block;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(184, 169, 125, 0.35);
    color: #131a24;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: normal;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.kki-ml-trust__testimonial cite::before,
.testimonial-card cite::before {
    content: "—  ";
    color: #b8a97d;
    font-weight: 700;
}

/* ── 6. Logo wordmark fallback · if K icon fails to load, show text ──────── */
.kki-ml-brand-wordmark {
    display: none;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    color: #f0eee9;
    text-transform: uppercase;
}
body.kki-ml-wordmark-mode .logo img,
body.kki-ml-wordmark-mode #logo img {
    display: none !important;
}
body.kki-ml-wordmark-mode .logo,
body.kki-ml-wordmark-mode #logo { display: flex; align-items: center; }
body.kki-ml-wordmark-mode .kki-ml-brand-wordmark { display: inline-block; }

/* End v11.2.0 */

/* v11.2.0-patch · Hero background fallback (avoid pure-black flash on load) */
#hero,
#hero.has-image {
    background-color: #131a24 !important;
    background-image: linear-gradient(180deg, #131a24 0%, #1f2937 100%);
}
#hero.has-image[data-bg-loaded="true"],
#hero.has-image:has(img[complete]) {
    background-image: none !important;
}
/* Hero info skeleton shimmer during initial paint */
#hero .hero-info,
#hero .caption {
    opacity: 1;
    transition: opacity 0.35s ease;
}
#hero.loading .hero-info,
#hero.loading .caption { opacity: 0.4; }
/* End v11.2.0-patch */
/* ========================================================================== */
/* v11.2.2 — QA sprint · BUG-05 hero fix + consent UI + banner              */
/* ========================================================================== */

/* ── BUG-05 · Hero block-title must not explode layout ──────────────────── */
/* When theme renders the hero caption title as .block-title, some CJK/Thai
   strings cause the inline layout to over-size. Clamp the wrapper + font. */
#hero .caption .block-title,
#hero-caption .block-title,
.hero .block-title {
    max-width: min(920px, 90vw);
    font-size: clamp(2.2rem, 5.5vw, 4.4rem) !important;
    line-height: 1.1 !important;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0 auto;
    display: block !important;
    height: auto !important;
    width: auto !important;
    max-height: 70vh;
    overflow: visible;
}
/* Guard: the theme sometimes adds inline styles that stretch the element;
   kill any width: 1526px type of inline style. */
#hero .caption .block-title[style*="width"],
#hero-caption .block-title[style*="width"] {
    width: auto !important;
    max-width: min(920px, 90vw) !important;
}
/* Hero info text under the title should size sanely too */
#hero .hero-info,
#hero .caption .info,
#hero-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem) !important;
    line-height: 1.55;
    max-width: 640px;
}

/* ── SEC-02 · Consent checkbox UI ────────────────────────────────────────── */
.kki-ml-inquiry__consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin: 18px 0 8px;
    background: rgba(184, 169, 125, 0.06);
    border: 1px solid rgba(184, 169, 125, 0.25);
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #2b2f36;
}
.kki-ml-inquiry__consent:hover {
    background: rgba(184, 169, 125, 0.1);
    border-color: rgba(184, 169, 125, 0.45);
}
.kki-ml-inquiry__consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #b8a97d;
    cursor: pointer;
}
.kki-ml-inquiry__consent-text em {
    display: block;
    margin-top: 4px;
    color: #5a5f66;
    font-style: italic;
    font-size: 0.8125rem;
}

/* ── BUG-03 · EN-fallback banner when TH version missing ────────────────── */
.kki-ml-lang-fallback-banner {
    background: linear-gradient(90deg, rgba(184, 169, 125, 0.12), rgba(184, 169, 125, 0.04));
    border-left: 3px solid #b8a97d;
    padding: 12px 20px;
    font-size: 0.875rem;
    color: #2b2f36;
    margin: 0;
    text-align: center;
}
.kki-ml-lang-fallback-banner a {
    color: #131a24;
    border-bottom: 1px dashed #b8a97d;
    margin-left: 6px;
}

/* End v11.2.2 */
/* ========================================================================== */
/* v11.3.0 — Deep QA sprint · consent banner + skip link + translation banner  */
/* ========================================================================== */

/* ── A11y · skip to content link ──────────────────────────────────────────── */
.kki-ml-skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 100000;
    padding: 12px 20px;
    background: #131a24;
    color: #f0eee9;
    font-weight: 700;
    border: 2px solid #b8a97d;
    border-radius: 2px;
    text-decoration: none;
}
.kki-ml-skip-link:focus {
    left: 16px;
    outline: 3px solid #b8a97d;
    outline-offset: 2px;
}

/* ── PDPA · consent banner ────────────────────────────────────────────────── */
.kki-ml-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: 860px;
    margin: 0 auto;
    background: #131a24;
    color: #f0eee9;
    border: 1px solid rgba(184, 169, 125, 0.45);
    border-radius: 4px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    animation: kki-ml-consent-in 0.4s cubic-bezier(.2,.8,.2,1) 0.5s forwards;
}
@keyframes kki-ml-consent-in {
    to { opacity: 1; transform: translateY(0); }
}
.kki-ml-consent.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s ease;
}
.kki-ml-consent__inner {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 18px 22px;
    flex-wrap: wrap;
}
.kki-ml-consent__body {
    flex: 1;
    min-width: 260px;
    font-size: 0.875rem;
    line-height: 1.55;
}
.kki-ml-consent__title {
    display: block;
    color: #b8a97d;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.kki-ml-consent__body p { margin: 0; color: #d9cfb8; }
.kki-ml-consent__body a {
    color: #b8a97d;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    margin-left: 4px;
}
.kki-ml-consent__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.kki-ml-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.22s ease;
    font-family: inherit;
}
.kki-ml-consent__btn--primary {
    background: #b8a97d;
    color: #131a24;
    border-color: #b8a97d;
}
.kki-ml-consent__btn--primary:hover {
    background: #d9cfb8;
    border-color: #d9cfb8;
}
.kki-ml-consent__btn--secondary {
    background: transparent;
    color: #f0eee9;
    border-color: rgba(240, 238, 233, 0.35);
}
.kki-ml-consent__btn--secondary:hover {
    border-color: #f0eee9;
    background: rgba(240, 238, 233, 0.08);
}
@media (max-width: 640px) {
    .kki-ml-consent__inner { flex-direction: column; align-items: stretch; }
    .kki-ml-consent__actions { width: 100%; }
    .kki-ml-consent__btn { flex: 1; padding: 12px 16px; font-size: 0.75rem; }
}

/* ── Translation-in-progress banner ──────────────────────────────────────── */
.kki-ml-translation-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin: 0 auto 24px;
    max-width: 1200px;
    background: linear-gradient(90deg, rgba(184, 169, 125, 0.18), rgba(184, 169, 125, 0.05));
    border-left: 3px solid #b8a97d;
    border-radius: 2px;
    color: #2b2f36;
    font-size: 0.9375rem;
    line-height: 1.5;
    flex-wrap: wrap;
}
.kki-ml-translation-banner__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.kki-ml-translation-banner a {
    color: #131a24;
    font-weight: 600;
    border-bottom: 1px dashed #b8a97d;
}

/* End v11.3.0 */
/* ========================================================================== */
/* v11.5.0 — A11Y-H1 fix · WCAG AA contrast 4.5:1 on primary nav + UI  */
/* ========================================================================== */

/* Auditor measured menu links at 1.16:1 — that's nearly-invisible text on
   the current bg. Boost color + text-shadow for 4.5:1 minimum.

   Target colors on navy (#131a24) / dark backgrounds:
   - #f0eee9 (cream)   → 14.8:1 on navy · ✓
   - #b8a97d (gold)    →  5.8:1 on navy · ✓
   - #d9cfb8 (softgold)→  9.1:1 on navy · ✓ */

.flexnav li > a,
#menu-main-menu li > a,
nav[role="navigation"] li > a {
    color: #f0eee9 !important;
    opacity: 1 !important;
    text-shadow: none;
    font-weight: 500;
}
.flexnav li > a .before-span > span,
#menu-main-menu li > a .before-span > span {
    color: #f0eee9 !important;
    opacity: 1 !important;
}

/* Hover/focus state: gold (high contrast) */
.flexnav li > a:hover,
.flexnav li > a:focus,
.flexnav li > a:focus-visible,
#menu-main-menu li > a:hover,
#menu-main-menu li > a:focus {
    color: #b8a97d !important;
    outline: none;
}
.flexnav li > a:focus-visible {
    outline: 2px solid #b8a97d !important;
    outline-offset: 4px;
}

/* Active state (already gold via v11.2.0 but ensure weight + contrast) */
.flexnav li.current-menu-item > a,
#menu-main-menu li.current-menu-item > a {
    color: #b8a97d !important;
    font-weight: 600 !important;
}

/* Secondary text elements — ensure meta text readable */
.kki-ml-pill-label,
.kki-ml-search__input,
.kki-ml-search__input::placeholder {
    color: #f0eee9 !important;
}
.kki-ml-search__input::placeholder {
    color: #9aa0a6 !important;  /* 4.7:1 on navy · AA ✓ */
}

/* Footer text contrast */
.kki-ml-footer, .kki-ml-footer * {
    color: #d9cfb8;
}
.kki-ml-footer a {
    color: #f0eee9 !important;
}
.kki-ml-footer__hours,
.kki-ml-footer__copy,
.kki-ml-footer__note {
    color: #9aa0a6 !important;  /* AA on navy */
}

/* Language pill contrast */
.kki-ml-pill-link {
    color: #f0eee9 !important;
}
.kki-ml-pill-link.is-active {
    color: #b8a97d !important;
}

/* Consent banner text (already readable but reinforce) */
.kki-ml-consent__body,
.kki-ml-consent__body p {
    color: #f0eee9 !important;
}
.kki-ml-consent__body a {
    color: #b8a97d !important;
    text-decoration: underline;
}

/* End v11.5.0 */
/* ========================================================================== */
/* v11.6.0 — Round 5 A11y fixes                                                */
/* Contrast #ccc → #767676 (4.54:1 on white · WCAG AA)                         */
/* ========================================================================== */

/* Anywhere the theme emitted rgb(204,204,204) text on white, promote to a
   contrast-passing color. This covers bullet markers, sidebar meta, step
   numbers, and any `color: #ccc` / `rgb(204,204,204)` inline styles. */

[style*="color:#ccc"],
[style*="color:#CCC"],
[style*="color: #ccc"],
[style*="color:rgb(204"],
[style*="color:rgb( 204"] {
    color: #767676 !important;
}

/* The "✓ bullet" rows used inside /methodology/ lists were too light */
.wp-block-list li::before,
.stage-item-list li::before,
#main ul li::marker {
    color: #b8a97d;  /* gold · 5.8:1 on white · AA */
}

/* Step number captions (01/02/03/04) that were #8a7a4e (4.22:1) bump to
   #6c5d35 (6.3:1 on white · AAA) */
.stage-number,
.kki-step-num,
[data-step-number] {
    color: #6c5d35 !important;
}

/* Sidebar Recent Posts / Recent Comments meta */
.wp-block-latest-posts__post-date,
.wp-block-latest-comments__comment-meta,
.post-meta,
.post-date {
    color: #595959 !important;  /* 7.2:1 on white · AAA */
}

/* Form placeholder ensure 4.5:1 */
input::placeholder,
textarea::placeholder {
    color: #767676 !important;
    opacity: 1;
}

/* End v11.6.0 */
/* ========================================================================== */
/* v11.7.0 — UX-H1 · Hero H1 prominence + misc polish                          */
/* ========================================================================== */

/* The theme's "KORKAIIDEA" brand overlay sits on top of the real H1 — make
   sure the real H1 has visual weight above the brand scroll-text. */
#hero .caption h1,
#hero .caption .block-title,
#hero-caption h1,
#hero-caption .block-title,
.hero h1 {
    position: relative;
    z-index: 5;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    line-height: 1.08 !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
#hero .caption .info,
#hero-subtitle,
.hero .info {
    z-index: 4;
    position: relative;
}
/* The big KORKAIIDEA brand wordmark that loops — push it behind the H1 */
.hero-brand-wordmark,
.clapat-brand-overlay,
.hero .brand-text,
.brand-loop {
    z-index: 1 !important;
    opacity: 0.15 !important;
}

/* Ensure hero is scrollable past · no fixed 100vh trap */
#hero {
    min-height: 70vh !important;
    max-height: 100vh;
}
#hero .caption {
    padding-top: 8vh !important;
    padding-bottom: 6vh !important;
}

/* Performance: font-display swap (already loaded via Google Fonts · this
   ensures local system fallback until web fonts land) */
@font-face {
    font-family: 'Sarabun-fallback';
    src: local('Tahoma'), local('Microsoft Sans Serif');
    font-display: swap;
    ascent-override: 94%;
    descent-override: 22%;
    line-gap-override: 0%;
    size-adjust: 100%;
}
body {
    font-family: 'Sarabun', 'Sarabun-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* End v11.7.0 */

/* ==========================================================================
   v11.8.1 - Navbar underline fix
   ========================================================================== */

header .flexnav li > a,
header #menu-main-menu li > a,
header nav[role="navigation"] li > a {
    text-decoration: none !important;
}

header .flexnav li.current-menu-item > a::after,
header .flexnav li.current-menu-parent > a::after,
header #menu-main-menu li.current-menu-item > a::after,
header #menu-main-menu li.current-menu-parent > a::after {
    content: none !important;
    display: none !important;
}

/* End v11.8.1 */

/* ==========================================================================
   v11.8.2 - Portfolio hero 3D redesign
   ========================================================================== */

body.single-harington_portfolio #hero.kki-portfolio-hero {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    isolation: isolate;
    background: #07111d;
}

body.single-harington_portfolio #hero.kki-portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--kki-portfolio-hero-art);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.96;
    transform: scale(1.015);
}

body.single-harington_portfolio #hero.kki-portfolio-hero.has-image::before {
    opacity: 0.22;
    mix-blend-mode: screen;
}

body.single-harington_portfolio #hero.kki-portfolio-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 74% 28%, rgba(214, 177, 102, 0.22), rgba(214, 177, 102, 0) 34%),
        linear-gradient(90deg, rgba(7, 17, 29, 0.96) 0%, rgba(7, 17, 29, 0.72) 37%, rgba(7, 17, 29, 0.22) 74%, rgba(7, 17, 29, 0.58) 100%),
        linear-gradient(180deg, rgba(7, 17, 29, 0.45) 0%, rgba(7, 17, 29, 0.08) 42%, rgba(7, 17, 29, 0.88) 100%);
}

body.single-harington_portfolio #hero.kki-portfolio-hero #hero-styles,
body.single-harington_portfolio #hero.kki-portfolio-hero #hero-footer {
    position: relative;
    z-index: 2;
}

body.single-harington_portfolio #hero.kki-portfolio-hero #hero-caption .inner {
    width: min(760px, calc(100vw - 48px));
    margin-left: 0;
    margin-right: auto;
}

body.single-harington_portfolio #hero.kki-portfolio-hero #hero-caption {
    padding-left: clamp(36px, 7vw, 112px) !important;
    padding-right: clamp(24px, 5vw, 80px) !important;
}

body.single-harington_portfolio #hero.kki-portfolio-hero .hero-title-wrapper {
    margin-left: 0 !important;
    overflow: visible !important;
}

body.single-harington_portfolio .kki-portfolio-hero-kicker {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: clamp(18px, 3vw, 36px);
    color: #d8bd76;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

body.single-harington_portfolio .kki-portfolio-hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border: 1px solid rgba(216, 189, 118, 0.38);
    border-radius: 999px;
    background: rgba(7, 17, 29, 0.38);
    backdrop-filter: blur(12px);
}

body.single-harington_portfolio #hero.kki-portfolio-hero .hero-title,
body.single-harington_portfolio #hero.kki-portfolio-hero .hero-title span {
    max-width: 8.4em;
    color: #f7f0df !important;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(56px, 9vw, 150px) !important;
    font-weight: 500 !important;
    line-height: 0.86 !important;
    letter-spacing: -0.065em;
    text-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
}

body.single-harington_portfolio #hero.kki-portfolio-hero .hero-subtitle,
body.single-harington_portfolio #hero.kki-portfolio-hero .hero-subtitle span {
    max-width: 620px;
    margin-top: clamp(18px, 2.4vw, 30px);
    color: rgba(247, 240, 223, 0.78) !important;
    font-family: "Poppins", sans-serif;
    font-size: clamp(14px, 1.35vw, 19px) !important;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.55 !important;
    text-transform: uppercase;
}

body.single-harington_portfolio .kki-portfolio-hero-art {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(216, 189, 118, 0.16), rgba(216, 189, 118, 0) 38%),
        var(--kki-portfolio-hero-art) center center / cover no-repeat;
    opacity: 0;
}

body.single-harington_portfolio #hero-image-wrapper.kki-portfolio-hero-image-wrapper .kki-portfolio-hero-art {
    opacity: 0.18;
    mix-blend-mode: screen;
}

body.single-harington_portfolio #hero.kki-portfolio-hero #share {
    color: #d8bd76;
}

@media only screen and (max-width: 767px) {
    body.single-harington_portfolio #hero.kki-portfolio-hero {
        min-height: 84vh;
    }

    body.single-harington_portfolio #hero.kki-portfolio-hero::before {
        background-position: 60% center;
        opacity: 0.9;
    }

    body.single-harington_portfolio #hero.kki-portfolio-hero::after {
        background:
            linear-gradient(90deg, rgba(7, 17, 29, 0.94) 0%, rgba(7, 17, 29, 0.64) 60%, rgba(7, 17, 29, 0.34) 100%),
            linear-gradient(180deg, rgba(7, 17, 29, 0.34) 0%, rgba(7, 17, 29, 0.88) 100%);
    }

    body.single-harington_portfolio #hero.kki-portfolio-hero #hero-caption .inner {
        width: calc(100vw - 40px);
        margin-left: 0;
    }

    body.single-harington_portfolio #hero.kki-portfolio-hero #hero-caption {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.single-harington_portfolio #hero.kki-portfolio-hero .hero-title,
    body.single-harington_portfolio #hero.kki-portfolio-hero .hero-title span {
        font-size: clamp(44px, 17vw, 78px) !important;
        line-height: 0.92 !important;
        letter-spacing: -0.045em;
    }

    body.single-harington_portfolio .kki-portfolio-hero-kicker {
        gap: 8px;
        font-size: 9px;
        letter-spacing: 0.12em;
    }
}

/* End v11.8.2 */

/* ==========================================================================
   v11.8.3 - Portfolio archive hero
   ========================================================================== */

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    isolation: isolate;
    background: #07111d;
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--kki-portfolio-hero-art);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.96;
    transform: scale(1.015);
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 70% 28%, rgba(214, 177, 102, 0.24), rgba(214, 177, 102, 0) 34%),
        linear-gradient(90deg, rgba(7, 17, 29, 0.97) 0%, rgba(7, 17, 29, 0.72) 38%, rgba(7, 17, 29, 0.18) 74%, rgba(7, 17, 29, 0.58) 100%),
        linear-gradient(180deg, rgba(7, 17, 29, 0.42) 0%, rgba(7, 17, 29, 0.08) 42%, rgba(7, 17, 29, 0.88) 100%);
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero #hero-styles {
    position: relative;
    z-index: 2;
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero #hero-caption {
    height: 92vh;
    padding-left: clamp(36px, 7vw, 112px) !important;
    padding-right: clamp(24px, 5vw, 80px) !important;
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero #hero-caption .inner {
    width: min(780px, calc(100vw - 48px));
    margin-left: 0;
    margin-right: auto;
    vertical-align: middle;
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero .hero-title-wrapper {
    margin-left: 0 !important;
    margin-bottom: clamp(18px, 2.4vw, 28px);
    overflow: visible !important;
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero .hero-title,
body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero .hero-title span {
    max-width: 8em;
    color: #f7f0df !important;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(64px, 10.5vw, 168px) !important;
    font-weight: 500 !important;
    line-height: 0.86 !important;
    letter-spacing: -0.07em;
    text-transform: none !important;
    text-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero .hero-subtitle-wrapper {
    max-width: 620px;
}

body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero .hero-subtitle,
body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero .hero-subtitle span {
    color: rgba(247, 240, 223, 0.78) !important;
    font-family: "Poppins", sans-serif;
    font-size: clamp(15px, 1.32vw, 20px) !important;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.55 !important;
    text-transform: none !important;
}

body.post-type-archive-harington_portfolio .kki-portfolio-archive-content {
    background: #07111d;
}

body.post-type-archive-harington_portfolio,
body.post-type-archive-harington_portfolio #page-content,
body.post-type-archive-harington_portfolio #content-scroll,
body.post-type-archive-harington_portfolio #main {
    overflow-x: hidden;
}

body.post-type-archive-harington_portfolio #open-sidebar-nav,
body.post-type-archive-harington_portfolio #sidebar {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero {
        min-height: 84vh;
    }

    body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero::before {
        background-position: 60% center;
    }

    body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero::after {
        background:
            linear-gradient(90deg, rgba(7, 17, 29, 0.94) 0%, rgba(7, 17, 29, 0.62) 60%, rgba(7, 17, 29, 0.34) 100%),
            linear-gradient(180deg, rgba(7, 17, 29, 0.34) 0%, rgba(7, 17, 29, 0.88) 100%);
    }

    body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero #hero-caption {
        height: 84vh;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero #hero-caption .inner {
        width: calc(100vw - 40px);
    }

    body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero .hero-title,
    body.post-type-archive-harington_portfolio #hero.kki-portfolio-archive-hero .hero-title span {
        font-size: clamp(52px, 18vw, 86px) !important;
        line-height: 0.92 !important;
        letter-spacing: -0.05em;
    }
}

/* End v11.8.3 */

/* ==========================================================================
   v11.8.4 - Home hero image
   ========================================================================== */

body.home #hero.kki-home-hero,
body.page-id-4122 #hero.kki-home-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #07111d;
}

body.home #hero.kki-home-hero::before,
body.page-id-4122 #hero.kki-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--kki-home-hero-art);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.98;
    transform: scale(1.012);
}

body.home #hero.kki-home-hero::after,
body.page-id-4122 #hero.kki-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 28%, rgba(216, 189, 118, 0.24), rgba(216, 189, 118, 0) 34%),
        linear-gradient(90deg, rgba(7, 17, 29, 0.94) 0%, rgba(7, 17, 29, 0.66) 30%, rgba(7, 17, 29, 0.06) 68%, rgba(7, 17, 29, 0.28) 100%),
        linear-gradient(180deg, rgba(7, 17, 29, 0.28) 0%, rgba(7, 17, 29, 0.03) 44%, rgba(7, 17, 29, 0.9) 100%);
}

body.home #hero.kki-home-hero #hero-styles,
body.home #hero.kki-home-hero #hero-footer,
body.page-id-4122 #hero.kki-home-hero #hero-styles,
body.page-id-4122 #hero.kki-home-hero #hero-footer {
    position: relative;
    z-index: 3;
}

body.home #hero.kki-home-hero #hero-caption,
body.page-id-4122 #hero.kki-home-hero #hero-caption {
    padding-left: clamp(36px, 7vw, 112px) !important;
    padding-right: clamp(24px, 5vw, 80px) !important;
}

body.home #hero.kki-home-hero #hero-caption .inner,
body.page-id-4122 #hero.kki-home-hero #hero-caption .inner {
    width: min(760px, calc(100vw - 48px));
    margin-left: 0;
    margin-right: auto;
}

body.home #hero.kki-home-hero .hero-title-wrapper,
body.page-id-4122 #hero.kki-home-hero .hero-title-wrapper {
    margin-left: 0 !important;
    margin-bottom: clamp(16px, 2.2vw, 26px);
    overflow: visible !important;
}

body.home .kki-home-hero-kicker,
body.page-id-4122 .kki-home-hero-kicker {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: clamp(18px, 3vw, 34px);
    color: #d8bd76;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

body.home .kki-home-hero-kicker span,
body.page-id-4122 .kki-home-hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border: 1px solid rgba(216, 189, 118, 0.42);
    border-radius: 999px;
    background: rgba(7, 17, 29, 0.42);
    backdrop-filter: blur(12px);
}

body.home #hero.kki-home-hero .hero-title,
body.home #hero.kki-home-hero .hero-title span,
body.page-id-4122 #hero.kki-home-hero .hero-title,
body.page-id-4122 #hero.kki-home-hero .hero-title span {
    max-width: 8em;
    color: #f7f0df !important;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(58px, 8.6vw, 142px) !important;
    font-weight: 500 !important;
    line-height: 0.86 !important;
    letter-spacing: -0.07em;
    text-transform: none !important;
    text-shadow: 0 28px 74px rgba(0, 0, 0, 0.58);
}

body.home #hero.kki-home-hero #info-text,
body.page-id-4122 #hero.kki-home-hero #info-text {
    color: rgba(247, 240, 223, 0.72);
    letter-spacing: 0.14em;
}

body.home #hero.kki-home-hero .hero-subtitle-wrapper,
body.page-id-4122 #hero.kki-home-hero .hero-subtitle-wrapper {
    max-width: 610px;
}

body.home #hero.kki-home-hero .hero-subtitle,
body.home #hero.kki-home-hero .hero-subtitle span,
body.page-id-4122 #hero.kki-home-hero .hero-subtitle,
body.page-id-4122 #hero.kki-home-hero .hero-subtitle span {
    color: rgba(247, 240, 223, 0.8) !important;
    font-family: "Poppins", sans-serif;
    font-size: clamp(14px, 1.25vw, 18px) !important;
    font-weight: 400;
    letter-spacing: 0.045em;
    line-height: 1.6 !important;
    text-transform: none !important;
}

body.home #hero-image-wrapper.kki-home-hero-image-wrapper,
body.page-id-4122 #hero-image-wrapper.kki-home-hero-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #07111d;
}

body.home #hero-image-wrapper.kki-home-hero-image-wrapper::after,
body.page-id-4122 #hero-image-wrapper.kki-home-hero-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 28%, rgba(216, 189, 118, 0.24), rgba(216, 189, 118, 0) 34%),
        linear-gradient(90deg, rgba(7, 17, 29, 0.96) 0%, rgba(7, 17, 29, 0.78) 36%, rgba(7, 17, 29, 0.16) 72%, rgba(7, 17, 29, 0.5) 100%),
        linear-gradient(180deg, rgba(7, 17, 29, 0.28) 0%, rgba(7, 17, 29, 0.03) 44%, rgba(7, 17, 29, 0.9) 100%);
}

body.home #hero-image-wrapper.kki-home-hero-image-wrapper #hero-bg-image,
body.page-id-4122 #hero-image-wrapper.kki-home-hero-image-wrapper #hero-bg-image {
    background-image: var(--kki-home-hero-art) !important;
    background-position: center center !important;
    background-size: cover !important;
    filter: saturate(1.04) contrast(1.06);
    transform: scale(1.012);
}

body.home #main-page-content > section.wp-block-group:first-of-type,
body.page-id-4122 #main-page-content > section.wp-block-group:first-of-type {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    body.home #hero.kki-home-hero #hero-caption,
    body.page-id-4122 #hero.kki-home-hero #hero-caption {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.home #hero.kki-home-hero #hero-caption .inner,
    body.page-id-4122 #hero.kki-home-hero #hero-caption .inner {
        width: calc(100vw - 40px);
    }

    body.home #hero.kki-home-hero .hero-title,
    body.home #hero.kki-home-hero .hero-title span,
    body.page-id-4122 #hero.kki-home-hero .hero-title,
    body.page-id-4122 #hero.kki-home-hero .hero-title span {
        font-size: clamp(44px, 16vw, 78px) !important;
        line-height: 0.92 !important;
        letter-spacing: -0.045em;
    }

    body.home #hero-image-wrapper.kki-home-hero-image-wrapper #hero-bg-image,
    body.page-id-4122 #hero-image-wrapper.kki-home-hero-image-wrapper #hero-bg-image {
        background-position: 61% center !important;
    }

    body.home #hero.kki-home-hero::before,
    body.page-id-4122 #hero.kki-home-hero::before {
        background-position: 61% center;
    }

    body.home #hero.kki-home-hero::after,
    body.page-id-4122 #hero.kki-home-hero::after {
        background:
            linear-gradient(90deg, rgba(7, 17, 29, 0.9) 0%, rgba(7, 17, 29, 0.54) 62%, rgba(7, 17, 29, 0.18) 100%),
            linear-gradient(180deg, rgba(7, 17, 29, 0.3) 0%, rgba(7, 17, 29, 0.9) 100%);
    }

    body.home #hero-image-wrapper.kki-home-hero-image-wrapper::after,
    body.page-id-4122 #hero-image-wrapper.kki-home-hero-image-wrapper::after {
        background:
            linear-gradient(90deg, rgba(7, 17, 29, 0.9) 0%, rgba(7, 17, 29, 0.54) 62%, rgba(7, 17, 29, 0.18) 100%),
            linear-gradient(180deg, rgba(7, 17, 29, 0.3) 0%, rgba(7, 17, 29, 0.9) 100%);
    }

    body.home .kki-home-hero-kicker,
    body.page-id-4122 .kki-home-hero-kicker {
        gap: 8px;
        font-size: 9px;
        letter-spacing: 0.12em;
    }
}

/* End v11.8.4 */
