/**
 * Atlasia Content Builder — Styles
 * v2.0.0
 */
:root {
    /* Primary */
    --primary: #325E87;
    --primary-d: #26496A;
    --primary-lt: #508AC0;
    --primary-50: #EDF2F7;
    --primary-100: #DFE8F0;
    --primary-200: #B4C8DC;
    /* Sand */
    --sand: #E8D5B7;
    --sand-d: #D4BC9A;
    --sand-light: #F5EED6;
    /* Teal */
    --accent: #0F766E;
    --accent-d: #0B5D57;
    --accent-50: #E4F2F0;
    /* Neutrals */
    --ink: #1F3247;
    --ink-2: #526477;
    --ink-3: #8FA6BC;
    --bg: #F8F5F0;
    --surface: #FFFFFF;
    --line: #E4DCCF;
    /* Dark */
    --dark-bg: #1F3247;
    --dark-bg-2: #152438;
    --on-dark: #F8F5F0;
    --on-dark-muted: #C3CEDA;
    --on-dark-faint: #A8BDD0;
    /* Typography */
    --font-d: 'Fraunces', Georgia, serif;
    --font-b: 'Inter', system-ui, sans-serif;
    --font-alt: 'Anton', Impact, sans-serif;
    /* Spacing */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(31,50,71,.04);
    --shadow: 0 4px 16px rgba(31,50,71,.06);
    --shadow-lg: 0 16px 40px rgba(31,50,71,.10);
    /* Button */
    --btn-radius: 999px;
    /* Card */
    --card-border: 1px solid #E4DCCF;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #F8F5F0;
        --ink-2: #C3CEDA;
        --ink-3: #A8BDD0;
        --bg: #152438;
        --surface: #1F3247;
        --line: #2A3F57;
    }
}

/* Amazigh symbol backgrounds */
.cb-amazigh-bg::before {
    content: "ⵣ";
    font-size: 15rem;
    color: var(--primary);
    opacity: 0.04;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cb-amazigh-bg::after {
    content: "ⵢ";
    font-size: 12rem;
    color: var(--sand);
    opacity: 0.04;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Content Builder layout */
.cb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cb-section {
    padding: 80px 0;
}

.cb-card {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cb-button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 32px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s ease;
}

.cb-button:hover {
    background: var(--primary-d);
}

.cb-button--secondary {
    background: var(--accent);
}

.cb-button--secondary:hover {
    background: var(--accent-d);
}

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

.cb-text-left {
    text-align: left;
}

.cb-text-right {
    text-align: right;
}

.cb-heading--display {
    font-family: var(--font-alt);
    font-size: 3rem;
    line-height: 1.2;
    color: var(--ink);
}

.cb-heading--section {
    font-family: var(--font-d);
    font-size: 2rem;
    line-height: 1.3;
    color: var(--ink);
}

.cb-heading--small {
    font-family: var(--font-d);
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--ink-2);
}

/* Grid utilities */
.cb-grid {
    display: grid;
    gap: 24px;
}

.cb-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cb-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .cb-grid--2,
    .cb-grid--3,
    .cb-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Hero blocks */
.cb-hero-full {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.cb-hero-full .cb-hero-title {
    font-family: var(--font-alt);
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.cb-hero-compact {
    padding: 80px 24px;
    text-align: center;
}

.cb-hero-compact .cb-hero-title {
    font-family: var(--font-alt);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* Stats bar */
.cb-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 48px 24px;
    background: var(--primary);
    color: #fff;
}

.cb-stats-bar .cb-stat-number {
    font-family: var(--font-alt);
    font-size: 2.5rem;
    font-weight: 700;
}

.cb-stats-bar .cb-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Divider */
.cb-divider {
    height: 4px;
    background: var(--primary);
    margin: 32px 0;
    border: none;
}

.cb-divider--geometric {
    background: linear-gradient(90deg, transparent, var(--primary), var(--sand), var(--primary), transparent);
}

/* Features list */
.cb-features-list {
    display: grid;
    gap: 24px;
}

.cb-features-list .cb-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cb-features-list .cb-feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cb-features-list .cb-feature-content h3 {
    font-family: var(--font-d);
    margin-bottom: 4px;
}

/* Booking form */
.cb-booking-form {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.cb-booking-form .cb-form-group {
    margin-bottom: 20px;
}

.cb-booking-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--ink);
}

.cb-booking-form input,
.cb-booking-form select,
.cb-booking-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-b);
    font-size: 1rem;
}

.cb-booking-form input:focus,
.cb-booking-form select:focus,
.cb-booking-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

/* Testimonials */
.cb-testimonials {
    display: grid;
    gap: 24px;
}

.cb-testimonial {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
}

.cb-testimonial-stars {
    color: #E8D5B7;
    margin-bottom: 8px;
}

.cb-testimonial-author {
    font-weight: 600;
    color: var(--ink);
}

.cb-testimonial-text {
    color: var(--ink-2);
    font-style: italic;
}

/* Gallery */
.cb-gallery {
    display: grid;
    gap: 16px;
}

.cb-gallery-grid {
    display: grid;
    gap: 16px;
}

.cb-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.cb-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ */
.cb-faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.cb-faq-item {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.cb-faq-question {
    font-family: var(--font-d);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.cb-faq-answer {
    color: var(--ink-2);
    margin-top: 8px;
    display: none;
}

.cb-faq-item.open .cb-faq-answer {
    display: block;
}

/* Header nav */
.cb-header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cb-header-nav .cb-logo {
    font-family: var(--font-alt);
    font-size: 1.5rem;
    color: var(--primary);
}

.cb-header-nav .cb-nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cb-header-nav .cb-nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

/* Footer */
.cb-footer {
    background: var(--ink);
    color: var(--on-dark);
    padding: 48px 24px;
}

.cb-footer h3,
.cb-footer h4 {
    color: #fff;
    font-family: var(--font-d);
    margin-bottom: 16px;
}

.cb-footer a {
    color: var(--on-dark-muted);
    text-decoration: none;
}

.cb-footer a:hover {
    color: #fff;
}
