/* --- FORMAT DASAR & VARIABEL WARNA PREMIUM --- */
:root {
    /* Palet warna alamiah, menenangkan & selaras logo Dia Homecare */
    --bg-sage: #f3f7f4;         /* Latar belakang hijau sage super soft */
    --brand-green: #00875a;     /* Hijau Zamrud utama */
    --brand-green-hover: #006b46;
    --brand-yellow: #fac213;    /* Kuning hangat */
    --brand-yellow-hover: #e5b109;
    --text-dark: #12221a;       /* Hijau pinus sangat gelap */
    --text-muted: #52665d;      /* Hijau keabuan untuk deskripsi */
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 135, 90, 0.04);
    --hover-shadow: 0 20px 40px rgba(0, 135, 90, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-sage);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- NAVBAR STYLE --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px); /* Efek kaca transparan estetik */
    box-shadow: 0 4px 30px rgba(0, 135, 90, 0.03);
    border-bottom: 1px solid rgba(0, 135, 90, 0.06);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo span {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Nav Links - Center */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease, font-weight 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--brand-green);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--brand-green);
    font-weight: 700;
}


/* Nav Actions - Right */
.nav-actions {
    display: flex;
    align-items: center;
}

.btn-login-nav {
    text-decoration: none;
    background: var(--brand-yellow);
    color: var(--text-dark);
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(250, 194, 19, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login-nav:hover {
    background: var(--brand-yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(250, 194, 19, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    padding: 4px;
}

/* Responsivitas Navbar (Mobile-First collapse) */
@media (max-width: 868px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 135, 90, 0.04);
        border-bottom: 1px solid rgba(0, 135, 90, 0.06);
    }
    .nav-menu.active {
        max-height: 350px;
        padding: 16px 0;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(0, 135, 90, 0.03);
    }
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    .nav-actions {
        display: none; /* Disembunyikan, digantikan tombol login di dalam menu hamburger */
    }
    /* Menampilkan tombol login khusus di mobile menu */
    .nav-menu .mobile-login-item {
        display: block !important;
        padding: 12px 24px;
    }
    .nav-menu .mobile-login-item .btn-login-nav {
        display: flex;
        justify-content: center;
        width: 80%;
        margin: 0 auto;
    }
}

.nav-menu .mobile-login-item {
    display: none;
}

/* --- HERO STYLE --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: linear-gradient(135px, #f3f7f4 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 135, 90, 0.08);
    color: var(--brand-green);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 135, 90, 0.12);
}

.hero-badge i {
    color: var(--brand-yellow);
}

.hero-content h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--brand-green);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background-color: var(--brand-green); /* Fallback */
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-hover) 100%);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    box-shadow: 0 6px 18px rgba(0, 135, 90, 0.25);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 135, 90, 0.35);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: transparent;
    color: var(--brand-green);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid var(--brand-green);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--brand-green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 135, 90, 0.15);
}


.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-main {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 135, 90, 0.08);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

/* Glassmorphism floating cards on hero image */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 135, 90, 0.08);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-card-1 {
    bottom: 30px;
    left: -20px;
}

.floating-card-2 {
    top: 30px;
    right: -20px;
}

.floating-card i {
    font-size: 1.4rem;
    color: var(--brand-green);
    background: rgba(0, 135, 90, 0.08);
    padding: 8px;
    border-radius: 50%;
}

.floating-card span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.floating-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Hero Mobile Styling */
@media (max-width: 868px) {
    .hero {
        padding-top: 110px;
        padding-bottom: 50px;
        text-align: center;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-image-wrapper {
        margin-top: 20px;
    }
    .floating-card-1 {
        left: 10px;
    }
    .floating-card-2 {
        right: 10px;
    }
}

/* --- SECTION GENERAL TITLE --- */
.section-title {
    text-align: center;
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.4rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* --- LAYANAN & MANFAAT SECTION (CARDS GRID) --- */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--bg-sage);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 135, 90, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--brand-green);
    box-shadow: var(--hover-shadow);
}

.service-card-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 14px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-benefits {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(0, 135, 90, 0.08);
    padding-top: 24px;
}

.service-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.service-benefits li i {
    color: var(--brand-green);
    font-size: 1rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 70px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .service-card-content {
        padding: 24px;
    }
}

/* --- EDUCARDS STYLE (MENGENAL PERAWATAN) --- */
.edu-section {
    padding: 100px 0;
    background: var(--bg-sage);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.edu-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 135, 90, 0.04);
    transition: all 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.edu-icon {
    font-size: 2.4rem;
    color: var(--brand-green);
    background: rgba(0, 135, 90, 0.08);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 24px;
}

.edu-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.45rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 700;
}

.edu-card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .edu-section {
        padding: 70px 0;
    }
    .edu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .edu-card {
        padding: 30px 24px;
    }
}

/* --- GALERI FOTO STYLE --- */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 290px;
    box-shadow: 0 8px 24px rgba(0,135,90,0.03);
    border: 1px solid rgba(0,135,90,0.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(18, 34, 26, 0.85));
    color: white;
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-section {
        padding: 70px 0;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- FOOTER STYLE --- */
.main-footer {
    background: #0d1a14;
    color: #798e84;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 135, 90, 0.1);
}

/* ==========================================================================
   9. DYNAMIC HERO COMPONENT STYLES
   ========================================================================== */

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--brand-green);
}

.breadcrumb .separator {
    font-size: 0.75rem;
    opacity: 0.6;
}

.breadcrumb .active-page {
    color: var(--brand-green);
    font-weight: 700;
}

/* Organic Blobs & Leaves Decor */
.organic-blobs-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.organic-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.organic-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--brand-green);
    top: -100px;
    right: -100px;
}

.organic-blob-2 {
    width: 500px;
    height: 500px;
    background: var(--brand-yellow);
    bottom: -150px;
    left: -150px;
}

.leaf-pattern {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.leaf-pattern-1 {
    top: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.leaf-pattern-2 {
    bottom: 15%;
    right: 5%;
    transform: rotate(-30deg);
}

/* Vector Illustration Container */
.vector-container {
    width: 100%;
    max-width: 440px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.vector-container svg {
    width: 100%;
    height: 100%;
}

/* Dynamic Container Styling for Clean Switching */
.hero-visual-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 420px;
}

.hero-visual-content > * {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden-element {
    opacity: 0;
    transform: scale(0.95);
    position: absolute;
    pointer-events: none;
}

/* Demo Control Panel */
.demo-toggle-panel {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 135, 90, 0.15);
    padding: 8px 12px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 135, 90, 0.15);
    display: flex;
    gap: 8px;
    z-index: 2000;
}

.demo-toggle-btn {
    border: none;
    background: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-toggle-btn.active {
    background: var(--brand-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 135, 90, 0.2);
}

.demo-toggle-btn:hover:not(.active) {
    background: var(--bg-sage);
    color: var(--brand-green);
}

/* ==========================================================================
   10. ALTERNATING DETAIL SERVICE SECTIONS STYLE
   ========================================================================== */
.detail-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.detail-section.bg-white {
    background-color: var(--white);
}

.detail-section.bg-sage {
    background-color: var(--bg-sage);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 64px;
    width: 100%;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-col-text {
    flex: 1.2;
    text-align: left;
}

.feature-col-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.feature-col-text h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.25;
}

.feature-col-text h3 .highlight {
    color: var(--brand-green);
}

.feature-col-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.feature-benefits-list li i {
    color: var(--brand-green);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.feature-img-main {
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 135, 90, 0.08);
    border: 4px solid var(--white);
    transition: transform 0.4s ease;
}

.feature-img-main:hover {
    transform: scale(1.03);
}

/* Responsivitas Layanan Detail Berseling (Mobile) */
@media (max-width: 768px) {
    .detail-section {
        padding: 70px 0;
    }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column !important;
        gap: 40px;
    }
    
    .feature-col-text {
        text-align: center;
    }
    
    .feature-col-text h3 {
        font-size: 1.8rem;
    }
    
    .feature-benefits-list {
        align-items: flex-start;
        max-width: 480px;
        margin: 0 auto;
        text-align: left;
    }
    
    .feature-img-wrapper {
        max-width: 380px;
    }
}