/**
 * KLCM Cathedral Refresh
 * XR-inspired church styling layer for Kadence.
 * This file avoids hiding content and focuses on presentation, spacing, cards, buttons, typography, and mobile polish.
 */

:root {
    --klcm-navy: #0b1220;
    --klcm-navy-soft: #111b2e;
    --klcm-charcoal: #15171a;
    --klcm-gold: #c8a24a;
    --klcm-gold-light: #e5c875;
    --klcm-cream: #f7f3ea;
    --klcm-white: #ffffff;
    --klcm-muted: #647084;
    --klcm-border: rgba(15, 23, 42, 0.12);
    --klcm-shadow: 0 18px 50px rgba(11, 18, 32, 0.12);
    --klcm-radius: 22px;
    --klcm-radius-sm: 14px;
    --klcm-content-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body.klcm-cathedral-refresh-active {
    background: var(--klcm-white);
    color: var(--klcm-charcoal);
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
}

body.klcm-cathedral-refresh-active,
body.klcm-cathedral-refresh-active button,
body.klcm-cathedral-refresh-active input,
body.klcm-cathedral-refresh-active select,
body.klcm-cathedral-refresh-active textarea {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.klcm-cathedral-refresh-active h1,
body.klcm-cathedral-refresh-active h2,
body.klcm-cathedral-refresh-active h3,
body.klcm-cathedral-refresh-active h4,
body.klcm-cathedral-refresh-active h5,
body.klcm-cathedral-refresh-active h6,
body.klcm-cathedral-refresh-active .site-title,
body.klcm-cathedral-refresh-active .entry-title {
    color: var(--klcm-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

body.klcm-cathedral-refresh-active p,
body.klcm-cathedral-refresh-active li {
    line-height: 1.75;
}

body.klcm-cathedral-refresh-active a {
    color: var(--klcm-navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

body.klcm-cathedral-refresh-active a:hover,
body.klcm-cathedral-refresh-active a:focus {
    color: var(--klcm-gold);
}

/* Header and navigation */
body.klcm-cathedral-refresh-active #masthead,
body.klcm-cathedral-refresh-active .site-header,
body.klcm-cathedral-refresh-active .kadence-sticky-header.item-is-fixed {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(11, 18, 32, 0.06);
    backdrop-filter: blur(14px);
}

body.klcm-cathedral-refresh-active .site-branding,
body.klcm-cathedral-refresh-active .site-branding a {
    align-items: center;
}

body.klcm-cathedral-refresh-active .site-title {
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 2rem);
    text-transform: none;
}

body.klcm-cathedral-refresh-active .site-description {
    color: var(--klcm-muted);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.klcm-cathedral-refresh-active .main-navigation a,
body.klcm-cathedral-refresh-active .header-navigation a,
body.klcm-cathedral-refresh-active .primary-menu-container a {
    border-radius: 999px;
    color: var(--klcm-navy);
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    padding: 0.8rem 0.9rem;
    text-decoration: none;
}

body.klcm-cathedral-refresh-active .main-navigation a:hover,
body.klcm-cathedral-refresh-active .main-navigation a:focus,
body.klcm-cathedral-refresh-active .header-navigation a:hover,
body.klcm-cathedral-refresh-active .header-navigation a:focus,
body.klcm-cathedral-refresh-active .primary-menu-container a:hover,
body.klcm-cathedral-refresh-active .primary-menu-container a:focus {
    background: rgba(200, 162, 74, 0.12);
    color: var(--klcm-navy);
}

body.klcm-cathedral-refresh-active .current-menu-item > a,
body.klcm-cathedral-refresh-active .current_page_item > a {
    background: rgba(11, 18, 32, 0.06);
    color: var(--klcm-navy);
}

/* Containers */
body.klcm-cathedral-refresh-active .content-wrap,
body.klcm-cathedral-refresh-active .entry-content-wrap,
body.klcm-cathedral-refresh-active .site-container,
body.klcm-cathedral-refresh-active .wp-site-blocks > * {
    max-width: var(--klcm-content-width);
}

body.klcm-cathedral-refresh-active .entry-content-wrap {
    padding-top: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(2rem, 4vw, 4rem);
}

body.klcm-cathedral-refresh-active .entry-header {
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

body.klcm-cathedral-refresh-active .entry-title {
    font-size: clamp(2.4rem, 5vw, 5.25rem);
    text-wrap: balance;
}

/* Hero and cover blocks */
body.klcm-cathedral-refresh-active .wp-block-cover,
body.klcm-cathedral-refresh-active .kt-row-layout-inner,
body.klcm-cathedral-refresh-active .kb-row-layout-wrap {
    border-radius: var(--klcm-radius);
}

body.klcm-cathedral-refresh-active .wp-block-cover {
    overflow: hidden;
    box-shadow: var(--klcm-shadow);
}

body.klcm-cathedral-refresh-active .wp-block-cover.alignfull {
    border-radius: 0;
}

body.klcm-cathedral-refresh-active .wp-block-cover__inner-container,
body.klcm-cathedral-refresh-active .wp-block-cover__inner-container p {
    color: var(--klcm-white);
}

body.klcm-cathedral-refresh-active .wp-block-cover h1,
body.klcm-cathedral-refresh-active .wp-block-cover h2,
body.klcm-cathedral-refresh-active .wp-block-cover h3 {
    color: var(--klcm-white);
    max-width: 850px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.26);
}

/* Buttons */
body.klcm-cathedral-refresh-active .wp-block-button__link,
body.klcm-cathedral-refresh-active .button,
body.klcm-cathedral-refresh-active button,
body.klcm-cathedral-refresh-active input[type="button"],
body.klcm-cathedral-refresh-active input[type="reset"],
body.klcm-cathedral-refresh-active input[type="submit"],
body.klcm-cathedral-refresh-active .menu-item.button > a,
body.klcm-cathedral-refresh-active .header-button {
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(11, 18, 32, 0.12);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.klcm-cathedral-refresh-active .wp-block-button__link,
body.klcm-cathedral-refresh-active .button,
body.klcm-cathedral-refresh-active input[type="submit"] {
    background: var(--klcm-gold);
    color: var(--klcm-navy);
    padding: 0.95rem 1.35rem;
}

body.klcm-cathedral-refresh-active .wp-block-button__link:hover,
body.klcm-cathedral-refresh-active .wp-block-button__link:focus,
body.klcm-cathedral-refresh-active .button:hover,
body.klcm-cathedral-refresh-active .button:focus,
body.klcm-cathedral-refresh-active input[type="submit"]:hover,
body.klcm-cathedral-refresh-active input[type="submit"]:focus {
    background: var(--klcm-navy);
    color: var(--klcm-white);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(11, 18, 32, 0.18);
}

body.klcm-cathedral-refresh-active .is-style-outline > .wp-block-button__link,
body.klcm-cathedral-refresh-active .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid currentColor;
    box-shadow: none;
    color: var(--klcm-navy);
}

body.klcm-cathedral-refresh-active .wp-block-cover .is-style-outline > .wp-block-button__link,
body.klcm-cathedral-refresh-active .wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link {
    color: var(--klcm-white);
}

/* Cards and sections */
body.klcm-cathedral-refresh-active .wp-block-group,
body.klcm-cathedral-refresh-active .wp-block-columns,
body.klcm-cathedral-refresh-active .wp-block-media-text,
body.klcm-cathedral-refresh-active .kt-inside-inner-col {
    border-radius: var(--klcm-radius);
}

body.klcm-cathedral-refresh-active .wp-block-group.has-background,
body.klcm-cathedral-refresh-active .wp-block-column.has-background,
body.klcm-cathedral-refresh-active .kt-inside-inner-col {
    box-shadow: 0 14px 40px rgba(11, 18, 32, 0.08);
}

body.klcm-cathedral-refresh-active .wp-block-column,
body.klcm-cathedral-refresh-active .wp-block-group.is-style-klcm-card {
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.klcm-cathedral-refresh-active .wp-block-column:hover,
body.klcm-cathedral-refresh-active .wp-block-group.is-style-klcm-card:hover {
    border-color: rgba(200, 162, 74, 0.22);
    box-shadow: var(--klcm-shadow);
    transform: translateY(-3px);
}

body.klcm-cathedral-refresh-active .entry-content > .wp-block-group.alignfull,
body.klcm-cathedral-refresh-active .entry-content > .wp-block-cover.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

body.klcm-cathedral-refresh-active .has-klcm-navy-background-color,
body.klcm-cathedral-refresh-active .klcm-dark-section {
    background: linear-gradient(135deg, var(--klcm-navy), var(--klcm-navy-soft));
    color: var(--klcm-white);
}

body.klcm-cathedral-refresh-active .has-klcm-navy-background-color h1,
body.klcm-cathedral-refresh-active .has-klcm-navy-background-color h2,
body.klcm-cathedral-refresh-active .has-klcm-navy-background-color h3,
body.klcm-cathedral-refresh-active .klcm-dark-section h1,
body.klcm-cathedral-refresh-active .klcm-dark-section h2,
body.klcm-cathedral-refresh-active .klcm-dark-section h3 {
    color: var(--klcm-white);
}

body.klcm-cathedral-refresh-active .has-klcm-cream-background-color,
body.klcm-cathedral-refresh-active .klcm-soft-section {
    background: var(--klcm-cream);
}

/* Forms */
body.klcm-cathedral-refresh-active input[type="text"],
body.klcm-cathedral-refresh-active input[type="email"],
body.klcm-cathedral-refresh-active input[type="tel"],
body.klcm-cathedral-refresh-active input[type="url"],
body.klcm-cathedral-refresh-active input[type="password"],
body.klcm-cathedral-refresh-active input[type="search"],
body.klcm-cathedral-refresh-active textarea,
body.klcm-cathedral-refresh-active select {
    border: 1px solid var(--klcm-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(11, 18, 32, 0.04);
    min-height: 48px;
    padding: 0.85rem 1rem;
}

body.klcm-cathedral-refresh-active input:focus,
body.klcm-cathedral-refresh-active textarea:focus,
body.klcm-cathedral-refresh-active select:focus {
    border-color: var(--klcm-gold);
    box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.18);
    outline: none;
}

/* Media */
body.klcm-cathedral-refresh-active img,
body.klcm-cathedral-refresh-active iframe,
body.klcm-cathedral-refresh-active video {
    max-width: 100%;
}

body.klcm-cathedral-refresh-active .entry-content img {
    border-radius: var(--klcm-radius-sm);
}

body.klcm-cathedral-refresh-active figure.wp-block-image,
body.klcm-cathedral-refresh-active .wp-block-embed {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Event/media/archive polish */
body.klcm-cathedral-refresh-active .post,
body.klcm-cathedral-refresh-active .entry,
body.klcm-cathedral-refresh-active article {
    border-radius: var(--klcm-radius);
}

body.klcm-cathedral-refresh-active .post-thumbnail img,
body.klcm-cathedral-refresh-active .entry-related-carousel .post-thumbnail img {
    border-radius: var(--klcm-radius-sm);
}

body.klcm-cathedral-refresh-active .entry-meta,
body.klcm-cathedral-refresh-active .posted-on,
body.klcm-cathedral-refresh-active .byline,
body.klcm-cathedral-refresh-active .cat-links,
body.klcm-cathedral-refresh-active .tags-links {
    color: var(--klcm-muted);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* Footer */
body.klcm-cathedral-refresh-active #colophon,
body.klcm-cathedral-refresh-active .site-footer,
body.klcm-cathedral-refresh-active .footer-html,
body.klcm-cathedral-refresh-active .footer-widget-area {
    background: var(--klcm-navy);
    color: rgba(255, 255, 255, 0.82);
}

body.klcm-cathedral-refresh-active #colophon h1,
body.klcm-cathedral-refresh-active #colophon h2,
body.klcm-cathedral-refresh-active #colophon h3,
body.klcm-cathedral-refresh-active #colophon h4,
body.klcm-cathedral-refresh-active .site-footer h1,
body.klcm-cathedral-refresh-active .site-footer h2,
body.klcm-cathedral-refresh-active .site-footer h3,
body.klcm-cathedral-refresh-active .site-footer h4 {
    color: var(--klcm-white);
}

body.klcm-cathedral-refresh-active #colophon a,
body.klcm-cathedral-refresh-active .site-footer a {
    color: var(--klcm-white);
}

body.klcm-cathedral-refresh-active #colophon a:hover,
body.klcm-cathedral-refresh-active .site-footer a:hover {
    color: var(--klcm-gold-light);
}

/* Utility classes for optional page updates */
.klcm-eyebrow {
    color: var(--klcm-gold);
    font-size: 0.85rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.klcm-card {
    background: var(--klcm-white);
    border: 1px solid var(--klcm-border);
    border-radius: var(--klcm-radius);
    box-shadow: 0 12px 35px rgba(11, 18, 32, 0.08);
    padding: clamp(1.35rem, 3vw, 2rem);
}

.klcm-section-padding {
    padding-bottom: clamp(3rem, 7vw, 6rem);
    padding-top: clamp(3rem, 7vw, 6rem);
}

.klcm-max-width {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--klcm-content-width);
}

/* Mobile */
@media (max-width: 1024px) {
    body.klcm-cathedral-refresh-active .main-navigation a,
    body.klcm-cathedral-refresh-active .header-navigation a,
    body.klcm-cathedral-refresh-active .primary-menu-container a {
        border-radius: 14px;
        padding: 0.85rem 0.95rem;
    }
}

@media (max-width: 767px) {
    body.klcm-cathedral-refresh-active .entry-content-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.klcm-cathedral-refresh-active .entry-title {
        font-size: clamp(2rem, 11vw, 3.25rem);
    }

    body.klcm-cathedral-refresh-active .wp-block-buttons {
        gap: 0.75rem;
    }

    body.klcm-cathedral-refresh-active .wp-block-button,
    body.klcm-cathedral-refresh-active .wp-block-button__link {
        width: 100%;
    }

    body.klcm-cathedral-refresh-active .wp-block-button__link {
        text-align: center;
    }

    body.klcm-cathedral-refresh-active .wp-block-columns {
        gap: 1rem;
    }
}
