/*
Theme Name: Amore Dream Bali
Theme URI: https://amoredreambali.com
Author: Amore Dream Bali
Author URI: https://amoredreambali.com
Description: Custom child theme for Amore Dream Bali — architecture-led hospitality. Built on Hello Elementor with Elementor Pro.
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: amore-dream-bali
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ===== Brand CSS Variables (matches Elementor Global Colors) ===== */
:root {
  --jungle: #0F2F25;
  --forest: #0F4F2F;
  --jade: #2F6B5C;
  --ink: #000000;
  --moonlight: #D8D6CE;
  --jasmine: #F1F1EE;
  --calm: #8FA9AE;
  --paradise: #F29A2E;
  --rust: #8C3A0E;

  --radius: 16px;
  --radius-sm: 12px;
  --ui-radius: 8px;
}

/* ===== Base Resets (supplement Elementor) ===== */
body {
  background: var(--jasmine);
}

img {
  border-radius: var(--ui-radius);
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  background: var(--jasmine);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform .2s ease;
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ===== Focus Visible ===== */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(242,154,46,.55);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ===== Custom Elementor Overrides ===== */

/* Page header section with overlay gradient */
.adb-page-header-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.28) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Hero section parallax image */
.adb-parallax-image {
  transform: translate3d(0,0,0) scale(1.04);
  will-change: transform;
}

/* Hero overlay gradient */
.adb-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.36) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.42) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Card hover uplift */
.adb-card-hover {
  transition: transform .24s ease, box-shadow .24s ease;
}
.adb-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

/* Project badge styles */
.adb-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  border: 1px solid rgba(241,241,238,.8);
  border-radius: var(--ui-radius);
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--jasmine);
  background: rgba(15,47,37,.25);
}
.adb-badge-upcoming { background: rgba(140,58,14,.35); }
.adb-badge-invest { background: rgba(242,154,46,.26); }

/* Feature icon */
.adb-feature-icon {
  width: 45px;
  height: 45px;
  display: inline-flex;
  color: var(--forest);
  flex: 0 0 auto;
}
.adb-feature-icon svg {
  width: 100%;
  height: 100%;
}

/* Amenity switcher styles */
.adb-amenity-figure {
  position: relative;
  border: 1px solid rgba(241,241,238,.22);
  overflow: visible;
  border-radius: 8px;
}
.adb-amenity-figure::after {
  content: "";
  position: absolute;
  left: -15px;
  top: 15px;
  right: 15px;
  bottom: -15px;
  border: 1px solid rgba(241,241,238,.4);
  pointer-events: none;
  background-color: rgba(220,220,220,.23);
  z-index: 0;
  border-radius: 8px;
}
.adb-amenity-figure img {
  position: relative;
  z-index: 1;
}

.adb-amenity-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: var(--jasmine);
  padding: 30px;
  border: 1px solid rgba(241,241,238,.26);
  background: rgba(15,47,37,.18);
  backdrop-filter: blur(1px);
  box-shadow: 0 16px 30px rgba(0,0,0,.24);
  overflow: auto;
}
.adb-amenity-caption::before {
  content: "";
  position: absolute;
  inset: 15px;
  background: linear-gradient(180deg, rgba(15,47,37,.2) 0%, rgba(15,47,37,.82) 100%);
  z-index: -1;
}

/* Amenity tab button */
.adb-amenity-tab {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 4px 0;
  color: rgba(241,241,238,.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.9rem);
  line-height: 1.18;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
  opacity: .84;
}
.adb-amenity-tab:hover,
.adb-amenity-tab:focus-visible,
.adb-amenity-tab.is-active {
  color: var(--jasmine);
  transform: translateX(4px);
  opacity: 1;
}

/* Location tab styles */
.adb-location-tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: rgba(241,241,238,.6);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.adb-location-tab:hover { color: var(--jasmine); }
.adb-location-tab.is-active {
  color: var(--jasmine);
  border-bottom-color: var(--paradise);
}

/* Footer social icons */
.adb-social-icon {
  border: 1px solid rgba(241,241,238,.24);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.adb-social-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--jasmine);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adb-social-icon:hover {
  background: rgba(241,241,238,.10);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .adb-parallax-image { transform: translate3d(0,0,0) scale(1.02) !important; }
}



.gallery-item .gallery-icon {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery-item .gallery-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
