/* Frontend CSS — Public Site Styles */
[x-cloak] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }

/* ── NAVIGATION ──────────────────────────────── */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar-logo {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.navbar-link {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.14s;
}
.navbar-link:hover { color: #4f46e5; }
.navbar-link.active { color: #4f46e5; }
.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #4f46e5;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.14s;
}
.navbar-cta:hover { background: #4338ca; }

/* ── HERO ────────────────────────────────────── */
.hero {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── SECTIONS ────────────────────────────────── */
.section {
    padding: 80px 24px;
}
.section-alt {
    background: #f9fafb;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0 0 16px;
}
.section-subtitle {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin: 0 0 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── CARDS ───────────────────────────────────── */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}
.card-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ── GRID ────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #4f46e5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s;
}
.btn-primary:hover { background: #4338ca; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s, border-color 0.14s;
}
.btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; }

/* ── FOOTER ──────────────────────────────────── */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 48px 24px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
@media (max-width: 768px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}
.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
}
.footer-link {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.14s;
}
.footer-link:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ── FORMS ───────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.14s, box-shadow 0.14s;
}
.form-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.14s, box-shadow 0.14s;
}
.form-textarea:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-error { margin-top: 4px; font-size: 12px; color: #dc2626; }

/* ── CMS CONTENT ─────────────────────────────── */
.content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}
.content h1 { font-size: 32px; font-weight: 700; color: #111827; margin: 32px 0 16px; }
.content h2 { font-size: 24px; font-weight: 600; color: #111827; margin: 28px 0 12px; }
.content h3 { font-size: 20px; font-weight: 600; color: #111827; margin: 24px 0 10px; }
.content p { margin: 0 0 16px; }
.content a { color: #4f46e5; text-decoration: underline; }
.content a:hover { color: #4338ca; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 24px; }
.content li { margin-bottom: 8px; }
.content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.content blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 16px;
    margin: 16px 0;
    color: #6b7280;
    font-style: italic;
}

/* ── TOAST ───────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); min-width: 280px; max-width: 400px; pointer-events: auto; }
.toast-success { background: #16a34a; color: #fff; }
.toast-error   { background: #dc2626; color: #fff; }
.toast-info    { background: #2563eb; color: #fff; }
.toast-warning { background: #d97706; color: #fff; }
