/* ============================================================
   Early Ubud SPA - Custom CSS (Overrides Bootstrap classes)
   ============================================================ */

body { font-family: var(--font-body); color: var(--bs-body-color); background-color: var(--cream); overflow-x: hidden; }
h1,h2,h3,h4,h5,h6,.navbar-brand,.display-font { font-family: var(--font-display); color: var(--bs-heading-color); }

.text-gold { color: var(--gold) !important; }
.text-gold-dark { color: var(--gold-dark) !important; }
.text-ink { color: var(--ink) !important; }
.text-muted-gold { color: var(--muted-gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-gold-soft { background-color: var(--gold-soft) !important; }
.bg-champagne { background-color: var(--champagne) !important; }
.bg-ink { background-color: var(--ink) !important; }

.section-padding { padding: 5rem 0; }
.section-title small { font-family: var(--font-body); letter-spacing: 4px; text-transform: uppercase; font-size: 0.75rem; color: var(--gold-dark); font-weight: 600; }
.section-title h2 { font-size: clamp(2rem,5vw,3rem); font-weight: 600; }
.section-title .divider { width: 70px; height: 3px; background: linear-gradient(90deg,var(--gold),var(--gold-light),var(--gold)); margin: 1rem auto; border-radius: 2px; }
/* ---------- Bootstrap Buttons Override ---------- */
.btn { font-family: var(--font-body); font-weight: 500; letter-spacing: 0.5px; border-radius: 2rem; padding: 0.65rem 1.6rem; transition: all 0.3s ease; text-transform: uppercase; font-size: 0.8rem; }
.btn-gold { background: linear-gradient(135deg,var(--gold-light),var(--gold) 60%,var(--gold-dark)); border: 1px solid var(--gold); color: #ffffff; }
.btn-gold:hover { color: #ffffff; border-color: var(--gold-light); background: linear-gradient(135deg,var(--gold),var(--gold-dark)); }
.btn-outline-gold { border: 1px solid var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: #ffffff; transform: translateY(-3px); }

/* ---------- Promotion Bar ---------- */
.promo-bar { width: 100%; background: linear-gradient(90deg,var(--gold-dark),var(--gold),var(--gold-dark)); color: #ffffff; font-size: 0.85rem; padding: 0.55rem 0; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-align: center; max-height: 60px; opacity: 1; transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease; }
.promo-bar.hidden { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.promo-bar a { color: #ffffff; text-decoration: underline; font-weight: 600; }

/* ---------- Site header (promo bar + navbar) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1030; background: transparent; transition: background 0.35s ease; }
.site-header.scrolled { background: linear-gradient(90deg,var(--gold-dark),var(--gold),var(--gold-dark)); }
/* ---------- Navbar ---------- */
.navbar.early-navbar { position: relative; padding: 0.9rem 0; background: transparent; transition: background 0.35s ease; }
.navbar-brand img.logo { height: 44px; width: auto; filter: brightness(0) invert(1); }
.navbar .nav-link { color: #ffffff !important; font-weight: 500; letter-spacing: 0.3px; margin: 0 0.4rem; position: relative; text-transform: uppercase; font-size: 0.82rem; }
.navbar .nav-link::after { content: ""; position: absolute; bottom: 2px; left: 0; width: 0%; height: 2px; background: var(--gold-light); transition: width 0.3s ease; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 100%; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--gold-light) !important; }
.navbar-toggler { border: none; background: transparent; box-shadow: none !important; padding: 0.25rem 0.5rem; }
.navbar-toggler:focus, .navbar-toggler:active, .navbar-toggler:focus-visible { outline: none; box-shadow: none !important; }
.navbar-toggler-icon { filter: invert(1) brightness(2); }
/* ---------- Offcanvas mobile nav (light) ---------- */
.offcanvas.offcanvas-light { background: #ffffff; }
.offcanvas.offcanvas-light .offcanvas-header { border-bottom: 1px solid var(--bs-border-color); margin-bottom: 0.5rem; padding-bottom: 0.75rem; }
.offcanvas.offcanvas-light .navbar-brand { margin-right: auto; }
.offcanvas.offcanvas-light .navbar-brand img.logo { filter: none !important; height: 44px; width: auto; }
.offcanvas.offcanvas-light .nav-link { color: var(--ink) !important; font-weight: 500; text-transform: uppercase; font-size: 0.9rem; padding: 0.7rem 0; }
.offcanvas.offcanvas-light .nav-link:hover, .offcanvas.offcanvas-light .nav-link.active { color: var(--gold-dark) !important; }

/* Header scrolled (solid cream) -> dark links / logo back to normal */
.site-header.scrolled .navbar-brand img.logo { filter: brightness(0) invert(1); }
.site-header.scrolled .navbar .nav-link { color: #ffffff !important; }
.site-header.scrolled .navbar .nav-link::after { background: #ffffff; }
.site-header.scrolled .navbar .nav-link:hover, .site-header.scrolled .navbar .nav-link.active { color: #ffffff !important; }
.site-header.scrolled .navbar-toggler { border: none; background: transparent; box-shadow: none !important; }
.site-header.scrolled .navbar-toggler-icon { filter: invert(1) brightness(2); }
/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: calc(var(--promo-height) + var(--nav-height) + 40px); padding-bottom: 4rem; overflow: hidden; color: #fff8ea; }
.hero-bg { position: absolute; inset: 0; background-image: url("../images/hero.jpg"); background-size: cover; background-position: center; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: -1; }
.hero .eyebrow { letter-spacing: 5px; text-transform: uppercase; font-size: 0.8rem; color: var(--gold-light); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem,7vw,4.5rem); font-weight: 600; line-height: 1.1; color: #ffffff; }
.hero .typed-wrap { color: var(--gold-light); font-style: italic; border-bottom: 2px solid var(--gold-light); padding-bottom: 4px; }
.hero .typed-dashes { color: #ffffff; }
.hero .typed-cursor { color: var(--gold-light); font-weight: 300; }
.hero p.lead { max-width: 560px; font-weight: 400; color: #fff3df; }
.hero .scroll-down { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--gold-light); font-size: 1.6rem; animation: bounce 2s infinite; opacity: 0.95; }
.hero-stat { background: rgba(255,255,255,0.55); border: 1px solid rgba(201,162,39,0.45); backdrop-filter: blur(5px); border-radius: 1rem; padding: 0.9rem 1rem; text-align: center; }
.hero-stat h4 { font-size: 1.4rem; color: var(--gold-dark); margin: 0; }
.hero-stat span { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); opacity: 0.9; }
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,10px)} }

/* ---------- Services ---------- */
.service-card { background: linear-gradient(160deg,var(--gold-light) 0%,var(--gold) 100%); border: 1px solid rgba(255,255,255,0.35); border-radius: 1rem; padding: 2rem 1.5rem; height: 100%; transition: transform 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--gold-dark); transform: scaleX(1); }
.service-card:hover { transform: translateY(-8px); border-color: var(--gold-dark); }
.service-icon { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.4); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1rem; transition: all 0.3s ease; }
.service-card:hover .service-icon { background: #fff; color: var(--gold-dark); }
.service-card h5 { font-weight: 600; color: #ffffff; }
.service-card p { font-size: 0.9rem; color: #ffffff; opacity: 0.95; }
/* ---------- Packages (parallax) ---------- */
.packages-section { position: relative; padding: 6rem 0; background-attachment: fixed; background-image: url("../images/paralax.jpg"); background-size: cover; background-position: center; }
.packages-section::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.packages-section .container { position: relative; z-index: 1; }
.packages-section .section-title h2 { color: #ffffff; }
.packages-section .section-title small { color: var(--gold-light); }
.packages-section .section-title p { color: #fff3df; }

.package-card { background: var(--cream); border-radius: 1.25rem; overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; transition: transform 0.35s ease; }
.package-card:hover { transform: translateY(-10px); }
.package-card .img-wrap { position: relative; height: 200px; overflow: hidden; }
.package-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.package-card:hover .img-wrap img { transform: scale(1.08); }
.package-tag { position: absolute; top: 14px; left: 14px; background: linear-gradient(135deg,var(--gold-light),var(--gold)); color: #ffffff; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 2rem; z-index: 2; }
.package-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.package-body .duration { color: var(--gold-dark); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }
.package-body h4 { font-weight: 600; font-size: 1.4rem; }
.package-price { font-family: var(--font-display); color: var(--gold-dark); }
.package-price .currency { font-size: 1rem; vertical-align: top; }
.package-price .amount { font-size: 2.2rem; font-weight: 700; }
.package-price .per { font-size: 0.8rem; color: var(--muted-gold); }
.package-body ul { list-style: none; padding: 0; margin: 0 0 1.2rem; flex: 1; }
.package-body ul li { padding: 0.3rem 0; font-size: 0.88rem; color: var(--muted-gold); border-bottom: 1px dashed var(--bs-border-color); }
.package-body ul li::before { content: "\2713"; color: var(--gold); font-weight: 700; margin-right: 0.6rem; }
/* ---------- FAQ ---------- */
.accordion.early-accordion .accordion-item { border: 1px solid var(--bs-border-color); border-radius: 0.9rem !important; overflow: hidden; margin-bottom: 1rem; background: #fff; }
.accordion.early-accordion .accordion-button { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--bs-heading-color); background: #fff; padding: 1.1rem 1.4rem; }
.accordion.early-accordion .accordion-button:not(.collapsed) { background: var(--gold); color: #ffffff; box-shadow: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.accordion.early-accordion .accordion-button:not(.collapsed)::after { filter: invert(1); }
.accordion.early-accordion .accordion-button:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.accordion.early-accordion .accordion-body { color: var(--muted-gold); font-size: 0.95rem; }
.accordion.early-accordion .accordion-button::after { filter: sepia(1) saturate(3); }

/* ---------- Contact ---------- */
.contact-card { background: linear-gradient(135deg,#8a6d3b,#c9a227); border-radius: 1.25rem; color: #fff; }
.contact-card .icon-circle { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.22); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-card h6 { color: #fff; margin-bottom: 0.1rem; }
.contact-card p { color: rgba(255,255,255,0.92); margin: 0; font-size: 0.9rem; }
.contact-card .btn-outline-gold { border-color: rgba(255,255,255,0.9); color: #fff; }
.contact-card .btn-outline-gold:hover { background: #fff; color: var(--gold-dark); border-color: #fff; }
.contact-card a.social-circle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.8); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all 0.3s ease; background: rgba(255,255,255,0.15); }
.contact-card a.social-circle:hover { background: #fff; color: var(--gold-dark); }
.form-brand input, .form-brand textarea { background: #fff; border: 1px solid var(--bs-border-color); border-radius: 0.6rem; padding: 0.7rem 1rem; font-family: var(--font-body); color: var(--bs-body-color); }
.form-brand input:focus, .form-brand textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 0; }

/* ---------- Footer ---------- */
footer { background: #faf3e3; color: var(--muted-gold); font-size: 0.85rem; border-top: 4px solid var(--gold); }
footer a { color: var(--gold-dark); text-decoration: none; }
footer a:hover { color: var(--gold); text-decoration: underline; }
footer .brand-name { font-family: var(--font-display); color: var(--ink); font-size: 1.3rem; }
footer .social-circle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(201,162,39,0.6); display: inline-flex; align-items: center; justify-content: center; color: var(--gold-dark); transition: all 0.3s ease; background: #fff; }
footer .social-circle:hover { background: var(--gold); color: #fff; }
/* Footer legal buttons (Privacy Policy / Terms of Service) */
footer .btn-legal { color: var(--gold-dark); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.4px; text-transform: uppercase; padding: 0.35rem 0.9rem; }
footer .btn-legal:hover { color: var(--gold); text-decoration: underline; }
/* Legal modal content */
.legal-body { font-size: 0.92rem; line-height: 1.7; color: var(--bs-body-color); white-space: pre-line; }
.modal-confirm.modal .legal-body { font-family: var(--font-body); }
/* ---------- Floating WhatsApp CTA ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; z-index: 1040; transition: transform 0.3s ease; text-decoration: none; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(37,211,102,0.4); animation: wapulse 2s infinite; z-index: -1; }
@keyframes wapulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }
.wa-tip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); background: var(--gold); color: #ffffff; font-size: 0.75rem; padding: 0.4rem 0.8rem; border-radius: 2rem; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; font-family: var(--font-body); border: 1px solid var(--gold-dark); }
.wa-float:hover .wa-tip { opacity: 1; }

/* ---------- AOS tweaks ----------
   AOS is intentionally NOT initialized by script.js (its scroll/mutation
   listeners caused the page to jump back to the top when scrolling to the
   footer on this long page). To make sure no animated element is ever hidden,
   we force every [data-aos] element to its final, visible state here — this
   makes the landing page scroll exactly like the auth pages. */
[data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Responsive (mobile-first priority) ---------- */
@media (min-width: 768px) { .section-padding { padding: 6rem 0; } }
@media (max-width: 991.98px) {
  .navbar-collapse { background: rgba(250,243,227,0.98); border: 1px solid rgba(201,162,39,0.35); padding: 1rem; border-radius: 1rem; margin-top: 0.5rem; }
  .navbar .nav-link { text-align: center; margin: 0.3rem 0; }
  .hero-stats-row { margin-top: 1.5rem; }
}
@media (max-width: 575.98px) {
  :root { --promo-height: 52px; }
  .wa-float { width: 54px; height: 54px; font-size: 1.7rem; bottom: 18px; right: 18px; }
  .hero h1 { font-size: 2.5rem; }
  .package-card .img-wrap { height: 170px; }
  /* Promotion bar: let text wrap so it fits on small screens */
  .promo-bar { white-space: normal; line-height: 1.35; padding: 0.4rem 0; font-size: 0.7rem; max-height: 64px; }
  .promo-bar .container { padding-left: 0.5rem; padding-right: 0.5rem; }
}
/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 1.25rem;
  padding: 2rem 1.6rem;
  transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-6px); }
.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-light);
}
.testimonial-name { color: var(--ink); font-size: 1.05rem; }
.testimonial-stars i { color: var(--gold); font-size: 0.9rem; }
/* ---------- Testimonials Carousel ---------- */
.testimonial-carousel { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }
.testimonial-carousel .carousel-item { min-height: 260px; }
.testimonial-carousel .carousel-inner { padding: 1.5rem 0; }
.testimonial-carousel .carousel-control-prev, .testimonial-carousel .carousel-control-next { opacity: 1; }
.testimonial-carousel .carousel-control-prev { left: -2rem; }
.testimonial-carousel .carousel-control-next { right: -2rem; }
.testimonial-carousel .testimonial-card { display: flex; align-items: center; }
@media (max-width: 575.98px) {
  .testimonial-carousel { padding: 0 1rem; }
  .testimonial-carousel .testimonial-card { padding: 1.5rem 1.2rem; }
}
