/* ============================================================
   JASA SIAKAD - Main Stylesheet
   ============================================================ */
:root {
    --primary: #1e3a8a;
    --primary-dark: #162d6e;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --success: #16a34a;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.text-center { text-align: center; }

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 17px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #d97706; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-wa { background: #25d366; color: var(--white); }
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ---------- HEADER / NAVBAR ---------- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    z-index: 1000;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--accent); }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-menu a {
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-menu a:hover::after { width: 100%; }
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
}

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: var(--white);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero p {
    font-size: 18px;
    opacity: 0.92;
    margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-visual {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(8px);
}
.hero-visual-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 12px;
}
.hero-visual-item:last-child { margin-bottom: 0; }
.hero-visual-icon { font-size: 28px; }

/* ---------- STATS ---------- */
.stats {
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}
.stat-number span { color: var(--accent); }
.stat-label { color: var(--gray); font-size: 15px; font-weight: 500; }

/* ---------- SERVICES ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}
.service-icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 10px;
}
.service-card p { color: var(--gray); font-size: 15px; }

/* ---------- ABOUT / FEATURES ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-features { margin-top: 24px; }
.about-feature {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}
.about-feature-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--light);
    color: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.about-feature h4 { font-size: 16px; margin-bottom: 4px; }
.about-feature p { font-size: 14px; color: var(--gray); margin: 0; }

.bg-light { background: var(--light); }

/* ---------- PRICING ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.pricing-card {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
}
.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.pricing-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}
.pricing-card h3 { font-size: 22px; color: var(--primary); margin-bottom: 10px; }
.pricing-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}
.pricing-period { color: var(--gray); font-size: 14px; margin-bottom: 24px; }
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
    padding: 8px 0;
    display: flex;
    gap: 10px;
    font-size: 15px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.testimonial-stars { color: var(--accent); margin-bottom: 14px; font-size: 18px; }
.testimonial-msg { font-style: italic; color: #334155; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-pos { font-size: 13px; color: var(--gray); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
}
.faq-question:hover { background: var(--light); }
.faq-icon { transition: var(--transition); font-size: 20px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--gray);
}
.faq-answer-inner { padding: 0 24px 20px; }
.faq-item.active .faq-answer { max-height: 400px; }

/* ---------- PORTFOLIO ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.portfolio-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portfolio-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 48px;
}
.portfolio-body { padding: 24px; }
.portfolio-client { color: var(--accent); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.portfolio-body h3 { font-size: 19px; color: var(--primary); margin: 6px 0 10px; }
.portfolio-body p { color: var(--gray); font-size: 15px; }

/* ---------- CTA SECTION ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    border-radius: 20px;
    padding: 60px 40px;
}
.cta-section h2 { font-size: 34px; margin-bottom: 14px; }
.cta-section p { font-size: 18px; opacity: 0.92; margin-bottom: 30px; }

/* ---------- ARTICLES ---------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.article-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-img {
    height: 190px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 50px;
    position: relative;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-cat {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.article-body { padding: 24px; }
.article-meta { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.article-body h3 {
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.article-body h3 a:hover { color: var(--secondary); }
.article-body p { color: var(--gray); font-size: 15px; margin-bottom: 16px; }
.article-readmore { color: var(--secondary); font-weight: 600; font-size: 14px; }
.article-readmore:hover { color: var(--primary); }

/* ---------- SINGLE ARTICLE ---------- */
.single-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 60px 0;
}
.single-hero .article-cat { position: static; display: inline-block; margin-bottom: 16px; }
.single-hero h1 { font-size: 38px; line-height: 1.2; margin-bottom: 14px; }
.single-meta { opacity: 0.9; font-size: 15px; }
.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
    font-size: 17px;
    line-height: 1.85;
    color: #1e293b;
}
.single-content h2 {
    font-size: 27px;
    color: var(--primary);
    margin: 32px 0 14px;
}
.single-content h3 { font-size: 22px; color: var(--primary); margin: 24px 0 12px; }
.single-content p { margin-bottom: 18px; }
.single-content ul, .single-content ol { margin: 0 0 18px 24px; }
.single-content ul li { list-style: disc; margin-bottom: 8px; }
.single-content ol li { list-style: decimal; margin-bottom: 8px; }
.single-content img { border-radius: var(--radius); margin: 20px 0; }
.single-content a { color: var(--secondary); text-decoration: underline; }
.single-content strong { color: var(--dark); }

/* ---------- FORM ---------- */
.form-wrap {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 15px;
}
.form-group label .req { color: #ef4444; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---------- PAGE HEADER ---------- */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { font-size: 40px; margin-bottom: 10px; }
.page-header p { opacity: 0.9; font-size: 17px; }
.breadcrumb { font-size: 14px; opacity: 0.85; margin-top: 12px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer h4 { color: var(--white); font-size: 17px; margin-bottom: 18px; }
.footer-logo { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: var(--accent); }
.footer p { font-size: 14px; line-height: 1.8; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* ---------- ALERT ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- FLOATING WA ---------- */
.float-wa {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}
.float-wa:hover { transform: scale(1.1); }

/* ---------- PAGINATION ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    font-weight: 600;
}
.pagination a:hover { background: var(--primary); color: var(--white); }
.pagination .active { background: var(--primary); color: var(--white); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; }
    .services-grid, .pricing-grid, .testimonials-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 38px; }
    .pricing-card.featured { transform: none; }
}

@media (max-width: 640px) {
    .nav-menu {
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    .nav-menu.open { transform: translateY(0); }
    .menu-toggle { display: block; }
    .services-grid, .pricing-grid, .testimonials-grid, .articles-grid, .portfolio-grid, .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .section-title, .hero h1 { font-size: 30px; }
    .hero { padding: 60px 0; }
    .cta-section h2 { font-size: 26px; }
    .form-wrap, .pricing-card { padding: 24px; }
}
