﻿/* Decube - Custom CSS */
/* Accent color: #6c5ce7 */

:root {
    --accent: #6c5ce7;
    --accent-dark: #5a4bd1;
    --bg-dark: #1a202c;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --border-light: #e2e8f0;
    --section-bg: #f7fafc;
}

/* Accent color utilities */
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }

/* Buttons */
.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
  transition: background-color 0.2s ease;
}
.btn-accent:hover, .btn-accent:focus {
    background-color: var(--accent-dark);
    color: #ffffff;
}

.btn-outline-accent {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
  transition: all 0.2s ease;
}
.btn-outline-accent:hover, .btn-outline-accent:focus {
    background-color: var(--accent);
    color: #ffffff;
}

/* Navbar */
.navbar-brand img { max-height: 36px; }
.nav-link { font-size: 15px; color: var(--text-dark) !important; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }

/* Section padding */
.section-padding { padding: 80px 0; }

/* Small title label */
.small-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

/* Hero */
.hero { min-height: 540px; position: relative; }
.hero h1, .hero h2 { color: #ffffff; }
.hero p { color: rgba(255,255,255,0.9); }
.hero-section, [class*="hero"] { position: relative; min-height: 500px; }
.hero-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(26,32,44,0.50); pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; }

/* About section */
.about-image { width: 100%; border-radius: 8px; object-fit: cover; }
.about-image-wrap { border-radius: 8px; overflow: hidden; }
.about-image-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(26,32,44,0.9));
    padding: 20px;
}
.about-thumb { padding: 30px; border-radius: 8px; }
.about-info { padding: 0; }

/* Feature cards */
.feature-card { border-radius: 10px; transition: box-shadow 0.2s; }
.feature-card:hover { box-shadow: 0 8px 30px rgba(108,92,231,0.12) !important; }
.feature-icon-symbol { font-size: 36px; color: var(--accent); }

/* Btn link accent */
.btn-link-accent {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.btn-link-accent:hover { color: var(--accent-dark); text-decoration: underline; }

/* Stats bar */
.stats-bar { background: #1a202c; }
.stat-item h3 { font-size: 32px; font-weight: 700; }

/* Integration logos */
.integration-logo { max-height: 48px; max-width: 80px; object-fit: contain; }
.integration-item { border: 1px solid var(--border-light); border-radius: 8px; transition: border-color 0.2s; }
.integration-item:hover { border-color: var(--accent); }

/* Steps */
.step-number { font-size: 48px; font-weight: 800; color: var(--accent); opacity: 0.2; line-height: 1; }
.step-card { border-radius: 10px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.step-icon { max-height: 48px; }

/* Footer */
.site-footer { background: var(--bg-dark); }
.footer-link { color: #718096; text-decoration: none; font-size: 15px; }
.footer-link:hover { color: var(--accent); }
.footer-links li { margin-bottom: 8px; }

/* Headings - override template uppercase */
h1, h2, h3, h4, h5, h6 {
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-dark);
}

/* ===== CONTAINER-NARROW (article + legal pages) ===== */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Page hero (blog articles, legal pages) */
.page-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 140px 0 40px;
    color: #fff;
}
.page-hero h1 {
    color: #fff;
    font-size: 38px;
    line-height: 1.25;
    margin-top: 12px;
    text-transform: none;
    letter-spacing: 0;
}
.page-hero .back-link {
    color: #a0aec0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 16px;
}
.page-hero .back-link:hover { color: #fff; }
.page-hero time { color: var(--accent); font-size: 14px; font-weight: 600; display: block; margin-bottom: 8px; }
.article-meta { color: #a0aec0; font-size: 15px; margin-top: 10px; }

/* Article body */
.article-body { padding: 50px 0 60px; }
.article-body h2 {
    font-size: 26px;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
}
.article-body p { font-size: 18px; line-height: 1.8; color: #4a5568; margin-bottom: 20px; }
.article-body ul, .article-body ol { font-size: 18px; line-height: 1.8; color: #4a5568; margin-bottom: 20px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body .article-thumbnail { border-radius: 10px; overflow: hidden; margin-bottom: 36px; }
.article-body .article-thumbnail img { width: 100%; height: auto; display: block; }

/* Article CTA box */
.article-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 10px;
    padding: 36px;
    margin-top: 40px;
    text-align: center;
}
.article-cta h3 { color: #fff; margin-bottom: 12px; text-transform: none; letter-spacing: 0; }
.article-cta p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 20px; }

/* Blog listing page */
.blog-listing-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 60px 0 50px;
}
.blog-listing-hero h1 { color: #fff; font-size: 48px; text-transform: none; letter-spacing: 0; }
.blog-listing-hero p { color: #a0aec0; font-size: 18px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}
@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { box-shadow: 0 8px 30px rgba(108,92,231,0.13); transform: translateY(-3px); }
.blog-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.blog-card-img { height: 200px; overflow: hidden; background: #e2e8f0; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body time { color: var(--accent); font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 18px; color: var(--text-dark); margin-bottom: 10px; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.blog-card-body p { color: #718096; font-size: 15px; line-height: 1.6; flex: 1; margin-bottom: 12px; }
.blog-card-body .read-more { color: var(--accent); font-weight: 600; font-size: 15px; margin-top: auto; }

/* Legal pages */
.legal-page { padding: 50px 0 70px; }
.legal-page h1 { font-size: 36px; color: var(--text-dark); text-transform: none; letter-spacing: 0; }
.legal-page h2 { font-size: 22px; color: var(--text-dark); margin-top: 36px; margin-bottom: 14px; text-transform: none; letter-spacing: 0; }
.legal-page h3 { font-size: 18px; color: var(--text-dark); margin-top: 24px; margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.legal-page p { font-size: 17px; line-height: 1.8; color: #4a5568; margin-bottom: 18px; }
.legal-page ul, .legal-page ol { font-size: 17px; line-height: 1.8; color: #4a5568; margin-bottom: 18px; padding-left: 24px; }
.legal-page li { margin-bottom: 8px; }
.legal-page .legal-header { padding: 50px 0 30px; background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); }
.legal-page .legal-header h1 { color: #fff; }
.legal-page .legal-header p { color: #a0aec0; font-size: 16px; }

/* Team page */
.team-card { background: #fff; border-radius: 10px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); text-align: center; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.team-card h4 { font-size: 20px; color: var(--text-dark); text-transform: none; letter-spacing: 0; }
.team-card .team-role { color: var(--accent); font-size: 14px; font-weight: 600; }
.team-card p { font-size: 15px; color: #718096; line-height: 1.6; }

/* Pricing table */
.pricing-card { border-radius: 12px; padding: 36px; background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.08); position: relative; }
.pricing-card.featured { border: 2px solid var(--accent); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 16px; border-radius: 20px; }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--text-dark); }
.pricing-period { font-size: 16px; color: #718096; }
.pricing-features { list-style: none; padding: 0; margin: 24px 0; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 16px; color: #4a5568; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: "âœ“ "; color: var(--accent); font-weight: 700; }

/* Contact form */
.contact-form-wrap { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,92,231,0.12); }

/* Inline code styling for articles */
.article-body code {
    background: #f1f0ff;
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 16px;
}
.article-body pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ============================================================
   Fix 3: Pricing badge overflow fix
   ============================================================ */
.pricing-card {
    overflow: visible !important;
}
.pricing-badge {
    z-index: 10;
}

/* ============================================================
   Fix pricing card label clipping
   ============================================================ */
.pricing-card, .price-card, .card-inner, [class*="pricing"] > [class*="col"] > div {
  overflow: visible !important;
}
