/* =============================================
   Bali Villa Amenities — WordPress Theme CSS
   Version: 1.0.0
   ============================================= */

:root {
  --cream: #faf8f3; --cream-dark: #f5f0e8;
  --primary: #1c1612; --primary-hover: #2c2316;
  --partner-bg: #2c2316; --muted: #78716c;
  --warm-line: #d4c5a9; --gold: #c9a96e;
  --stone-warm: #e8dfd0; --border: #e0d8cf;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background-color: var(--cream); color: var(--primary); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Utilities */
.container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 2rem; padding-right: 2rem; }
.section-py { padding-top: 4rem; padding-bottom: 4rem; }
.bg-cream { background-color: var(--cream-dark); }

/* Section Title */
.section-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--primary); font-weight: 500; }
.section-title::before, .section-title::after { content: ''; flex: 1; height: 1px; background-color: var(--warm-line); }

/* Buttons */
.btn-primary { display: inline-block; background-color: var(--primary); color: #fff; text-decoration: none; font-size: .875rem; font-family: 'Lato', sans-serif; padding: 10px 24px; border-radius: 2px; border: none; cursor: pointer; transition: background-color .2s; }
.btn-primary:hover { background-color: var(--primary-hover); color: #fff; text-decoration: none; }
.btn-outline { display: inline-block; border: 1px solid var(--primary); color: var(--primary); text-decoration: none; font-size: .875rem; padding: 8px 24px; border-radius: 2px; transition: background-color .2s, color .2s; }
.btn-outline:hover { background-color: var(--primary); color: #fff; text-decoration: none; }
.btn-stone-warm { display: inline-flex; align-items: center; gap: .75rem; background-color: var(--stone-warm); color: var(--primary); font-size: .875rem; font-family: 'Lato', sans-serif; font-weight: 600; padding: 12px 24px; border-radius: 2px; border: none; cursor: pointer; transition: background-color .2s; }
.btn-stone-warm:hover { background-color: #ddd4c4; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: .5rem; background-color: #25d366; color: #fff; text-decoration: none; font-size: .875rem; padding: 10px 20px; border-radius: 2px; transition: background-color .2s; margin-top: 1rem; }
.btn-whatsapp:hover { background-color: #20ba5a; color: #fff; text-decoration: none; }
.btn-catalogue { background-color: var(--primary); color: #fff; text-decoration: none; font-size: .875rem; padding: 8px 20px; border-radius: 2px; white-space: nowrap; transition: background-color .2s; }
.btn-catalogue:hover { background-color: var(--primary-hover); color: #fff; text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 12px 2rem; max-width: 1400px; margin: 0 auto; }
.site-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex-shrink: 0; }
.site-logo .logo-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-style: italic; color: var(--primary); transition: color .2s; }
.site-logo .logo-tagline { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: #a09585; margin-top: 2px; }
.site-logo:hover .logo-name { color: var(--gold); }
.main-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.main-nav ul li { margin: 0; padding: 0; }
.main-nav ul a { font-size: .875rem; text-decoration: none; color: var(--muted); transition: color .2s; }
.main-nav ul a:hover { color: var(--primary); }
.main-nav ul .current-menu-item > a, .main-nav ul .current_page_item > a { color: var(--primary); font-weight: 600; border-bottom: 1px solid var(--primary); padding-bottom: 2px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary); padding: 4px; flex-shrink: 0; }

/* Hero Slider */
.hero-slider { position: relative; height: 70vh; min-height: 500px; overflow: hidden; background: #1a1a1a; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.25) 50%, transparent); pointer-events: none; }
.hero-text { position: absolute; left: 4rem; top: 50%; transform: translateY(-50%); max-width: 600px; transition: opacity .7s ease; z-index: 5; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: #fff; font-style: italic; line-height: 1.25; margin-bottom: 1.25rem; font-weight: 500; }
.hero-text p { color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.6; }
.nature-word { color: var(--gold); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; background: rgba(255,255,255,.2); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; z-index: 10; backdrop-filter: blur(4px); transition: background-color .2s; }
.slider-btn:hover { background: rgba(255,255,255,.35); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .375rem; z-index: 10; }
.slider-dots button { background: none; border: none; cursor: pointer; padding: 6px 3px; }
.slider-dots .dot { display: block; height: 10px; border-radius: 9999px; background: rgba(255,255,255,.5); width: 10px; transition: width .3s, background-color .3s; }
.slider-dots button.active .dot { background: #fff; width: 2rem; }

/* Two-col Grid */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.two-col-grid > img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.col-content h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary); font-weight: 500; }
.col-content p { color: var(--muted); line-height: 1.75; font-size: .9375rem; margin-bottom: 1.25rem; }

/* Partner Box */
.partner-box { background-color: var(--partner-bg); }
.partner-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.partner-box h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--cream-dark); font-weight: 500; }
.partner-box ul { list-style: none; margin: 0; padding: 0; }
.partner-box li { display: flex; gap: .625rem; color: var(--warm-line); font-size: .9rem; margin-bottom: .625rem; }
.partner-box li::before { content: '\2022'; color: var(--warm-line); flex-shrink: 0; }

/* Gallery Grid (homepage) */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery-item { overflow: hidden; border-radius: 2px; cursor: pointer; }
.gallery-item img { width: 100%; height: 16rem; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-item:hover img { transform: scale(1.05); }

/* Gallery Masonry (gallery page) */
.gallery-masonry { columns: 3; column-gap: 1rem; }
.gallery-masonry .item { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; border-radius: 2px; cursor: pointer; }
.gallery-masonry .item img { width: 100%; height: auto; display: block; transition: transform .5s ease, filter .3s ease; }
.gallery-masonry .item:hover img { transform: scale(1.04); filter: brightness(.9); }

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-height: 90vh; max-width: 90vw; border-radius: 2px; box-shadow: 0 0 60px rgba(0,0,0,.5); object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,.4); border: none; color: rgba(255,255,255,.8); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; transition: color .2s; }
.lightbox-close:hover { color: #fff; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 2.5rem; width: 50px; height: 70px; cursor: pointer; border-radius: 2px; display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Products */
.products-toggle { overflow: hidden; max-height: 0; transition: max-height .6s ease, opacity .4s ease; opacity: 0; }
.products-toggle.open { max-height: 6000px; opacity: 1; }
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.product-card { background: #fff; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.06); overflow: hidden; transition: box-shadow .3s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.product-card .card-img { height: 14rem; overflow: hidden; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card .card-body { padding: 1.25rem; }
.product-card .card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .5rem; }
.product-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--primary); margin: 0; font-weight: 500; }
.product-card .volume { font-size: .73rem; color: #a09585; background: var(--cream-dark); padding: 2px 8px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.product-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; margin-bottom: .75rem; }
.product-variants { display: flex; flex-wrap: wrap; gap: .375rem; }
.product-variants span { font-size: .73rem; border: 1px solid var(--warm-line); color: var(--muted); padding: 2px 8px; border-radius: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-map { border-radius: 2px; overflow: hidden; height: 14rem; box-shadow: 0 2px 8px rgba(0,0,0,.08); margin-bottom: 1.5rem; }
.contact-map iframe { display: block; }
.contact-map-wrap .contact-map { height: 16rem; }
.contact-form-heading { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--primary); margin-bottom: 1.5rem; font-weight: 500; }
.contact-row { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }
.contact-row svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: .3rem; }
.form-group input, .form-group textarea { width: 100%; border: 1px solid var(--border); background: #fff; border-radius: 2px; padding: 10px 12px; font-size: .875rem; color: var(--primary); font-family: 'Lato', sans-serif; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: none; min-height: 120px; }
.form-success { display: none; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: .75rem 1rem; border-radius: 2px; font-size: .875rem; margin-bottom: 1rem; }

/* About Values */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.value-card .card-img { overflow: hidden; border-radius: 2px; margin-bottom: 1rem; height: 16rem; }
.value-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.value-card:hover .card-img img { transform: scale(1.04); }
.value-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--primary); margin-bottom: .5rem; font-weight: 500; }
.value-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.commitment-section .col-content p { margin-bottom: 1rem; }
.certifications-img { max-width: 200px; width: 100%; height: auto; margin-top: 1rem; }

/* Footer */
.site-footer { background-color: var(--primary); color: var(--warm-line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 2.5rem; }
.footer-logo-link { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-bottom: .75rem; }
.footer-logo-link .logo-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-style: italic; color: var(--cream-dark); }
.footer-logo-link .logo-tagline { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: #a09585; margin-top: 2px; }
.footer-brand p { font-size: .875rem; color: #a09585; line-height: 1.6; max-width: 260px; }
.footer-col-title { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--cream-dark); margin-bottom: 1.25rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .875rem; color: #a09585; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--warm-line); }
.footer-contact-row { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; color: #a09585; margin-bottom: .75rem; }
.footer-contact-row svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { border-top: 1px solid var(--partner-bg); padding: 1.25rem 2rem; text-align: center; font-size: .75rem; color: #6b6055; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 500; display: flex; align-items: center; gap: .5rem; background-color: #25d366; color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 2rem; font-size: .875rem; font-weight: 600; font-family: 'Lato', sans-serif; box-shadow: 0 4px 14px rgba(37,211,102,.4); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(37,211,102,.5); color: #fff; text-decoration: none; }
.whatsapp-float svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Elementor Compat */
.elementor-page .entry-content { max-width: none; padding: 0; }
.elementor-section-boxed > .elementor-container { max-width: 1200px; }

/* Responsive */
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #e8e0d8; padding: 1rem 2rem; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 99; }
  .main-nav.open ul { flex-direction: column; gap: .625rem; }
  .btn-catalogue { display: none; }
  .menu-toggle { display: flex; }
  .hero-text { left: 1.5rem; right: 1.5rem; max-width: none; }
  .hero-text h1 { font-size: 1.8rem; }
  .two-col-grid, .partner-inner, .gallery-grid, .values-grid, .products-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 1.4rem; }
  .lightbox-nav { display: none; }
}
@media (max-width: 480px) { .gallery-masonry { columns: 1; } .hero-text h1 { font-size: 1.5rem; } .section-py { padding-top: 3rem; padding-bottom: 3rem; } }
