/* ============================================================
   site.css — Sahabat Autis Public Pages
   Menggantikan inline <style> di includes/header.php
   ============================================================ */

:root {
    --primary-blue: #3498db;
    --secondary-tosca: #1abc9c;
    --kid-orange: #FF6B35;
    --kid-yellow: #FFD93D;
    --kid-pink: #FF6B9D;
    --kid-purple: #C77DFF;
    --kid-green: #4ECDC4;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --dark-text: #2c3e50;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
}

/* ── ANIMASI LOKAL (pengganti animate.css CDN) ── */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-left  { animation: fadeInLeft  0.7s ease both; }
.anim-fade-right { animation: fadeInRight 0.7s ease both; animation-delay: 0.1s; }
.anim-fade-down  { animation: fadeInDown  0.6s ease both; animation-delay: 0.5s; }
.anim-fade-up    { animation: fadeInUp    0.6s ease both; animation-delay: 0.7s; }

/* ── NAVBAR ── */
.navbar {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 12px 0;
}
.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.4rem;
}
.nav-link {
    font-weight: 600;
    color: var(--dark-text) !important;
    margin: 0 4px;
    transition: color 0.3s;
    font-size: 0.9rem;
}
.nav-link:hover { color: var(--primary-blue) !important; }
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), #2980b9);
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,152,219,0.4);
    color: white;
}

/* ── HERO ── */
.hero-section {
    background: linear-gradient(135deg, #FFF9F0 0%, #F0F8FF 50%, #F5F0FF 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.min-vh-hero { min-height: 75vh; }

/* Gelembung dekorasi */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatBubble 6s ease-in-out infinite;
}
.bubble-1 { width:300px; height:300px; background:var(--kid-yellow); top:-80px; right:-60px; animation-delay:0s; }
.bubble-2 { width:200px; height:200px; background:var(--kid-pink);   bottom:-60px; left:-40px; animation-delay:1s; }
.bubble-3 { width:150px; height:150px; background:var(--kid-green);  top:40%; right:5%; animation-delay:2s; }
.bubble-4 { width:100px; height:100px; background:var(--kid-orange); top:20%; left:5%; animation-delay:3s; }
.bubble-5 { width:80px;  height:80px;  background:var(--kid-purple); bottom:20%; right:20%; animation-delay:1.5s; }
@keyframes floatBubble {
    0%,100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-20px) scale(1.05); }
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52,152,219,0.1);
    border: 1px solid rgba(52,152,219,0.25);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
}
.badge-dot {
    width: 8px; height: 8px;
    background: var(--kid-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.5; transform:scale(1.3); }
}

/* Hero title */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark-text);
    margin-bottom: 1rem;
}
.hero-title-colored {
    background: linear-gradient(135deg, var(--primary-blue), var(--kid-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-star {
    font-size: 1.8rem;
    vertical-align: middle;
    animation: spin 4s linear infinite;
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-desc {
    font-size: 1.05rem;
    color: #5a6a7a;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Hero buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--kid-orange), #FF8C42);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(255,107,53,0.35);
    transition: all 0.3s;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255,107,53,0.45);
    color: white;
}
.btn-hero-outline {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}
.btn-hero-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* PSB Banner */
.hero-psb-banner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #FFE0CC;
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(255,107,53,0.1);
}
.psb-icon { font-size: 1.5rem; }

/* Hero illustration */
.hero-illustration-wrap {
    position: relative;
    display: inline-block;
}
.hero-main-img {
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    max-height: 420px;
    object-fit: cover;
}

/* Floating cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    animation: floatCard 3s ease-in-out infinite;
    z-index: 2;
}
.card-top-left    { top: -20px; left: -30px; animation-delay: 0s; }
.card-bottom-right{ bottom: 20px; right: -30px; animation-delay: 1.5s; }
@keyframes floatCard {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.fc-icon { font-size: 1.8rem; }
.fc-num  { font-weight: 800; font-size: 1.1rem; color: var(--dark-text); line-height: 1; }
.fc-label{ font-size: 0.72rem; color: #888; }

/* Deco emojis */
.hero-deco-emoji {
    position: absolute;
    opacity: 0.7;
    animation: floatBubble 4s ease-in-out infinite;
    line-height: 1;
}
.emoji-top-right   { top: 10px; right: -10px; animation-delay: 0.5s; }
.emoji-bottom-left { bottom: 60px; left: -10px; animation-delay: 2s; }

/* ── STATS BAR ── */
.stats-bar {
    background: white;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    padding: 0;
    position: relative;
    z-index: 10;
}
.stats-row { border-radius: 0; }
.stat-item {
    text-align: center;
    padding: 28px 20px;
    border-right: 1px solid #f0f0f0;
    transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: #f8f9ff; }
.stat-emoji { font-size: 1.8rem; margin-bottom: 4px; }
.stat-num   { font-size: 1.8rem; font-weight: 800; color: var(--primary-blue); line-height: 1; }
.stat-label { font-size: 0.78rem; color: #888; font-weight: 500; margin-top: 4px; }

/* ── SECTION COMMONS ── */
.py-section { padding: 80px 0; }
.section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(52,152,219,0.12), rgba(199,125,255,0.12));
    color: var(--primary-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 16px;
}
.section-text {
    color: #5a6a7a;
    line-height: 1.75;
    font-size: 1rem;
}

/* ── ABOUT ── */
.about-section { background: #FAFBFF; }
.about-img-wrap {
    position: relative;
    display: inline-block;
}
.about-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--kid-yellow), var(--kid-orange));
    border-radius: 30px;
    top: 15px;
    left: 15px;
    opacity: 0.2;
}
.about-img {
    border-radius: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.about-badge-float {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: white;
    border-radius: 14px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    z-index: 2;
    color: var(--dark-text);
}
.feat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--feat-color);
    transition: transform 0.2s;
}
.feat-card:hover { transform: translateX(4px); }
.feat-emoji { font-size: 1.3rem; }
.feat-text  { font-weight: 600; font-size: 0.88rem; color: var(--dark-text); }

/* ── SERVICES ── */
.services-section { background: white; }
.svc-card {
    background: var(--svc-bg);
    border-radius: 24px;
    padding: 32px 28px;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--svc-color);
    border-radius: 24px 24px 0 0;
}
.svc-card:hover {
    border-color: var(--svc-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.svc-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}
.svc-emoji {
    font-size: 2.5rem;
    display: block;
    line-height: 1;
}
.svc-fa-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 0.9rem;
    color: var(--svc-color);
    background: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.svc-title { font-weight: 700; font-size: 1.05rem; color: var(--dark-text); margin-bottom: 8px; }
.svc-desc  { color: #6b7a8d; font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }
.svc-link  {
    color: var(--svc-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.2s;
}
.svc-link:hover { text-decoration: underline; }

/* ── TESTIMONIALS ── */
.testi-section { background: linear-gradient(135deg, #F8F9FF 0%, #FFF8F0 100%); }
.testi-card {
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-bottom: 4px solid var(--testi-color);
    transition: transform 0.3s;
    position: relative;
}
.testi-card:hover { transform: translateY(-6px); }
.testi-quote {
    font-size: 5rem;
    line-height: 0.5;
    color: var(--testi-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    margin-bottom: 16px;
}
.testi-text  { color: #5a6a7a; font-size: 0.95rem; line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testi-stars { font-size: 1rem; margin-bottom: 16px; }
.testi-author{ display: flex; align-items: center; gap: 12px; }
.testi-avatar{
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.testi-name  { font-weight: 700; font-size: 0.9rem; color: var(--dark-text); }

/* ── ARTICLES ── */
.articles-section { background: white; }
.article-card-link { text-decoration: none; color: inherit; display: block; }
.article-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: all 0.3s;
    background: white;
    height: 100%;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.article-img-wrap { position: relative; height: 200px; overflow: hidden; background: #f0f4ff; }
.article-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-img { transform: scale(1.05); }
.article-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #f0f4ff, #f8f0ff);
}
.article-cat {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary-blue);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}
.article-body  { padding: 20px; }
.article-date  { font-size: 0.78rem; color: #aaa; margin-bottom: 8px; }
.article-title { font-weight: 700; font-size: 0.95rem; color: var(--dark-text); line-height: 1.4; margin-bottom: 12px; }
.article-read  { font-size: 0.82rem; color: var(--primary-blue); font-weight: 600; }

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.cta-shape-1 { width:400px; height:400px; top:-150px; right:-100px; }
.cta-shape-2 { width:250px; height:250px; bottom:-80px; left:-60px; }
.cta-shape-3 { width:150px; height:150px; top:50%; left:40%; }
.cta-emoji-row { font-size: 1.5rem; letter-spacing: 8px; }
.cta-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}
.cta-sub { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 32px; }
.btn-cta-primary {
    background: white;
    color: #764ba2;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s;
}
.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #764ba2;
}
.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* ── SHARED BUTTONS ── */
.btn-primary-kid {
    background: linear-gradient(135deg, var(--primary-blue), #2980b9);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary-kid:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52,152,219,0.4);
    color: white;
}
.btn-outline-kid {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-kid:hover {
    background: var(--primary-blue);
    color: white;
}

/* ── FOOTER ── */
.footer {
    background: linear-gradient(135deg, #1a2535 0%, #2c3e50 100%);
    color: white;
    padding: 60px 0 20px;
}
.footer h5 { font-weight: 700; margin-bottom: 25px; }
.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.footer-link:hover { color: var(--kid-yellow); }

/* ── CARD (legacy) ── */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }

/* ── SECTION TITLE (legacy) ── */
.section-title {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--secondary-tosca);
    border-radius: 2px;
}
