/* =============================================
   Kinney Leadership Institute – Exact Clone
   Fonts from source:
     Nav:       anton, sans-serif
     Headings:  georgia, palatino, "book antiqua", "palatino linotype", serif
     Body:      futura-lt-w01-book → Jost (close match)
     FAQ title: din-next-w01-light → Jost 300
     FAQ items: futura-lt-w01-book → Jost 400
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    color: #000;
    background: #fff;
    line-height: 1.4;
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus { top: 0; }

/* =============================================
   HEADER – 200px tall, centered logo + nav
   ============================================= */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
    height: 200px;
}

.header-logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 126px;
    width: 174px;
    object-fit: contain;
}

.site-nav {
    margin-top: 10px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.site-nav li {
    width: 245px;
    text-align: center;
}

.site-nav a {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    transition: opacity 0.2s;
    letter-spacing: normal;
}

.site-nav a:hover,
.site-nav a.active {
    opacity: 0.7;
}

/* =============================================
   HERO – Full viewport, gray texture bg
   with diagonal dark overlay
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-diagonal-overlay {
    position: absolute;
    inset: 0;
    /* Dark triangle from top-left corner to roughly bottom-right,
       matching the ~135deg diagonal in the original */
    background: linear-gradient(
        135deg,
        rgba(55, 55, 55, 0.92) 0%,
        rgba(55, 55, 55, 0.92) 42%,
        transparent 42.5%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    width: 631px;
    max-width: 90vw;
    height: auto;
}

/* =============================================
   SHARED SECTION STYLES
   ============================================= */
h2 {
    font-family: Georgia, Palatino, 'Book Antiqua', 'Palatino Linotype', serif;
    font-size: 85px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.0;
    color: #000;
    margin-bottom: 25px;
}

.section-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-inner p {
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
    margin-bottom: 16px;
}

.section-inner p a {
    color: #000;
    text-decoration: underline;
}

/* Decorative side labels: "projects." / "about." / "contact." */
.section-label-left,
.section-label-right {
    font-family: Georgia, Palatino, 'Book Antiqua', 'Palatino Linotype', serif;
    font-style: italic;
    font-size: 72px;
    font-weight: 400;
    color: #e8e8e8;
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.section-label-left {
    left: 40px;
}

.section-label-right {
    right: 40px;
}

/* =============================================
   KLI RESIDENCY SECTION – white bg
   ============================================= */
.section-residency {
    position: relative;
    padding: 80px 60px;
    background: #fff;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.button-row {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-black {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-black:hover {
    background: #333;
}

/* =============================================
   ABOUT KLI SECTION – has diagonal overlays
   ============================================= */
.section-about {
    position: relative;
    padding: 80px 60px;
    background: #f5f5f5;
    min-height: 458px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Dark diagonal on the left */
.about-bg-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        150deg,
        rgba(70, 70, 70, 0.95) 0%,
        rgba(70, 70, 70, 0.95) 18%,
        transparent 18.5%
    );
    z-index: 0;
}

/* Gray diagonal on the right */
.about-bg-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        330deg,
        rgba(160, 160, 160, 0.4) 0%,
        rgba(160, 160, 160, 0.4) 18%,
        transparent 18.5%
    );
    z-index: 0;
}

/* =============================================
   FAQ SECTION – textured bg, white card
   ============================================= */
.section-faq {
    position: relative;
    padding: 60px 20px;
    min-height: 600px;
    overflow: hidden;
}

.faq-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.faq-diagonal-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        150deg,
        rgba(65, 65, 65, 0.92) 0%,
        rgba(65, 65, 65, 0.92) 15%,
        transparent 15.5%
    );
    z-index: 1;
}

.faq-diagonal-right {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        330deg,
        rgba(140, 140, 140, 0.45) 0%,
        rgba(140, 140, 140, 0.45) 18%,
        transparent 18.5%
    );
    z-index: 1;
}

.faq-card {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 70px;
}

.faq-title {
    font-family: 'Jost', 'DIN Next', 'Helvetica Neue', sans-serif;
    font-size: 35px;
    font-weight: 300;
    text-align: center;
    color: #000;
    margin-bottom: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #ccc;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #000;
    text-align: left;
    line-height: 1.3;
}

.faq-q:hover {
    color: #555;
}

.chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    margin-left: 12px;
}

.faq-item.open .chevron {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 600px;
    padding-bottom: 16px;
}

.faq-a p {
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 8px;
}

.faq-a a {
    color: #000;
    text-decoration: underline;
}

/* =============================================
   APPLY / CONTACT SECTION
   ============================================= */
.section-apply {
    position: relative;
    padding: 80px 60px;
    background: #f0f0f0;
    text-align: center;
    min-height: 500px;
}

.apply-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-apply h2 {
    font-family: Georgia, Palatino, 'Book Antiqua', 'Palatino Linotype', serif;
    font-size: 85px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 30px;
}

.apply-body {
    font-family: Georgia, Palatino, 'Book Antiqua', 'Palatino Linotype', serif;
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.5;
    color: #000;
    margin-bottom: 40px;
}

.apply-body a {
    color: #000;
    text-decoration: underline;
}

.apply-logo img {
    width: 220px;
    margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #4a4a4a;
    padding: 20px 40px;
    text-align: center;
}

.site-footer p {
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ccc;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

/* =============================================
   CURRENT RESIDENTS PAGE
   ============================================= */
.residents-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.residents-hero .hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

.residents-hero .hero-diagonal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(55, 55, 55, 0.92) 0%,
        rgba(55, 55, 55, 0.92) 42%,
        transparent 42.5%
    );
    z-index: 1;
}

.residents-hero .hero-content {
    position: relative;
    z-index: 2;
}

.residents-hero h1 {
    font-family: Georgia, Palatino, 'Book Antiqua', 'Palatino Linotype', serif;
    font-size: 60px;
    font-weight: 400;
    color: #000;
}

/* Residents grid section */
.residents-section {
    position: relative;
    background: #4a4a4a;
    padding: 50px 80px 80px;
    overflow: hidden;
}

/* Diagonal overlays for residents section */
.residents-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        330deg,
        rgba(120, 120, 120, 0.3) 0%,
        rgba(120, 120, 120, 0.3) 25%,
        transparent 25.5%
    );
    z-index: 0;
}

.residents-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        330deg,
        rgba(170, 170, 170, 0.2) 0%,
        rgba(170, 170, 170, 0.2) 15%,
        transparent 15.5%
    );
    z-index: 0;
}

.residents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.resident-card {
    display: flex;
    flex-direction: column;
}

.resident-photo {
    width: 100%;
    aspect-ratio: 1.03;
    overflow: hidden;
    background: #666;
}

.resident-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resident-info {
    padding: 12px 0;
}

.resident-info h3 {
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.resident-info p {
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #ccc;
    font-style: italic;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
    .site-nav li {
        width: auto;
    }
    .site-nav ul {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .site-nav a {
        font-size: 16px;
    }
    h2 {
        font-size: 55px;
    }
    .section-apply h2 {
        font-size: 55px;
    }
    .hero-logo {
        width: 400px;
    }
    .faq-card {
        padding: 35px 30px;
    }
    .faq-q {
        font-size: 16px;
    }
    .section-label-left,
    .section-label-right {
        display: none;
    }
    .residents-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .site-header {
        height: auto;
        padding: 10px 15px 5px;
    }
    .logo-img {
        height: 80px;
        width: auto;
    }
    .site-nav a {
        font-size: 14px;
    }
    h2 {
        font-size: 40px;
    }
    .section-apply h2 {
        font-size: 40px;
    }
    .hero {
        height: 500px;
    }
    .hero-logo {
        width: 280px;
    }
    .section-residency,
    .section-about,
    .section-apply {
        padding: 50px 25px;
    }
    .apply-body {
        font-size: 18px;
    }
    .faq-card {
        padding: 25px 20px;
    }
    .faq-title {
        font-size: 26px;
    }
    .faq-q {
        font-size: 15px;
    }
    .residents-hero h1 {
        font-size: 36px;
    }
    .residents-section {
        padding: 30px 20px;
    }
}
