@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================
   ROOT VARIABLES - Soft Premium Rose Palette
   ============================================ */
:root {
    --primary:      #C86B7B;   /* Soft dusty rose, more human and calm */
    --primary-soft: #DCA3AC;   /* Lighter action pink */
    --primary-pale: #FDF4F5;   /* Very light rose for backgrounds */
    --accent:       #9B4F5C;   /* Deeper rose for hover/headings */
    --bg-section:   #FCF9F9;   /* Off-white with warm tint */
    --text-dark:    #2C2C2C;
    --text-mid:     #5A5A5A;
    --text-muted:   #888888;
    --white:        #FFFFFF;
    --shadow-xs:    0 2px 8px rgba(200,107,123,0.06);
    --shadow-sm:    0 4px 20px rgba(200,107,123,0.08);
    --shadow-md:    0 10px 40px rgba(200,107,123,0.12);
    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--accent);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}
a:hover { color: var(--accent); }

img { max-width: 100%; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(233,30,140,0.05);
}

.navbar.scrolled {
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent) !important;
}
.navbar-brand img { transition: var(--transition); }
.navbar-brand:hover img { transform: scale(1.04); }

.nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark) !important;
    margin: 0 4px;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-pale);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 10px 28px;
    transition: var(--transition);
    letter-spacing: 0.3px;
    border: 2px solid transparent;
}

.btn-primary,
.btn-primary:active,
.btn-primary:visited {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(233,30,140,0.25);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233,30,140,0.35) !important;
    color: #fff !important;
}

.btn-outline-primary {
    background: transparent !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233,30,140,0.25) !important;
}

.btn-light {
    background: #fff !important;
    color: var(--primary) !important;
    border-color: #fff !important;
    font-weight: 600;
}
.btn-light:hover {
    background: var(--primary-pale) !important;
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(150deg, var(--primary-pale) 0%, #fff9fb 60%, #fff 100%);
    padding: 130px 0 90px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233,30,140,0.06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.hero-title span { color: var(--primary); }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-image-wrap { position: relative; padding: 20px; }

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3.5s ease-in-out infinite;
    z-index: 5;
    border-left: 3px solid var(--primary);
}
.fc-1 { top: 8%; left: -5%; animation-delay: 0s; }
.fc-2 { bottom: 12%; right: -3%; animation-delay: 1.8s; }
.floating-card i { font-size: 1.6rem; color: var(--primary); }
.floating-card h6 { font-size: 0.85rem; font-weight: 700; margin: 0; color: var(--text-dark); }
.floating-card small { color: var(--text-muted); font-size: 0.75rem; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   QUICK INFO CARDS
   ============================================ */
.quick-cards { margin-top: -50px; position: relative; z-index: 10; }

/* ============================================
   CUSTOM CARDS - General
   ============================================ */
.custom-card {
    background: #fff;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 32px 24px;
    text-align: center;
    display: block;
}
.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 18px;
    display: block;
}

/* Bootstrap card override */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ============================================
   SECTION STYLES
   ============================================ */
.section-padding { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.section-title { text-align: center; margin-bottom: 55px; }
.section-title h6 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.section-title p {
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
}
.section-title .divider {
    height: 3px;
    width: 50px;
    background: linear-gradient(90deg, var(--primary), var(--primary-soft));
    margin: 16px auto 0;
    border-radius: 5px;
}

.bg-light-pink { background-color: var(--bg-section); }

/* ============================================
   ACCORDIONS - FAQ
   ============================================ */
.accordion-item {
    border: none !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-xs);
}
.accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff !important;
    color: var(--text-dark) !important;
    box-shadow: none !important;
    padding: 20px 24px;
}
.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background: var(--primary-pale) !important;
}
.accordion-button::after { filter: none; }
.accordion-button:not(.collapsed)::after { filter: none; }
.accordion-body {
    padding: 0 24px 20px;
    color: var(--text-mid);
    line-height: 1.8;
    font-size: 0.93rem;
    background: var(--primary-pale);
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive { border-radius: var(--radius-md); overflow: hidden; }
.table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 16px 18px;
    border: none;
}
.table tbody td { padding: 14px 18px; vertical-align: middle; font-size: 0.9rem; }
.table tbody tr:hover { background: var(--primary-pale); }

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-weight: 500;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 50px;
}
.badge.bg-success { background-color: #28a745 !important; }
.badge.bg-warning { background-color: #ffc107 !important; color: #333 !important; }
.badge.bg-danger { background-color: #dc3545 !important; }
.badge.bg-primary { background-color: var(--primary) !important; }

/* ============================================
   FORMS
   ============================================ */
.form-control, .form-select {
    border: 2px solid #f0e6ed;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background-color: #fafafa;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233,30,140,0.08);
    background-color: #fff;
}
.form-label { font-weight: 600; font-size: 0.875rem; color: var(--text-mid); margin-bottom: 6px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #3d1a28 0%, #5a2038 100%);
    color: #fff;
    padding: 65px 0 25px;
}
footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
footer p, footer a { color: rgba(255,255,255,0.72); font-size: 0.875rem; }
footer a:hover { color: #fff; text-decoration: none; }
footer .social-links a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    margin-right: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}
footer .social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}
footer hr { border-color: rgba(255,255,255,0.1); }
footer .footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.floating-wa {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 1050;
    transition: var(--transition);
}
.floating-wa:hover {
    color: #fff;
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 10px 30px rgba(37,211,102,0.5);
}

/* ============================================
   PAGE HEADER BANNER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 60%, var(--primary-soft) 100%);
    padding: 90px 0 60px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -80px;
    right: -60px;
}
.page-header h1 { color: #fff; font-size: 2.4rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.85); }
.breadcrumb-item a { color: rgba(255,255,255,0.7) !important; }
.breadcrumb-item.active { color: #fff !important; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary-pale);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1040;
    transition: var(--transition);
    cursor: pointer;
}
#backToTop:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}
#backToTop.show { display: flex; }

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-justify { text-align: justify; }
.rounded-4 { border-radius: var(--radius-md) !important; }
.rounded-5 { border-radius: var(--radius-lg) !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-section { padding: 100px 0 60px; min-height: auto; }
    .hero-title { font-size: 2.5rem; }
    .section-padding { padding: 65px 0; }
    .page-header { padding: 80px 0 50px; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .fc-1, .fc-2 { display: none; }
    .section-title h2 { font-size: 1.8rem; }
    .page-header h1 { font-size: 1.8rem; }
    .quick-cards { margin-top: 0; }
    .navbar { padding: 10px 0; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.7rem; }
    .btn { padding: 9px 22px; font-size: 0.85rem; }
}

/* ============================================
   PREMIUM SPLASH SCREEN
   ============================================ */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #fff0f7 0%, #ffd6ee 40%, #ffc2e5 70%, #ff8ecf 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
#splash-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-logo-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 6px rgba(233,30,140,0.15), 0 0 0 14px rgba(233,30,140,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    animation: splashPulse 1.8s ease-in-out infinite;
}
.splash-logo-ring img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}
.splash-logo-ring i {
    font-size: 3rem;
    color: var(--primary);
}
@keyframes splashPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(233,30,140,0.15), 0 0 0 14px rgba(233,30,140,0.07); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(233,30,140,0.18), 0 0 0 22px rgba(233,30,140,0.06); }
}
.splash-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.splash-sub {
    font-size: 0.9rem;
    color: #c0607e;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 36px;
}
.splash-loader {
    width: 220px;
    height: 4px;
    background: rgba(233,30,140,0.15);
    border-radius: 10px;
    overflow: hidden;
}
.splash-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #ff69b4);
    border-radius: 10px;
    animation: splashLoad 1s ease-in-out forwards;
}
@keyframes splashLoad {
    0%   { width: 0%; }
    60%  { width: 80%; }
    90%  { width: 95%; }
    100% { width: 100%; }
}

/* ===== Foto Dokter Responsif ===== */
/* Pastikan wajah selalu muncul di atas, tidak terpotong di HP */
.team-card .position-relative img,
.team-card img,
.card-img-top[alt*="dr"],
.card-img-top[alt*="Bdn"] {
    object-fit: cover !important;
    object-position: center 25% !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Kartu dokter di beranda (index.php) */
.card.text-center.overflow-hidden .card-img-top {
    object-fit: cover !important;
    object-position: center 25% !important;
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    height: auto !important;
}

/* Responsif HP - pastikan aspect ratio tetap */
@media (max-width: 576px) {
    .team-card .position-relative {
        aspect-ratio: 1/1 !important;
    }
    .card.text-center.overflow-hidden .card-img-top {
        aspect-ratio: 1/1 !important;
    }
}
