/* Allasso — Custom Styles */
/* Option A: Template-as-base (2108_dashboard is Bootstrap 4 based) */
/* This file adds overrides and new component styles on top of tooplate.css */

:root {
    --bg: #0c1222;
    --surface: #131b2e;
    --surface2: #1a2540;
    --text: #e8eaf0;
    --text-muted: #8892a4;
    --accent: #1e40af;
    --accent-dark: #1a3699;
    --accent-light: #3b82f6;
    --border: rgba(255,255,255,0.08);
    --radius: 12px;
    --gap: 40px;
    --nav-height: 70px;
}

/* ===== MANDATORY OVERRIDES ===== */

/* Override template uppercase headings */
h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Force body text to match theme */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text) !important;
    background-color: var(--bg) !important;
    margin: 0;
    padding: 0;
}

/* Force all sections to inherit correct text color */
section, .section {
    color: var(--text);
}

/* Cards: ensure readable text */
.card, .panel, [class*="card"], [class*="panel"] {
    color: var(--text);
}

/* Links must be visible */
a {
    color: var(--accent-light);
}
a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ===== NAVIGATION ===== */

.site-nav {
    height: var(--nav-height);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1000;
}

.site-nav .navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent) !important;
}

.site-nav .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #333 !important;
    padding: 8px 16px !important;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--accent) !important;
}

/* ===== TYPOGRAPHY ===== */

h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

/* ===== HERO ===== */

.hero-section {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}

.hero-section .section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.hero-section h1 {
    font-size: 52px;
    max-width: 700px;
}

.hero-section p {
    font-size: 19px;
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ===== PAGE HERO (inner pages) ===== */

.page-hero {
    padding: 140px 0 60px;
}

.page-hero h1 {
    font-size: 46px;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 600px;
}

/* ===== SECTION LABEL ===== */

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 12px;
}

/* ===== SECTIONS ===== */

.section {
    padding: 80px 0;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 700px;
}

/* ===== BUTTONS ===== */

.btn-primary,
a.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover,
a.btn-primary:hover {
    background: var(--accent-dark);
    color: #ffffff !important;
    text-decoration: none;
}

.btn-secondary,
a.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--accent-light) !important;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--accent-light);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background: var(--accent-light);
    color: #ffffff !important;
    text-decoration: none;
}

.cta-secondary,
a.cta-secondary {
    display: inline-block;
    background: #ffffff;
    color: var(--accent) !important;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.cta-secondary:hover,
a.cta-secondary:hover {
    background: #f0f4ff;
    color: var(--accent-dark) !important;
    text-decoration: none;
}

.btn-gap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== FEATURE CARDS ===== */

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    height: 100%;
}

.feature-card h3 {
    margin-top: 0;
}

.feature-card i {
    display: block;
}

/* ===== STEP NUMBERS ===== */

.step-num {
    display: inline-block;
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ===== STAT CARDS ===== */

.stat-card {
    padding: 32px 16px;
    border-radius: var(--radius);
}

.stat-num {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ===== PRICING ===== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    padding: 40px 32px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.04);
}

.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-light);
    margin: 16px 0;
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .price-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
    flex-grow: 1;
}

.pricing-card .features li {
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.pricing-card .features li i {
    color: var(--accent-light);
    margin-right: 8px;
}

/* ===== FAQ ===== */

.accordion .card {
    border-radius: 8px !important;
    margin-bottom: 8px;
}

.accordion .card-header {
    background: transparent;
    border-bottom: none;
    padding: 0;
}

.accordion .btn-link {
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 20px;
    display: block;
    width: 100%;
    text-align: left;
}

.accordion .btn-link:hover {
    text-decoration: none;
}

.accordion .card-body {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 20px 20px;
}

/* ===== CTA SECTION ===== */

.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 19px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* ===== TEAM ===== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.team-card {
    padding: 40px 32px;
    border-radius: var(--radius);
    text-align: center;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 10%;
    margin-bottom: 20px;
}

.team-role {
    color: var(--accent-light);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

.team-email {
    display: inline-block;
    margin-top: 12px;
    font-size: 15px;
    color: var(--accent-light) !important;
}

/* ===== CONTACT ===== */

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-list li i {
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.contact-form {
    padding: 32px;
    border-radius: var(--radius);
}

.contact-form .form-control {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 6px;
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form .form-control:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
    outline: none;
}

/* ===== BLOG GRID ===== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.blog-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
}

.blog-card-img {
    height: 200px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    padding: 16px;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-body time {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--text);
}

.blog-card-body p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== ARTICLE PAGE ===== */

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */

footer {
    padding: 60px 0 30px;
}

footer h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

footer p {
    font-size: 15px;
    line-height: 1.7;
    color: #9ca3af;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 15px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-address {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ===== COOKIE BANNER ===== */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 9999;
    padding: 20px 0;
}

.cookie-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--text);
}

.cookie-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.cookie-text a {
    color: var(--accent-light);
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#cookie-decline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

#cookie-accept {
    background: var(--accent);
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991px) {
    h1 { font-size: 38px; }
    h2 { font-size: 32px; }
    .hero-section { min-height: auto; padding: 120px 0 60px; }
    .hero-section h1 { font-size: 38px; }
    .page-hero { padding: 120px 0 40px; }
    .page-hero h1 { font-size: 36px; }
    .section { padding: 60px 0; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    .hero-section h1 { font-size: 32px; }
    .cookie-content { flex-direction: column; text-align: center; }
    .btn-gap { justify-content: center; }
}
