/* =============================================
   KLINIK KELUARGA SEHAT - LANDING PAGE
   CSS Variables & Full Stylesheet
   ============================================= */

/* ===================== CSS VARIABLES / THEMING ===================== */
:root {
    /* === PRIMARY COLOR PALETTE === */
    /* Ubah warna-warna ini untuk mengganti seluruh tema */
    --primary-h: 152;        /* Hue hijau klinik */
    --primary-s: 100%;       /* Saturation */
    --primary-l: 20%;        /* Lightness */

    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), 80%, 35%);
    --primary-lighter: hsl(var(--primary-h), 60%, 90%);
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 12%);
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);

    /* === ACCENT COLOR === */
    --accent-h: 36;
    --accent-s: 100%;
    --accent-l: 50%;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-light: hsl(var(--accent-h), 100%, 65%);

    /* === NEUTRAL COLORS === */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* === TEXT === */
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-400);
    --text-white: var(--white);

    /* === TYPOGRAPHY === */
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;

    /* === SPACING === */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --gap: 24px;

    /* === BORDERS & RADIUS === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* === SHADOWS === */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --shadow-primary: 0 8px 25px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.35);

    /* === TRANSITIONS === */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: clip; /* Fix for position: sticky to work */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255,255,255,0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--text-white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ===================== SECTION HEADER ===================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-header-light h2 {
    color: var(--white);
}

.section-header-light p {
    color: rgba(255,255,255,0.8);
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary-lighter);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-header-light .section-badge {
    background: rgba(255,255,255,0.15);
    color: var(--accent-light);
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

/* ===================== TOP BAR ===================== */
#top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 24px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--accent-light);
    font-size: 12px;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
    font-size: 14px;
}

.top-bar-social a:hover {
    color: var(--accent-light);
}

/* ===================== HEADER ===================== */
#main-header {
    background: var(--white);
    padding: 0;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: var(--shadow-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
}

.logo-tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    color: var(--accent);
}

/* Contact Cards */
.header-contacts {
    display: flex;
    gap: 24px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.contact-card:hover {
    background: var(--gray-50);
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--primary-lighter);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: #dcfce7;
    color: #25D366;
}

.contact-icon.email-icon {
    background: hsl(var(--accent-h), 100%, 92%);
    color: var(--accent);
}

.contact-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-value:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================== NAVIGATION ===================== */
#main-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width var(--transition-base);
    border-radius: 3px 3px 0 0;
}

.nav-menu > li:hover > a,
.nav-menu > li.active > a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after {
    width: 60%;
}

.nav-menu > li > a i.fa-chevron-down {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-menu > li:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 100;
}

.has-submenu {
    position: relative;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.submenu li a:hover {
    background: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 24px;
}

/* Nav search */
.nav-search {
    margin-left: auto;
}

#nav-search-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.9);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

#nav-search-btn:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 50;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.search-form button:hover {
    background: var(--primary-light);
}

.search-close {
    background: var(--gray-200) !important;
    color: var(--gray-600) !important;
}

.search-close:hover {
    background: var(--gray-300) !important;
}

/* ===================== HERO SLIDER ===================== */
#hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    min-height: 560px;
    padding-top: 40px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,40,20,0.85) 0%, rgba(0,80,40,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    animation: heroFadeIn 0.8s ease forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Swiper customization */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: var(--white);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all var(--transition-base);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: rgba(255,255,255,0.25);
}

.hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    width: 10px;
    height: 10px;
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.15);
    z-index: 10;
}

.hero-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

/* ===================== DOCTOR FINDER ===================== */
#doctor-finder {
    position: relative;
    z-index: 10;
    margin-top: -45px;
    margin-bottom: 40px;
}

.finder-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.finder-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 30px;
    background: var(--primary-gradient);
    color: var(--white);
}

.finder-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.finder-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.finder-body {
    display: flex;
    gap: 16px;
    padding: 24px 30px;
    align-items: flex-end;
}

.finder-field {
    flex: 1;
}

.finder-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finder-field select,
.finder-field input {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.finder-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.finder-field select:focus,
.finder-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

.finder-action {
    flex: none;
}

.btn-finder {
    padding: 11px 28px;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

/* ===================== QUICK SERVICES ===================== */
#quick-services {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-link {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    transform: scale(0.7);
    transition: transform var(--transition-base);
}

.service-card:hover .service-link {
    transform: scale(1);
}

.service-body {
    padding: 20px;
    text-align: center;
    position: relative;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: -40px auto 14px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.service-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.service-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================== WHY US ===================== */
#why-us {
    padding: var(--section-padding);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.why-us-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.experience-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-primary);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.why-us-content .section-badge {
    margin-bottom: 14px;
}

.why-us-content h2 {
    font-size: 34px;
    margin-bottom: 16px;
}

.why-us-content > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

.why-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-feature {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.why-feature:hover {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.why-feature:hover .why-feature-icon {
    background: var(--primary);
    color: var(--white);
}

.why-feature h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.why-feature-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===================== STATS ===================== */
#stats-section {
    padding: 60px 0;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

#stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 32px;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.stat-label {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
}

/* ===================== DOCTORS ===================== */
#doctors-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.doctor-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-social {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.doctor-card:hover .doctor-social {
    opacity: 1;
    transform: translateY(0);
}

.doctor-social a {
    width: 36px;
    height: 36px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform var(--transition-fast);
}

.doctor-social a:hover {
    transform: scale(1.1);
    color: var(--white);
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.doctor-specialty {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.doctor-schedule {
    font-size: 13px;
    color: var(--text-secondary);
}

.doctor-schedule i {
    color: var(--accent);
    margin-right: 4px;
}

/* ===================== NEWS ===================== */
#news-section {
    padding: var(--section-padding);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-featured {
    grid-row: span 2;
}

.news-featured .news-image {
    height: 280px;
}

.news-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.news-body {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.news-meta i {
    margin-right: 4px;
    color: var(--primary);
}

.news-body h3 {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-body h3 a {
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.news-body h3 a:hover {
    color: var(--primary);
}

.news-body > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.news-read-more:hover {
    gap: 10px;
}

/* ===================== TESTIMONIALS ===================== */
#testimonials-section {
    padding: var(--section-padding);
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

#testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

#testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.testimonial-stars {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 16px;
    display: flex;
    gap: 3px;
}

.testimonial-text {
    color: rgba(255,255,255,0.95);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 22px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.testimonial-author h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 2px;
}

.testimonial-author span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.testimonial-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.4);
    opacity: 1;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
}

/* ===================== CTA SECTION ===================== */
#cta-section {
    padding: 60px 0;
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

#cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: 30px;
    margin-bottom: 8px;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

/* ===================== FOOTER ===================== */
#main-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo .logo-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.footer-logo .logo-name {
    font-size: 18px;
}

.footer-logo .logo-tagline {
    font-size: 18px;
}

.footer-about {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary-light);
    transition: transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
    color: var(--white);
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.btn-map:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===================== BACK TO TOP ===================== */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ===================== WHATSAPP CHIBI FLOAT ===================== */
.chibi-wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 999;
    text-decoration: none;
}

.chibi-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    animation: chibiFloat 3s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chibi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #25D366;
}

.wa-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(37,211,102,0.4);
}

.chibi-wa-float:hover .chibi-avatar {
    transform: scale(1.1);
    animation-play-state: paused;
}

@keyframes chibiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chibi-bubble {
    background: #fff;
    padding: 12px 20px;
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    position: relative;
    margin-bottom: 25px;
    transform-origin: bottom right;
    animation: bubblePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chibi-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-left: 15px solid #fff;
    border-bottom: 15px solid transparent;
    transform: translateY(50%);
}

.chibi-wa-float:hover .chibi-bubble-text::before {
    content: "Klik untuk bertanya! 👋";
    color: #25D366;
}
.chibi-wa-float:hover .chibi-bubble-text {
    font-size: 0; 
}
.chibi-wa-float:hover .chibi-bubble-text::before {
    font-size: 14px; 
}

@keyframes bubblePop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .header-contacts {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 4px;
    }

    .top-bar-right {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 70px 0 20px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        overflow-y: auto;
        z-index: 1005;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu > li > a {
        color: var(--text-primary);
        padding: 14px 24px;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .nav-menu > li:hover > a,
    .nav-menu > li.active > a {
        color: var(--primary);
        background: var(--primary-lighter);
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-50);
        display: none;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    .nav-search {
        margin-left: 0;
        padding: 14px 24px;
    }

    #nav-search-btn {
        color: var(--text-primary);
        background: var(--gray-100);
        width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-slide {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }

    #doctor-finder {
        margin-top: -50px;
        margin-bottom: 50px;
    }

    .finder-body {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .btn-finder {
        width: 100%;
        justify-content: center;
    }

    .chibi-wa-float {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .chibi-avatar {
        width: 60px;
        height: 60px;
    }
    .chibi-bubble {
        padding: 8px 14px;
        font-size: 12px;
        margin-bottom: 15px;
    }
    .chibi-wa-float:hover .chibi-bubble-text::before {
        font-size: 12px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-image img {
        height: 300px;
    }

    .why-features {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-featured {
        grid-row: auto;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

/* ===================== LOADING ANIMATION ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Placeholder gradient for images not yet loaded */
.service-image,
.doctor-image,
.news-image,
.why-us-image {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}
