/*
Theme Name: Basic Insight
Theme URI: https://basicinsight.my
Description: Clean corporate child theme for Basic Insight Sdn Bhd
Author: Basic Insight
Version: 1.0.0
Template: bb-theme
Text Domain: basicinsight
*/

:root {
    --primary: #1B2A4A;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --border: #E5E7EB;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s;
    height: 72px;
    display: flex; align-items: center;
}
.site-header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-logo img { height: 36px; width: auto; }
.main-nav { display: flex; gap: 32px; list-style: none; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 15px; transition: color 0.2s; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.2s; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 15px; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ===== HERO ===== */
.hero { padding: 140px 0 80px; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 700; color: var(--primary); line-height: 1.15; margin-bottom: 20px; }
.hero .subtitle { font-size: 20px; color: var(--text-light); margin-bottom: 32px; font-weight: 400; line-height: 1.5; }
.hero-image img { border-radius: 16px; width: 100%; object-fit: cover; }

.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-light);
}
.page-hero h1 { font-size: 44px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--primary); color: #fff; }
.section-light { background: var(--bg-light); }
.section-title { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.section-dark .section-title { color: #fff; }
.section-subtitle { font-size: 17px; color: var(--text-light); margin-bottom: 48px; max-width: 600px; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== SERVICE CARDS (Home) ===== */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative; border-radius: 16px; overflow: hidden; height: 380px;
    transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.3) 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
}
.service-card-overlay h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px; }
.service-card-overlay p { color: rgba(255,255,255,0.8); font-size: 15px; margin-bottom: 16px; }
.service-card-overlay .link { color: var(--accent); font-weight: 600; font-size: 14px; }
.service-card-overlay .link:hover { color: #fff; }

/* ===== WHY US ===== */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-section img { border-radius: 16px; }
.feature-list { list-style: none; margin-top: 24px; }
.feature-list li { padding: 8px 0; padding-left: 28px; position: relative; color: var(--text); font-size: 16px; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ===== AI SECTION ===== */
.ai-section .split-section { align-items: center; }
.ai-section h2 { font-size: 36px; font-weight: 700; letter-spacing: 1px; }
.ai-section p { color: rgba(255,255,255,0.8); font-size: 17px; line-height: 1.7; margin-top: 16px; }
.ai-section img { border-radius: 16px; max-width: 480px; margin: 0 auto; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 40px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.stat-item p { font-size: 15px; color: var(--text-light); font-weight: 500; }

/* ===== CTA SECTION ===== */
.cta-section { text-align: center; padding: 80px 0; }
.cta-section h2 { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }

/* ===== SERVICES PAGE ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-bottom: 60px; }
.svc-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.svc-icon { font-size: 32px; margin-bottom: 16px; }
.svc-card h3 { font-size: 20px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.svc-card p { color: var(--text-light); font-size: 15px; line-height: 1.6; }

.section-heading { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 32px; padding-bottom: 12px; border-bottom: 3px solid var(--accent); }

/* ===== ABOUT PAGE ===== */
.about-story { font-size: 20px; line-height: 1.8; color: var(--text); max-width: 800px; margin: 0 auto; text-align: center; }

.approach-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.approach-card { text-align: center; padding: 32px; }
.approach-card .icon { font-size: 40px; margin-bottom: 16px; }
.approach-card h3 { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.approach-card p { color: var(--text-light); font-size: 15px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card { text-align: center; }
.team-card img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 4px solid var(--bg-light); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.team-card h3 { font-size: 20px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.team-card p { color: var(--text-light); font-size: 14px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
    background: var(--bg-light); border-radius: 12px; padding: 28px; text-align: center;
    transition: transform 0.2s;
}
.value-card:hover { transform: translateY(-3px); }
.value-card .icon { font-size: 28px; margin-bottom: 12px; }
.value-card h3 { font-size: 16px; font-weight: 600; color: var(--primary); }

.process-flow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.process-step {
    background: var(--accent); color: #fff; padding: 16px 24px; border-radius: 10px;
    font-weight: 600; font-size: 14px; text-align: center; min-width: 160px;
}
.process-arrow { color: var(--accent); font-size: 24px; font-weight: 700; }

.group-companies { text-align: center; color: var(--text-light); font-size: 16px; margin-top: 40px; }

/* ===== FAQ PAGE ===== */
.faq-category { margin-bottom: 40px; }
.faq-category h2 { font-size: 24px; font-weight: 600; color: var(--primary); margin-bottom: 16px; }
.faq-item {
    background: var(--bg-light); border-radius: 10px; margin-bottom: 12px; overflow: hidden;
    border: 1px solid var(--border);
}
.faq-question {
    padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--primary);
    font-size: 16px; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; width: 100%; text-align: left; font-family: inherit;
}
.faq-question:hover { color: var(--accent); }
.faq-question .icon { font-size: 20px; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; color: var(--text); line-height: 1.7; font-size: 15px; }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 24px 20px; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form label { display: block; font-weight: 500; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 15px; margin-bottom: 20px; transition: border-color 0.2s;
    background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info-card {
    background: var(--bg-light); border-radius: 16px; padding: 40px; height: fit-content;
}
.contact-info-item { margin-bottom: 24px; }
.contact-info-item .label { font-size: 13px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.contact-info-item .value { font-size: 16px; color: var(--text); }
.contact-info-item a { color: var(--accent); }

.map-section { margin-top: 60px; border-radius: 16px; overflow: hidden; }
.map-section iframe { width: 100%; height: 400px; border: 0; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; }
.footer-col h3 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding: 20px 0; text-align: center; font-size: 13px; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== PAGE DEFAULT ===== */
.page-content { padding: 140px 0 80px; }
.page-content .entry-content { max-width: 800px; margin: 0 auto; }
.page-content .entry-content h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin: 32px 0 16px; }
.page-content .entry-content p { margin-bottom: 16px; line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero h1 { font-size: 36px; }
    .hero-split, .split-section, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .service-cards { grid-template-columns: 1fr; }
    .service-card { height: 280px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-cards, .team-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .page-hero h1 { font-size: 32px; }
    .ai-section img { max-width: 100%; }
    .process-flow { flex-direction: column; }
    .process-arrow { transform: rotate(90deg); }
}

@media (max-width: 640px) {
    .main-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; gap: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .main-nav.active { display: flex; }
    .menu-toggle { display: block; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 32px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item h3 { font-size: 28px; }
    .approach-cards, .team-grid, .values-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .service-cards { grid-template-columns: 1fr; }
}

/* Override BB theme defaults */
.fl-page { padding: 0 !important; }
.fl-page-content { max-width: none !important; padding: 0 !important; }
.fl-content-full, .fl-content { width: 100% !important; max-width: none !important; padding: 0 !important; }
