/* ==========================================================================
   Skyport Villas — core stylesheet
   1. Tokens  2. Base  3. Buttons  4. Navbar  5. Hero  6. Sections
   7. Villas  8. Amenities  9. Attractions 10. Gallery + Lightbox
   11. Contact & Form  12. Footer  13. Floating UI  14. Animations
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --deep-blue: #0F4C81;
  --deep-blue-dark: #0A3559;
  --emerald: #1B998B;
  --gold: #F4B400;
  --gold-dark: #C89214;
  --bg: #F8FAFC;
  --text: #1F2937;
  --muted: #5B6472;
  --white: #FFFFFF;
  --line: rgba(15, 76, 129, 0.12);

  --grad-gold: linear-gradient(135deg, #F4B400 0%, #E09A00 100%);
  --grad-deep: linear-gradient(135deg, #0F4C81 0%, #1B998B 100%);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 78px;
}

/* 2. Base --------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: "Playfair Display", Georgia, serif; letter-spacing: 0.01em; }
h2, h3 { color: var(--deep-blue-dark); }
p { color: var(--muted); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-blue); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--emerald); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--deep-blue); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-tint { background: linear-gradient(180deg, #FFFFFF 0%, #EEF3F8 100%); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; margin-bottom: 1rem; line-height: 1.2; }
.section-sub { font-size: 1.05rem; margin-bottom: 0; }
.lead-text { font-size: 1.12rem; color: var(--text); }

/* 3. Buttons ------------------------------------------------------------ */
.btn {
  border-radius: 999px; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.7rem 1.7rem; border: 0; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }

.btn-gold { background: var(--grad-gold); color: #241a00; box-shadow: 0 12px 28px rgba(244, 180, 0, 0.32); }
.btn-gold:hover { color: #241a00; transform: translateY(-3px); box-shadow: 0 18px 38px rgba(244, 180, 0, 0.42); }

.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--deep-blue-dark); background: #fff; transform: translateY(-3px); }

.btn-outline-deep { color: var(--deep-blue); border: 1.5px solid var(--line); background: transparent; }
.btn-outline-deep:hover { color: #fff; background: var(--grad-deep); border-color: transparent; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-whatsapp { background: #1F9D55; color: #fff; }
.btn-whatsapp:hover { background: #17803f; color: #fff; transform: translateY(-3px); }

/* 4. Navbar ------------------------------------------------------------- */
.site-nav {
  min-height: var(--nav-h);
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 0.85rem 0;
}
.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.92); font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.9rem; position: relative;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--gold); }
.brand-text { color: #fff; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-text em { font-style: normal; color: var(--gold); }
.brand-mark { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.navbar-toggler { border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; font-size: 1.4rem; padding: 0.2rem 0.6rem; }
.navbar-toggler:focus { box-shadow: none; }

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
  padding: 0.45rem 0;
}
.site-nav.scrolled .nav-link { color: var(--text); }
.site-nav.scrolled .nav-link.active { color: var(--deep-blue); }
.site-nav.scrolled .brand-text { color: var(--deep-blue-dark); }
.site-nav.scrolled .navbar-toggler { border-color: var(--line); color: var(--deep-blue); }

/* 5. Hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; isolation: isolate; text-align: center; padding: 7rem 0 6rem;
}
.hero-media { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 116%; object-fit: cover; object-position: center 40%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 20, 34, 0.72) 0%, rgba(6, 20, 34, 0.48) 45%, rgba(6, 20, 34, 0.86) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(15, 76, 129, 0.25), transparent 70%);
}
.hero-content { max-width: 900px; }
.hero-eyebrow {
  color: var(--gold); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.78rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-title {
  color: #fff; font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 600; line-height: 1.05;
  letter-spacing: 0.06em; margin-bottom: 1rem; text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.hero-tagline {
  font-family: "Playfair Display", serif; font-style: italic; color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.1rem, 2.6vw, 1.7rem); margin-bottom: 1.25rem;
}
.hero-sub { color: rgba(255, 255, 255, 0.78); max-width: 620px; margin: 0 auto 2.25rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 2;
}
.scroll-indicator .mouse {
  width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 14px; position: relative;
}
.scroll-indicator .mouse::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; border-radius: 3px;
  background: var(--gold); transform: translateX(-50%); animation: wheel 1.8s var(--ease) infinite;
}
.scroll-label { color: rgba(255, 255, 255, 0.7); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; }
@keyframes wheel { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* 6. About -------------------------------------------------------------- */
.frame-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame-image::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 18px; pointer-events: none;
}
.frame-image img { transition: transform 1.2s var(--ease); }
.frame-image:hover img { transform: scale(1.05); }

.feature-list { list-style: none; padding: 0; margin: 1.75rem 0; }
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.65rem; color: var(--text); }
.feature-list i { color: var(--emerald); font-size: 1.15rem; line-height: 1.6; }

.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; padding-top: 0.5rem; }
.stat { display: flex; flex-direction: column; }
.stat .counter {
  font-family: "Playfair Display", serif; font-size: 2.2rem; font-weight: 600; color: var(--deep-blue); line-height: 1;
}
.stat .counter::after { content: "+"; color: var(--gold); }
.stat small { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.4rem; }

/* 7. Villas ------------------------------------------------------------- */
.villa-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; height: 100%;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 76, 129, 0.07);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  display: flex; flex-direction: column;
}
.villa-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.villa-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.villa-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.villa-card:hover .villa-media img { transform: scale(1.08); }
.villa-badge {
  position: absolute; top: 1rem; left: 1rem; background: var(--grad-gold); color: #241a00;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.35rem 0.95rem; border-radius: 999px;
}
.villa-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.villa-body h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.villa-specs { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; flex: 1; }
.villa-specs li { display: flex; gap: 0.55rem; align-items: center; font-size: 0.92rem; color: var(--text); }
.villa-specs i { color: var(--deep-blue); }

/* 8. Amenities ---------------------------------------------------------- */
.amenity-card {
  height: 100%; padding: 2rem 1.5rem; text-align: center; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 76, 129, 0.08); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.amenity-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(244, 180, 0, 0.45); }
.amenity-card i {
  font-size: 1.6rem; width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 1.1rem;
  border-radius: 50%; color: #fff; background: var(--grad-deep); box-shadow: 0 10px 24px rgba(15, 76, 129, 0.28);
  transition: transform 0.4s var(--ease);
}
.amenity-card:hover i { transform: rotate(-8deg) scale(1.08); background: var(--grad-gold); color: #241a00; }
.amenity-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.amenity-card p { font-size: 0.88rem; margin: 0; }

/* 9. Attractions -------------------------------------------------------- */
.section-map {
  background-color: #0B2136;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(27, 153, 139, 0.22), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(15, 76, 129, 0.45), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px);
}
.section-map .section-title, .section-map h3 { color: #fff; }
.section-map .section-sub, .section-map p { color: rgba(255, 255, 255, 0.72); }
.section-map .eyebrow { color: var(--gold); }
.attraction-card {
  height: 100%; padding: 1.75rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.attraction-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.13); border-color: rgba(244, 180, 0, 0.5); }
.attraction-card i { font-size: 1.5rem; color: var(--gold); margin-bottom: 0.9rem; display: block; }
.attraction-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.attraction-card p { margin: 0; font-size: 0.92rem; }
.map-figure { margin: 3rem 0 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-figure figcaption {
  background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem; padding: 0.85rem 1.25rem; text-align: center;
}

/* 10. Gallery + Lightbox ------------------------------------------------ */
.masonry { column-count: 3; column-gap: 1.25rem; }
.masonry-item { margin: 0 0 1.25rem; break-inside: avoid; }
.gallery-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
}
.gallery-btn img { width: 100%; transition: transform 0.9s var(--ease); }
.gallery-btn::after {
  content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  background: linear-gradient(180deg, rgba(10, 40, 66, 0.05), rgba(10, 40, 66, 0.6));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gallery-btn:hover img { transform: scale(1.09); }
.gallery-btn:hover::after, .gallery-btn:focus-visible::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 16, 26, 0.94); padding: 3.5rem 1rem; backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox-figure img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; margin-top: 1rem; }
.lightbox-close, .lightbox-nav {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: #241a00; transform: scale(1.08); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; }
.lightbox-nav { flex: 0 0 auto; margin: 0 1rem; }

/* 11. Contact & Form ---------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-list h3 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.25rem; }
.contact-list p, .contact-list address { margin: 0; color: var(--muted); font-style: normal; }
.contact-ico {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-deep); color: #fff; font-size: 1.15rem; box-shadow: 0 10px 24px rgba(15, 76, 129, 0.22);
}
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.glass-card {
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow-lg);
}
.form-title { font-size: 1.7rem; margin-bottom: 0.35rem; }
.form-sub { margin-bottom: 1.75rem; }
.form-label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-blue-dark); }
.form-control {
  border-radius: 14px; border: 1px solid var(--line); padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-control:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(27, 153, 139, 0.15); background: #fff; }
.form-control.is-invalid { border-color: #C0392B; }
.field-error { color: #C0392B; font-size: 0.8rem; margin: 0.35rem 0 0; min-height: 1rem; }
.form-status { margin-top: 1.25rem; font-weight: 500; }
.form-status.success { color: var(--emerald); }
.form-status.error { color: #C0392B; }

/* 12. Footer ------------------------------------------------------------ */
.site-footer { background: #08192A; color: rgba(255, 255, 255, 0.72); padding: 4.5rem 0 1.5rem; }
.footer-brand span { font-family: "Playfair Display", serif; color: #fff; font-size: 1.15rem; letter-spacing: 0.1em; }
.footer-tagline { color: var(--gold); font-style: italic; font-family: "Playfair Display", serif; margin: 0.75rem 0 0.5rem; }
.footer-text { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; max-width: 340px; }
.footer-heading { font-family: "Inter", sans-serif; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-links, .footer-contact, .social-list { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, 0.72); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact i { color: var(--emerald); margin-right: 0.5rem; }
.social-list { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-list a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: #fff; transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-list a:hover { background: var(--grad-gold); color: #241a00; transform: translateY(-3px); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* 13. Floating UI ------------------------------------------------------- */
.whatsapp-float, .back-to-top {
  position: fixed; right: 1.25rem; z-index: 1040; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem; border: 0; cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
}
.whatsapp-float { bottom: 5.5rem; background: #1F9D55; color: #fff; box-shadow: 0 12px 28px rgba(31, 157, 85, 0.4); }
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }
.back-to-top { bottom: 1.25rem; background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

/* 14. Animations -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-left { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}