/* ===== CSS VARIABLES DENGAN DARK MODE (CHECKBOX HACK) ===== */
:root {
    /* Warna dasar (Light Mode) */
    --primary-color: #2a9d8f;
    --primary-dark: #1d7874;
    --primary-light: #48cae4;
    --secondary-color: #e9c46a;
    --accent-color: #f4a261;
    --text-dark: #264653;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --merah: #e63946;
    --kuning: #ffd166;
    --hijau: #2a9d8f;
    --biru: #1d3557;
    --biru-muda: #a8dadc;
    
    /* Background & text */
    --body-bg: var(--bg-light);
    --card-bg: var(--white);
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-light);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: var(--text-dark);
    --hero-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --testimonial-bg: var(--white);
    --cta-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    --border-light: #f0f0f0;
    --modal-footer-bg: #f8f9fa;
    --health-quote-bg: var(--white);
    --benefit-card-bg: var(--white);
    --service-card-bg: var(--white);
    --narrative-card-bg: var(--white);
    --consult-card-bg: var(--white);
    --shadow-color: rgba(0,0,0,0.08);
    --shadow-hover: rgba(0,0,0,0.1);
    --problem-card-bg: var(--white);
    --step-bg: var(--white);
    --usp-bg: var(--white);
    --product-card-bg: var(--white);
}

/* Dark mode override (aktif jika checkbox dicentang) */
#darkmode-toggle:checked ~ .page-wrapper {
    --primary-color: #4ecdc4;
    --primary-dark: #2a9d8f;
    --primary-light: #6c9bcf;
    --secondary-color: #ffd166;
    --accent-color: #ff9f4a;
    --text-dark: #f0f3f8;
    --text-light: #b0b0b0;
    --bg-light: #121212;
    --white: #1e1e1e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --merah: #ff6b6b;
    --kuning: #ffd166;
    --hijau: #4ecdc4;
    --biru: #6c9bcf;
    --biru-muda: #7fa9b9;
    
    --body-bg: #121212;
    --card-bg: #2d2d2d;
    --text-primary: #f0f3f8;
    --text-secondary: #b0b0b0;
    --navbar-bg: rgba(30,30,30,0.95);
    --footer-bg: #1a1a2e;
    --hero-gradient: linear-gradient(135deg, #1a3a3a 0%, #2a5a5a 100%);
    --testimonial-bg: #2d2d2d;
    --cta-gradient: linear-gradient(135deg, #1a3a3a 0%, #2a5a5a 100%);
    --border-light: #404040;
    --modal-footer-bg: #2d2d2d;
    --health-quote-bg: #2d2d2d;
    --benefit-card-bg: #2d2d2d;
    --service-card-bg: #2d2d2d;
    --narrative-card-bg: #2d2d2d;
    --consult-card-bg: #2d2d2d;
    --shadow-color: rgba(0,0,0,0.3);
    --shadow-hover: rgba(0,0,0,0.5);
    --problem-card-bg: #2d2d2d;
    --step-bg: #2d2d2d;
    --usp-bg: #2d2d2d;
    --product-card-bg: #2d2d2d;
}

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

.page-wrapper {
    font-family: 'Poppins', sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== DARK MODE TOGGLE SWITCH ===== */
.darkmode-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.4rem 0.9rem;
    border-radius: 40px;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 0.85rem;
}
.darkmode-switch:hover {
    background: var(--bg-light);
}
.darkmode-switch i {
    font-size: 1rem;
    color: var(--kuning);
}
.darkmode-switch span {
    font-size: 0.75rem;
    font-weight: 500;
}
#darkmode-toggle {
    display: none;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.8rem 0;
    transition: background 0.3s;
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
.brand-icon {
    margin-right: 0.5rem;
    font-size: 1.6rem;
}
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0.4rem;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero-section {
    background: var(--hero-gradient);
    color: var(--text-primary);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 3rem;
    transition: background 0.3s;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/geometric-pattern.svg');
    background-size: cover;
    opacity: 0.08;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-brand {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(233, 196, 106, 0.3);
    z-index: -1;
}
.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-illustration {
    margin-top: 2rem;
}
.hero-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.btn {
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(233, 196, 106, 0.3);
}
.btn-primary:hover {
    background-color: #e0b85c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 196, 106, 0.4);
}
.btn-outline-secondary {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    background: transparent;
}
.btn-outline-secondary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}
.btn-success-custom {
    background-color: var(--secondary-color);
}
.btn-success-custom:hover {
    background-color: #21867a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42,157,143,0.4);
}

/* ===== SECTION UMUM ===== */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}
.section-badge {
    display: inline-block;
    background-color: var(--merah);
    color: white;
    padding: 0.2rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
    transition: background 0.3s;
}
.problem-card {
    background: var(--problem-card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-left: 5px solid var(--primary-color);
    text-align: left;
}
.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.problem-card .icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.problem-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-family: 'Poppins', sans-serif;
}
.problem-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== TRANSISI PROBLEM KE SOLUSI ===== */
.transition-section {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    transition: background 0.3s;
}
.transition-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
}
.transition-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 1.5rem;
}

/* ===== SOLUSI / LAYANAN ===== */
.services-section {
    padding: 4rem 0;
    background-color: var(--card-bg);
    transition: background 0.3s;
}
.service-card {
    background: var(--service-card-bg);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: block;
}
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ===== USP / MENGAPA MEMILIH ===== */
.usp-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
    transition: background 0.3s;
}
.usp-item {
    background: var(--usp-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}
.usp-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.usp-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.usp-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-family: 'Poppins', sans-serif;
}
.usp-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== PROFIL SINGKAT ===== */
.profile-section {
    padding: 4rem 0;
    background-color: var(--card-bg);
    transition: background 0.3s;
}
.profile-card {
    background: var(--narrative-card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: background 0.3s;
    justify-content: space-between;
    align-items: center;
}
.profile-card img {
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}
.profile-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.profile-card .title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-card .description {
    width: 50%;
}

.profile-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 100%;
    line-height: 1.8;
}

/* ===== ALUR PENDAFTARAN ===== */
.step-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
    transition: background 0.3s;
}
.step-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--step-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}
.step-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.step-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.3rem;
}
.step-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}
.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
@media (max-width: 768px) {
    .step-arrow {
transform: rotate(90deg);
padding: 0.5rem 0;
    }
}

/* ===== TESTIMONI ===== */
.testimonials-section {
    padding: 4rem 0;
    background-color: var(--card-bg);
    transition: background 0.3s;
}
.testimonial-card {
    background: var(--testimonial-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    transition: background 0.3s;
}
.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: -5px;
    left: 20px;
    font-family: serif;
    opacity: 0.25;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
}
.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-author strong {
    color: var(--primary-dark);
    font-size: 1rem;
}
.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}
.carousel-control-prev { left: -20px; }
.carousel-control-next { right: -20px; }
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; }

/* ===== CTA ===== */
.cta-section {
    background: var(--cta-gradient);
    color: var(--text-primary);
    padding: 4rem 0;
    transition: background 0.3s, color 0.3s;
    text-align: center;
}
.cta-title {
    color: var(--secondary-color);
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}
.cta-text {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRODUK LAINNYA ===== */
.products-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
    transition: background 0.3s;
}
.product-card {
    background: var(--product-card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border-bottom: 4px solid var(--kuning);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.product-card .icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    display: block;
}
.product-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.3rem;
}
.product-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.btn-sm-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-sm-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 3rem 0 1.5rem;
    transition: background 0.3s, color 0.3s;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}
.footer-text {
    opacity: 0.8;
}
.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: white;
    font-weight: 600;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary-light);
}
.contact-info p {
    margin-bottom: 0.4rem;
    opacity: 0.8;
}
.social-links {
    display: flex;
    gap: 0.8rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
}
.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-copyright {
    opacity: 0.6;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== RESPONSIF ===== */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.5rem; }
    .hero-actions { justify-content: center; }
    .darkmode-switch span { display: none; }
    .darkmode-switch { padding: 0.4rem; }
    .carousel-control-prev { left: 5px; }
    .carousel-control-next { right: 5px; }
}
@media (max-width: 767.98px) {
    .hero-title { font-size: 2rem; }
    .hero-brand { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .profile-card img { width: 16rem; height: 16rem; }
    .step-arrow { display: none; }
    .carousel-control-prev { left: -5px; }
    .carousel-control-next { right: -5px; }
    .hero-illustration img { max-width: 50%; }
    .profile-card .description { width: 100%; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 1.6rem; }
    .hero-brand { font-size: 1.6rem; }
    .btn { font-size: 0.85rem; padding: 0.6rem 1.2rem; }
    .profile-card { padding: 1.5rem; }
}

/* ===== ANIMASI ===== */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}
.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}
.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}
@keyframes fadeIn {
    from { opacity:0; transform:translateY(20px); }
    to { opacity:1; transform:translateY(0); }
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--card-bg);
    color: var(--text-primary);
}
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}
.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}
.modal-body {
    padding: 30px;
}
.modal-footer {
    border-top: none;
    padding: 20px 30px;
    background-color: var(--modal-footer-bg);
}
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
}
