/* ==========================================================================
   FAQ.CSS — Kashmir Decor FAQ page
   Self-contained: loads only global.css + faq.css.
   Chrome block (nav/footer/buttons/eyebrow/swatch-strip/container) is a copy
   of the same block in contact.css — if you change nav/footer sitewide,
   update it in every page's own CSS file, they no longer share one source.
   ========================================================================== */

/* --- BASE PAGE WRAPPER --- */
.kd-home {
    background: var(--color-linen);
    color: var(--color-black);
}

.kd-home img {
    max-width: 100%;
    display: block;
    object-fit: contain;
    box-sizing: border-box;
}

.kd-home a {
    color: inherit;
    text-decoration: none;
}

.kd-home h1,
.kd-home h2,
.kd-home h3,
.kd-home h4 {
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.kd-container {
    width: 90%;
    max-width: var(--global-width);
    margin: 0 auto;
}

/* --- EYEBROW --- */
.kd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--dim-8px);
    font-size: var(--font-small);
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
    color: var(--color-gold) !important;
    margin-bottom: var(--dim-16px);
}

.kd-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--color-gold);
}

/* --- BUTTONS --- */
.kd-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--dim-10px);
    padding: var(--dim-16px) var(--dim-24px);
    border-radius: var(--roundness-full);
    font-size: var(--font-medium);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.kd-btn-primary {
    background: var(--color-emerald);
    color: var(--color-white) !important;
    box-sizing: border-box;
}

.kd-btn-primary:hover {
    background: var(--color-emerald-dark);
    transform: translateY(-3px);
    box-shadow: var(--color-shadow-emerald);
}

.kd-btn-gold {
    background: var(--color-gold);
    color: var(--color-emerald-dark);
}

.kd-btn-gold:hover {
    background: var(--color-gold-light);
    transform: translateY(-3px);
}

/* --- SWATCH STRIP --- */
.kd-swatch-strip {
    display: flex;
    height: var(--dim-12px);
}

.kd-swatch-strip span {
    flex: 1;
}

.kd-swatch-strip span:nth-child(1) { background: var(--color-emerald); }
.kd-swatch-strip span:nth-child(2) { background: var(--color-gold); }
.kd-swatch-strip span:nth-child(3) { background: var(--color-brick); }
.kd-swatch-strip span:nth-child(4) { background: var(--color-sand); }
.kd-swatch-strip span:nth-child(5) { background: var(--color-emerald-dark); }
.kd-swatch-strip span:nth-child(6) { background: var(--color-gold-light); }
.kd-swatch-strip span:nth-child(7) { background: var(--color-black); }
.kd-swatch-strip span:nth-child(8) { background: var(--color-emerald); }

/* --- NAV --- */
.kd-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 241, 231, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-stroke-warm);
}

.kd-nav-inner {
    width: 90%;
    max-width: var(--global-max-width);
    margin: 0 auto;
    height: var(--dim-nav-size);
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kd-nav-brand {
    font-family: var(--font-display);
    font-size: var(--font-large);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: var(--dim-16px);
}

.kd-nav-brand > img:nth-child(1) {
    width: 40px;
    height: 40px;
}

.kd-nav-brand > img:nth-child(2) {
    width: fit-content;
    height: 24px;
}

.kd-nav-links {
    display: none;
    align-items: center;
    gap: var(--dim-40px);
    font-size: var(--font-medium);
}

.kd-nav-links a:hover {
    color: var(--color-emerald);
}

.kd-nav-links a.kd-nav-active {
    color: var(--color-emerald);
}

.kd-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--dim-16px);
}

.kd-lang-switch {
    font-size: var(--font-small);
    border: 1px solid var(--color-stroke-warm);
    border-radius: var(--roundness-full);
    padding: var(--dim-8px) var(--dim-12px);
    background: none;
    cursor: pointer;
}

.kd-lang-switch:hover {
    border-color: var(--color-emerald);
}

@media only screen and (min-width: 960px) {
    .kd-nav-links { display: flex; }
}

@media only screen and (max-width: 1350px) {
    .kd-nav-links > a:nth-child(3),
    .kd-nav-links > a:nth-child(4),
    .kd-nav-links > a:nth-child(5) {
        display: none;
    }
}

@media only screen and (max-width: 700px) {
    .kd-nav-inner { height: 64px; min-height: 64px; }
    .kd-nav-brand { font-size: var(--font-medium); gap: var(--dim-8px); }
    .kd-nav-brand > img:nth-child(1) { width: 30px; height: 30px; }
    .kd-nav-brand > img:nth-child(2) { height: 18px; }
    .kd-nav-actions .kd-btn { padding: var(--dim-10px) var(--dim-16px); font-size: var(--font-small); }
}

@media only screen and (max-width: 480px) {
    .kd-nav-actions > a:nth-child(2) { display: none; }
}

/* --- FOOTER --- */
.kd-footer {
    background: var(--color-black);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--dim-64px) 0 var(--dim-16px);
}

.kd-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--dim-40px);
    padding-bottom: var(--dim-40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kd-footer-brand {
    font-family: var(--font-display);
    font-size: var(--font-large);
    color: var(--color-white);
    margin-bottom: var(--dim-16px);
}

.kd-footer-col p {
    font-size: var(--font-medium);
    line-height: var(--line-height);
    max-width: 320px;
    color: var(--color-white);
}

.kd-footer-col h5 {
    font-size: var(--font-small);
    font-weight: 700;
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--dim-16px);
}

.kd-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--dim-10px);
    font-size: var(--font-small);
    color: var(--color-white);
}

.kd-footer-col a {
    color: var(--color-white);
}

.kd-footer-col ul a:hover {
    color: var(--color-gold-light);
}

.kd-footer-social {
    display: flex;
    gap: var(--dim-10px);
    margin-top: var(--dim-16px);
}

.kd-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kd-footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

.kd-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--dim-16px);
    justify-content: space-between;
    align-items: center;
    padding-top: var(--dim-24px);
    font-size: var(--font-small);
}

.kd-footer-bottom * {
    color: var(--color-white);
}

.kd-footer-lang-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-family: inherit;
    font-size: var(--font-small);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.kd-footer-lang-btn:hover {
    color: var(--color-gold-light);
}

@media only screen and (min-width: 800px) {
    .kd-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .kd-footer-bottom { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
    .kd-home * { transition: none !important; }
}

/* ==========================================================================
   PAGE-SPECIFIC — FAQ page only, below this line.
   ========================================================================== */

/* --- PAGE HEADER --- */
.kd-page-header {
    padding: var(--dim-92px) 0 var(--dim-64px);
    background: var(--color-emerald-dark);
    color: var(--color-white);
}

.kd-page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--color-white);
    margin-bottom: var(--dim-16px);
}

.kd-page-header p {
    font-size: var(--font-medium);
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    line-height: var(--line-height);
}

/* --- FAQ SECTION --- */
.kd-faq-page {
    padding: var(--dim-92px) 0;
    background: var(--color-linen);
}

/* --- CATEGORY TABS --- */
.kd-faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dim-8px);
    margin-bottom: var(--dim-40px);
}

.kd-faq-tab {
    background: var(--color-white);
    border: 1px solid var(--color-stroke-warm);
    color: var(--color-gray);
    font-family: inherit;
    font-size: var(--font-small);
    font-weight: 600;
    padding: var(--dim-10px) var(--dim-20px);
    border-radius: var(--roundness-full);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kd-faq-tab:hover {
    border-color: var(--color-emerald);
}

.kd-faq-tab[aria-pressed="true"] {
    background: var(--color-emerald);
    border-color: var(--color-emerald);
    color: var(--color-white);
}

/* --- ACCORDION LIST --- */
.kd-faq-list {
    display: flex;
    flex-direction: column;
    max-width: 820px;
    background: var(--color-white);
    border: 1px solid var(--color-stroke-warm);
    border-radius: var(--roundness-28px);
    overflow: hidden;
}

.kd-faq-item {
    border-bottom: 1px solid var(--color-stroke-warm);
}

.kd-faq-item:last-child {
    border-bottom: none;
}

.kd-faq-question {
    width: 100%;
    text-align: start;
    background: none;
    border: none;
    padding: var(--dim-20px) var(--dim-24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--dim-16px);
    font-family: inherit;
    font-size: var(--font-medium);
    font-weight: 600;
    color: var(--color-black);
    cursor: pointer;
}

.kd-faq-question:hover {
    background: var(--color-linen);
}

.kd-faq-question .kd-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-stroke-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-medium);
    color: var(--color-emerald);
    transition: transform 0.25s ease, background 0.25s ease;
}

.kd-faq-item.active .kd-faq-question .kd-icon {
    background: var(--color-emerald);
    transform: rotate(45deg);
}

.kd-faq-item.active .kd-faq-question .kd-icon i {
    color: var(--color-white) !important;
}

.kd-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.kd-faq-answer p {
    padding: 0 var(--dim-24px) var(--dim-20px);
    color: var(--color-gray);
    font-size: var(--font-medium);
    line-height: var(--line-height);
}

.kd-faq-item.active .kd-faq-answer {
    max-height: 300px;
}

.kd-faq-empty {
    max-width: 820px;
    text-align: center;
    padding: var(--dim-40px);
    color: var(--color-gray);
    font-size: var(--font-medium);
    background: var(--color-white);
    border: 1px dashed var(--color-stroke-warm);
    border-radius: var(--roundness-28px);
}

/* --- CTA BAND --- */
.kd-faq-cta {
    display: flex;
    flex-direction: column;
    gap: var(--dim-24px);
    align-items: flex-start;
    justify-content: space-between;
    background: var(--color-emerald);
    color: var(--color-white);
    border-radius: var(--roundness-28px);
    padding: var(--dim-40px);
    margin-top: var(--dim-64px);
    max-width: 820px;
}

.kd-faq-cta-copy h3 {
    font-family: var(--font-display);
    font-size: var(--font-large-extra);
    color: var(--color-white);
    margin-bottom: var(--dim-8px);
}

.kd-faq-cta-copy p {
    font-size: var(--font-medium);
    color: rgba(255, 255, 255, 0.72);
}

@media only screen and (min-width: 700px) {
    .kd-faq-cta {
        flex-direction: row;
        align-items: center;
    }
}

/* --- RESPONSIVE --- */
@media only screen and (max-width: 700px) {
    .kd-page-header {
        padding: var(--dim-64px) 0 var(--dim-48px);
    }

    .kd-faq-page {
        padding: var(--dim-64px) 0;
    }

    .kd-faq-question {
        padding: var(--dim-16px);
    }

    .kd-faq-answer p {
        padding: 0 var(--dim-16px) var(--dim-16px);
    }

    .kd-faq-cta {
        padding: var(--dim-24px);
    }
}

/* ==========================================================================
   RTL
   ========================================================================== */
[dir="rtl"] .kd-home {
    font-family: var(--font-body-ar);
}

[dir="rtl"] .kd-home h1,
[dir="rtl"] .kd-home h2,
[dir="rtl"] .kd-home h3,
[dir="rtl"] .kd-home h4,
[dir="rtl"] .kd-nav-brand,
[dir="rtl"] .kd-footer-brand,
[dir="rtl"] .kd-page-header h1,
[dir="rtl"] .kd-faq-cta-copy h3 {
    font-family: var(--font-display-ar);
}

[dir="rtl"] .kd-faq-item.active .kd-faq-question .kd-icon {
    transform: rotate(-45deg);
}