/*
 * Showroom — Styles
 * Font sizes intentionally omitted — inherits from theme.
 * Enqueue in functions.php when is_page_template( 'template-editorial.php' ).
 */

/* ── Tokens ──────────────────────────────────────── */
:root {
    --sr-green:      #3a4a35;
    --sr-gold:       #c9b97a;
    --sr-cream:      #f5f3f0;
    --sr-white:      #ffffff;
    --sr-text:       #3a3228;
    --sr-text-mid:   #6b5f50;
    --sr-text-muted: #9a8c6e;
    --sr-border:     #e0d8cc;
    --sr-gap:        3px;
    --sr-section-px: 80px;
}

/* ── Wrapper breakout ────────────────────────────── */
.sr-page-template .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

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

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

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

.sr-section-gap {
    height: 80px;
    background: var(--sr-cream);
}

/* ── Hero — full-width autoplay video ────────────── */
.sr-hero {
    position: relative;
    width: 100%;
    background: #1a120a;
    overflow: hidden;
}

.sr-hero__video {
    display: block;
    width: 100%;
    height: 85vh;
    min-height: 520px;
    max-height: 900px;
    object-fit: cover;
}

.sr-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15,10,5,0.55) 0%, rgba(15,10,5,0.1) 60%, transparent 100%);
    padding: 48px var(--sr-section-px);
}

.sr-hero__overlay-text {
    color: rgba(240, 232, 216, 0.75);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}

/* ── Text + image split ──────────────────────────── */
.sr-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
}

.sr-split--img-left  .sr-split__text  { order: 2; }
.sr-split--img-left  .sr-split__image { order: 1; }
.sr-split--img-right .sr-split__text  { order: 1; }
.sr-split--img-right .sr-split__image { order: 2; }

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

.sr-split__heading {
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 22px;
    color: var(--sr-text);
}

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

.sr-split__image {
    overflow: hidden;
    min-width: 0;
}

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

/* ── Full-width image ────────────────────────────── */
.sr-full-image {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.sr-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sr-full-image__caption {
    position: absolute;
    bottom: 24px;
    left: var(--sr-section-px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 232, 216, 0.75);
}

/* ── Pull quote ──────────────────────────────────── */
.sr-quote {
    padding: 112px 180px;
    text-align: center;
    background: var(--sr-white);
    border-top: 0.5px solid var(--sr-border);
    border-bottom: 0.5px solid var(--sr-border);
}

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

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

/* ── Video ───────────────────────────────────────── */
.sr-video {
    background: #1a120a;
    position: relative;
}

.sr-video__player {
    width: 100%;
    max-height: 600px;
    display: block;
    object-fit: cover;
}

.sr-video__label {
    position: absolute;
    bottom: 20px;
    left: var(--sr-section-px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 232, 216, 0.55);
    pointer-events: none;
}

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

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

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

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

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

/* ── Responsive ──────────────────────────────────── */
@media ( max-width: 900px ) {
    :root { --sr-section-px: 40px; }
    .sr-quote { padding: 60px 80px; }
}

@media ( max-width: 768px ) {
    :root { --sr-section-px: 24px; }

    .sr-hero,
    .sr-split { grid-template-columns: 1fr; }

    .sr-hero__media { min-height: 280px; }
    .sr-hero__text  { padding: 48px 24px; }

    .sr-split--img-left .sr-split__text,
    .sr-split--img-left .sr-split__image,
    .sr-split--img-right .sr-split__text,
    .sr-split--img-right .sr-split__image { order: unset; }

    .sr-split__text  { padding: 56px 24px; }
    .sr-split__image { min-height: 300px; }

    .sr-full-image { height: 320px; }

    .sr-quote { padding: 56px 24px; }

    .sr-cta {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 56px 24px;
    }

    .sr-section-gap { height: 40px; }
}

/* ── Background colour overrides ─────────────────── */
/*
 * When a dark background colour is chosen via the colour picker,
 * add class ep-dark-bg to the section in the editor and text
 * will automatically switch to light. The inline background-color
 * from ACF handles the colour itself.
 */
.sr-split__text[style*="background"] p,
.sr-split__text[style*="background"] h2,
.sr-split__text[style*="background"] .sr-eyebrow,
.sr-split__text[style*="background"] .sr-text-link {
    /* Colour inherits unless overridden — intentional */
}

/* Dark background helper — add ep-dark-bg to section via custom class field if needed */
.sr-dark-bg .sr-split__text,
.sr-dark-bg.sr-quote,
.sr-dark-bg.sr-cta {
    color: #f0e8d8;
}

.sr-dark-bg .sr-split__heading,
.sr-dark-bg .sr-quote blockquote {
    color: #f0e8d8;
}

.sr-dark-bg .sr-split__body p,
.sr-dark-bg .sr-quote cite,
.sr-dark-bg .sr-cta__body {
    color: rgba(240, 232, 216, 0.7);
}

.sr-dark-bg .sr-eyebrow {
    color: rgba(240, 232, 216, 0.5);
}

.sr-dark-bg .sr-text-link {
    color: #c9b97a;
    border-bottom-color: #c9b97a;
}

/* ── 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; }
}