/* ============================================================
   KNHS Theme – Main Stylesheet
   Kamloops Native Housing Society
   ============================================================ */

/* ──────────────────────────────
   0. CSS CUSTOM PROPERTIES
   ────────────────────────────── */
:root {
    /* Brand palette */
    --knhs-dark:       #2F3423;
    --knhs-dark-rgb:   rgb(45,51,25);
    --knhs-gold:       #C7AE55;
    --knhs-gold-light: #D4BA7A;
    --knhs-teal:       #4A9AAF;
    --knhs-teal-dark:  #00778E;
    --knhs-teal-heading: #00667A;
    --knhs-aqua:       #A0D3E0;
    --knhs-aqua-light: #BDDCE5;
    --knhs-warm-beige: #EED0AE;
    --knhs-white:      #FFFFFF;
    --knhs-off-white:  #F8F7F4;
    --knhs-light-gray: #F2F0EB;
    --knhs-mid-gray:   #A3A28F;
    --knhs-text:       #333333;
    --knhs-text-light: #666666;

    /* Typography */
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing scale */
    --space-xs:  0.5rem;    /*  8px */
    --space-sm:  1rem;      /* 16px */
    --space-md:  1.5rem;    /* 24px */
    --space-lg:  2.5rem;    /* 40px */
    --space-xl:  4rem;      /* 64px */
    --space-2xl: 6rem;      /* 96px */
    --space-3xl: 8rem;      /* 128px */

    /* Container */
    --container-max: 90%;
    --container-padding: 7rem;

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ──────────────────────────────
   1. RESET / BASE
   ────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--knhs-text);
    background-color: var(--knhs-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--knhs-gold);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--knhs-dark);
}

h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

strong { font-weight: 700; }

/* ──────────────────────────────
   2. UTILITIES
   ────────────────────────────── */
.knhs-container {
    width: 100%;
    max-width: var(--container-max);
    padding: 0 0 0 var(--container-padding);
}

.knhs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ──────────────────────────────
   3. HEADER
   ────────────────────────────── */
.knhs-header {
    padding: 4rem 2rem 0;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.knhs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
}

.knhs-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.knhs-header__logo-img {
    height: 8rem;
    width: auto;
    padding-left: 2rem;
}

.knhs-header__logo-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.knhs-header__logo-house {
    width: 40px;
    height: auto;
}

.knhs-header__logo-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--knhs-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.knhs-header__feather {
    height: 30px;
    width: auto;
    opacity: 0.8;
}

.knhs-header__menu-toggle {
    background: none;
    border: none;
    color: var(--knhs-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.knhs-header__menu-toggle:hover {
    opacity: 0.8;
}

.knhs-header__menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 24px;
}

.knhs-header__menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--knhs-dark);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Scrolled header: dark bg with white text */
.knhs-header--scrolled .knhs-header__logo-text,
.knhs-header--scrolled .knhs-header__menu-toggle {
    color: var(--knhs-white);
}

.knhs-header--scrolled .knhs-header__menu-icon span {
    background: var(--knhs-white);
}

/* ──────────────────────────────
   4. NAVIGATION OVERLAY
   ────────────────────────────── */
.knhs-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.5s;  /* delay hides until slide-out finishes */
}

/* Dim backdrop behind the panel */
.knhs-nav-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.knhs-nav-overlay.is-active {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;  /* show immediately on open */
}

.knhs-nav-overlay.is-active::before {
    opacity: 1;
}

/* Slide-in panel (right 60%) */
.knhs-nav-overlay__inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    background: var(--knhs-dark-rgb);
    padding: 10.5rem 6rem 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
}

.knhs-nav-overlay.is-active .knhs-nav-overlay__inner {
    transform: translateX(0);
}

.knhs-nav-overlay__close {
    background: none;
    border: none;
    color: var(--knhs-white);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity var(--transition-base);
    justify-self: flex-end;
    line-height: 100%;
    outline: none;
    position: absolute;
    margin-top: -1rem;
}

.knhs-nav-overlay__close:hover {
    opacity: 0.7;
}

.knhs-nav-overlay__close-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.knhs-nav-overlay__close-icon {
    font-size: 2.6rem;
    color: var(--knhs-gold);
}

/* Vertical stacked layout */
.knhs-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
    max-width: 30rem;
}

.knhs-nav__section {
    width: 100%;
}

.knhs-nav__heading {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--knhs-gold);
    margin-bottom: 0.5rem;
}

.knhs-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.knhs-nav__list li a {
    color: var(--knhs-white);
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
    transition: color var(--transition-base);
}

.knhs-nav__list li:last-child a {
    border-bottom: none;
}

.knhs-nav__list li a:hover {
    color: var(--knhs-gold);
}

.knhs-nav__list li.is-current a {
    color: var(--knhs-gold);
}

.knhs-nav__list li.is-current a .knhs-arrow {
    transform: translateX(4px);
}

/* ── Reusable SVG arrow icon ── */
.knhs-arrow {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: transform var(--transition-base);
}

.knhs-arrow svg {
    height: auto;
}

/* Nav arrow: right-aligned, no extra left margin */
.knhs-nav__list li a .knhs-arrow {
    flex-shrink: 0;
    margin-left: 1rem;
}

.knhs-nav__list li a:hover .knhs-arrow {
    transform: translateX(4px);
}

/* ──────────────────────────────
   5. HERO SECTION
   ────────────────────────────── */
.knhs-hero {
    position: relative;
    background: linear-gradient(0deg, #add9e5 50%, transparent 50%);
}

.knhs-hero__bg {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.knhs-hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.knhs-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.knhs-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 47%;
    background: linear-gradient(180deg, var(--knhs-gold) 80%, transparent 0%) 0%, url(/wp-content/uploads/2026/02/hero-mask.png);
    background-position: bottom;
    background-size: 102%;
    background-repeat: no-repeat;
    padding: 0 0 5rem 0;
    position: absolute;
    top: 5rem;
    left: 3rem;
    z-index: 9;
    min-height: 42rem;
}

.knhs-hero__content-inner {
    padding: 6rem 4rem 2.5rem;
}

.knhs-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.2vw, 3.75rem);
    font-weight: 400;
    color: var(--knhs-dark);
    line-height: 1.2;
    margin-bottom: 3.5rem;
}

.knhs-hero__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--knhs-dark);
    margin-bottom: 2rem;
}

@media (max-width: 1399px) {
    .knhs-hero__text {
        max-width: 520px;
    }
}

.knhs-hero__text p {
    margin-bottom: 0.75em;
}

.knhs-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--knhs-dark);
    font-size: 1.5rem;
    transition: gap var(--transition-base);
}

.knhs-hero__link:hover {
    color: var(--knhs-dark);
}

.knhs-hero__link:hover .knhs-arrow {
    transform: translateX(5px);
}

.knhs-hero__image {
    width: 58%;
}

.knhs-hero__image img {
    width: 100%;
    height: 40rem;
    object-fit: cover;
}

.knhs-hero__button {
    background: var(--knhs-dark);
    color: white;
    font-weight: 700 !important;
    gap: 2rem !important;
}

/* ──────────────────────────────
   6. BUTTONS
   ────────────────────────────── */
.knhs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
}

.knhs-btn--primary {
    background: var(--knhs-dark);
    color: var(--knhs-white);
    border-color: var(--knhs-dark);
}

.knhs-btn--primary:hover {
    background: transparent;
    color: var(--knhs-dark);
}

.knhs-btn--dark {
    background: var(--knhs-dark);
    color: var(--knhs-white);
    border-color: var(--knhs-dark);
}

.knhs-btn--dark:hover {
    background: transparent;
    color: var(--knhs-dark);
}

.knhs-btn--outline {
    background: transparent;
    color: var(--knhs-dark);
    border-color: var(--knhs-dark);
}

.knhs-btn--outline:hover {
    background: var(--knhs-dark);
    color: var(--knhs-white);
}

.knhs-btn--outline-white {
    background: transparent;
    color: var(--knhs-white);
    border-color: var(--knhs-white);
}

.knhs-btn--outline-white:hover {
    background: var(--knhs-white);
    color: var(--knhs-dark);
}

.knhs-btn--gold {
    background: var(--knhs-gold);
    color: var(--knhs-dark);
    border-color: var(--knhs-gold);
}

.knhs-btn--gold:hover {
    background: var(--knhs-gold-light);
    border-color: var(--knhs-gold-light);
}

.knhs-btn svg {
    flex-shrink: 0;
}

/* Link with arrow */
.knhs-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--knhs-dark);
    transition: gap var(--transition-base), color var(--transition-base);
}

.knhs-link-arrow:hover {
    gap: 0.75rem;
    color: var(--knhs-gold);
}

.knhs-link-arrow svg {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.knhs-link-arrow:hover svg {
    transform: translateX(3px);
}

/* ──────────────────────────────
   7. SECTIONS (General)
   ────────────────────────────── */
.knhs-section {
    padding: var(--space-xl) 0;
    position: relative;
}

.knhs-section--no-pad-top    { padding-top: 0; }
.knhs-section--no-pad-bottom { padding-bottom: 0; }

.knhs-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--knhs-teal-heading);
    margin-bottom: var(--space-sm);
}

.knhs-section__title--center {
    text-align: center;
}

.knhs-section__title--gold {
    color: var(--knhs-gold);
}

.knhs-section__text {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 800px;
}

.knhs-section__text--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.knhs-gold-section {
    width: 100%;
    background: linear-gradient(180deg, var(--knhs-gold) 65%, transparent 0%) 0%, url(/wp-content/uploads/2026/02/gold-mask.png);
    background-position: bottom;
    background-size: 100%;
    background-repeat: repeat-x;
    padding: 2rem 0 10rem 0;
    margin: 0 0 0 7rem;
}
.knhs-gold-section .knhs-container {
    max-width: 70%;
    padding: 3rem 0 0 4rem;
}

.knhs-gold-section h2 {
    color: #FFF;
    font-size: 3rem;
    font-weight: 400;
    line-height: 117%; 
    margin-bottom: 0.5rem;
}

.knhs-gold-section p {
    color: var(--knhs-dark);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    line-height: 130%;
    margin-bottom: 2rem;
}

.page-template-template-hrs .knhs-gold-section {
    margin-top: -30rem;
    z-index: 2;
}

/* ──────────────────────────────
   8. WAVE DIVIDERS
   ────────────────────────────── */
.knhs-wave-divider {
    background: url(/wp-content/uploads/2026/02/about-wave-full.png);
    background-size: 100%;
    padding: 14rem 0 0 0px;
    position: relative;
    z-index: 2;
    margin-top: -11rem;
}

/* ──────────────────────────────
   9. ABOUT BLURB
   ────────────────────────────── */
.knhs-about-blurb {
    padding: var(--space-xl) 0 15rem;
    background: var(--knhs-aqua);
    position: relative;
    background-image: url(/wp-content/uploads/2026/02/AdobeStock_296882207_sm-fade-1.png);
    background-size: 100%;
    background-position: 0 40%;
    min-height: 30rem;
}

.knhs-about-blurb .knhs-container {
    max-width: 64rem;
    margin: 0;
    padding-top: 6rem;
}

.knhs-about-blurb__content {
    max-width: 900px;
}

.knhs-about-blurb__text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--knhs-dark);
}

.knhs-about-blurb__link {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--knhs-dark);
}

.knhs-about-blurb__link:hover {
    color: var(--knhs-dark);
}

.knhs-about-blurb__link:hover .knhs-arrow {
    transform: translateX(5px);
}

.knhs-short-blurb {
    padding: var(--space-xl) 0 8rem;
    background: var(--knhs-aqua);
    position: relative;
    background-image: url(/wp-content/uploads/2026/02/AdobeStock_296882207_sm-fade-1.png);
    background-size: 100%;
    background-position: 0 30%;
    min-height: 0;
}

.page-template-template-hrs .knhs-about-blurb {
    padding-bottom: 30rem;
}

/* ──────────────────────────────
   10. HOME — LAND ACKNOWLEDGEMENT
   ────────────────────────────── */
.knhs-land-ack {
    background: url(/wp-content/uploads/2026/02/la-mask.png);
    background-size: 100%;
    padding: 14rem 0 9rem 0px;
    position: relative;
    z-index: 2;
    margin-top: -11rem;
}

.knhs-land-ack__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.75rem);
    font-weight: 400;
    color: var(--knhs-teal-heading);
    margin-bottom: var(--space-md);
}

.knhs-land-ack__content {
    max-width: 75%;
}

.knhs-land-ack__icon {
    flex-shrink: 0;
}

.knhs-land-ack__icon img {
    width: 100px;
    height: auto;
    opacity: 0.9;
}

.knhs-land-ack__text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-style: normal;
    line-height: 1.43;
    color: var(--knhs-dark);
}

/* ──────────────────────────────
   11. HOME — PROJECTS GRID
   ────────────────────────────── */
.knhs-projects-section {
    padding: 0;
}

.knhs-projects-section__header {
    background: var(--knhs-white);
    padding: var(--space-xl) 0 var(--space-lg);
}

.knhs-projects-section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.75rem);
    font-weight: 400;
    color: var(--knhs-teal-heading);
    margin-bottom: var(--space-sm);
}

.knhs-projects-section__intro {
    font-size: 1.15rem;
    line-height: 1.43;
    color: var(--knhs-dark);
    max-width: 75%;
}

.knhs-projects-grid-wrapper {
    background: linear-gradient(0deg, var(--knhs-dark) 66%, transparent 34%);
    padding: 0 0 0 7rem;
}

.knhs-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.knhs-project-card {
    position: relative;
}

.knhs-project-card:nth-of-type(4):after {
    content: '';
    background: url(/wp-content/uploads/2026/02/card-mask-left.png);
    background-position: bottom;
    background-size: 100%;
    display: block;
    height: 8.5rem;
}
.knhs-project-card:nth-of-type(5):after {
    content: '';
    background: url(/wp-content/uploads/2026/02/card-mask-center.png);
    background-position: bottom;
    background-size: 100%;
    display: block;
    height: 8.5rem;
}
.knhs-project-card:nth-of-type(6):after {
    content: '';
    background: url(/wp-content/uploads/2026/02/card-mask-right.png);
    background-position: bottom;
    background-size: 100%;
    display: block;
    height: 8.5rem;
}

.knhs-project-card:nth-of-type(4) .knhs-project-card__info, .knhs-project-card:nth-of-type(5) .knhs-project-card__info, .knhs-project-card:nth-of-type(6) .knhs-project-card__info  {
    min-height: 15rem;
    padding-bottom: 0;
}

.knhs-project-card__info {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 7rem 4rem 3rem;
    min-height: 18rem;
    background: #ccad42;
}

.knhs-project-card__title {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--knhs-white);
    margin-bottom: auto;
    line-height: 1;
    line-height: 100%;
}

.knhs-project-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
    background: var(--knhs-teal-dark);
    color: var(--knhs-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 9px;
    text-decoration: none;
    transition: background var(--transition-base);
    width: fit-content;
    margin-top: 1.5rem;
}

.knhs-project-card__btn:hover {
    background: var(--knhs-teal-heading);
    color: var(--knhs-white);
}

.knhs-project-card__btn:hover .knhs-arrow {
    transform: translateX(5px);
}

/* Colored card variants from design */
.knhs-project-card--dark {
    background: var(--knhs-dark);
}

.knhs-project-card--gold {
    background: var(--knhs-gold);
}

.knhs-project-card--teal {
    background: var(--knhs-teal);
}

.knhs-project-card--dark .knhs-project-card__content,
.knhs-project-card--gold .knhs-project-card__content,
.knhs-project-card--teal .knhs-project-card__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}

.knhs-project-card--gold .knhs-project-card__title,
.knhs-project-card--teal .knhs-project-card__title {
    color: var(--knhs-dark);
}

.knhs-project-card--gold .knhs-project-card__desc,
.knhs-project-card--teal .knhs-project-card__desc {
    color: var(--knhs-dark);
    opacity: 0.8;
}

/* ──────────────────────────────
   13. WHO WE ARE — CORE VALUES
   ────────────────────────────── */
.knhs-core-values {
    padding: var(--space-2xl) 0;
}

.knhs-core-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.knhs-core-value {
    padding: 2rem 1.5rem;
    background: var(--knhs-aqua-light);
}

.knhs-core-value__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.knhs-core-value__icon img {
    width: 8rem;
}

.knhs-core-value__title {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--knhs-dark);
    margin-bottom: 1rem;
}

/* 2nd row: 3 items centered */
.knhs-core-values__grid--bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 75%;
    margin: 1.5rem auto 0;
}

.knhs-core-values__feather {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.knhs-core-values__feather img {
    width: 60px;
    height: auto;
    opacity: 0.6;
}

/* ──────────────────────────────
   14. TEAM GRID (Governance / Staff)
   ────────────────────────────── */
.knhs-section--team {
    padding: var(--space-xl) 0 var(--space-2xl);
    margin-top: -27rem;
    z-index: 2;
}

.knhs-team-intro {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.knhs-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.knhs-team-card {
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.knhs-team-card__image {
    aspect-ratio: 393/364;
    overflow: hidden;
    background: var(--knhs-dark);
}

.knhs-team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.knhs-team-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--knhs-aqua-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.knhs-team-card__placeholder svg {
    width: 80px;
    height: 80px;
    color: rgba(255,255,255,0.4);
}

.knhs-team-card__info {
    background: var(--knhs-dark);
    padding: 1.5rem 2.5rem;
    min-height: 10rem;
}

.knhs-team-card__name {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--knhs-gold);
    margin-bottom: 0.5rem;
}

.knhs-team-card__position {
    font-size: 1.125rem;
    color: #fff;
}

/* Staff department headings */
.knhs-staff-department {
    margin-bottom: var(--space-xl);
}
.knhs-staff-department:last-child {
    margin-bottom: 0;
}

.knhs-staff-department__title {
    color: var(--knhs-teal-heading);
    font-family: var(--font-heading);
    font-size: 3.75rem;
    font-weight: 400;
    line-height: 117%;
    margin-bottom: 2rem;
}

/* ──────────────────────────────
   15. URBAN HOUSING — TIMELINE
   ────────────────────────────── */
.knhs-section--timeline {
    max-width: 100%;
    overflow: hidden;
}

.knhs-section--timeline .knhs-container {
    max-width: none;
}

.knhs-timeline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none;   
    margin-right: 6rem;
}

.knhs-timeline::-webkit-scrollbar {
    display: none;
}

.knhs-timeline__line {
    display: none;
}

.knhs-timeline__items {
    display: flex;
    gap: 6rem;
}

.knhs-timeline__item {
    flex: 0 0 285px;
    scroll-snap-align: start;
    position: relative;
    z-index: 2;
}

/* Gold line segment on each item — spans item width + gap to the next */
.knhs-timeline__item::before {
    content: '';
    position: absolute;
    top: calc(219px / 2);
    left: 0;
    /* stretch across the item + the 6rem gap to meet the next item's segment */
    width: calc(100% + 6rem);
    height: 0.5625rem;
    background: var(--knhs-gold);
    z-index: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

/* Last item: hide line */
.knhs-timeline__item:last-child::before {
    display :none;
}

.knhs-timeline__image {
    width: 100%;
    aspect-ratio: 285/219;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--knhs-light-gray);
    position: relative;
    z-index: 2;
}

.knhs-timeline__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knhs-timeline__placeholder {
    background: var(--knhs-aqua);
    padding: 3rem;
    object-fit: contain !important;
}

.knhs-timeline__year {
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 700;
    line-height: 130%;
    color: var(--knhs-dark);
    margin-bottom: 0.5rem;
}

.knhs-timeline__desc {
    color: var(--knhs-dark);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 130%;
}

.knhs-timeline__desc p {
    color: var(--knhs-dark);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 130%;
    margin: 0;
}

/* ──────────────────────────────
   16. URBAN HOUSING — COMPLEXES
   ────────────────────────────── */
.knhs-complexes-section {
    padding: var(--space-xl) 0;
}

.knhs-complex {
    display: flex;
    align-items: center;
}

.knhs-complex:last-child {
    margin-bottom: 0;
}

.knhs-complex--reverse {
    flex-direction: row-reverse;
}

.knhs-complex__image {
    flex: 1;
    overflow: hidden;
}

.knhs-complex__image img {
    width: 100%;
    height: auto;
    display: block;
}

.knhs-complex__placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--knhs-light-gray);
    border-radius: 12px;
}

.knhs-complex__content {
    flex: 1;
}

.knhs-complex__title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--knhs-teal);
    margin-bottom: var(--space-lg);
}

.knhs-complex__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--knhs-text);
    width: 50%;
    padding-right: 5rem;
}

.knhs-complex--img-left .knhs-complex__text {
    order: 2;
    padding-left: 5rem;
}

/* ──────────────────────────────
   17. URBAN HOUSING — SUPPORT SERVICES
   ────────────────────────────── */
.knhs-section--support .knhs-container {
    max-width: 80%;
}

.knhs-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

p.knhs-support__subtitle {
    color: var(--knhs-dark);
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    line-height: 130%;
    margin-bottom: 2rem;
    font-style: normal;
}

.knhs-support__item p {
    color: var(--knhs-dark);
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 165%;
}

/* ──────────────────────────────
   18. PARTNERSHIPS
   ────────────────────────────── */
.knhs-partners-section {
    padding: var(--space-xl) 0;
}

.knhs-partners-section h2 {
    max-width: 36rem;
}

.knhs-partners__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.knhs-partner {
    padding: 0 1.5rem;
    border-left: 6px solid var(--knhs-gold);
}

.knhs-partner p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ──────────────────────────────
   19. BEAR DEN SPECIFIC
   ────────────────────────────── */

.knhs-section--bd-content {
    padding-top: 0;
}

/* Rate/Cancellation panel */

.knhs-gold-section p.knhs-rate__text {
    color: var(--knhs-dark);
    margin-bottom: var(--space-lg);
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.25rem;
    margin-top: 1rem;
    line-height: 160%;
}

/* Reservation section */
.knhs-section--reservation {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.knhs-section--reservation a {
    color: var(--knhs-teal-dark);
    text-decoration: underline;
}

.knhs-section--reservation a:hover {
    color: var(--knhs-gold);
}

/* ──────────────────────────────
   20. HRS SPECIFIC
   ────────────────────────────── */

.knhs-hrs-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 0 0 7rem;
}

.knhs-hrs-value {
    text-align: center;
    padding: 2rem;
    background: var(--knhs-aqua);
    min-height: 11rem;
}

.knhs-hrs-value__title {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: left;
    color: var(--knhs-dark);
}

.knhs-hrs-h3 {
    font-weight: 400;
    margin: 3rem 0 2rem;
}

.knhs-hrs-about {
	display: flex;
    align-items: center;
	gap: 2rem;
}

.knhs-hrs-about img {
	width: 50%;
}

@media (max-width: 680px) {
	.knhs-hrs-values__grid {
		margin: 0 0 0 2rem;
	}
	.knhs-hrs-about {
		flex-direction: column;
	}
	.knhs-hrs-about img {
		width: 100%;
	}
}

/* ──────────────────────────────
   21. CONTACT PAGE
   ────────────────────────────── */

.knhs-hero__contact-row {
    display: flex;
    gap: 2rem;
    font-weight: bold;
}
.knhs-hero__contact-row span {
    width: 12rem;
}

.page-template-template-contact .knhs-about-blurb {
    padding-bottom: 8rem;
}

.page-template-template-contact .knhs-about-blurb .knhs-container {
    max-width: 100%;
    padding-right: 7rem;
    padding-top: 8rem;
}

.knhs-contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.knhs-contact__card-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--knhs-dark);
    margin: 0;
}

.knhs-contact__email {
    text-decoration: underline;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--knhs-dark);
    margin-bottom: 0.75rem;
}

/* ──────────────────────────────
   22. GENERIC PAGE CONTENT (Gutenberg)
   ────────────────────────────── */
.knhs-page-content {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.knhs-page-content .knhs-container > *:not(:last-child) {
    margin-bottom: 1.5rem;
}

.knhs-page-content h2 {
    margin-top: var(--space-lg);
}

.knhs-page-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.knhs-page-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.knhs-page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.knhs-page-content a {
    color: var(--knhs-teal-dark);
    text-decoration: underline;
}

.knhs-page-content a:hover {
    color: var(--knhs-gold);
}

/* ──────────────────────────────
   23. FOOTER
   ────────────────────────────── */
.knhs-footer {
    background: var(--knhs-dark);
    color: var(--knhs-white);
    position: relative;
}

.knhs-footer__wave {
    position: relative;
    margin-top: -1px;
}

.knhs-footer__inner {
    margin: 0 auto;
    padding: 5rem 7rem 2rem;
}

.knhs-footer__brand {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.knhs-footer__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 1.625rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--knhs-gold);
    line-height: 100%;
}

.knhs-footer__columns {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
    margin-bottom: var(--space-lg);
}

.knhs-footer__col {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.43;
    color: var(--knhs-warm-beige);
}

.knhs-footer__col__row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.knhs-footer__col__row_fax {
    justify-content: left;
    gap: 3.56rem;
}

.knhs-footer__divider {
    border: 0;
    height: 1px;
    background: var(--knhs-gold);
    opacity: 0.4;
    margin-bottom: var(--space-md);
}

.knhs-footer__copyright {
    text-align: left;
    font-size: 0.9rem;
    color: var(--knhs-warm-beige);
}

/* ──────────────────────────────
   24. RESPONSIVE – TABLET (≤ 1024px)
   ────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }

    .knhs-header__logo-img {
        height: 4rem;
        width: auto;
        padding-left: 0;
    }

    /* Hero */
    .knhs-hero {
        min-height: auto;
        background: no-repeat;
    }

    .knhs-hero__inner {
        flex-direction: column;
        min-height: auto;
    }

    .knhs-hero__content {
        width: auto;
        left: 0;
        right: 2rem;
        top: 16rem;
        background-position: center 86%;
        padding-bottom: 5rem;
        min-height: auto;
    }

    .knhs-hero__content-inner {
        padding: 7rem 2rem 4rem;
        max-width: none;
        margin-left: 0;
    }

    .knhs-hero__image {
        width: 100%;
        min-height: 300px;
    }

    .knhs-hero__image img {
        max-width: 600px;
        margin: 0 auto;
        height: 20rem;
    }

    /* Grids → 2 cols */
    .knhs-projects-grid,
    .knhs-team-grid,
    .knhs-services__grid,
    .knhs-partners__grid,
    .knhs-contact__grid,
    .knhs-hrs-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .knhs-core-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .knhs-core-values__grid--bottom {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    /* Complex layouts */
    .knhs-complex {
        flex-direction: column !important;
        gap: var(--space-lg);
    }

    .knhs-complex__image,
    .knhs-complex__content {
        flex: none;
        width: 100%;
    }

    .knhs-features-grid {
        grid-template-columns: 1fr;
    }

    /* VM + HRS panels */
    .knhs-vm-panel__grid,
    .knhs-hrs-vm__grid {
        flex-direction: column;
        gap: var(--space-lg);
    }

    /* Nav overlay */
    .knhs-nav-overlay__inner {
        width: 70%;
        padding: 3rem 2.5rem 2rem;
    }

    /* About blurb */
    .knhs-about-blurb .knhs-container {
        flex-direction: column;
    }

    /* Land ack */
    .knhs-land-ack {
        background: var(--knhs-aqua-light);
        padding: 4rem 0 3rem 0px;
        margin-top: 0;
    }
    .knhs-land-ack__content {
        flex-direction: column;
        max-width: 100%;
    }

    .knhs-projects-section__intro {
        max-width: 100%;
    }

    .knhs-projects-grid-wrapper {
        padding-left: 2rem;
    }

    .knhs-project-card:nth-of-type(4):after, .knhs-project-card:nth-of-type(5):after {
        display: none;
    }

    /* Who We Are */
    .knhs-gold-section {
        width: auto;
        background: linear-gradient(180deg, var(--knhs-gold) 88%, transparent 0%) 0%, url(/wp-content/uploads/2026/02/gold-mask.png);
        background-position: bottom;
        background-size: contain;
        background-repeat: no-repeat;
        padding: 0 0 5rem 0;
        margin: 0 0 0 2rem;
    }
    .knhs-gold-section .knhs-container {
        max-width: 100%;
        padding: 3rem 2rem 0 2rem;
    }
    .knhs-gold-section h2 {
        font-size: 2.25rem;
    }
    .knhs-gold-section p {
        font-size: 1.5rem;
    }

    .knhs-footer__inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ──────────────────────────────
   25. RESPONSIVE – MOBILE (≤ 640px)
   ────────────────────────────── */
@media (max-width: 640px) {
    :root {
        --container-padding: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .knhs-header {
        padding: 1rem;
    }

    .knhs-header__logo {
        height: 40px;
    }

    .knhs-header__menu-toggle {
        font-size: 0.9rem;
    }

    .knhs-hero__content-inner {
        padding: 4rem 2rem 3rem;
    }

    .knhs-hero__title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    .knhs-hero__image {
        padding: 0 0 0 1.5rem;
    }

    .knhs-container {
        padding: 0 var(--container-padding);
        max-width: 100%;
    }

    .knhs-about-blurb {
        padding: 30rem 0 5rem;
        background-position: bottom;
        background-repeat: no-repeat;
        background-color: aliceblue;
        min-height: 30rem;
    }

    .knhs-about-blurb .knhs-container {
        max-width: 100%;
        margin: 0;
        padding-top: 10rem;
        padding-bottom: 3rem;
    }

    .knhs-hero__link, .knhs-about-blurb__link {
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .knhs-arrow svg {
        max-height: 12px;
    }

    .knhs-wave-divider {
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: bottom;
        padding: 6rem 0 0 0px;
        margin-top: -6rem;
    }

    .knhs-gold-section h2 {
        font-size: 1.75rem;
    }

    .knhs-gold-section p {
        font-size: 1.25rem;
    }

    .knhs-project-card__info {
        padding: 2.5rem 2rem 3rem 2rem;
        min-height: 13rem;
    }
    .knhs-project-card:nth-of-type(4) .knhs-project-card__info, .knhs-project-card:nth-of-type(5) .knhs-project-card__info, .knhs-project-card:nth-of-type(6) .knhs-project-card__info {
        min-height: 13rem;
        padding-bottom: 3rem;
    }

    /* Single column for everything */
    .knhs-projects-grid,
    .knhs-team-grid,
    .knhs-services__grid,
    .knhs-partners__grid,
    .knhs-contact__grid,
    .knhs-hrs-values__grid,
    .knhs-core-values__grid,
    .knhs-core-values__grid--bottom {
        grid-template-columns: 1fr;
    }

    .knhs-footer__columns {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Timeline: smaller cards */
    .knhs-timeline__item {
        flex: 0 0 240px;
    }

    /* Nav overlay full-width on mobile */
    .knhs-nav-overlay__inner {
        width: 100%;
        padding: 6rem 1.5rem;
    }

    /* .knhs-nav-overlay__close {
        top: 1rem;
        right: 1rem;
    } */

    /* Buttons full width */
    .knhs-hero__actions {
        flex-direction: column;
    }

    .knhs-hero__actions .knhs-btn {
        width: 100%;
        justify-content: center;
    }

    .knhs-footer__col__row {
        font-size: 0.9rem;
    }

    .knhs-footer__col__row_fax {
        gap: 3.5rem;
        justify-content: space-between;
    }

    .knhs-footer__copyright {
        font-size: 0.8rem;
    }
}

/* ──────────────────────────────
   26. ANIMATION / SCROLL REVEAL
   ────────────────────────────── */
.knhs-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.knhs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.knhs-reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.knhs-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.knhs-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.knhs-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.knhs-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.knhs-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.knhs-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ──────────────────────────────
   27. PRINT STYLES
   ────────────────────────────── */
@media print {
    .knhs-header,
    .knhs-nav-overlay,
    .knhs-footer__wave,
    .knhs-wave-divider {
        display: none !important;
    }

    .knhs-hero {
        min-height: auto;
        page-break-after: avoid;
    }

    .knhs-hero__content {
        background: none !important;
        color: #000 !important;
        clip-path: none;
    }

    body {
        font-size: 12pt;
    }
}

/* ──────────────────────────────
   28. RESPONSIVE – LARGE SCREENS
   ────────────────────────────── */

@media (min-width: 1600px) {
    html { font-size: 18px; }
}

@media (min-width: 1680px) {
    html { font-size: 20px; }
}

@media (min-width: 1920px) {
    html { font-size: 22px; }
}

@media (min-width: 2160px) {
    html { font-size: 24px; }
}

@media (min-width: 2560px) {
    html { font-size: 28px; }
}

@media (min-width: 2880px) {
    html { font-size: 33px; }
}