/* ============================================================
   Haven Villa — global stylesheet
   Palette: deep emerald + brass gold + warm ivory (no pure black/white)
   Bootstrap-first: custom CSS only where Bootstrap can't cover it.
   ============================================================ */

:root {
  --hv-emerald: #0e3b2e;
  --hv-emerald-deep: #082a20;
  --hv-emerald-soft: #175543;
  --hv-gold: #c9a45c;
  --hv-gold-soft: #e5cf9b;
  --hv-ivory: #f6f1e7;
  --hv-ivory-dim: #ece3d2;
  --hv-wine: #6d2137;
  --hv-ink: #22302a;
  --hv-muted: #5d6d64;
  --hv-font-head: "Playfair Display", Georgia, serif;
  --hv-font-body: "Inter", "Segoe UI", sans-serif;
}

body,html {
  font-family: var(--hv-font-body);
  color: var(--hv-ink);
  background-color: var(--hv-ivory);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-family: var(--hv-font-head);
  color: var(--hv-emerald-deep);
}

a { color: var(--hv-emerald-soft); }
a:hover { color: var(--hv-gold); }

/* ---------- generic section helpers ---------- */

.section-pad { padding: 5.5rem 0; }
.section-ivory { background-color: var(--hv-ivory); }
.section-ivory-dim { background-color: var(--hv-ivory-dim); }
.section-emerald {
  background: linear-gradient(160deg, var(--hv-emerald) 0%, var(--hv-emerald-deep) 100%);
  color: var(--hv-ivory);
}
.section-emerald h1, .section-emerald h2, .section-emerald h3,
.section-emerald h4, .section-emerald h5 { color: var(--hv-ivory); }
.section-emerald .lead, .section-emerald p { color: rgba(246, 241, 231, 0.82); }

.section-wine {
  background: linear-gradient(150deg, var(--hv-wine) 0%, #471525 100%);
  color: var(--hv-ivory);
}
.section-wine h1, .section-wine h2, .section-wine h3 { color: var(--hv-ivory); }

/* photo sections: real url() is injected later by photo.js */
.bg-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.bg-photo h1, .bg-photo h2, .bg-photo h3,
.bg-photo h4, .bg-photo h5 { color: #fff; }
.bg-photo p, .bg-photo .lead { color: rgba(255, 255, 255, 0.85); }

/* small gold kicker above headings */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hv-gold);
}
.kicker::before, .kicker::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--hv-gold);
  opacity: 0.7;
}

/* ornamental divider — FontAwesome only, no inline svg */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--hv-gold);
  margin: 1.4rem 0;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 0 0 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hv-gold));
}
.ornament::after {
  background: linear-gradient(90deg, var(--hv-gold), transparent);
}

/* ---------- buttons ---------- */

.btn-gold {
  --bs-btn-color: var(--hv-emerald-deep);
  --bs-btn-bg: var(--hv-gold);
  --bs-btn-border-color: var(--hv-gold);
  --bs-btn-hover-color: var(--hv-emerald-deep);
  --bs-btn-hover-bg: var(--hv-gold-soft);
  --bs-btn-hover-border-color: var(--hv-gold-soft);
  --bs-btn-active-bg: var(--hv-gold-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2rem;
  padding: 0.7rem 1.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 164, 92, 0.35);
}

.btn-outline-ivory {
  --bs-btn-color: var(--hv-ivory);
  --bs-btn-border-color: rgba(246, 241, 231, 0.65);
  --bs-btn-hover-color: var(--hv-emerald-deep);
  --bs-btn-hover-bg: var(--hv-ivory);
  --bs-btn-hover-border-color: var(--hv-ivory);
  border-radius: 2rem;
  padding: 0.7rem 1.7rem;
  font-weight: 600;
}

.btn-emerald {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--hv-emerald);
  --bs-btn-border-color: var(--hv-emerald);
  --bs-btn-hover-bg: var(--hv-emerald-soft);
  --bs-btn-hover-border-color: var(--hv-emerald-soft);
  --bs-btn-hover-color: #fff;
  border-radius: 2rem;
  padding: 0.7rem 1.7rem;
  font-weight: 600;
}

/* ---------- header ---------- */

.topbar {
  background: var(--hv-emerald-deep);
  color: rgba(246, 241, 231, 0.85);
  font-size: 0.83rem;
}
.topbar i { color: var(--hv-gold); }
.topbar .topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.navbar-hv {
  background: rgba(8, 42, 32, 0.97);
  backdrop-filter: blur(8px);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  transition: box-shadow 0.3s ease;
}
.navbar-hv.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.navbar-hv .navbar-brand img { height: 44px; width: auto; }
.navbar-hv .nav-link {
  color: rgba(246, 241, 231, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
}
.navbar-hv .nav-link:hover, .navbar-hv .nav-link.active { color: var(--hv-gold); }
.navbar-hv .navbar-toggler { border-color: rgba(246, 241, 231, 0.35); color: var(--hv-ivory); }
.navbar-hv .navbar-toggler:focus { box-shadow: none; }

/* 18+ round badge */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.5rem;
  border: 2px solid var(--hv-gold);
  border-radius: 50%;
  color: var(--hv-gold);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

/* ---------- cards & misc components ---------- */

.card-hv {
  border: 1px solid rgba(14, 59, 46, 0.1);
  border-radius: 1.1rem;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hv:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(8, 42, 32, 0.16);
}
.card-hv .card-img-top { height: 220px; object-fit: cover; width: 100%; background: var(--hv-ivory-dim); }

.icon-tile {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--hv-emerald-deep);
  background: linear-gradient(145deg, var(--hv-gold-soft), var(--hv-gold));
  box-shadow: 0 8px 18px rgba(201, 164, 92, 0.35);
}
.icon-tile--outline {
  background: transparent;
  border: 1px solid var(--hv-gold);
  color: var(--hv-gold);
  box-shadow: none;
}

/* stats counters */
.stat-hv .stat__num {
  font-family: var(--hv-font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--hv-gold);
  line-height: 1;
}
.section-emerald .stat-hv .stat__num { color: var(--hv-gold-soft); }

/* framed gallery image with offset gold border */
.frame-gold { position: relative; display: inline-block; }
.frame-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 2px solid var(--hv-gold);
  border-radius: 1rem;
  z-index: 0;
}
.frame-gold img {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0.9rem;
  background: var(--hv-ivory-dim);
}
.gallery-img--tall { height: 320px; }

/* testimonial */
.testimonial-hv {
  border-left: 4px solid var(--hv-gold);
  background: #fff;
  border-radius: 0 1rem 1rem 0;
}
.testimonial-hv .stars { color: var(--hv-gold); letter-spacing: 0.15em; }
.testimonial-hv img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hv-gold-soft);
}

/* price tables / list */
.price-tag {
  font-family: var(--hv-font-head);
  font-size: 1.9rem;
  color: var(--hv-wine);
}
.price-tag small { font-size: 0.85rem; color: var(--hv-muted); font-family: var(--hv-font-body); }

.package-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(14, 59, 46, 0.12);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.package-card--featured {
  border: 2px solid var(--hv-gold);
  box-shadow: 0 22px 50px rgba(8, 42, 32, 0.18);
}
.package-card__flag {
  position: absolute;
  top: 1rem;
  right: -2.2rem;
  transform: rotate(38deg);
  background: var(--hv-gold);
  color: var(--hv-emerald-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.3rem 2.6rem;
  text-transform: uppercase;
}

/* process steps */
.step-hv { position: relative; padding-left: 3.4rem; }
.step-hv__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hv-font-head);
  font-weight: 700;
  color: var(--hv-emerald-deep);
  background: var(--hv-gold);
}

/* faq accordion tweaks — still pure bootstrap markup */
.accordion-hv .accordion-item {
  border: 1px solid rgba(14, 59, 46, 0.12);
  border-radius: 0.9rem !important;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: #fff;
}
.accordion-hv .accordion-button {
  font-weight: 600;
  color: var(--hv-emerald-deep);
  background: #fff;
}
.accordion-hv .accordion-button:not(.collapsed) {
  background: var(--hv-ivory);
  color: var(--hv-emerald-deep);
  box-shadow: none;
}
.accordion-hv .accordion-button:focus { box-shadow: none; border-color: var(--hv-gold); }

/* comparison table */
.table-hv { border-radius: 1rem; overflow: hidden; }
.table-hv thead th {
  background: var(--hv-emerald);
  color: var(--hv-ivory);
  border: none;
  font-family: var(--hv-font-head);
}
.table-hv tbody td { vertical-align: middle; }
.table-hv .fa-check { color: var(--hv-emerald-soft); }
.table-hv .fa-xmark { color: var(--hv-wine); }

/* ---------- footer ---------- */

.footer-hv {
  background: var(--hv-emerald-deep);
  color: rgba(246, 241, 231, 0.78);
  font-size: 0.92rem;
}
.footer-hv h5, .footer-hv h6 {
  color: var(--hv-gold-soft);
  font-family: var(--hv-font-head);
  letter-spacing: 0.04em;
}
.footer-hv a { color: rgba(246, 241, 231, 0.78); text-decoration: none; }
.footer-hv a:hover { color: var(--hv-gold); }
.footer-hv .footer__link { display: block; padding: 0.22rem 0; }
.footer-hv .socials a {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 231, 0.3);
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: all 0.25s ease;
}
.footer-hv .socials a:hover { background: var(--hv-gold); border-color: var(--hv-gold); color: var(--hv-emerald-deep); }
.footer-hv .footer__divider { border-color: rgba(246, 241, 231, 0.15); }
.footer-hv .footer__fineprint { font-size: 0.8rem; color: rgba(246, 241, 231, 0.55); }

.rg-note {
  border: 1px solid rgba(201, 164, 92, 0.4);
  border-radius: 0.8rem;
  padding: 0.9rem 1.1rem;
  background: rgba(201, 164, 92, 0.08);
}

/* ---------- cookie banner (home only) ---------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1080;
  max-width: 380px;
  background: var(--hv-emerald-deep);
  color: var(--hv-ivory);
  border: 1px solid var(--hv-gold);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  padding: 1.1rem 1.25rem;
}
.cookie-banner p { font-size: 0.85rem; margin-bottom: 0.7rem; color: rgba(246,241,231,0.85); }

/* ---------- form notification (replaces alert()) ---------- */

.form-note {
  display: none;
  border-radius: 0.8rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.form-note.is-ok {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(23, 85, 67, 0.12);
  border: 1px solid var(--hv-emerald-soft);
  color: var(--hv-emerald);
}
.form-note.is-err {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(109, 33, 55, 0.1);
  border: 1px solid var(--hv-wine);
  color: var(--hv-wine);
}

/* floating label-ish inputs on ivory */
.form-control, .form-select {
  border-radius: 0.7rem;
  border-color: rgba(14, 59, 46, 0.25);
  padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--hv-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 164, 92, 0.25);
}

/* misc */
.text-gold { color: var(--hv-gold) !important; }
.text-ivory-dim { color: rgba(246, 241, 231, 0.72) !important; }
.link-gold { color: var(--hv-gold); font-weight: 600; }
.link-gold:hover { color: var(--hv-gold-soft); }

.map-embed {
  border: 0;
  width: 100%;
  min-height: 380px;
  border-radius: 1rem;
  filter: sepia(0.15) saturate(0.9);
}

/* carousel caption polish */
.carousel-hv .carousel-item { min-height: 88vh; }
.carousel-hv .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 720px;
  left: 8%;
  right: 8%;
}
.carousel-hv .carousel-indicators [data-bs-target] {
  width: 2.4rem;
  height: 4px;
  border-radius: 2px;
}
.carousel-hv .carousel-indicators .active { background-color: var(--hv-gold); }

/* responsive tweaks */
@media (max-width: 991.98px) {
  .section-pad { padding: 3.8rem 0; }
  .carousel-hv .carousel-item { min-height: 70vh; }
  .topbar { font-size: 0.78rem; }
}

/* TODO: fine-tune gold contrast on wine sections after real photos land */
