/* ===== CSS VARIABLES ===== */
:root {
  --bg: #FFFFFF;
  --bg2: #F5F7FA;
  --surface: #FFFFFF;
  --surface2: #F5F7FA;
  --border: #FAD3E2;
  --text: #2B2B2B;
  --text-muted: #666666;
  --accent: #F58DBA;
  --accent2: #0B3D91;
  --accent-light: #FAD3E2;
  --gold: #F58DBA;
  --shadow: rgba(11,61,145,0.08);
  --shadow-strong: rgba(11,61,145,0.15);
  --nav-bg: rgba(255,255,255,0.98);
  --chat-bg: #FFFFFF;
  --chat-bot: #F5F7FA;
  --overlay: rgba(11,61,145,0.4);
  --nav-h: 70px;
}
[data-theme="dark"] {
  --bg: #0B3D91;
  --bg2: #0A3275;
  --surface: #1E5BC6;
  --surface2: #1646A0;
  --border: #F58DBA;
  --text: #FFFFFF;
  --text-muted: #FAD3E2;
  --accent: #F58DBA;
  --accent2: #FFFFFF;
  --accent-light: #1E5BC6;
  --gold: #FAD3E2;
  --shadow: rgba(0,0,0,0.4);
  --shadow-strong: rgba(0,0,0,0.6);
  --nav-bg: rgba(11,61,145,0.98);
  --chat-bg: #0A3275;
  --chat-bot: #1E5BC6;
  --overlay: rgba(0,0,0,0.65);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== PETAL ANIMATION ===== */
.particles-bg {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.3;
}
[data-theme="dark"] .particles-bg { opacity: 0.1; }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
.petal { animation: floatUp linear infinite; transform-origin: center; }

/* ===========================
   NAVBAR
=========================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px var(--shadow); }

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  flex-shrink: 0; z-index: 1001;
}
.nav-logo img {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent);
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, #0B3D91 0%, #F58DBA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.3s;
  position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0; z-index: 1001;
}

.theme-toggle {
  width: 46px; height: 24px;
  background: var(--border); border-radius: 12px;
  position: relative; transition: background 0.3s; cursor: pointer; flex-shrink: 0;
}
.theme-toggle::after {
  content: '☀️'; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); transition: transform 0.3s;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px var(--shadow);
}
[data-theme="dark"] .theme-toggle { background: var(--accent); }
[data-theme="dark"] .theme-toggle::after { content: '🌙'; transform: translateX(22px); }

.btn-book {
  background: linear-gradient(135deg, #0B3D91 0%, #3a1a47 100%); color: #FFFFFF;
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; transition: all 0.3s;
  box-shadow: 0 4px 14px var(--shadow); white-space: nowrap;
  border: none;
}
.btn-book:hover { background: linear-gradient(135deg, #1E5BC6 0%, #4a215c 100%); transform: translateY(-1px); }

/* Hamburger icon */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; z-index: 1001;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — positioned BELOW the fixed nav, NOT inside hero */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h);       /* starts exactly where nav ends */
  left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 998;            /* below nav (1000) but above hero content */
  padding: 0 1.5rem;
  box-shadow: 0 8px 30px var(--shadow-strong);
  /* Hidden by default */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-drawer.open {
  max-height: 420px;
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-drawer a {
  display: block; padding: 0.85rem 0;
  font-size: 1rem; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover { color: var(--accent); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 5% 60px;
}
.hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(250,211,226,0.85) 50%, rgba(255,255,255,0.85) 100%);
  z-index: -1;
}
[data-theme="dark"] .hero-bg {
  background: linear-gradient(135deg, rgba(11,61,145,0.85) 0%, rgba(10,50,117,0.85) 40%, rgba(30,91,198,0.85) 100%);
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); animation: blobPulse 8s ease-in-out infinite; pointer-events: none;
}
.hero-blob-1 { width: 400px; height: 400px; background: rgba(200,147,122,0.2); top: -80px; right: -80px; }
.hero-blob-2 { width: 250px; height: 250px; background: rgba(201,169,110,0.15); bottom: 0; left: 8%; animation-delay: -4s; }
@keyframes blobPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.hero-content { max-width: 600px; z-index: 2; animation: heroReveal 1s ease forwards; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-light); color: var(--accent2);
  padding: 0.35rem 1rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.hero-badge::before { content: '✦'; }

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #0B3D91 0%, #F58DBA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title em { font-style: normal; color: transparent; }

.hero-subtitle {
  font-size: 1rem; color: var(--text-muted);
  margin-bottom: 2.5rem; font-weight: 300; max-width: 480px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, #0B3D91 0%, #3a1a47 100%); color: #fff;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  transition: all 0.3s; box-shadow: 0 6px 20px var(--shadow); display: inline-block;
  border: none;
}
.btn-primary:hover { background: linear-gradient(135deg, #1E5BC6 0%, #4a215c 100%); transform: translateY(-3px); }

.btn-outline {
  background: linear-gradient(135deg, #0B3D91 0%, #3a1a47 100%); color: #fff;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s; display: inline-block;
  border: none;
}
.btn-outline:hover { background: linear-gradient(135deg, #1E5BC6 0%, #4a215c 100%); transform: translateY(-3px); }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, #F58DBA 0%, #0B3D91 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.04em; }

.hero-image-wrap {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  z-index: 2; animation: heroImgReveal 1.2s ease 0.3s forwards; opacity: 0;
}
@keyframes heroImgReveal {
  from { opacity: 0; transform: translateY(-50%) translateX(40px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.hero-image-frame {
  width: 380px; height: 480px;
  border-radius: 190px 190px 140px 140px;
  overflow: hidden; border: 6px solid var(--border);
  box-shadow: 0 30px 80px var(--shadow-strong); position: relative;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute; background: var(--surface); border-radius: 16px;
  padding: 0.9rem 1.2rem; box-shadow: 0 8px 30px var(--shadow);
  border: 1px solid var(--border); display: flex; align-items: center; gap: 0.7rem;
  animation: floatCard 3s ease-in-out infinite;
}
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-float-card-1 { bottom: 60px; left: -60px; }
.hero-float-card-2 { top: 70px; right: -50px; animation-delay: -1.5s; }
.float-icon { font-size: 1.6rem; }
.float-info strong { display: block; font-size: 0.82rem; font-weight: 600; }
.float-info span { font-size: 0.7rem; color: var(--text-muted); }

/* ===== SECTIONS ===== */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 5rem 5%; }
.section-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-tag::before { content: '—'; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.2; margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #0B3D91 0%, #F58DBA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-muted); max-width: 560px; font-size: 0.92rem; font-weight: 300; }
.section-header { margin-bottom: 3rem; }

/* ===== ABOUT ===== */
#about { background: var(--surface2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px var(--shadow-strong); aspect-ratio: 4/5; }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.about-img-main:hover img { transform: scale(1.04); }
.about-img-accent {
  position: absolute; bottom: -25px; right: -20px;
  width: 150px; height: 150px; border-radius: 14px; overflow: hidden;
  border: 5px solid var(--bg); box-shadow: 0 10px 30px var(--shadow);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.about-years {
  position: absolute; top: 25px; left: -15px;
  background: var(--accent); color: #fff;
  padding: 1rem; border-radius: 12px; text-align: center;
  box-shadow: 0 8px 24px rgba(200,147,122,0.4);
}
.about-years-num { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; display: block; background: linear-gradient(135deg, #F58DBA 0%, #0B3D91 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-years-text { font-size: 0.65rem; letter-spacing: 0.04em; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0; }
.about-point { display: flex; align-items: flex-start; gap: 0.7rem; }
.about-point-icon { width: 34px; height: 34px; background: var(--accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.about-point-text strong { display: block; font-size: 0.85rem; font-weight: 600; }
.about-point-text span { font-size: 0.75rem; color: var(--text-muted); }

/* ===== SERVICES ===== */
#services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.service-card { background: #FFFFFF; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); border-top: 4px solid #F58DBA; transition: all 0.4s; cursor: pointer; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(11,61,145,0.15); border-color: var(--accent); }
.service-img { height: 200px; overflow: hidden; position: relative; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.28rem 0.75rem; border-radius: 50px; }
.service-body { padding: 1.3rem; }
.service-icon { font-size: 1.6rem; margin-bottom: 0.6rem; color: #0B3D91; }
.service-name { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 600; margin-bottom: 0.4rem; background: linear-gradient(135deg, #0B3D91 0%, #F58DBA 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.service-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.service-price { display: flex; align-items: center; justify-content: space-between; }
.service-price-tag { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 600; background: linear-gradient(135deg, #F58DBA 0%, #0B3D91 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: flex; align-items: baseline; gap: 0.3rem; }
.service-price-tag small { font-size: 0.75rem; color: var(--text-muted); font-family: 'Open Sans', sans-serif; }
.service-btn { background: linear-gradient(135deg, #0B3D91 0%, #3a1a47 100%); color: #fff; padding: 0.45rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; transition: all 0.3s; border: none; }
.service-btn:hover { background: linear-gradient(135deg, #1E5BC6 0%, #4a215c 100%); }

/* ===== TESTIMONIALS ===== */
#testimonials { background: #F5F7FA; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card { background: var(--surface); border-radius: 18px; padding: 1.8rem; border: 1px solid var(--border); transition: all 0.3s; }
.testimonial-card:hover { box-shadow: 0 12px 40px var(--shadow); border-color: var(--accent); transform: translateY(-4px); }
.testimonial-quote { font-size: 3.5rem; line-height: 1; background: linear-gradient(135deg, #F58DBA 0%, #0B3D91 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: 'Poppins', sans-serif; opacity: 0.4; margin-bottom: 0.3rem; }
.testimonial-text { font-size: 0.88rem; color: var(--text-muted); font-style: italic; margin-bottom: 1.2rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 0.7rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-light); }
.testimonial-author-name { font-weight: 600; font-size: 0.85rem; color: #0B3D91; }
.testimonial-author-role { font-size: 0.72rem; color: var(--text-muted); }
.testimonial-stars { color: #F58DBA; font-size: 0.78rem; margin-bottom: 0.5rem; }

/* ===== GALLERY ===== */
#gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.8rem; }
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; font-size: 1.4rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:nth-child(1) { grid-column: 1/3; height: 260px; }
.gallery-item:nth-child(2) { height: 260px; }
.gallery-item:nth-child(3) { height: 260px; }
.gallery-item:nth-child(4) { height: 200px; }
.gallery-item:nth-child(5) { grid-column: 2/4; height: 200px; }
.gallery-item:nth-child(6) { height: 200px; }

/* ===== BOOKING ===== */
#booking { background: var(--surface2); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.booking-form { background: var(--surface); border-radius: 22px; padding: 2.2rem; border: 1px solid var(--border); box-shadow: 0 10px 40px var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.45rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; font-family: 'Open Sans', sans-serif; font-size: 0.88rem; color: var(--text); outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,147,122,0.15); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit { width: 100%; background: linear-gradient(135deg, #0B3D91 0%, #3a1a47 100%); color: #fff; padding: 0.95rem; border-radius: 12px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.04em; transition: all 0.3s; box-shadow: 0 6px 20px rgba(200,147,122,0.35); border: none; }
.form-submit:hover { background: linear-gradient(135deg, #1E5BC6 0%, #4a215c 100%); transform: translateY(-2px); }
.booking-info-card { background: var(--surface); border-radius: 16px; padding: 1.6rem; border: 1px solid var(--border); margin-bottom: 1.1rem; }
.booking-info-card h4 { font-family: 'Poppins', sans-serif; font-size: 1.15rem; margin-bottom: 0.9rem; }
.info-item { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.7rem; font-size: 0.85rem; }
.info-item-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; padding-top: 2px; }
.info-item-text strong { display: block; font-weight: 600; }
.info-item-text span { color: var(--text-muted); font-size: 0.78rem; }
.map-wrap { border-radius: 14px; overflow: hidden; height: 180px; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===========================
   AI CHATBOT — FULLY FIXED
   Window uses position:fixed so
   it never overlaps the navbar.
=========================== */
#chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
}

.chatbot-trigger {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(200,147,122,0.5);
  transition: all 0.3s; cursor: pointer; position: relative;
}
.chatbot-trigger:hover { transform: scale(1.08); }
.chatbot-trigger svg { width: 26px; height: 26px; fill: white; }

.chatbot-pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  background: rgba(200,147,122,0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0; } }

/* KEY FIX: window is position:fixed, constrained within safe viewport area */
.chatbot-window {
  position: fixed;
  bottom: 92px;   /* above the FAB */
  right: 24px;
  width: min(360px, calc(100vw - 32px));
  /* max-height respects the navbar at top and FAB at bottom */
  max-height: calc(100dvh - var(--nav-h) - 110px);
  background: var(--chat-bg);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px var(--shadow-strong);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1099;
}
.chatbot-window.open {
  display: flex;
  animation: chatUp 0.3s ease;
}
@keyframes chatUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.chatbot-header {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.7rem;
  color: #fff; flex-shrink: 0;
}
.chatbot-avatar { width: 38px; height: 38px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.chatbot-header-info { flex: 1; min-width: 0; }
.chatbot-header-info strong { display: block; font-size: 0.9rem; }
.chatbot-status { font-size: 0.7rem; display: flex; align-items: center; gap: 0.35rem; opacity: 0.85; }
.chatbot-status::before { content: ''; width: 7px; height: 7px; background: #7fff7a; border-radius: 50%; display: inline-block; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.chatbot-close { width: 28px; height: 28px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; color: #fff; transition: background 0.2s; flex-shrink: 0; }
.chatbot-close:hover { background: rgba(255,255,255,0.35); }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.9rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.chat-msg { display: flex; gap: 0.55rem; align-items: flex-end; max-width: 92%; }
.chat-msg { display: flex; gap: 0.55rem; align-items: flex-end; max-width: 92%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.chat-msg.user .chat-msg-avatar { background: var(--accent); color: #fff; }
.chat-bubble { background: var(--chat-bot); border-radius: 16px 16px 16px 4px; padding: 0.7rem 0.95rem; font-size: 0.83rem; line-height: 1.6; color: var(--text); border: 1px solid var(--border); }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; border-color: transparent; }
.chat-typing { display: flex; gap: 4px; padding: 0.7rem 0.95rem; background: var(--chat-bot); border-radius: 16px 16px 16px 4px; border: 1px solid var(--border); width: fit-content; }
.chat-typing span { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: typingDot 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-5px); opacity: 1; } }

.chatbot-quick { display: flex; gap: 0.45rem; flex-wrap: wrap; padding: 0.5rem 1rem 0; flex-shrink: 0; }
.chatbot-quick button { background: linear-gradient(135deg, #0B3D91 0%, #3a1a47 100%); color: #fff; border: none; border-radius: 50px; padding: 0.3rem 0.8rem; font-size: 0.72rem; font-family: 'Open Sans', sans-serif; font-weight: 500; transition: all 0.2s; cursor: pointer; }
.chatbot-quick button:hover { background: linear-gradient(135deg, #1E5BC6 0%, #4a215c 100%); }

.chatbot-input-area { padding: 0.8rem 1rem; display: flex; gap: 0.55rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.chatbot-input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 50px; padding: 0.55rem 1rem; font-family: 'Open Sans', sans-serif; font-size: 0.83rem; color: var(--text); outline: none; transition: border-color 0.3s; min-width: 0; }
.chatbot-input:focus { border-color: var(--accent); }
.chatbot-send { width: 38px; height: 38px; background: linear-gradient(135deg, #0B3D91 0%, #3a1a47 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.95rem; transition: all 0.2s; flex-shrink: 0; border: none; }
.chatbot-send:hover { background: linear-gradient(135deg, #1E5BC6 0%, #4a215c 100%); transform: scale(1.08); }
.chatbot-powered { text-align: center; font-size: 0.65rem; color: var(--text-muted); padding: 0.35rem 0 0.55rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.chatbot-powered a { color: var(--accent); }

/* ===== FOOTER ===== */
footer { background: linear-gradient(to bottom, #0B3D91 0%, #1c0a2e 100%); color: #FFFFFF; border-top: none; position: relative; z-index: 1; }
.footer-waves {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  z-index: 0;
}
.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 400vw;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100'%3E%3Cpath fill='%230B3D91' d='M0 50 Q 250 100 500 50 T 1000 50 L 1000 100 L 0 100 Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 1000px 100px;
}
.wave1 { z-index: 10; opacity: 1; bottom: 0; animation: wave-anim 10s linear infinite; }
.wave2 { z-index: 9; opacity: 0.5; bottom: 10px; animation: wave-anim 15s linear infinite reverse; }
.wave3 { z-index: 8; opacity: 0.2; bottom: 15px; animation: wave-anim 20s linear infinite; }
.wave4 { z-index: 7; opacity: 0.7; bottom: 20px; animation: wave-anim 8s linear infinite reverse; }

@keyframes wave-anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1000px); }
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 4rem 5% 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-logo img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #F58DBA; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, #F58DBA 0%, #FFFFFF 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-desc { font-size: 0.82rem; color: #FFFFFF; line-height: 1.8; margin-bottom: 1.3rem; max-width: 270px; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s; color: #FFFFFF; }
.footer-social-link:hover { background: #F58DBA; border-color: #F58DBA; transform: translateY(-3px); color: #FFFFFF; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; color: #FFFFFF; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.82rem; color: #FFFFFF; transition: color 0.3s; display: flex; align-items: center; gap: 0.35rem; }
.footer-col ul li a:hover { color: #F58DBA; }
.footer-col ul li a::before { content: '›'; color: #F58DBA; }
.newsletter-text { font-size: 0.82rem; color: #FFFFFF; margin-bottom: 0.9rem; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.newsletter-input { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 0.65rem 0.9rem; font-family: 'Open Sans', sans-serif; font-size: 0.82rem; color: var(--text); outline: none; transition: border-color 0.3s; width: 100%; }
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-btn { background: linear-gradient(135deg, #0B3D91 0%, #3a1a47 100%); color: #fff; padding: 0.65rem; border-radius: 10px; font-family: 'Open Sans', sans-serif; font-size: 0.82rem; font-weight: 600; transition: all 0.3s; border: none; }
.newsletter-btn:hover { background: linear-gradient(135deg, #1E5BC6 0%, #4a215c 100%); }
.footer-bottom { border-top: 1px solid var(--border); max-width: 1200px; margin: 0 auto; padding: 1.3rem 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom-text { font-size: 0.75rem; color: #FFFFFF; }
.footer-bottom-text a { color: #F58DBA; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===========================
   RESPONSIVE BREAKPOINTS
=========================== */

/* Tablet 1024px */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-image-frame { width: 300px; height: 380px; }
  .nav-links { gap: 1.2rem; }
}

/* Hide desktop nav, show hamburger at 820px */
@media (max-width: 820px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
  .btn-book { font-size: 0.72rem; padding: 0.45rem 0.85rem; }
}

/* Mobile 768px */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-right .btn-book { display: none; }

  #hero { padding: calc(var(--nav-h) + 24px) 5% 50px; }
  .hero-image-wrap { display: none; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-stats { gap: 1.8rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-accent, .about-years { display: none; }
  .about-img-main { aspect-ratio: 16/9; }
  .about-points { grid-template-columns: 1fr 1fr; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(n) { grid-column: auto !important; grid-row: auto !important; height: 160px !important; }

  .booking-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 5% 2rem; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Chatbot adjustments on mobile */
  .chatbot-window {
    right: 12px;
    bottom: 82px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - var(--nav-h) - 100px);
  }
  #chatbot-fab { right: 16px; bottom: 16px; }
}

/* Small phones 480px */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; width: 100%; max-width: 300px; }
  .about-points { grid-template-columns: 1fr; }
  .booking-form { padding: 1.4rem; }
  .section-inner { padding: 3.5rem 4%; }
  .nav-logo-text { font-size: 1.1rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
}
