/* ============================================================
   FBS Beauty — Base: design tokens, reset, typography,
   utility classes, buttons, lang switcher
   ============================================================ */


/* ── Google Fonts loaded via <link> in HTML ────────────────── */


/* ── Design Tokens ─────────────────────────────────────────── */

:root {
    /* Brand palette — fbs.beauty */
    --c-primary: #2c3e50;
    --c-sage: #b6cdb1;
    --c-sage-dark: #9caf88;
    --c-taupe: #af9483;
    --c-sand: #d2ab80;
    --c-beige: #e6d2b9;
    --c-brown: #735c3a;
    --c-white: #ffffff;
    --c-bg: #faf7f4;
    /* warm off-white page background */
    --c-surface: #ffffff;
    --c-border: #e8ddd4;
    --c-text: #2c3e50;
    --c-text-muted: #8a7a6e;
    /* Severity */
    --c-high: #c0392b;
    --c-medium: #d2ab80;
    --c-low: #9caf88;
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;
    /* Spacing (from Kadence) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    /* Layout */
    --content-max: 860px;
    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, .08);
    --shadow-md: 0 8px 30px rgba(44, 62, 80, .12);
    --shadow-lg: 0 15px 50px rgba(44, 62, 80, .18);
}


/* ── Reset & Base ──────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}


/* ── Typography ────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
    /* font-family: var(--font-heading); */
    font-weight: 600;
    line-height: 1.25;
    color: var(--c-primary);
}

h1 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
}

h3 {
    font-size: 1.1rem;
}

p {
    line-height: 1.7;
}


/* ── Layout wrapper ────────────────────────────────────────── */

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #b4b1a5db;
}

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}


/* ── Utility ────────────────────────────────────────────────── */

.hidden {
    display: none !important;
}

.text-muted {
    color: var(--c-text-muted);
}

.text-center {
    text-align: center;
}


/* ── Buttons ───────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.75em 1.6em;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all .2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--c-primary);
    color: var(--c-white);
}

.btn-primary:hover {
    background: #1a2836;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--c-beige);
    color: var(--c-brown);
}

.btn-secondary:hover {
    background: var(--c-sand);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
}

.btn-outline:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.btn-large {
    padding: 0.7em 1.2em;
    min-height: 48px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    width: 100%;
}

.btn-back {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--c-taupe);
    min-height: 44px;
    width: 85px;
    display: flex;
    align-items: center;
    gap: 0.3em;
    transition: color .2s;
}

.btn-back:hover {
    color: var(--c-primary);
}

.ctaSubtitle {
    color: aliceblue;
}

.block {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.divider {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.line {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider-text {
    color: #ffffff;
    font-size: 14px;
    padding: 0 10px;
}


/* ── WhatsApp Button ───────────────────────────────────────── */

.btn-whatsapp {
    background: #03a33f;
    color: #f9f9f9;
    border: none;
    max-width: 320px;
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-1px);
}

.btn-telegram {
    background: #57a3d8;
    color: white;
}

.btn-telegram:hover {
    background: #5ba7dd;
}


/* ── Language Switcher ─────────────────────────────────────── */

.lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    gap: 4px;
    background: rgba(44, 62, 80, 0.85);
    padding: 4px 6px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: .04em;
    transition: all .15s;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (max-width: 768px) {
    .hero-video-container {
        overflow: hidden;
        max-width: 120%;
        display: block;
        margin-left: -20%;
    }
    video {
        width: 130%;
    }
}

@media (min-width: 769px) {
    video {
        position: fixed;
        top: 0;
        left: -30%;
        width: 130%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
    }
}


/* ── RTL support (Arabic) ──────────────────────────────────── */


/* [dir="rtl"] .btn-back::before {
    content: '→ ';
} */

[dir="rtl"] .hero-content,
[dir="rtl"] .results-body,
[dir="rtl"] .modal {
    text-align: right;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .obs-card {
    flex-direction: row-reverse;
}