/* arifin */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: #1E3A8A;
    background-color: #F8FAFC;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin: 2rem 0;
    color: #1E3A8A;
}

p, li, a, span {
    font-family: 'Lato', sans-serif;
}

/* special text (optional Oswald) */
.cta-buttons .btn, .service-card h3, .why-card h3 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* top bar */
.top-bar {
    background-color: #1E3A8A;
    color: #F8FAFC;
    font-size: 12px;
    padding: 8px 0;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #F8FAFC;
    text-decoration: none;
    margin-right: 15px;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* navbar */
.navbar {
    background-color: #F8FAFC;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Desktop menu - default */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0 auto; /* Tengah */
    padding: 0;
    position: static; /* Kembalikan ke default */
    width: auto;
    background-color: transparent;
    box-shadow: none;
}

.nav-menu li {
    margin: 0 10px;
}

.nav-menu a {
    text-decoration: none;
    color: #1E3A8A;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: #64748B;
    border-bottom: 2px solid #1E3A8A;
}

.lang-switch {
    display: flex;
    gap: 8px;
    margin-left: 15px;
    flex-shrink: 0;
}

.lang-switch a {
    border: none;
    padding-bottom: 0;
}

.lang-switch a:hover {
    border-bottom: none;
}

.lang-switch img {
    border-radius: 3px;
    transition: transform 0.2s;
    width: 24px;
    height: auto;
}

.lang-switch img:hover {
    transform: scale(1.1);
}

/* Hamburger menu - hidden by default di desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1E3A8A;
    margin: 3px 0;
    transition: 0.4s;
}

/* Responsive untuk tablet kecil */
@media (max-width: 1100px) {
    .nav-menu li {
        margin: 0 6px;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    /* Tampilkan hamburger */
    .hamburger {
        display: flex;
    }
    
    /* Menu mobile - hidden by default */
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        width: 100%;
        flex-direction: column;
        background-color: #F8FAFC;
        transition: left 0.3s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 1000;
        margin: 0;
        display: flex; /* Tetap flex tapi di luar layar */
    }
    
    /* Menu mobile - active state */
    .nav-menu.active {
        left: 0;
    }
    
    /* Style menu items di mobile */
    .nav-menu li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 1rem;
        white-space: normal;
        display: block;
        padding: 8px 0;
    }
    
    /* Translator flags di mobile */
    .lang-switch {
        margin: 15px 0 5px;
        justify-content: center;
        width: 100%;
    }
    
    /* Animasi hamburger active */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Untuk layar sangat kecil */
@media (max-width: 480px) {
    .nav-menu a {
        font-size: 0.95rem;
    }
}

/* hero slideshow */
.hero {
    position: relative;
    height: 100vh;
    max-height: 1080px;
    min-height: 600px;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    padding: 20px;
    background-color: rgba(30,58,138,0.3); /* overlay */
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s;
}

.subheadline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s;
}

.cta-buttons {
    margin-bottom: 2rem;
    animation: fadeInUp 1.4s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: #1E3A8A;
    color: #F8FAFC;
    border: 2px solid #F8FAFC;
}

.btn-primary:hover {
    background-color: #64748B;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #F8FAFC;
    color: #1E3A8A;
    border: 2px solid #1E3A8A;
}

.btn-secondary:hover {
    background-color: #1E3A8A;
    color: #F8FAFC;
    transform: scale(1.05);
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
    animation: fadeInUp 1.6s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* sections */
.section {
    padding: 60px 0;
}

.light-bg {
    background-color: #F8FAFC;
}

.services-bg {
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    color: #F8FAFC;
}

.services-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30,58,138,0.7);
}

.services-bg .container {
    position: relative;
    z-index: 2;
}

.services-bg h2, .services-bg .service-card {
    color: #F8FAFC;
}

/* grids */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.problem-card {
    background-color: #F8FAFC;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.problem-card h3 {
    padding: 15px 15px 5px;
    color: #1E3A8A;
}

.problem-card p {
    padding: 0 15px 15px;
    color: #64748B;
}

.service-card {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #F8FAFC;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: scale(1.02);
    background-color: rgba(255,255,255,0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #F8FAFC;
}

/* pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom tetap */
    gap: 20px;
}

.pricing-item {
    background-color: #F8FAFC;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.pricing-item.highlight {
    background-color: #1E3A8A;
    color: #F8FAFC;
    grid-column: 1 / -1; /* Satu baris sendiri, full width dari grid */
    width: 50%; /* Lebar 50% dari container grid */
    margin: 0 auto; /* Tengah */
    padding: 10px 15px; /* Padding lebih kecil */
    font-size: 0.9rem; /* Ukuran font lebih kecil */
    border-radius: 30px; /* Membuatnya lebih kompak dan seperti badge */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pricing-item.highlight p {
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

.pricing-item .price {
    font-size: 2rem;
    font-weight: 700;
    color: #1E3A8A;
}

.pricing-item.highlight .price {
    color: #F8FAFC;
}

/* Responsive untuk mobile - tampilan tetap seperti sebelumnya */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Mobile: 1 kolom */
    }
    
    .pricing-item.highlight {
        grid-column: span 1; /* Mobile: 1 kolom penuh */
        width: 100%; /* Lebar penuh di mobile */
        padding: 15px; /* Padding normal untuk mobile */
        font-size: 0.95rem;
        border-radius: 8px; /* Kembali ke radius normal */
        margin: 0; /* Reset margin */
    }
}

/* Untuk layar sangat besar, pertahankan proporsi */
@media (min-width: 1200px) {
    .pricing-item.highlight {
        width: 40%; /* Lebih kecil lagi di layar sangat besar */
        padding: 8px 15px;
    }
}

/* why us */
.why-card {
    background-color: white;
    padding: 30px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.why-card i {
    font-size: 3rem;
    color: #1E3A8A;
    margin-bottom: 15px;
}

/* reviews */
.review-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* contact form */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #64748B;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #1E3A8A;
}

.g-recaptcha {
    margin: 20px 0;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    background-color: #F8FAFC;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #1E3A8A;
    color: #F8FAFC;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    background-color: white;
    color: #1E3A8A;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

/* footer */
footer {
    background-color: #1E3A8A;
    color: #F8FAFC;
    padding: 40px 0 0;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.footer-info a {
    color: #F8FAFC;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-map {
    width: 100%;
    margin: 20px 0;
}

/* sticky buttons */
.sticky-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.sticky-buttons.show {
    opacity: 1;
    visibility: visible;
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #1E3A8A;
    color: #F8FAFC;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.sticky-btn.whatsapp {
    background-color: #25D366;
}

.sticky-btn:hover {
    transform: scale(1.1);
}

#back-to-top {
    background-color: #64748B;
}

/* bottom bar */
.bottom-bar {
    background-color: #1E3A8A;
    border-top: 1px solid #64748B;
    font-size: 12px;
    padding: 15px 0;
    color: #F8FAFC;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.bottom-bar a {
    color: #F8FAFC;
    text-decoration: none;
}

.social-icons a {
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #64748B;
}

/* responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #F8FAFC;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .grid-2col, .grid-3col, .grid-4col {
        grid-template-columns: 1fr;
    }

    .trust-signals {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
    }
}

/* arifin */

@media (max-width: 768px) {
    .navbar {
        position: relative; /* ensure it's relative for absolute positioning of menu */
    }
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%; /* directly below navbar */
        width: 100%;
        background-color: #F8FAFC;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999; /* ensure it's below navbar if needed, but navbar has no z-index set, so it's fine */
    }
    .nav-menu.active {
        left: 0;
    }
    .hamburger {
        z-index: 1000; /* ensure it's above menu if needed, but since menu is below, it's fine */
    }
}

.social-icons img.social-icon-img {
    width: auto;
    height: 1.2rem; /* Sama dengan ukuran font ikon sosial media */
    vertical-align: middle;
    transition: opacity 0.3s;
}
.social-icons img.social-icon-img:hover {
    opacity: 0.8;
}

/* Why Choose Us section with background */
.why-bg {
    background-image: url('https://demoplumber.wordpresswebsitelatenmaken.my.id/imags/plumbing3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* efek parallax optional */
    position: relative;
    color: #F8FAFC;
}

.why-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 138, 0.8); /* overlay #1E3A8A dengan opacity */
    z-index: 1;
}

.why-bg .container {
    position: relative;
    z-index: 2;
}

.why-bg h2 {
    color: #F8FAFC;
}

.why-bg .why-card {
    background-color: rgba(255, 255, 255, 0.9); /* card tetap putih dengan transparansi */
    backdrop-filter: blur(2px);
    color: #1E3A8A;
}

/* Contact section with background image */
.contact-bg {
    background-image: url('https://demoplumber.wordpresswebsitelatenmaken.my.id/imags/plumbing6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Background TIDAK ikut scroll di semua perangkat */
    position: relative;
}

.contact-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 250, 252, 0.59); /* overlay putih dengan opacity 59% (gambar terlihat 41%) */
    z-index: 1;
}

.contact-bg .container {
    position: relative;
    z-index: 2;
}

/* Hapus atau nonaktifkan media query yang mengubah background-attachment */
/* @media (max-width: 768px) {
    .contact-bg {
        background-attachment: fixed; 
    }
} */

/* Styling form agar lebih menonjol di atas background */
.contact-bg #contact-form {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.contact-bg #contact-form input,
.contact-bg #contact-form select,
.contact-bg #contact-form textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #64748B;
}

.contact-bg #contact-form input:focus,
.contact-bg #contact-form select:focus,
.contact-bg #contact-form textarea:focus {
    background-color: #ffffff;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .contact-bg {
        background-attachment: scroll; /* hindari masalah performance di mobile */
    }
    
    .contact-bg #contact-form {
        padding: 20px;
    }
}

/* Social icons with original brand colors */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Warna asli setiap brand */
.social-icons .fa-instagram {
    color: #E4405F; /* Instagram original */
}

.social-icons .fa-facebook-f {
    color: #1877F2; /* Facebook original */
}

.social-icons .fa-youtube {
    color: #FF0000; /* YouTube original */
}

.social-icons .fa-tiktok {
    color: #000000; /* TikTok original (hitam) */
    filter: drop-shadow(2px 2px 0 #69C9D0); /* Efek shadow khas TikTok */
}

.social-icons .fa-x-twitter {
    color: #000000; /* X/Twitter original (hitam) */
}

/* Styling untuk ikon Threads (gambar) */
.social-icon-img {
    width: auto;
    height: 1.2rem;
    vertical-align: middle;
    transition: opacity 0.3s;
}

.social-icon-img:hover {
    opacity: 0.8;
}

/* Efek hover untuk semua ikon */
.social-icons a:hover i {
    filter: brightness(1.1);
}