/* ============================================================
   J GROUP VILLAS — MAIN STYLESHEET
   jgroupvillas.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #c9a96e;
  --gold-light:  #e8d5a3;
  --gold-dim:    rgba(201,169,110,0.15);
  --dark:        #0a0a08;
  --dark2:       #111109;
  --dark3:       #060604;
  --cream:       #f5f0e8;
  --muted:       #8a8070;
  --muted2:      #5a5248;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', system-ui, sans-serif;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
  --max-width:   1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--dark);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--cream);
}

/* ─── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}
.container-narrow { max-width: 760px; }
.container-split  { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.text-center      { text-align: center; }

.section {
  padding: 7rem 0;
  background: var(--dark);
}
.section-alt {
  background: var(--dark2);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
}
.section-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 500px;
}

/* ─── EYEBROW ──────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow-center { justify-content: center; }

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.95rem 2.5rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.btn-ghost:hover { color: var(--cream); }
.btn-arrow { transition: transform var(--transition); }
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-block;
  padding: 0.95rem 2.5rem;
  border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,169,110,0.06); }

.btn-large { padding: 1.1rem 3rem; font-size: 0.72rem; }

/* ─── NAVIGATION ───────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  background: rgba(6,6,4,0.75);
  transition: background var(--transition), padding var(--transition);
}
.nav-header.scrolled {
  background: rgba(10,10,8,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-dim);
  padding: 1rem 3rem;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-logo-img {
  height: 48px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: all var(--transition);
}

/* JS-injected mobile-only nav elements — hidden everywhere except inside the open mobile menu */
.nav-close,
.nav-mobile-cta { display: none; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, #061a1a 0%, #0a1215 35%, #0a0a08 65%, #12100a 100%);
}
.hero-ocean-anim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1a2e, #0d2440, #0a3d4a, #052830);
  animation: oceanShift 8s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes oceanShift {
  0%   { background: linear-gradient(135deg, #0a1a2e, #0d2440, #0a3d4a, #052830); }
  100% { background: linear-gradient(135deg, #0d2035, #102848, #0d4455, #073035); }
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(6,6,4,0.80) 0%,
    rgba(6,6,4,0.45) 50%,
    rgba(6,6,4,0.20) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stats {
  position: absolute;
  right: 3rem;
  bottom: 6rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.hero-stat { text-align: right; }
.hero-stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-top: 0.3rem;
}

/* ─── HOW IT WORKS ─────────────────────────────────────────── */
.steps { margin-top: 2rem; }
.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(201,169,110,0.07);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(201,169,110,0.2);
  line-height: 1;
  padding-top: 0.3rem;
}
.step-title {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.step-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}
.how-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1a14 0%, #0a120e 100%);
}
.how-ring {
  position: absolute;
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 50%;
  animation: ringPulse 4s ease-in-out infinite;
}
.how-ring-1 { width: 360px; height: 360px; animation-delay: 0s; }
.how-ring-2 { width: 260px; height: 260px; animation-delay: 0.5s; }
.how-ring-3 { width: 160px; height: 160px; animation-delay: 1s; }
@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}
.how-center {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.how-icon {
  font-size: 3rem;
  color: var(--gold);
  display: block;
  animation: iconSpin 12s linear infinite;
}
@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.how-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.how-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

/* ─── VILLAS GRID ──────────────────────────────────────────── */
.villas-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}
.villa-cards-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.villa-card {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
}
.villa-card-img-wrap {
  overflow: hidden;
  background: var(--dark2);
}
.villa-card-large .villa-card-img-wrap { height: 520px; }
.villa-cards-side .villa-card .villa-card-img-wrap { height: 250px; }

.villa-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.villa-card:hover .villa-card-img { transform: scale(1.06); }

/* Placeholder when no image */
.villa-card-img-wrap:not(:has(img[src$=".jpg"]:not([src$="placeholder-villa.jpg"])))::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1a14 0%, #0a1215 100%);
}

.villa-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.8rem 1.8rem;
  background: linear-gradient(transparent, rgba(6,6,4,0.95));
  transform: translateY(0);
}
.villa-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.villa-card-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}
.villa-cards-side .villa-card-name { font-size: 1.3rem; }
.villa-card-details {
  font-size: 0.7rem;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.villa-card-link {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
  display: block;
}
.villa-card:hover .villa-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ─── AMENITIES ────────────────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.amenity {
  padding: 2rem 1.8rem;
  border: 1px solid rgba(201,169,110,0.08);
  transition: border-color var(--transition), background var(--transition);
}
.amenity:hover {
  border-color: rgba(201,169,110,0.28);
  background: rgba(201,169,110,0.02);
}
.amenity-num {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.amenity-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.amenity-text {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── TESTIMONIAL ──────────────────────────────────────────── */
.section-testimonial {
  background: var(--dark3);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
.testimonial { text-align: center; padding: 2rem 0; }
.testimonial-mark {
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.6;
  margin-bottom: 2rem;
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-name {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
}
.testimonial-detail {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* ─── CTA SECTION ──────────────────────────────────────────── */
.section-cta { background: var(--dark); }
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--dark3); }
.footer-top { padding: 5rem 0 3rem; border-top: 1px solid var(--gold-dim); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3.5rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}
.footer-social { display: flex; gap: 1rem; }
.social-link {
  color: var(--muted2);
  transition: color var(--transition);
}
.social-link:hover { color: var(--gold); }

.footer-col-title {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cream); }

.footer-contact { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-contact-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
}
.footer-contact-val {
  font-size: 0.8rem;
  color: var(--cream);
  transition: color var(--transition);
}
a.footer-contact-val:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(201,169,110,0.06);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 0.7rem; color: var(--muted2); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.7rem;
  color: var(--muted2);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold); }

/* ─── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  padding: 12rem 0 6rem;
  background: var(--dark2);
  border-bottom: 1px solid var(--gold-dim);
  text-align: center;
}
.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
}
.page-hero-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── PROPERTY DETAIL PAGE ─────────────────────────────────── */
.villa-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  margin-bottom: 4rem;
}
.villa-gallery-main { height: 520px; overflow: hidden; }
.villa-gallery-side { display: flex; flex-direction: column; gap: 1rem; }
.villa-gallery-side-img { height: 252px; overflow: hidden; }
.villa-gallery-main img,
.villa-gallery-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.villa-gallery-main:hover img,
.villa-gallery-side-img:hover img { transform: scale(1.04); }

.villa-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: start;
}
.villa-specs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin: 2rem 0 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
.villa-spec-item { text-align: center; }
.villa-spec-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.villa-spec-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.villa-features { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.villa-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.villa-feature::before {
  content: '✦';
  font-size: 0.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.booking-card {
  background: var(--dark2);
  border: 1px solid var(--gold-dim);
  padding: 2.5rem;
  position: sticky;
  top: 100px;
}
.booking-card-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.booking-card-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 2rem; }
.booking-form { display: flex; flex-direction: column; gap: 1rem; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color var(--transition);
}
.booking-form input:focus,
.booking-form select:focus { border-color: var(--gold); }
.booking-form input::placeholder { color: var(--muted2); }
.booking-form select option { background: var(--dark2); }

/* ─── CONTACT PAGE ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.15);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted2); }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item {}
.contact-info-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.contact-info-val {
  font-size: 0.88rem;
  color: var(--cream);
  line-height: 1.6;
}

/* ─── FAQ PAGE ─────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(201,169,110,0.08);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--cream);
  gap: 1rem;
}
.faq-icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 1.8rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.85;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ─── RESPONSIVE LAYOUT CLASSES ────────────────────────────── */

/* Properties page — villa showcase rows */
.villa-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
}

/* Villa detail pages — "also available" grid */
.villa-also-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Contact/booking — first + last name side by side */
.form-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Burger → X animation when menu open */
.nav-burger span { transition: all var(--transition); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE ───────────────────────────────────────────────── */

/* ── Tablet (1024px) ── */
@media (max-width: 1024px) {
  .container { padding: 0 2rem; }
  .container-split { grid-template-columns: 1fr; gap: 3rem; }
  .split-right { display: none; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .villa-detail-grid { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Phone (768px) ── */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: flex;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }
  .nav-header {
    padding: 0.85rem 1.2rem;
    /* Always solid on mobile — nav must be readable at page top */
    background: rgba(10,10,8,0.97) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gold-dim);
  }
  .nav-logo-img { height: 36px; }

  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(10,10,8,0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5rem !important;
    z-index: 9999 !important;
    padding: 2rem !important;
  }
  .nav-links.open .nav-link {
    font-size: 1.1rem !important;
    letter-spacing: 0.2em !important;
    color: #f5f0e8 !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
  }
  .nav-links.open .nav-link:hover {
    color: #c9a96e !important;
  }
  .nav-links.open .nav-close {
    display: flex !important;
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.4rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  .nav-links.open .nav-mobile-cta {
    display: inline-block !important;
    margin-top: 0.5rem;
    padding: 0.75rem 2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
  }

  /* Hero — stats inline below title */
  .hero {
    padding: 0 1.5rem 4rem;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .hero-content { width: 100%; }
  .hero-title { font-size: clamp(2rem, 7.5vw, 2.8rem); line-height: 1.1; }
  .hero-sub { max-width: 100%; font-size: 0.84rem; margin-bottom: 1.8rem; }
  .hero-actions { flex-direction: column; gap: 1rem; align-items: flex-start; }

  .hero-stats {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    margin-top: 2rem;
  }
  .hero-stat { text-align: left; }
  .hero-stat-num { font-size: 2rem; }

  /* Stronger overlay on mobile for text legibility */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(6,6,4,0.5) 0%,
      rgba(6,6,4,0.42) 40%,
      rgba(6,6,4,0.88) 100%
    );
  }

  /* Sections */
  .section { padding: 4rem 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .section-sub { max-width: 100%; }

  /* Villa cards (homepage) */
  .villas-grid { grid-template-columns: 1fr; }
  .villa-card-large .villa-card-img-wrap { height: 300px; }
  .villa-cards-side .villa-card .villa-card-img-wrap { height: 220px; }
  .villa-card-link { opacity: 1; transform: none; } /* Always show on touch */

  /* Amenities */
  .amenities-grid { grid-template-columns: 1fr; }

  /* CTA — full-width stacked buttons */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-primary,
  .cta-actions .btn-outline { display: block; text-align: center; width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { padding: 3rem 0 2rem; }
  .footer-bottom-inner { flex-direction: column; gap: 0.8rem; text-align: center; }

  /* Ensure footer links have comfortable tap targets */
  .footer-links li { padding: 0.2rem 0; }
  .footer-links a { min-height: 36px; display: inline-flex; align-items: center; }

  /* Villa gallery (detail pages) */
  .villa-gallery { grid-template-columns: 1fr; }
  .villa-gallery-side { display: none; }
  .villa-gallery-main { height: 260px !important; }

  /* Properties page villa rows */
  .villa-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }
  /* Reverse rows (text-first on desktop): put image on top on mobile */
  .villa-row-rev > *:first-child { order: 2; }
  .villa-row-rev > *:last-child  { order: 1; }

  /* Villa detail "Also Available" */
  .villa-also-grid { grid-template-columns: 1fr; }

  /* Buttons — minimum 44px touch targets */
  .btn-primary, .btn-outline, .btn-ghost {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-ghost { min-height: 36px; }

  /* Page hero (inner pages) */
  .page-hero { padding: 9rem 0 4rem; }
  .page-hero-title { font-size: clamp(2.2rem, 7vw, 3.5rem); }
  .page-hero-sub { max-width: 100%; font-size: 0.84rem; }

  /* FAQ — readable question text on mobile */
  .faq-question { padding: 1.4rem 0; font-size: 1rem; }
  .faq-item.open .faq-answer { max-height: 600px; }

  /* Booking card */
  .booking-card { margin-top: 2rem; }
}

/* ── Medium phones (430px — iPhone 14 Plus) ── */
@media (max-width: 430px) {
  .container { padding: 0 1.2rem; }
  .hero { padding: 0 1.2rem 3.5rem; }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.2rem); }
  .hero-stat-num { font-size: 1.8rem; }
  .hero-stats { gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: clamp(1.6rem, 7.5vw, 2rem); }
  .amenity { padding: 1.5rem 1.2rem; }
  .testimonial-quote { font-size: 1.25rem; }
  .page-hero { padding: 8rem 0 3rem; }
  .page-hero-title { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }

  /* Name fields stack on smaller phones */
  .form-name-grid { grid-template-columns: 1fr; }
}

/* ── Small phones (390px — iPhone 14/15) ── */
@media (max-width: 390px) {
  .hero-title { font-size: clamp(1.75rem, 8.5vw, 1.95rem); }
  .hero-sub { font-size: 0.8rem; }
  .section-title { font-size: clamp(1.55rem, 8vw, 1.8rem); }
  .villa-card-large .villa-card-img-wrap { height: 260px; }
  .nav-logo-text { font-size: 0.85rem; }
}

/* ── Very small phones (375px — iPhone SE) ── */
@media (max-width: 375px) {
  .hero-title { font-size: 1.7rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.5rem; }
  /* Drop logo text on iPhone SE — only logo image remains */
  .nav-logo-text { display: none; }
  .booking-card { padding: 1.5rem; }
  .page-hero-title { font-size: 1.85rem; }
}

/* ─── ANIMATIONS ───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── DATE PICKER ──────────────────────────────────────────── */
input[type="date"] {
  color-scheme: dark;
}
input[type="date"]:focus {
  color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.4);
  cursor: pointer;
}

/* ─── WHATSAPP FLOAT ────────────────────────────────────────── */
#wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
#wa-float::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(201,169,110,0.5);
  animation: wa-pulse 2.8s ease-out infinite;
  pointer-events: none;
}
#wa-float:hover {
  transform: scale(1.08);
  background: #20be5a;
}
.wa-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: #111109;
  color: #f5f0e8;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid rgba(201,169,110,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#wa-float:hover .wa-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.75); opacity: 0; }
}
@media (max-width: 600px) {
  #wa-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  #wa-float::before { width: 48px; height: 48px; }
  #wa-float svg { width: 24px; height: 24px; }
  .wa-tooltip { display: none; }
}
