/* ============================================================
   K Gallery — Global Styles (nav + footer)
   Loaded on every page via kgallery_enqueue_styles()
   ============================================================ */

:root {
    --tq:       #0097A7;
    --tq-light: #E0F7FA;
    --tq-dark:  #006064;
    --tq-mid:   #00BCD4;
}


/* ── Suppress any default theme header/footer output ────── */
.wp-site-blocks > header,
.wp-site-blocks > footer,
body > header:not(.kgnav),
body > footer:not(.kgfooter) {
    display: none !important;
}

/* ── Logo size — hard constraint ────────────────────────── */
/* ── NAV ─────────────────────────────────────────────────── */

.kgnav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #ffffff;
    border-bottom: 0.5px solid #e8e4de;
    z-index: 100;
}

.kgnav-logo a { text-decoration: none; display: block; }
.kgnav-logo-img {
    height: 36px !important;
    width: auto !important;
    max-height: 36px !important;
    display: block !important;
    object-fit: contain !important;
}

.kgnav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
}
.kgnav-links a {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}
.kgnav-links a:hover,
.kgnav-links a.active { color: var(--tq); }

.kgnav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.kgnav-right a { text-decoration: none; }

.kgnav-icon {
    color: #555;
    font-size: 18px;
    display: block;
    transition: color 0.2s;
}
.kgnav-icon:hover { color: var(--tq); }

.kgnav-cart-count {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--tq);
    color: #fff;
    font-size: 9px;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.kgnav-cta {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px 18px;
    border: 0.5px solid var(--tq);
    color: var(--tq);
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.kgnav-cta:hover { background: var(--tq); color: #fff; }

.kgnav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.kgnav-hamburger span {
    display: block;
    width: 22px; height: 1.5px;
    background: #333;
    transition: all 0.3s;
    transform-origin: center;
}
.kgnav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.kgnav-hamburger.open span:nth-child(2) { opacity: 0; }
.kgnav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.kgnav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.kgnav-mobile.open { display: flex; }
.kgnav-mobile a {
    font-size: 20px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}
.kgnav-mobile a:hover { color: var(--tq-mid); }
.kgnav-mobile-close {
    position: absolute;
    top: 24px; right: 24px;
    background: none; border: none;
    color: #fff; font-size: 28px;
    cursor: pointer; line-height: 1;
}
.kgnav-mobile-inquire {
    margin-top: 16px;
    font-size: 13px !important;
    padding: 12px 40px !important;
    border: 0.5px solid rgba(255,255,255,0.45) !important;
    border-radius: 2px;
    color: #fff !important;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.kgfooter {
    background: #0099a5;
    padding: 44px 40px 28px;
    margin-top: 80px;
}

.kgfooter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.kgfooter-brand   { font-size: 16px; font-weight: 600; letter-spacing: 0.2em; color: #fff; margin-bottom: 6px; }
.kgfooter-tagline { font-family: Georgia, serif; font-style: italic; font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.kgfooter-desc    { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; margin: 0; }
.kgfooter-heading { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.35); margin-bottom: 14px; }

.kgfooter-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.kgfooter-links a { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.kgfooter-links a:hover { color: #80DEEA; }

.kgfooter-bottom {
    border-top: 0.5px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
}
.kgfooter-bottom a { color: rgba(255,255,255,0.25); text-decoration: none; }

.kgfooter-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 16px;
    text-decoration: none;
    border: 0.5px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    transition: color 0.2s, border-color 0.2s;
}
.kgfooter-wa:hover { color: #80DEEA; border-color: #80DEEA; }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1024px) {
    .kgfooter-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .kgnav { padding: 16px 20px; }
    .kgnav-links { display: none !important; }
    .kgnav-hamburger { display: flex !important; }
    .kgnav-cta-desktop { display: none !important; }
    .kgnav-logo-img { height: 28px; }
    .kgfooter-grid { grid-template-columns: 1fr; gap: 24px; }
    .kgfooter { padding: 36px 20px 24px; }
}