/*
 * Kitchens for Life — Page Styles
 * Font sizes inherit from theme throughout.
 */

/* ── Tokens ──────────────────────────────────────── */
:root {
    --kfl-green:      #495037;
    --kfl-gold:       #c9b97a;
    --kfl-cream:      #faf8f5;
    --kfl-white:      #ffffff;
    --kfl-text:       #3a3228;
    --kfl-text-mid:   #6b5f50;
    --kfl-text-muted: #9a8c6e;
    --kfl-border:     #e0d8cc;
    --kfl-px:         64px;
}

/* ── Base ────────────────────────────────────────── */
.kfl-page {
    background: var(--kfl-cream);
    color: var(--kfl-text);
    width: 100%;
    max-width: none;
}

.kfl-eyebrow {
    display: block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kfl-text-muted);
    margin-bottom: 16px;
}

.kfl-section-label {
    display: block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kfl-text-muted);
    padding: 72px var(--kfl-px) 48px;
}

.kfl-text-link {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--kfl-green);
    border-bottom: 0.5px solid var(--kfl-green);
    padding-bottom: 2px;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
}

/* ── Hero ────────────────────────────────────────── */
.kfl-hero {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    min-height: 600px;
    width: 100%;
}

.kfl-hero__text {
    background: var(--kfl-white);
    padding: 96px var(--kfl-px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.kfl-hero__heading {
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
}

.kfl-hero__body p {
    color: var(--kfl-text-mid);
    line-height: 1.85;
    margin-bottom: 14px;
}

.kfl-hero__media {
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 16 / 9;
}

.kfl-hero__media img,
.kfl-hero__media video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* ── Intro band ──────────────────────────────────── */
.kfl-band {
    background: var(--kfl-green);
    padding: 40px var(--kfl-px);
    display: flex;
    align-items: center;
    gap: 48px;
}

.kfl-band__quote {
    font-weight: 400;
    font-style: italic;
    color: #e8dfc8;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.kfl-band__link {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kfl-gold);
    border-bottom: 0.5px solid var(--kfl-gold);
    padding-bottom: 2px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Inspiration grid ────────────────────────────── */
.kfl-grid {
    background: var(--kfl-cream);
    padding-bottom: 80px;
}

.kfl-grid__inner {
    padding: 0 var(--kfl-px);
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* Shared image slot */
.kfl-slot { position: relative; overflow: hidden; }

.kfl-img-wrap {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.kfl-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.kfl-img-wrap:hover img {
    transform: scale(1.02);
}

/* Gradient hidden — no hover overlay */
.kfl-img-grad { display: none; }

.kfl-img-cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.kfl-img-tag {
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(215, 198, 165, 0.8);
    display: block;
}

.kfl-img-name {
    font-weight: 400;
    color: #f0e8d8;
    display: block;
    line-height: 1.3;
}

/* ── Row 1: hero + two stacked ───────────────────── */
.kfl-row--one {
    display: flex;
    gap: 24px;
    height: 600px;
}

.kfl-slot--hero {
    flex: 0 0 62%;
}

.kfl-slot--stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kfl-slot--stack-a,
.kfl-slot--stack-b {
    flex: 1;
}

/* ── Row 2: full-width cinematic ─────────────────── */
.kfl-row--two {
    padding: 0;
}

.kfl-slot--cinematic {
    height: 640px;
    width: 100%;
}

/* ── Row 3: narrow + wide, equal height ──────────── */
.kfl-row--three {
    display: flex;
    gap: 24px;
    height: 600px;
}

.kfl-slot--narrow {
    flex: 0 0 33%;
}

.kfl-slot--wide {
    flex: 1;
}

/* ── Flexible sections ───────────────────────────── */
.kfl-section-gap { height: 3px; background: var(--kfl-cream); }

.kfl-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    border-top: 0.5px solid var(--kfl-border);
}

.kfl-feature--img-right .kfl-feature__image { order: 2; }
.kfl-feature--img-right .kfl-feature__body  { order: 1; }

.kfl-feature__image { overflow: hidden; min-width: 0; }

.kfl-feature__image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.kfl-feature__body {
    background: var(--kfl-white);
    padding: 80px var(--kfl-px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.kfl-feature__heading {
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 20px;
}

.kfl-feature__copy p {
    color: var(--kfl-text-mid);
    line-height: 1.85;
    margin-bottom: 14px;
}

.kfl-pull-quote {
    padding: 96px 160px;
    text-align: center;
    background: var(--kfl-white);
    border-top: 0.5px solid var(--kfl-border);
    border-bottom: 0.5px solid var(--kfl-border);
}

.kfl-pull-quote blockquote {
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--kfl-text);
    margin: 0 0 16px;
    quotes: none;
}

.kfl-pull-quote cite {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--kfl-text-muted);
    font-style: normal;
}

/* ── CTA strip ───────────────────────────────────── */
.kfl-cta {
    background: var(--kfl-green);
    padding: 80px var(--kfl-px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.kfl-cta__heading {
    font-weight: 400;
    color: #e8dfc8;
    margin-bottom: 10px;
}

.kfl-cta__body {
    color: rgba(232, 223, 200, 0.65);
    line-height: 1.7;
    margin: 0;
}

.kfl-cta__btn {
    background: var(--kfl-gold);
    color: #2a2018;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.kfl-cta__btn:hover { opacity: 0.88; }

/* ── Portrait slot modifier ──────────────────────── */
/* Portrait makes the slot narrower so the image appears taller */
.kfl-row--one .kfl-slot--hero.kfl-slot--portrait     { flex: 0 0 40%; }
.kfl-row--one .kfl-slot--stack-a.kfl-slot--portrait,
.kfl-row--one .kfl-slot--stack-b.kfl-slot--portrait  { flex: 0 0 60%; }
.kfl-row--three .kfl-slot--narrow.kfl-slot--portrait { flex: 0 0 25%; }
.kfl-row--three .kfl-slot--wide.kfl-slot--portrait   { flex: 0 0 35%; }
.kfl-slot--cinematic.kfl-slot--portrait              { max-width: 50%; margin: 0 auto; }

/* ── Responsive ──────────────────────────────────── */
@media ( max-width: 900px ) {
    :root { --kfl-px: 32px; }

    .kfl-row--one { height: 340px; }
    .kfl-row--three { height: 340px; }
    .kfl-slot--cinematic { height: 380px; }
}

@media ( max-width: 768px ) {
    :root { --kfl-px: 20px; }

    .kfl-hero,
    .kfl-feature { grid-template-columns: 1fr; }

    .kfl-hero__media { aspect-ratio: 4 / 3; }
    .kfl-hero__text  { padding: 48px 20px; }

    .kfl-feature--img-right .kfl-feature__image,
    .kfl-feature--img-right .kfl-feature__body { order: unset; }
    .kfl-feature__body { padding: 48px 20px; }

    .kfl-grid__inner { gap: 32px; padding: 0 20px; }

    .kfl-row--one { flex-direction: column; height: auto; gap: 12px; }
    .kfl-slot--hero    { flex: none; width: 100%; height: 260px; }
    .kfl-slot--stack   { flex-direction: row; gap: 12px; }
    .kfl-slot--stack-a,
    .kfl-slot--stack-b { flex: 1; height: 160px; }

    .kfl-slot--cinematic { height: 260px; }

    .kfl-row--three { flex-direction: column; height: auto; gap: 12px; }
    .kfl-slot--narrow,
    .kfl-slot--wide { flex: none; width: 100%; height: 240px; }

    .kfl-grid__inner { gap: 48px; }

    .kfl-pull-quote { padding: 56px 24px; }
    .kfl-band { flex-direction: column; align-items: flex-start; gap: 16px; }
    .kfl-cta  { grid-template-columns: 1fr; }
}

/* ── FAQ accordion ───────────────────────────────── */
.fb-faq {
    padding: 80px var(--kfl-px, 64px);
    background: #ffffff;
    border-top: 0.5px solid #e0d8cc;
}

.fb-faq__heading {
    font-weight: 400;
    text-align: center;
    margin-bottom: 56px;
    color: #3a3228;
}

.fb-faq__accordion {
    max-width: 900px;
}

.fb-faq__item {
    border-bottom: 0.5px solid #e0d8cc;
}

.fb-faq__item:first-child {
    border-top: 0.5px solid #e0d8cc;
}

.fb-faq__trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    cursor: pointer;
    text-align: left;
}

.fb-faq__question {
    font-family: Georgia, serif;
    font-weight: 400;
    color: #3a3228;
    line-height: 1.4;
    flex: 1;
    font-size: 1.2em;
}

.fb-faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.fb-faq__icon::before,
.fb-faq__icon::after {
    content: "";
    position: absolute;
    background: #495037;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fb-faq__icon::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.fb-faq__icon::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.fb-faq__item--open .fb-faq__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.fb-faq__body[hidden] { display: none; }

.fb-faq__answer {
    padding: 0 0 36px;
    color: #6b5f50;
    line-height: 1.85;
    max-width: 760px;
}

.fb-faq__answer p {
    margin-bottom: 14px;
}

.fb-faq__answer p:last-child {
    margin-bottom: 0;
}

@media ( max-width: 768px ) {
    .fb-faq { padding: 48px 20px; }
    .fb-faq__trigger { padding: 20px 0; }
}