/* AuditPulsar - custom.css */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --accent: #7c3aed;
    --accent-dark: #6d28d9;
    --accent-light: #ede9fe;
    --bg: #0d0f18;
    --surface: #151825;
    --surface2: #1c2033;
    --text: #e8eaf0;
    --text-muted: #8892a4;
    --border: rgba(255,255,255,0.08);
    --radius: 12px;
    --gap: 40px;
    --nav-height: 72px;
}

/* =============================================
   GLOBAL RESETS & TYPOGRAPHY
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text);
    background-color: var(--bg);
}

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

h1 { font-size: 58px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 42px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.4; }
p  { font-size: 18px; line-height: 1.9; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

/* Container narrow for text-heavy pages */
.container-narrow { max-width: 720px; margin: 0 auto; }

/* =============================================
   NAVIGATION OVERRIDES
   ============================================= */
.navbar {
    background-color: rgba(13, 15, 24, 0.96);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--nav-height);
}

.navbar .container {
    display: flex;
    align-items: center;
    min-height: var(--nav-height);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 36px;
    width: auto;
    max-width: 200px;
}

/* Template nav cleanup */
.nav-item {
    margin-bottom: 0 !important;
    background-image: none !important;
}
.site-logo {
    max-width: none !important;
}

/* Template-specific nav structure */
.navbar-header {
    display: flex;
    align-items: center;
}

/* BS3 navbar link style */
.navbar-nav > li > a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 10px 14px;
    line-height: 1;
}
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
    color: var(--text) !important;
    background-color: transparent !important;
}

/* Scroll-triggered active state */
.header.active,
nav.navbar.active {
    background-color: rgba(13, 15, 24, 0.98) !important;
}
.header.active .navbar-nav > li > a,
nav.navbar.active .navbar-nav > li > a {
    color: var(--text-muted) !important;
}

/* CTA button in nav */
.nav-cta a {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}
.nav-cta a:hover {
    background-color: var(--accent-dark) !important;
    color: #ffffff !important;
}

/* =============================================
   HERO SECTION OVERRIDES
   ============================================= */
#home,
.hero-section {
    min-height: 620px;
    background: var(--bg);
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
}

/* Override template white hero container */
.header-thumb {
    background: transparent !important;
    border: none !important;
}

.home-info h3,
.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.home-info h1 { color: var(--text); margin-bottom: 20px; }
.home-info p  { color: var(--text-muted); font-size: 20px; margin-bottom: 32px; }

/* Template overlay must not block clicks */
.tm-bg-overlay,
[class*="overlay"] {
    pointer-events: none !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary,
.btn-accent {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff !important;
    padding: 13px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s;
}
.btn-primary:hover,
.btn-accent:hover {
    background-color: var(--accent-dark);
    color: #ffffff !important;
}

.btn-secondary,
.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text) !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover,
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}

.btn-gap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* =============================================
   SECTIONS
   ============================================= */
.section-dark { background: var(--bg); color: var(--text); }
.section-alt  { background: var(--surface); color: var(--text); }
.section-alt2 { background: var(--surface2); color: var(--text); }

.section-padding,
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
    background: var(--surface);
    color: var(--text);
    padding: 120px 0 70px;
    text-align: center;
}
.page-hero h1 { font-size: 46px; margin-bottom: 16px; }
.page-hero p  { color: var(--text-muted); font-size: 20px; max-width: 600px; margin: 0 auto; }

/* =============================================
   FEATURE CARDS
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    color: var(--text);
    transition: border-color 0.2s;
}
.feature-card:hover {
    border-color: var(--accent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    background: rgba(124, 58, 237, 0.12);
    border-radius: 10px;
    margin-bottom: 18px;
}

/* R81: Force accent color on all icons */
.feature-icon .fa,
.card-icon .fa,
.step-icon .fa { color: var(--accent) !important; }

.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--text); }
.feature-card p  { font-size: 16px; color: var(--text-muted); margin: 0; }

/* =============================================
   STEPS / HOW IT WORKS (R80)
   ============================================= */
.steps-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.steps-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.step {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.step-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 14px;
}

.step h3 { font-size: 20px; margin-bottom: 10px; color: var(--text); }
.step p  { font-size: 16px; color: var(--text-muted); margin: 0; }

/* =============================================
   STATS / COUNTERS
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label { font-size: 16px; color: var(--text-muted); }

/* =============================================
   TEAM CARDS
   ============================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.team-avatar {
    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 h3    { font-size: 20px; margin-bottom: 6px; color: var(--text); }
.team-role       { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.team-bio        { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.team-email      { font-size: 14px; color: var(--accent); margin-top: 14px; display: block; }

/* =============================================
   PRICING
   ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    color: var(--text);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: var(--surface2);
    transform: scale(1.03);
}

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

.pricing-card h3 { font-size: 22px; margin-bottom: 16px; color: var(--text); }

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}
.price span  { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.price-desc  { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

.features    { list-style: none; padding: 0; margin: 0 0 28px; }
.features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text);
}
.features li:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    color: var(--accent);
    margin-right: 10px;
}

/* FAQ Accordion */
.faq-section { background: var(--surface); color: var(--text); }

.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    padding: 20px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    color: var(--text-muted);
    font-size: 16px;
    padding: 0 0 20px;
    display: none;
}
.faq-answer.open { display: block; }

/* =============================================
   BLOG GRID (R78)
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { border-color: var(--accent); }
.blog-card a     { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }

.blog-card-img {
    width: 100%;
    height: 200px;
    background: var(--surface2);
    overflow: hidden;
    flex-shrink: 0;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-body time  { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: block; }
.blog-card-body h3    { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text); flex: 1; }
.blog-card-body p     { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* =============================================
   FOOTER
   ============================================= */
footer,
#footer {
    background: var(--surface) !important;
    color: var(--text) !important;
    padding: 70px 0 30px !important;
    border-top: 1px solid var(--border);
}

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

footer h3, #footer h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 20px;
}
footer p, #footer p { font-size: 15px; color: var(--text-muted) !important; }

footer ul, #footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li, #footer ul li { margin-bottom: 10px; }
footer ul li a, #footer ul li a {
    font-size: 15px;
    color: var(--text-muted) !important;
    text-decoration: none;
}
footer ul li a:hover, #footer ul li a:hover { color: var(--accent) !important; }

.footer-address { font-size: 14px; color: var(--text-muted); margin-top: 10px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p { font-size: 14px; color: var(--text-muted) !important; margin: 0; }

/* Hide template social icons in footer */
.social-icon { display: none !important; }
/* Hide template footer design credit */
.copyright-text a { display: none; }

/* =============================================
   COOKIE BANNER
   ============================================= */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface2);
    border-top: 1px solid var(--border);
    color: var(--text);
    z-index: 9999;
    padding: 18px 0;
}

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

.cookie-text strong { font-size: 15px; color: var(--text); 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: 10px; flex-shrink: 0; }

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

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

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: var(--accent);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 { color: #ffffff; margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 32px; }

.cta-section .btn-white {
    display: inline-block;
    background: #ffffff;
    color: var(--accent) !important;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.cta-section .btn-white:hover { opacity: 0.9; color: var(--accent) !important; }

/* =============================================
   VALUES / CARD ROW
   ============================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.value-card {
    padding: 32px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}
.value-card .fa { font-size: 28px; color: var(--accent); margin-bottom: 16px; }
.value-card h3  { font-size: 20px; margin-bottom: 10px; color: var(--text); }
.value-card p   { font-size: 16px; color: var(--text-muted); margin: 0; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-list { list-style: none; padding: 0; }
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-muted);
}
.contact-list .fa { color: var(--accent); font-size: 18px; margin-top: 3px; flex-shrink: 0; }

.contact-form .form-control {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 14px;
}
.contact-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface2);
    color: var(--text);
}
.contact-form textarea.form-control { resize: vertical; min-height: 130px; }

/* =============================================
   INTEGRATIONS / LOGOS ROW
   ============================================= */
.integrations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}
.integration-tag {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    h1 { font-size: 44px; }
    h2 { font-size: 34px; }
    .features-grid  { grid-template-columns: repeat(2, 1fr); }
    .steps-grid-3   { grid-template-columns: repeat(2, 1fr); }
    .steps-grid-4   { grid-template-columns: repeat(2, 1fr); }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .team-grid      { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid   { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .blog-grid      { grid-template-columns: repeat(2, 1fr); }
    .footer-grid    { grid-template-columns: 1fr 1fr; }
    .values-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    h1 { font-size: 34px; }
    h2 { font-size: 28px; }
    .features-grid  { grid-template-columns: 1fr; }
    .steps-grid-3   { grid-template-columns: 1fr; }
    .steps-grid-4   { grid-template-columns: 1fr; }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .team-grid      { grid-template-columns: 1fr; }
    .blog-grid      { grid-template-columns: 1fr; }
    .footer-grid    { grid-template-columns: 1fr; }
    .values-grid    { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; align-items: flex-start; }
}

/* === Article / Blog image sizing (R-IMG) === */
.img-fluid,
.blog-hero-img,
.article-thumbnail img,
.article-thumbnail,
article img,
.post-content img,
.container-narrow img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px;
    margin: 24px 0;
}
