/* =============================================================
   Level3 AI — custom.css
   Overrides and extensions on top of template style.css
   ============================================================= */

/* ---- CSS Variables ----------------------------------------- */
:root {
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: #3b82f6;
    --bg: #0b0f1a;
    --surface: #111827;
    --surface2: #1a2235;
    --text: #e8edf5;
    --text-muted: #8898b0;
    --border: rgba(255,255,255,0.08);
    --radius: 10px;
    --nav-height: 70px;
}

/* ---- Base --------------------------------------------------- */
body {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    font-size: 18px;
    line-height: 1.85;
    font-family: 'Raleway', 'Open Sans', sans-serif;
}

/* ---- Typography overrides ---------------------------------- */
h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--text) !important;
}

p { color: var(--text); }

a { color: var(--accent); }
a:hover { color: var(--accent-light); text-decoration: none; }

/* ---- Navigation -------------------------------------------- */
.custom-navbar {
    background-color: var(--bg) !important;
    border-bottom: 1px solid var(--border);
    min-height: var(--nav-height);
}
.custom-navbar .navbar-brand {
    color: var(--text) !important;
    font-size: 20px;
    font-weight: 700;
    line-height: var(--nav-height);
    height: var(--nav-height);
    padding: 0 15px;
}
.custom-navbar .navbar-nav > li > a {
    color: var(--text-muted) !important;
    font-size: 15px;
    font-weight: 500;
    padding-top: 25px;
    padding-bottom: 25px;
}
.custom-navbar .navbar-nav > li > a:hover,
.custom-navbar .navbar-nav > li.active > a {
    color: var(--accent) !important;
    background: transparent !important;
}
.custom-navbar .navbar-toggle .icon-bar {
    background-color: var(--text) !important;
}
.custom-navbar .navbar-toggle {
    border-color: var(--border);
    margin-top: 18px;
}
@media (max-width: 767px) {
    .custom-navbar .navbar-collapse {
        background-color: var(--surface);
        border-top: 1px solid var(--border);
    }
    .custom-navbar .navbar-nav > li > a {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* ---- Page Hero (inner pages) ------------------------------- */
.page-hero {
    background-color: var(--surface);
    color: var(--text);
    padding: 120px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--text) !important;
    margin-bottom: 18px;
}
.page-hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Section Label ----------------------------------------- */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ---- Home Hero --------------------------------------------- */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg);
    color: var(--text);
    padding: 120px 0 80px;
}
#home h3.hero-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}
#home h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.12;
    color: var(--text) !important;
    margin-bottom: 24px;
}
#home p.hero-sub {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.7;
}
.btn-accent {
    background-color: var(--accent);
    color: #ffffff !important;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 12px;
    transition: background 0.2s;
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    color: #ffffff !important;
}
.btn-outline {
    background-color: transparent;
    color: var(--text) !important;
    border: 2px solid var(--border);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}

/* ---- Sections ---------------------------------------------- */
.section-dark {
    background-color: var(--bg);
    color: var(--text);
    padding: 90px 0;
}
.section-alt {
    background-color: var(--surface);
    color: var(--text);
    padding: 90px 0;
}
.section-title-block {
    text-align: center;
    margin-bottom: 60px;
}
.section-title-block h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text) !important;
    margin-bottom: 16px;
}
.section-title-block p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ---- Service / Feature Cards ------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 20px;
}
.feature-card {
    background-color: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-card .card-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* ---- Stats Bar --------------------------------------------- */
.stats-bar {
    background-color: var(--accent);
    color: #ffffff;
    padding: 50px 0;
}
.stats-bar .stat-item { text-align: center; }
.stats-bar .stat-number {
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.stats-bar .stat-label {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
}

/* ---- How It Works Steps ------------------------------------ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 20px;
}
.step-card {
    background-color: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}
.step-num {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background-color: rgba(37,99,235,0.12);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    margin-bottom: 18px;
}
.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 10px;
}
.step-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Team Cards -------------------------------------------- */
.team-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 20px;
}
.team-card-custom {
    background-color: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
}
.team-avatar-custom {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 10%;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid var(--border);
}
.team-card-custom h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 4px;
}
.team-card-custom .team-role {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.team-card-custom .team-bio {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}
.team-card-custom .team-email {
    font-size: 14px;
    color: var(--accent);
    word-break: break-all;
}

/* ---- Pricing Grid ------------------------------------------ */
.pricing-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 20px;
    align-items: start;
}
.pricing-card-custom {
    background-color: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
}
.pricing-card-custom.featured {
    border-color: var(--accent);
    background-color: var(--surface);
    transform: scale(1.03);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pricing-card-custom h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 16px;
}
.pricing-price {
    font-size: 46px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.pricing-price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.pricing-features li {
    font-size: 15px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li::before {
    content: '\f00c';
    font-family: 'FontAwesome';
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
}

/* ---- FAQ Accordion ----------------------------------------- */
.faq-section {
    background-color: var(--bg);
    color: var(--text);
    padding: 90px 0;
}
.faq-section .panel {
    background-color: var(--surface2) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
}
.faq-section .panel-heading {
    background-color: var(--surface2) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}
.faq-section .panel-title a {
    color: var(--text) !important;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 16px 20px;
}
.faq-section .panel-body {
    background-color: var(--surface) !important;
    color: var(--text-muted) !important;
    font-size: 16px;
    padding: 20px;
}

/* ---- Blog Grid --------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}
.blog-grid > [class*="col-"] {
    display: flex;
}

.blog-card {
    background-color: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.blog-card:hover { border-color: var(--accent); }
.blog-card a { text-decoration: none; color: inherit; display: block; }
.blog-card-img {
    width: 100%;
    height: 200px;
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px;
    flex: 1;
}
.blog-card-body time {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}
.blog-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-body p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Footer ------------------------------------------------ */
footer {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    padding: 70px 0 30px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
footer h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px;
}
footer p { font-size: 15px; color: var(--text-muted); }
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer ul li { margin-bottom: 10px; }
footer ul li a {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
}
footer ul li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Contact Page ------------------------------------------ */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.contact-list li {
    font-size: 16px;
    color: var(--text-muted);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contact-list li i {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}
.contact-list li a { color: var(--accent); }

/* ---- Form -------------------------------------------------- */
.form-control {
    background-color: var(--surface2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-size: 15px;
    border-radius: 6px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.form-control:focus {
    border-color: var(--accent) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control-submit {
    background-color: var(--accent);
    color: #ffffff !important;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.form-control-submit:hover { background-color: var(--accent-dark); }

/* ---- CTA Section ------------------------------------------- */
.cta-section {
    background-color: var(--accent);
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 32px;
}
.btn-white {
    background-color: #ffffff;
    color: var(--accent) !important;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    transition: opacity 0.2s;
    margin: 6px;
}
.btn-white:hover { opacity: 0.9; }
.btn-white-outline {
    background-color: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    transition: border-color 0.2s;
    margin: 6px;
}
.btn-white-outline:hover { border-color: #ffffff; }

/* ---- About Page -------------------------------------------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    margin-top: 20px;
}
.value-card {
    background-color: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
}
.value-card .card-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 16px;
}
.value-card h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 10px;
}
.value-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.75;
}

/* ---- Investment Badge -------------------------------------- */
.backed-by-section {
    background-color: var(--surface);
    color: var(--text);
    padding: 70px 0;
    text-align: center;
}
.backed-by-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text) !important;
    margin-bottom: 20px;
}
.backed-by-section p { color: var(--text-muted); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ---- Responsive -------------------------------------------- */
@media (max-width: 991px) {
    #home h1 { font-size: 44px; }
    .page-hero h1 { font-size: 38px; }
    .section-title-block h2 { font-size: 32px; }
}
@media (max-width: 767px) {
    #home h1 { font-size: 34px; }
    .page-hero h1 { font-size: 30px; }
    .pricing-card-custom.featured { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Cookie Banner ----------------------------------------- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface2);
    color: var(--text);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-text strong { color: var(--text); font-size: 15px; display: block; margin-bottom: 4px; }
.cookie-text p { font-size: 14px; color: var(--text-muted); margin: 0; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
#cookie-decline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
#cookie-accept {
    background-color: var(--accent);
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* ---- Preloader --------------------------------------------- */
.preloader {
    background-color: var(--bg) !important;
}

/* ---- Legal Pages ------------------------------------------- */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}
.legal-page {
    background-color: var(--bg);
    color: var(--text);
    padding: 60px 0 100px;
}
.legal-page h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text) !important;
    margin: 40px 0 14px;
}
.legal-page p, .legal-page li {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}
.legal-page ul { padding-left: 20px; }
.legal-page a { color: var(--accent); }

/* Site Logo */
.site-logo { height: 36px; width: auto; vertical-align: middle; margin-right: 8px; }

/* Nav menu-trigger inline fix */
.navicon { float: none !important; margin-left: auto !important; }
.menu-trigger {
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  height: auto !important;
}
.menu-trigger .icon {
  font-size: 20px;
  line-height: 1;
}
.menu-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Nav row flex fix */
.navbar .row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}
.brand { float: none !important; }

/* Team card: center avatar and text */
.team-card-custom {
    text-align: center !important;
}
.team-card-custom img {
    margin: 0 auto 16px auto !important;
    display: block !important;
}
