/* Page-specific styles */

.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.flash-messages {
    padding: var(--space-3) var(--space-4) 0;
}

@media (min-width: 768px) {
    .flash-messages {
        padding-inline: var(--space-6);
    }
}

/* ── Hero ── */

.hero-section {
    position: relative;
    padding: var(--space-10) 0 var(--space-8);
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-subtle) 50%, var(--surface) 100%);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, var(--primary-muted) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.logo-animation-container {
    width: 100%;
    max-width: 400px;
    padding: var(--space-4);
}

.hero-section h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-4);
    max-width: 640px;
}

.hero-section .lead {
    max-width: 560px;
    margin-bottom: var(--space-5);
}

@media (max-width: 767px) {
    .hero-section {
        padding: var(--space-8) 0 var(--space-6);
    }

    .hero-section h1 {
        font-size: var(--text-2xl);
    }
}

/* ── Service cards ── */

.service-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-card .fa-3x {
    font-size: 2rem;
    color: var(--primary);
}

/* ── Team cards ── */

.team-member-card {
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}

.team-member-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.team-member-card img,
.team-member-card .avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-inline: auto;
    margin-bottom: var(--space-3);
}

.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-muted);
    color: var(--primary);
}

/* ── Feature highlight box ── */

.feature-box {
    background: var(--primary-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.feature-box h4 {
    font-size: var(--text-md);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.feature-box li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    list-style: none;
}

.feature-box ul {
    padding: 0;
    margin: 0;
}

.feature-box .fa-check-circle {
    color: var(--success);
    margin-top: 2px;
}

/* ── CTA banner ── */

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--primary-text);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
}

.cta-banner h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.cta-banner .lead {
    color: inherit;
    opacity: 0.9;
    margin-bottom: var(--space-4);
}

.cta-banner .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: transparent;
}

.cta-banner .btn-light:hover {
    background: #ffffff;
    color: #0f172a;
}

.cta-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--primary-text);
}

.section-cta .lead,
.section-cta .text-muted {
    color: inherit !important;
    opacity: 0.9;
}

.section-cta .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: transparent;
}

.section-cta .btn-light:hover {
    background: #ffffff;
    color: #0f172a;
}

.section-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* ── Contact info rows ── */

.contact-row {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.contact-row i {
    color: var(--primary);
    margin-top: 2px;
}

.contact-row h6 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.contact-row p,
.contact-row a {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.contact-row a:hover {
    color: var(--primary);
}

/* ── Message bubble ── */

.message-bubble {
    padding: var(--space-3);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
}

/* ── Login page ── */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--bg);
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, var(--primary-muted) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(129, 140, 248, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

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

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    padding: var(--space-5) var(--space-4);
    text-align: center;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.login-header i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.login-header h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.login-header p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

.login-body {
    padding: var(--space-4);
}

.login-footer {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.btn-login {
    width: 100%;
    padding: var(--space-3);
    background: var(--primary);
    color: var(--primary-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-login:hover {
    background: var(--primary-hover);
}

.login-page .theme-toggle {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
}

/* ── Admin mobile menu button ── */

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: var(--surface-raised);
}

.sidebar-toggle:hover {
    background: var(--surface-hover);
    color: var(--text);
}

@media (min-width: 992px) {
    .sidebar-toggle { display: none; }
}

/* ── Page title bar (admin) ── */

.page-title-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.page-title-bar h1 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0;
}

/* ── Highlight panel ── */

.highlight-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--primary-text);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
}

.highlight-panel i {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
    opacity: 0.9;
}

.highlight-panel h3 {
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.highlight-panel p {
    font-size: var(--text-sm);
    margin: 0;
    opacity: 0.9;
}

/* ── Empty state ── */

.empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.empty-state h4 {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

/* ── Conversation thread ── */

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    flex-shrink: 0;
}

.reply-bubble {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    font-size: var(--text-sm);
}

.reply-internal {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
}
