/* Cleradol FAQ page — restrained editorial layout aligned with the About page. */

.cl-faq {
    --cl-faq-max: 1240px;
    overflow: clip;
    background: #050505;
    color: #ffffff;
}

.cl-faq :where(h1, h2, h3, p) { margin-top: 0; }
.cl-faq section[id] { scroll-margin-top: 8.5rem; }
.cl-faq em { font-style: italic; font-weight: 400; }

/* COMPACT INNER-PAGE HERO */
.cl-faq-hero {
    display: grid;
    min-height: clamp(11rem, 22vw, 15rem);
    align-items: center;
    padding: clamp(2.25rem, 4vw, 3.5rem) max(var(--cl-page-gutter), calc((100% - var(--cl-faq-max)) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background:
        radial-gradient(circle at 82% 18%, rgba(203, 163, 66, .13), transparent 27%),
        linear-gradient(135deg, #050505 0%, #0b0906 100%);
}

.cl-faq-hero__inner {
    width: min(100%, var(--cl-faq-max));
    margin-inline: auto;
}

.cl-faq-hero .cl-eyebrow { margin-bottom: 1rem; color: #d3a84c; }

.cl-faq-hero h1 {
    max-width: 11ch;
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.6rem, 4.6vw, 4.7rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .91;
}

.cl-faq-hero h1 em {
    background: var(--cl-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CATEGORY NAVIGATION */
.cl-faq-nav {
    position: sticky;
    z-index: 20;
    top: 4.75rem;
    display: flex;
    overflow-x: auto;
    padding-inline: max(var(--cl-page-gutter), calc((100% - var(--cl-faq-max)) / 2));
    border-bottom: 1px solid #ddd5ce;
    background: #ffffff;
    color: #17120b;
    scrollbar-width: none;
}

.cl-faq-nav::-webkit-scrollbar { display: none; }

.cl-faq-nav a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 3.25rem;
    padding: .7rem 1rem;
    border-right: 1px solid #e7e0da;
    color: #17120b;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.cl-faq-nav a:first-child { border-left: 1px solid #e7e0da; }
.cl-faq-nav a:hover { background: #f6f1ec; color: #8d6817; }
.cl-faq-nav span { color: #9a731c; font-family: var(--wp--preset--font-family--display); font-size: 1rem; }

/* SHARED CATEGORY LAYOUT */
.cl-faq-section {
    display: grid;
    gap: clamp(2.5rem, 6vw, 6rem);
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
    padding-inline: max(var(--cl-page-gutter), calc((100% - var(--cl-faq-max)) / 2));
}

.cl-faq-section__intro {
    position: relative;
    align-self: start;
}

.cl-faq-section__number {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    margin: 0 0 1.5rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--wp--preset--font-family--display);
    font-size: 1rem;
    line-height: 1;
    opacity: .65;
}

.cl-faq-section .cl-eyebrow { margin-bottom: .9rem; }

.cl-faq-section h2 {
    max-width: 11ch;
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.6rem, 4.3vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .95;
}

.cl-faq-section__note {
    max-width: 28rem;
    margin: 1.25rem 0 0;
    line-height: 1.7;
}

/* NATIVE FAQ ACCORDION */
.cl-faq-list {
    align-self: start;
    border-top: 1px solid currentColor;
}

.cl-faq-item { border-bottom: 1px solid currentColor; }

.cl-faq-item summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.8rem;
    gap: 1rem;
    align-items: center;
    min-height: 4.2rem;
    padding: 1rem .1rem;
    cursor: pointer;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.08rem, 1.5vw, 1.35rem);
    line-height: 1.3;
    list-style: none;
}

.cl-faq-item summary::-webkit-details-marker { display: none; }

.cl-faq-item summary::after {
    content: "+";
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--wp--preset--font-family--body);
    font-size: .85rem;
    font-weight: 400;
    transition: transform .2s ease;
}

.cl-faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.cl-faq-item summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.cl-faq-item__answer {
    max-width: 44rem;
    padding: 0 3rem 1.4rem 0;
}

.cl-faq-item__answer p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.75;
}

/* CATEGORY THEMES */
.cl-faq-section--cream { background: #f7f3ef; color: #17120b; }
.cl-faq-section--cream .cl-eyebrow { color: #8c6817; }
.cl-faq-section--cream .cl-faq-section__note,
.cl-faq-section--cream .cl-faq-item__answer { color: #665f58; }

.cl-faq-section--blush { background: #f4e1e1; color: #17120b; }
.cl-faq-section--blush .cl-eyebrow { color: #805f17; }
.cl-faq-section--blush .cl-faq-section__note,
.cl-faq-section--blush .cl-faq-item__answer { color: #665457; }

.cl-faq-section--dark { background: #050505; color: #ffffff; }
.cl-faq-section--dark .cl-eyebrow { color: #cba342; }
.cl-faq-section--dark .cl-faq-item,
.cl-faq-section--dark .cl-faq-list { border-color: #333333; }
.cl-faq-section--dark .cl-faq-item__answer,
.cl-faq-section--dark .cl-faq-section__note { color: #b8b0aa; }

.cl-faq-section--gold { background: #efe3c7; color: #17120b; }
.cl-faq-section--gold .cl-eyebrow { color: #745416; }
.cl-faq-section--gold .cl-faq-section__note,
.cl-faq-section--gold .cl-faq-item__answer { color: #5f5241; }

.cl-faq-section--clinics {
    background: linear-gradient(145deg, #171009, #050505 70%);
    color: #ffffff;
}
.cl-faq-section--clinics .cl-eyebrow { color: #cba342; }
.cl-faq-section--clinics .cl-faq-item,
.cl-faq-section--clinics .cl-faq-list { border-color: rgba(255, 255, 255, .2); }
.cl-faq-section--clinics .cl-faq-item__answer,
.cl-faq-section--clinics .cl-faq-section__note { color: #b8b0aa; }

/* PRODUCT COMPOSITION */
.cl-faq-range-visual {
    position: relative;
    width: min(100%, 27rem);
    height: 17rem;
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid rgba(23, 18, 11, .14);
    background: linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(203, 163, 66, .15));
}

.cl-faq-range-visual__bottle {
    position: absolute;
    bottom: 0;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 1.2rem 1.5rem rgba(0, 0, 0, .25));
}

.cl-faq-range-visual__bottle--advance {
    width: 36%; height: 88%; left: 4%;
    background-image: url('../../images/advance-corrective-serum.png');
    transform: rotate(-4deg);
}
.cl-faq-range-visual__bottle--daily {
    width: 34%; height: 84%; left: 33%;
    background-image: url('../../images/daily-defense-serum.png');
}
.cl-faq-range-visual__bottle--cream {
    width: 40%; height: 72%; right: 0;
    background-image: url('../../images/radiance-moisturizing-cream.png');
    transform: rotate(4deg);
}

/* SAFETY PROOF */
.cl-faq-proof {
    display: grid;
    gap: .7rem;
    max-width: 27rem;
    margin-top: 2rem;
}

.cl-faq-proof > div {
    display: grid;
    gap: .35rem;
    min-width: 0;
    padding: 1.1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .04);
}

.cl-faq-proof strong {
    color: #d3a84c;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.9rem, 3.2vw, 2.45rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1;
    white-space: nowrap;
}

.cl-faq-proof span {
    color: #aaa39d;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* CLOSING CTA */
.cl-faq-close {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7rem) var(--cl-page-gutter);
    background: linear-gradient(145deg, #090909, #241b0c);
    text-align: center;
}

.cl-faq-close > div { position: relative; z-index: 2; width: min(100%, 720px); }
.cl-faq-close .cl-eyebrow { margin-bottom: 1rem; color: #d3a84c; }

.cl-faq-close h2 {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .95;
}

.cl-faq-close h2 em {
    background: var(--cl-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cl-faq-close p:not(.cl-eyebrow) {
    max-width: 34rem;
    margin: 1.15rem auto 0;
    color: #c8c1b9;
    line-height: 1.7;
}

.cl-faq-close .cl-btn { margin-top: 1.5rem; }

.cl-faq-close__ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, .025);
    font-family: var(--wp--preset--font-family--display);
    font-size: min(50vw, 30rem);
    line-height: 1;
}

@media (min-width: 760px) {
    .cl-faq-nav a { flex: 1 1 0; }
    .cl-faq-proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 900px) {
    .cl-faq-section { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
    .cl-faq-section__intro { position: sticky; top: 9.5rem; }
}

@media (max-width: 759px) {
    .cl-faq-hero { min-height: 10rem; padding-block: 2rem; }
    .cl-faq-hero h1 { font-size: clamp(2.55rem, 12vw, 3.55rem); }
    .cl-faq-nav { position: relative; top: auto; }
    .cl-faq-section { padding-block: 4rem; }
    .cl-faq-section h2 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
    .cl-faq-item__answer { padding-right: 0; }
    .cl-faq-range-visual { height: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cl-faq-item summary::after { transition: none; }
}
