/* ══════════════════════════════════════════════════════
   KATARNIA SARAI RESORT — Shared Stylesheet
══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --forest:  #162416;
  --moss:    #243d24;
  --fern:    #3a6b2a;
  --sage:    #5a8a4a;
  --gold:    #c8a84b;
  --goldlt:  #e8d49a;
  --cream:   #f5f0e8;
  --ivory:   #faf8f5;
  --bark:    #7a5c3a;
  --shadow:  rgba(22,36,22,0.16);
}

*, *::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: var(--ivory); color: var(--forest); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: rgba(22,36,22,0.97);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 62px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(200,168,75,0.15);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  color: var(--cream); font-size: 1.2rem; font-weight: 700;
  white-space: nowrap; cursor: pointer;
}
.nav-logo span { color: var(--gold); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links a {
  color: rgba(245,240,232,0.78);
  font-size: 0.73rem; letter-spacing: 1.8px; text-transform: uppercase;
  font-weight: 500; padding: 0 0.75rem; line-height: 62px;
  transition: color 0.3s; cursor: pointer; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.nav-cta {
  background: var(--gold); color: var(--forest) !important;
  padding: 0.5rem 1.1rem; border-radius: 3px; line-height: normal;
  font-weight: 600; margin-left: 0.5rem;
}
.nav-links a.nav-cta:hover { background: var(--goldlt); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--cream); transition: 0.3s; display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* mobile nav */
@media (max-width: 900px) {
  nav { padding: 0 1.2rem; }
  .nav-links {
    display: none; position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    flex-direction: column; background: rgba(22,36,22,0.99); align-items: center;
    justify-content: center; gap: 0; z-index: 1999; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { line-height: normal; padding: 0.9rem 2rem; font-size: 1rem; width: 100%; text-align: center; }
  .nav-links a.nav-cta { margin: 0.5rem 0; border-radius: 3px; }
  .hamburger { display: flex; }
}

/* ── PAGE WRAPPER ─────────────────────────────────── */
.page-body { padding-top: 62px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── HERO ──────────────────────────────────────────── */
.page-hero {
  position: relative; height: 70vh; min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background-size: cover; background-position: center;
}
.page-hero.short { height: 50vh; min-height: 340px; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(22,36,22,0.65) 0%, rgba(22,36,22,0.5) 50%, rgba(22,36,22,0.8) 100%); }
.hero-cnt { position: relative; z-index: 2; text-align: center; padding: 2rem; }
.hero-tag { color: var(--gold); font-size: 0.72rem; letter-spacing: 5px; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 0.8rem; }
.hero-cnt h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem,7vw,5.5rem); color: var(--cream); font-weight: 400; line-height: 1.08; margin-bottom: 0.6rem; }
.hero-cnt h1 em { font-style: italic; color: var(--goldlt); }
.hero-cnt p { color: rgba(245,240,232,0.75); font-size: 0.95rem; letter-spacing: 1.5px; }

/* ── SECTION BASE ─────────────────────────────────── */
.sec { padding: 5.5rem 0; }
.sec.dark { background: var(--forest); }
.sec.alt  { background: var(--cream); }
.sec.white{ background: white; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 2rem; }
.sec-hd { text-align: center; margin-bottom: 3.5rem; }
.sec-tag { color: var(--gold); font-size: 0.72rem; letter-spacing: 5px; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 0.7rem; }
.sec-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4vw,3rem); font-weight: 400; line-height: 1.2; }
.sec-title em { color: var(--fern); font-style: italic; }
.sec-title.light { color: var(--cream); }
.sec-title.light em { color: var(--goldlt); }
.divider { width: 55px; height: 1.5px; background: linear-gradient(to right, var(--gold), transparent); margin: 1.2rem auto; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn { display: inline-block; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; font-size: 0.78rem; border-radius: 3px; transition: all 0.3s; padding: 0.85rem 2rem; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--goldlt); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(245,240,232,0.45); color: var(--cream); background: transparent; }
.btn-outline:hover { border-color: var(--gold); background: rgba(200,168,75,0.12); color: var(--gold); }
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-dark:hover { background: var(--moss); transform: translateY(-2px); }

/* ── CARDS ────────────────────────────────────────── */
.card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 30px var(--shadow); transition: transform 0.35s, box-shadow 0.35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(22,36,22,0.15); }

/* ── TICKER ───────────────────────────────────────── */
.ticker { background: var(--forest); padding: 0.8rem 0; overflow: hidden; border-top: 1px solid rgba(200,168,75,0.15); border-bottom: 1px solid rgba(200,168,75,0.15); }
.ticker-inner { display: flex; gap: 2.5rem; white-space: nowrap; animation: tick 32s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick-item { color: var(--gold); font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; display: flex; align-items: center; gap: 0.7rem; }
.tick-item::before { content: '✦'; opacity: 0.5; font-size: 0.6rem; }

/* ── REVEAL ANIMATION ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.up { opacity: 1; transform: translateY(0); }

/* ── FOOTER ───────────────────────────────────────── */
footer {
  background: var(--forest);
  color: rgba(245,240,232,0.55);
  padding: 4rem 2rem 1.5rem;
  border-top: 1px solid rgba(200,168,75,0.12);
}
.footer-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .nav-logo { font-size: 1.3rem; display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; font-weight: 300; max-width: 300px; }
.footer-brand .phone { margin-top: 0.8rem; color: var(--gold); font-size: 0.85rem; }
.footer-col h4 { color: var(--gold); font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: rgba(245,240,232,0.55); font-size: 0.88rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1220px; margin: 0 auto; border-top: 1px solid rgba(200,168,75,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── FLOATING BUTTONS ─────────────────────────────── */
.fab { position: fixed; bottom: 1.8rem; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1500; cursor: pointer; transition: transform 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.3); border: none; }
.fab:hover { transform: scale(1.1); }
.fab-wa { right: 1.8rem; background: #25d366; color: white; }
.fab-ai { left: 1.8rem; background: var(--forest); color: var(--gold); border: 2px solid var(--gold); font-size: 1.3rem; }
@keyframes pulse-wa { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.4)} 50%{box-shadow:0 4px 35px rgba(37,211,102,0.7),0 0 0 10px rgba(37,211,102,0.08)} }
@keyframes pulse-ai { 0%,100%{box-shadow:0 4px 20px rgba(200,168,75,0.3)} 50%{box-shadow:0 4px 30px rgba(200,168,75,0.6),0 0 0 10px rgba(200,168,75,0.06)} }
.fab-wa { animation: pulse-wa 3s ease infinite; }
.fab-ai { animation: pulse-ai 3s ease infinite 1.5s; }

/* ── AI CHAT PANEL ────────────────────────────────── */
.ai-panel {
  position: fixed; bottom: 5.5rem; left: 1.8rem; width: 320px;
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 60px rgba(22,36,22,0.25);
  z-index: 1499; transform: scale(0.8) translateY(20px);
  transform-origin: bottom left; opacity: 0; pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; flex-direction: column;
  border: 1px solid rgba(200,168,75,0.2);
}
.ai-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.ai-panel-hd { background: var(--forest); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.ai-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ai-status-name { color: var(--cream); font-weight: 600; font-size: 0.88rem; }
.ai-status-dot { display: flex; align-items: center; gap: 0.4rem; color: rgba(200,168,75,0.8); font-size: 0.7rem; margin-top: 0.15rem; }
.ai-status-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: block; }
.ai-close { margin-left: auto; background: none; border: none; color: rgba(245,240,232,0.6); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.ai-close:hover { color: var(--gold); }
.ai-messages { height: 280px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; background: #f0f4f0; }
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: rgba(22,36,22,0.2); border-radius: 2px; }
.ai-msg { max-width: 85%; display: flex; flex-direction: column; gap: 0.2rem; }
.ai-msg.bot { align-self: flex-start; }
.ai-msg.user { align-self: flex-end; }
.ai-bubble { padding: 0.65rem 0.9rem; border-radius: 12px; font-size: 0.82rem; line-height: 1.5; font-weight: 300; }
.ai-msg.bot .ai-bubble { background: white; color: var(--forest); border-bottom-left-radius: 3px; box-shadow: 0 1px 6px var(--shadow); }
.ai-msg.user .ai-bubble { background: var(--forest); color: var(--cream); border-bottom-right-radius: 3px; }
.ai-qr-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 1rem; background: white; border-top: 1px solid rgba(22,36,22,0.06); }
.ai-qr { background: rgba(90,138,74,0.1); border: 1px solid rgba(90,138,74,0.25); color: var(--fern); font-size: 0.7rem; padding: 0.3rem 0.7rem; border-radius: 14px; cursor: pointer; transition: all 0.25s; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.ai-qr:hover { background: var(--fern); color: white; }
.ai-input-row { display: flex; gap: 0.6rem; padding: 0.8rem 1rem; border-top: 1px solid rgba(22,36,22,0.08); }
.ai-input { flex: 1; border: 1.5px solid rgba(22,36,22,0.12); border-radius: 20px; padding: 0.55rem 1rem; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; outline: none; transition: border-color 0.3s; }
.ai-input:focus { border-color: var(--gold); }
.ai-send { width: 36px; height: 36px; background: var(--gold); border: none; border-radius: 50%; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: background 0.3s; flex-shrink: 0; }
.ai-send:hover { background: var(--goldlt); }

/* ── LIGHTBOX LENS ────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(5,15,5,0.95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 90vw; height: 72vh; overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; transition: transform 0.3s ease; transform-origin: center; cursor: zoom-in; user-select: none; }
.lb-img.zoomed { cursor: zoom-out; }
.lb-controls { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.2rem; padding: 0.9rem 2rem; background: rgba(22,36,22,0.7); border-radius: 30px; border: 1px solid rgba(200,168,75,0.2); }
.lb-nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.lb-nav-btn:hover { background: var(--gold); color: var(--forest); }
.lb-zoom-wrap { display: flex; align-items: center; gap: 0.7rem; }
.lb-zoom-label { color: rgba(245,240,232,0.6); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; }
.lb-zoom-slider { -webkit-appearance: none; width: 120px; height: 3px; border-radius: 3px; background: rgba(200,168,75,0.3); outline: none; cursor: pointer; }
.lb-zoom-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); cursor: pointer; }
.lb-zoom-val { color: var(--gold); font-size: 0.8rem; font-weight: 600; min-width: 35px; }
.lb-close { position: absolute; top: 1.2rem; right: 1.5rem; background: rgba(22,36,22,0.8); border: 1px solid rgba(200,168,75,0.3); color: var(--cream); font-size: 1.3rem; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.lb-close:hover { background: var(--gold); color: var(--forest); }
.lb-caption { color: rgba(245,240,232,0.5); font-size: 0.78rem; margin-top: 0.7rem; text-align: center; letter-spacing: 1px; }

/* ── STATS BAR ────────────────────────────────────── */
.stats-bar { background: var(--gold); padding: 3rem 2rem; }
.stats-inner { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.stat b { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--forest); display: block; line-height: 1; }
.stat p { font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(22,36,22,0.65); margin-top: 0.4rem; font-weight: 600; }
@media (max-width: 600px) { .stats-inner { grid-template-columns: 1fr 1fr; } }

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: rgba(22,36,22,0.3); border-radius: 3px; }
