/* ============================================================
   The Bliss Palm Resort – Global Stylesheet
   Palette: Tropical Teal #1A6B72 | Sand #F5EFE0 | Ivory #FAFAF7
            Coral Accent #E8734A | Dark Text #1C2B2D
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #FAFAF7;
  color: #1C2B2D;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --teal:    #1A6B72;
  --teal-dk: #0F4448;
  --sand:    #F5EFE0;
  --ivory:   #FAFAF7;
  --coral:   #E8734A;
  --text:    #1C2B2D;
  --muted:   #5D7375;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(26,107,114,.12);
  --trans:   .3s cubic-bezier(.4,0,.2,1);
}

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--teal-dk);
}
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin: .75rem auto 0;
}

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }
section.alt-bg { background: var(--sand); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #d15e38; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,115,74,.35); }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-white  { background: #fff; color: var(--teal); }
.btn-white:hover  { background: var(--sand); }

/* ── Header / Nav ─────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  transition: var(--trans);
}
#site-header.scrolled {
  background: rgba(10,50,53,.96);
  backdrop-filter: blur(10px);
  padding: .65rem 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.15;
}
.header-logo span { display: block; font-size: .72rem; font-family: 'DM Sans',sans-serif; letter-spacing:.1em; color: rgba(255,255,255,.7); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.88);
  font-size: .92rem; font-weight: 500;
  transition: color var(--trans);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transition: transform var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-book { background: var(--coral); color: #fff !important; padding: .5rem 1.25rem; border-radius: 50px; }
.nav-book::after { display: none !important; }
.nav-book:hover { background: #d15e38 !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .5rem; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--trans); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--teal-dk);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  padding-bottom: 100px;
  overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  color: #fff; font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  transition: color var(--trans);
}
.mobile-nav a:hover { color: var(--coral); }
.mobile-nav-close {
  position: fixed; top: 72px; right: 20px; z-index: 1002;
  background: #fff; border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--teal-dk); font-size: 1.2rem;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  position: relative; height: 52vh; min-height: 320px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,44,48,.8) 0%, rgba(10,44,48,.3) 60%, transparent 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 2.5rem;
  color: #fff;
}
.page-hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: .5rem; }
.breadcrumb a { color: var(--coral); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(26,107,114,.18); }

/* ── Room Cards ───────────────────────────────────────────── */
.room-slider-wrap { position: relative; overflow: hidden; }
.room-slider { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.room-slide { flex: 0 0 100%; }
.room-slide img { width: 100%; height: 380px; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: none; border-radius: 50%;
  width: 42px; height: 42px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); transition: var(--trans); z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { display: flex; gap: 6px; justify-content: center; padding: .75rem 0 0; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(26,107,114,.25); border: none; cursor: pointer;
  transition: background var(--trans);
}
.slider-dot.active { background: var(--teal); width: 22px; border-radius: 4px; }

/* Room card body */
.room-body { padding: 1.5rem 1.75rem; }
.room-body h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.room-body p { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.room-amenities { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: 1.5rem; }
.amenity-tag {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  background: var(--sand); color: var(--teal);
  padding: .3rem .8rem; border-radius: 50px;
}

/* ── Amenities Grid ───────────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
.amenity-card {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center;
  box-shadow: 0 2px 12px rgba(26,107,114,.08);
  transition: var(--trans);
}
.amenity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amenity-icon { font-size: 2rem; margin-bottom: .75rem; }
.amenity-card p { font-size: .88rem; font-weight: 600; color: var(--teal-dk); }

/* ── Gallery Masonry ──────────────────────────────────────── */
.gallery-grid {
  columns: 3; column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative;
}
.gallery-item img { width: 100%; display: block; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(10,44,48,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--trans);
  color: #fff; font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; object-fit: contain; }
.lb-close {
  position: fixed; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.15); border: none; border-radius: 50%;
  width: 44px; height: 44px; color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; border-radius: 50%;
  width: 48px; height: 48px; color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }

/* ── Nearby Attractions ───────────────────────────────────── */
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.5rem; }
.nearby-card img { width: 100%; height: 200px; object-fit: cover; }
.nearby-card-body { padding: 1.1rem 1.25rem; }
.nearby-card-body h4 { font-size: 1.05rem; margin-bottom: .25rem; }
.nearby-card-body span { font-size: .85rem; color: var(--coral); font-weight: 600; }

/* ── Contact Form ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.25rem; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.info-icon { font-size: 1.4rem; margin-top: .1rem; flex-shrink: 0; }
.info-text strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.info-text p, .info-text a { font-size: .97rem; color: var(--text); }
.info-text a:hover { color: var(--coral); }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid #d8e4e5; border-radius: 8px;
  font-family: 'DM Sans',sans-serif; font-size: .95rem;
  color: var(--text); background: #fff;
  transition: border-color var(--trans);
  outline: none;
  margin-bottom: 1rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--teal);
}
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: .35rem; }
.contact-form textarea { resize: vertical; min-height: 130px; }
#form-success {
  display: none; background: #e6f7f3; border: 1.5px solid #1A6B72;
  color: var(--teal-dk); padding: 1rem 1.25rem; border-radius: 8px;
  margin-top: 1rem; font-size: .95rem;
}
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 360px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ── Trust / Highlight Strip ──────────────────────────────── */
.trust-strip {
  background: var(--teal);
  padding: 2.5rem 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust-item strong { display: block; font-size: 2rem; font-family: 'Playfair Display',serif; color: #fff; }
.trust-item span  { font-size: .85rem; color: rgba(255,255,255,.75); }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dk) 0%, var(--teal) 100%);
  padding: 5rem 0; text-align: center; color: #fff;
}
.cta-banner h2 { font-size: clamp(1.8rem,4vw,2.8rem); color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
#site-footer {
  background: var(--teal-dk);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-size: 1.3rem; color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
  transition: background var(--trans);
}
.social-link:hover { background: var(--coral); }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; font-family: 'DM Sans',sans-serif; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul a { font-size: .9rem; transition: color var(--trans); }
.footer-col ul a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
  font-size: .82rem;
}
.footer-credit a { color: var(--coral); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ── Floating Widgets ─────────────────────────────────────── */
.float-widgets {
  position: fixed; right: 1.25rem; bottom: 100px; z-index: 900;
  display: flex; flex-direction: column; gap: .75rem;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform var(--trans), box-shadow var(--trans);
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.float-wa   { background: #25D366; color: #fff; }
.float-call { background: var(--teal); color: #fff; }

/* Mobile Sticky Bottom Bar */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: #fff;
  border-top: 1px solid #e5eaea;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
  padding: .6rem .75rem;
}
.mobile-cta-bar-inner { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .5rem; }
.mcta-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: .5rem .25rem;
  border-radius: 8px; font-size: .72rem; font-weight: 600;
  border: none; cursor: pointer; transition: var(--trans);
  text-decoration: none;
}
.mcta-call { background: var(--teal); color: #fff; }
.mcta-wa   { background: #25D366; color: #fff; }
.mcta-book { background: var(--coral); color: #fff; }
.mcta-icon { font-size: 1.1rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .float-widgets { display: none; }
  .mobile-cta-bar { display: block; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #site-header { padding: .85rem 1.25rem; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .amenities-grid { grid-template-columns: repeat(2,1fr); }
  .nearby-grid { grid-template-columns: 1fr; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes kenBurns { from { transform:scale(1.08); } to { transform:scale(1); } }
.fade-up { animation: fadeUp .7s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
