/*
 * Kinderpedia — custom.css
 * Accent: #7c3aed (purple)
 * Theme: Light (Ed-Tech)
 * Template base: 2082 pure_mix (Option A — keep template CSS, add overrides here)
 */

/* =============================================
   CSS Variables
   ============================================= */
:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface2: #f0f2f5;
    --text: #1e293b;
    --text-muted: #64748b;
    --accent: #7c3aed;
    --accent-dark: #6d28d9;
    --accent-light: #ede9fe;
    --border: rgba(0,0,0,0.08);
    --radius: 12px;
    --gap: 40px;
    --nav-height: 70px;
}

/* =============================================
   Typography overrides — remove uppercase/letter-spacing
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
    letter-spacing: normal !important;
}

body {
    color: var(--text) !important;
    background-color: var(--bg) !important;
    font-size: 18px;
    line-height: 1.9;
}

p {
    color: var(--text) !important;
    font-size: 18px;
    line-height: 1.75;
    letter-spacing: normal;
    word-spacing: normal;
}

a {
    color: var(--accent);
}
a:hover {
    color: var(--accent-dark);
}

section, .section {
    color: var(--text);
}

.card, .panel, [class*="card"], [class*="panel"] {
    color: var(--text);
}

/* =============================================
   Nav — hidden/overlay menu: mirror symmetry + Menu label
   ============================================= */
.nav-inner .row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    float: none !important;
}

.navicon {
    float: none !important;
    margin-left: auto !important;
}

.brand a {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--accent) !important;
    letter-spacing: normal !important;
}

.menu-trigger {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    border-radius: 4px;
    cursor: pointer;
}

.menu-trigger .icon {
    font-size: 20px;
    line-height: 1;
}

.menu-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: inherit;
    line-height: 1;
}

/* Overlay menu: large text, high contrast */
#nav-menu a {
    font-size: 36px !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

#nav-menu li.active a {
    color: var(--accent) !important;
    font-weight: 700 !important;
}

#nav-menu a:hover {
    color: var(--accent) !important;
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
    min-height: 620px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-section h1 {
    color: #ffffff !important;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-section p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 640px;
}

.hero-section .section-label {
    display: inline-block;
    color: var(--accent-light) !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    background: rgba(124, 58, 237, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
}

/* =============================================
   Page Hero (inner pages)
   ============================================= */
.page-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    color: #ffffff !important;
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    color: #ffffff !important;
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-hero p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   Section layout
   ============================================= */
.section-light {
    background: #ffffff;
    color: var(--text);
    padding: 80px 0;
}

.section-alt {
    background: var(--surface2);
    color: var(--text);
    padding: 80px 0;
}

.section-dark {
    background: #1e1b4b;
    color: #ffffff !important;
    padding: 80px 0;
}

.section-dark h2, .section-dark h3, .section-dark p {
    color: #ffffff !important;
}

.section h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text) !important;
    margin-bottom: 16px;
}

.section-label {
    display: inline-block;
    color: var(--accent) !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* =============================================
   Buttons
   ============================================= */
.btn-primary {
    background: var(--accent) !important;
    color: #ffffff !important;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark) !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #ffffff !important;
}

.btn-gap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* =============================================
   Feature Cards
   ============================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.feature-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.feature-card .feature-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted) !important;
    font-size: 16px;
    line-height: 1.75;
}

/* =============================================
   Steps Grid
   ============================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.step {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    padding: 28px;
    border-left: 4px solid var(--accent);
}

.step .step-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent) !important;
    display: block;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted) !important;
    font-size: 15px;
    line-height: 1.7;
}

/* =============================================
   Stats / Metrics
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--radius);
    color: var(--text);
}

.stat-card .stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent) !important;
    display: block;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 15px;
    color: var(--text-muted) !important;
    margin-top: 8px;
}

/* =============================================
   Team Cards
   ============================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.team-card {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 10%;
    margin-bottom: 20px;
    border: 4px solid var(--accent-light);
}

.team-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 4px;
}

.team-role {
    color: var(--accent) !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.team-bio {
    color: var(--text-muted) !important;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.team-email {
    color: var(--accent) !important;
    font-size: 14px;
}

/* =============================================
   Pricing Cards
   ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.pricing-card {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.pricing-card .badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text) !important;
    margin-bottom: 12px;
}

.pricing-card .price {
    font-size: 46px;
    font-weight: 700;
    color: var(--accent) !important;
    margin-bottom: 8px;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 18px;
    color: var(--text-muted) !important;
    font-weight: 400;
}

.price-desc {
    color: var(--text-muted) !important;
    font-size: 15px;
    margin-bottom: 24px;
}

.features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.features li {
    color: var(--text) !important;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.features li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
}

/* =============================================
   FAQ / Accordion (Bootstrap 3 style)
   ============================================= */
.faq-section {
    padding: 80px 0;
    background: var(--surface2);
    color: var(--text);
}

.faq-section h2 {
    color: var(--text) !important;
}

.panel-group .panel {
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
    border: 1px solid var(--border) !important;
    background: var(--surface);
    color: var(--text);
}

.panel-heading {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-radius: var(--radius) !important;
    padding: 0;
}

.panel-title a {
    display: block;
    padding: 18px 20px;
    color: var(--text) !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.panel-title a:hover {
    color: var(--accent) !important;
}

.panel-body {
    color: var(--text) !important;
    font-size: 16px;
    line-height: 1.75;
    padding: 16px 20px;
    background: var(--surface);
}

/* =============================================
   Blog / Article listing
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
}
.blog-grid > [class*="col-"] {
    display: flex;
}

.blog-card {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
}

.blog-card-img {
    background: var(--surface2);
    color: var(--text-muted);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-style: italic;
    padding: 16px;
    text-align: center;
}

.blog-card-body {
    padding: 24px;
    color: var(--text);
    flex: 1;
}

.blog-card-body time {
    color: var(--text-muted) !important;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.blog-card-body h3 {
    color: var(--text) !important;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-body p {
    color: var(--text-muted) !important;
    font-size: 15px;
    line-height: 1.65;
}

/* =============================================
   Contact page
   ============================================= */
.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.contact-list li {
    color: var(--text) !important;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-list li i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-list li a {
    color: var(--accent) !important;
}

.contact-form .form-control {
    background: var(--surface);
    color: var(--text) !important;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* =============================================
   About page
   ============================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.value-card {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    padding: 28px;
    border-top: 4px solid var(--accent);
}

.value-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-muted) !important;
    font-size: 15px;
    line-height: 1.7;
}

/* =============================================
   Footer — 3-column grid
   ============================================= */
footer {
    background: #1e1b4b !important;
    color: #ffffff !important;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-grid h3 {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.footer-grid p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 15px;
    line-height: 1.7;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid ul li a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-grid ul li a:hover {
    color: var(--accent-light) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5) !important;
    font-size: 14px;
}

.footer-address {
    color: rgba(255,255,255,0.6) !important;
    font-size: 14px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =============================================
   Cookie Banner
   ============================================= */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1b4b;
    color: #ffffff !important;
    padding: 16px 24px;
    z-index: 9999;
    border-top: 3px solid var(--accent);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cookie-text strong {
    color: #ffffff !important;
    font-size: 15px;
}

.cookie-text p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px;
    margin: 4px 0 0;
}

.cookie-text p a {
    color: var(--accent-light) !important;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

#cookie-accept {
    background: var(--accent);
    color: #ffffff !important;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff !important;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: #ffffff !important;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: #ffffff !important;
    color: var(--accent) !important;
    font-weight: 700;
}

.cta-section .btn-primary:hover {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
}

.cta-section .btn-secondary {
    border-color: rgba(255,255,255,0.6);
    color: #ffffff !important;
}

.cta-section .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff !important;
}

/* =============================================
   Backed By / Investment Section
   ============================================= */
.backed-section {
    background: var(--surface2);
    color: var(--text);
    padding: 64px 0;
    text-align: center;
}

.backed-section h2 {
    color: var(--text) !important;
    font-size: 30px;
    margin-bottom: 24px;
}

.backed-section p {
    color: var(--text-muted) !important;
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.backed-section .funding-badge {
    display: inline-block;
    background: var(--accent);
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 700;
    padding: 10px 32px;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* =============================================
   Container narrow (article / legal pages)
   ============================================= */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

/* =============================================
   Utility
   ============================================= */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }

@media (max-width: 768px) {
    .hero-section h1 { font-size: 38px; }
    .page-hero h1 { font-size: 32px; }
    .section h2 { font-size: 30px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .btn-gap { flex-direction: column; }
    .steps-grid { grid-template-columns: 1fr; }
}

/* 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; }
