/*
Theme Name: Wresni Bali Property
Theme URI: https://wresniproperty.com/
Author: Danny Ramadhan
Author URI: https://ynnadr.github.io/
Description: Custom WordPress theme for PT. Wresni Indah Nusantara based on a static design.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, responsive-layout, one-column
Text Domain: wresni
*/

/* Variabel Warna & Gaya Global */
:root {
    --gold-color: #D4AF37;
    --gold-hover-color: #c5a231;
    --dark-blue: #0A2342;
    --light-gray: #f4f4f4;
    --font-color-dark: #333;
    --font-color-light: #fff;
    --header-font-color: #2c2c2c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--font-color-dark); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ------------------- Gaya Header ------------------- */
.sticky-header { background-image: url(images/header.png); background-size: cover; background-position: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 1rem; font-size: 0.9rem; }
.social-icons { display: flex; align-items: center; gap: 1rem; }
.social-icons img { height: 20px; width: auto; }
.language-selector { display: flex; align-items: center; gap: 0.75rem; }
.language-selector img { height: 18px; width: auto; border-radius: 3px; cursor: pointer; }
.main-nav { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; position: relative; color: var(--header-font-color); }

/* ------------------- Logika Menu Mobile-First ------------------- */
.nav-left, .nav-right { display: none; flex-direction: column; width: 100%; text-align: center; }
.nav-left ul, .nav-right ul { flex-direction: column; gap: 0; padding: 0; width: 100%; }
.nav-left ul li a, .nav-right ul li a { display: block; padding: 1rem 0; transition: background-color 0.2s ease; }
.nav-left ul li a:hover, .nav-right ul li a:hover, .nav-left ul li a:active, .nav-right ul li a:active { background-color: var(--gold-hover-color); }
.mobile-menu-toggle { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--header-font-color); }
.logo-container { height: 60px; }
.logo-container img { height: 100%; width: auto; }
.main-nav.nav-open { flex-wrap: wrap; justify-content: center; row-gap: 1rem; padding-bottom: 1rem; }
.main-nav.nav-open .nav-left, .main-nav.nav-open .nav-right { display: flex; }
.main-nav.nav-open .logo-container { display: none; }
.main-nav.nav-open .mobile-menu-toggle { position: absolute; top: 1.2rem; right: 1rem; }
.has-dropdown .fa-chevron-down, .has-dropdown .fa-chevron-right, .menu-item-has-children > a > .fa-chevron-down { font-size: 0.7em; margin-left: 0.5em; transition: transform 0.3s ease; }
.dropdown, .sub-menu { display: none; }
.main-nav.nav-open .dropdown, .main-nav.nav-open .sub-menu { position: static; background-color: var(--gold-hover-color); padding: 0.5rem 0; margin-top: 0.5rem; }
.main-nav.nav-open .dropdown a, .main-nav.nav-open .sub-menu a { padding: 0.75rem 0; font-size: 0.9em; }
.main-nav.nav-open .dropdown a:hover, .main-nav.nav-open .sub-menu a:hover { background-color: #b5922c; }
.main-nav.nav-open .has-dropdown.dropdown-open > .dropdown, .main-nav.nav-open .menu-item-has-children.dropdown-open > .sub-menu { display: block; }
.main-nav.nav-open .has-dropdown.dropdown-open > a > .fa-chevron-down, .main-nav.nav-open .menu-item-has-children.dropdown-open > a > .fa-chevron-down, .main-nav.nav-open .has-dropdown.dropdown-open > a > .fa-chevron-right { transform: rotate(180deg); }

/* ------------------- Hero & Content Sections ------------------- */
.hero-section { position: relative; height: 100vh; width: 100%; overflow: hidden; background-color: #000; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.video-background video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease; }
.video-background video.active { opacity: 1; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: rgba(0, 0, 0, 0); color: #fff; text-align: center; padding: 1rem; }
.content-section { padding: 4rem 1rem; }
.content-section h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
#property { background-color: var(--light-gray); color: var(--font-color-dark); }
.page-placeholder { background-color: var(--light-gray); }
#services, #testimony {
    background-color: var(--dark-blue); /* Warna fallback jika tidak ada gambar */
    color: var(--font-color-light); 
}
#services .service-card { border-color: rgba(255, 255, 255, .5); background-color: rgba(0, 0, 0, .5); color: var(--font-color-light); }
#services .service-icon, #services .service-title { color: var(--font-color-light); }
#property .btn-view-all { border-color: var(--dark-blue); color: var(--dark-blue); }
#property .btn-view-all:hover { background-color: var(--dark-blue); color: #fff; }
.testimonial-quote, .client-name { text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
#testimony .testimonial-nav-btn { border-color: var(--font-color-light); color: var(--font-color-light); background-color: rgba(0, 0, 0, .2); }
#testimony .testimonial-nav-btn:hover { background-color: rgba(0, 0, 0, .4); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; align-items: stretch; }
.service-card { border-radius: 8px; padding: 2rem; text-align: center; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.service-icon { font-size: 3rem; margin-bottom: 1rem; }
.service-title { font-size: 1.3rem; margin-bottom: 1rem; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.service-description { list-style: none; padding-left: 0; margin-top: auto; }
.service-description li { position: relative; padding-left: 1.75em; text-align: left; font-size: .95rem; line-height: 1.8; margin-bottom: 0.5rem; }
.service-description li::before { content: '✓'; position: absolute; left: 0; top: 4px; color: var(--gold-color); font-weight: bold; }
.properties-header { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto 2rem auto; flex-wrap: wrap; gap: 1rem; }
.properties-header .properties-header-title { flex-grow: 1; margin-right: auto; }
.properties-header h2 { margin-bottom: 0; text-align: left; }
.properties-controls { display: flex; align-items: center; gap: 1rem; }
.btn-view-all { padding: .5rem 1.5rem; border-radius: 20px; font-weight: 500; transition: background-color .3s, color .3s, box-shadow .3s; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
.btn-view-all:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.testimonial-container { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.testimonial-slider { display: flex; transition: transform .5s ease-in-out; }
.testimonial-slide { flex: 0 0 100%; padding: 0 4rem; text-align: center; }
.testimonial-quote { font-style: italic; font-size: 1.6rem; line-height: 1.6; margin-bottom: 1.5rem; }
.client-name { font-weight: 700; }
.testimonial-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); border-radius: 50%; width: 45px; height: 45px; font-size: 1.2rem; cursor: pointer; transition: background-color .3s; }
.testimonial-nav-btn.prev { left: 0; }
.testimonial-nav-btn.next { right: 0; }
.testimonial-nav-btn:disabled { opacity: .3; cursor: not-allowed; }
.footer-section { background-color: #000; color: #aaa; padding: 4rem 1rem; }
.footer-content { display: flex; flex-direction: column; gap: 2rem; text-align: center; max-width: 1100px; margin: 0 auto; }
.footer-left .footer-contact-link { font-size: 1.5rem; font-weight: 700; color: #fff; display: inline-block; margin-bottom: .5rem; border-bottom: 2px solid var(--gold-color); padding-bottom: .5rem; }
.footer-right h4 { font-weight: 700; color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.footer-company-name { font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-right p { margin-bottom: .5rem; line-height: 1.8; }
.footer-right a { color: #fff; }
.footer-right a:hover { text-decoration: underline; color: var(--gold-color); }
.footer-social-icons { display: flex; justify-content: center; gap: 1.5rem; margin-top: .5rem; }
.footer-social-icons img { height: 30px; width: auto; transition: opacity .3s, transform .3s; }
.footer-social-icons a:hover img { opacity: .8; transform: scale(1.1); }
.footer-qr-code { max-width: 120px; height: auto; margin: 1rem auto 0 auto; }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; text-align: center; }
.copyright-text { font-size: .8rem; color: #888; margin-top: 0; }
.page-placeholder h1 { font-size: 4rem; color: #ccc; text-transform: uppercase; letter-spacing: 5px; }

@media (min-width: 992px) {
    .sticky-header { height: 100px; }
    .main-nav { display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 2rem; flex-wrap: nowrap; position: static; }
    .mobile-menu-toggle { display: none; }
    .main-nav.nav-open .logo-container { display: block; }
    .nav-left, .nav-right { display: flex; flex: 1; }
    .nav-left ul, .nav-right ul { display: flex; flex-direction: row; align-items: center; height: 100%; width: 100%; gap: 0; padding: 0; }
    .nav-left ul { justify-content: flex-start; }
    .nav-right ul { justify-content: flex-end; }
    .nav-left ul li a, .nav-right ul li a { display: flex; align-items: center; height: 100%; padding: 0 1.5rem; font-weight: 500; position: relative; font-size: 1.1rem; text-transform: uppercase; }
    .nav-left ul li a::after, .nav-right ul li a::after { content: ''; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--header-font-color); transition: width .3s ease-out; }
    .nav-left ul li a:hover::after, .nav-right ul li a:hover::after { width: 60%; }
    .logo-container { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 90%; max-height: 90px; background: none; padding: 0; box-shadow: none; }
    .custom-logo-link { display: inline-block; height: 100%; }
    .custom-logo { height: 100%; width: auto; }
    .logo-container img { border-radius: 0; filter: none; }
    .hero-content h1 { font-size: 4rem; }
    .has-dropdown, .menu-item-has-children { position: relative; }
    .has-dropdown::after, .menu-item-has-children::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 100%; height: 10px; }
    .dropdown, .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background-color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); border-radius: 0 0 4px 4px; z-index: 1010; padding: .5rem 0; opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
    .dropdown li a, .sub-menu li a { padding: 1rem 1.5rem; width: 100%; height: auto; white-space: nowrap; transition: background-color .2s ease; text-transform: none; font-size: 1rem; }
    .dropdown li a:hover, .sub-menu li a:hover { background-color: var(--gold-hover-color); }
    .dropdown .has-dropdown > a, .menu-item-has-children .sub-menu .menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
    .dropdown-nested, .sub-menu .sub-menu { top: -.5rem; left: 100%; border-radius: 0 4px 4px 4px; }
    .has-dropdown:hover > .dropdown, .menu-item-has-children:hover > .sub-menu { display: block; opacity: 1; transform: translateY(0); pointer-events: auto; }
    .services-grid { grid-template-columns: repeat(5, 1fr); }
    .testimonial-quote { font-size: 1.8rem; }
    .footer-content { flex-direction: row; justify-content: space-between; align-items: flex-start; text-align: left; }
    .footer-social-icons { justify-content: flex-start; }
    .page-placeholder h1 { font-size: 6rem; }
}

/* ===============================================
   Gaya untuk Konten & Bullet List
   =============================================== */
.entry-content ul,
.elementor-widget-text-editor ul { list-style: disc; margin-left: 20px; margin-bottom: 1.5em; }
.entry-content ol,
.elementor-widget-text-editor ol { list-style: decimal; margin-left: 20px; margin-bottom: 1.5em; }
.entry-content ul li,
.elementor-widget-text-editor ul li,
.entry-content ol li,
.elementor-widget-text-editor ol li { margin-bottom: 0.5em; }

/* ===============================================
   Gaya Global untuk Halaman Properti & Carousel
   =============================================== */
:root{--property-primary-color:#005A9C;--property-secondary-color:#007BFF;--property-background-color:#f4f7fc;--property-surface-color:#ffffff;--property-text-color:#333;--property-subtle-text-color:#777;--property-border-color:#e0e0e0;--property-shadow:0 4px 12px rgba(0,0,0,.08);--property-border-radius:12px}
.property-page-container{max-width:1200px;margin:0 auto;padding:2rem 1rem}
.filters{background-color:var(--property-surface-color);padding:1rem;border-radius:var(--property-border-radius);margin-bottom:2rem;box-shadow:var(--property-shadow);display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;}
.filters .filter-group{flex:1 1 200px}.filters label{font-size:.9rem;font-weight:500;margin-bottom:.5rem;display:block}.filters select,.filters button{width:100%;padding:.75rem;border:1px solid var(--property-border-color);border-radius:8px;font-size:1rem;font-family:'Poppins',sans-serif}
.filters button{background-color:var(--property-primary-color);color:#fff;cursor:pointer;flex-basis:100px;flex-grow:0}
.carousel-wrapper { position: relative; padding-bottom: 3rem; overflow: hidden; max-width: 1200px; margin: 0 auto; }
.swiper{overflow:visible !important;position:static;overscroll-behavior-x:contain} .swiper-pagination{bottom:0 !important} .swiper-pagination-bullet-active{background-color:var(--property-primary-color)} .swiper-button-next,.swiper-button-prev{color:var(--property-primary-color)} .property-card{background:var(--property-surface-color);border-radius:var(--property-border-radius);overflow:hidden;box-shadow:var(--property-shadow);display:flex;flex-direction:column;height:100%;cursor:pointer;transition:transform .3s,box-shadow .3s} .property-card:hover{transform:translateY(-5px);box-shadow:0 8px 20px rgba(0,0,0,.1)} .card-image{width:100%;height:200px;object-fit:cover;background-color:#eee} .card-body{padding:1rem;display:flex;flex-direction:column;flex-grow:1} .card-type{font-size:.8rem;font-weight:600;color:var(--property-secondary-color);margin-bottom:.5rem;text-transform:uppercase} .card-title{font-size:1.1rem;font-weight:600;color:var(--property-primary-color);margin:0 0 .5rem 0} .card-price{font-size:1.2rem;font-weight:700;color:var(--property-text-color);margin-bottom:.5rem} .card-specs{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;font-size:.8rem;color:var(--property-subtle-text-color);margin-top:auto;padding-top:.5rem;border-top:1px solid var(--property-border-color)} .spec-item i{margin-right:.5rem} .no-results{text-align:center;padding:3rem;background:var(--property-surface-color);border-radius:var(--property-border-radius)} .modal{display:none;position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgba(0,0,0,.6);animation:fadeIn .3s} .modal-content{background-color:var(--property-surface-color);margin:5% auto;padding:2rem;border-radius:var(--property-border-radius);max-width:800px;width:90%;position:relative;animation:slideDown .3s} .modal-close{position:absolute;top:1rem;right:1.5rem;font-size:2rem;font-weight:700;color:var(--property-subtle-text-color);cursor:pointer;line-height:1} #modal-title{font-size:1.8rem;color:var(--property-primary-color);margin-bottom:1rem} #modal-intro{font-size:1rem;color:#555;padding-bottom:1rem;border-bottom:1px solid var(--property-border-color)} #modal-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:.5rem;margin-top:1rem} #modal-gallery a{border-radius:8px;overflow:hidden;aspect-ratio:1/1}.modal-gallery-item{width:100%;height:100%;object-fit:cover} #modal-specs{margin-top:1.5rem}.section-block h4{font-weight:600;font-size:1rem;color:var(--property-primary-color);margin-bottom:.5rem}.section-block ul{list-style:none;padding:0;font-size:.95rem;color:#555}.section-block li{margin-bottom:.5rem} @keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes slideDown{from{transform:translateY(-50px)}to{transform:translateY(0)}}
.map-section { margin-top: 3rem; background-color: var(--surface-color); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); }
#map { height: 500px; width: 100%; border-radius: 8px; z-index: 1; }
.leaflet-popup-content h3 { font-size: 1.1rem; color: var(--property-primary-color); margin: 0 0 5px 0; }

/* ===============================================
   Gaya untuk Section Contact Form
   =============================================== */
.contact-form-section {
    background-color: var(--light-gray);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: opacity 0.5s ease, max-height 0.8s ease, padding 0.5s ease, visibility 0.5s;
}
.contact-form-section.is-visible {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: var(--property-border-radius);
    box-shadow: var(--property-shadow);
}
.wpforms-container .wpforms-field-label { font-weight: 600; font-size: 1rem; }
.wpforms-container .wpforms-field input[type=text],
.wpforms-container .wpforms-field input[type=email],
.wpforms-container .wpforms-field textarea { border-radius: 8px; border: 1px solid var(--property-border-color); padding: 12px; }
.wpforms-container .wpforms-submit-container .wpforms-submit { background-color: var(--dark-blue) !important; border-radius: 20px !important; font-size: 1rem !important; padding: 10px 30px !important; border: none !important; transition: background-color 0.3s ease; }
.wpforms-container .wpforms-submit-container .wpforms-submit:hover { background-color: #000 !important; }

/* ===============================================
       Gaya Responsif Tambahan
       =============================================== */

    @media (max-width: 768px) {
        /*
         * Mengubah posisi konten hero ke bottom-center di mobile.
         * Kita menimpa `justify-content` dari 'center' menjadi 'flex-end'.
         */
        .hero-content {
            justify-content: flex-end; /* Vertikal: Bawah */
            padding-bottom: 5rem; /* Memberi jarak dari tepi bawah layar */
        }

        .hero-content h1 {
            font-size: 2rem;
        }

        .hero-content p {
            font-size: 1rem;
        }

        /* Perbaikan font testimoni (jika belum ada) */
        #testimony h2 {
            font-size: 1.8rem;
        }
        .testimonial-quote {
            font-size: 1.1rem;
            line-height: 1.6;
        }
        .client-name {
            font-size: 0.9rem;
        }
        .testimonial-container {
            padding: 0 1rem;
        }
    }