/* ==========================================================
   Dr. Nabeel Dental Care — Stylesheet
   ========================================================== */

:root {
  --primary: #0a7d8c;
  --primary-dark: #065863;
  --primary-light: #e6f4f6;
  --accent: #f4b860;
  --accent-dark: #d99a3e;
  --dark: #0f2b33;
  --text: #3a4a50;
  --muted: #6b7b80;
  --bg: #ffffff;
  --bg-alt: #f7fafb;
  --border: #e3eaec;
  --shadow-sm: 0 2px 8px rgba(10, 125, 140, 0.08);
  --shadow: 0 10px 30px rgba(10, 125, 140, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 125, 140, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --container: 1200px;
  --trans: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; font-family: 'Poppins', sans-serif; font-weight: 600; }
h4 { font-size: 1.15rem; font-family: 'Poppins', sans-serif; font-weight: 600; }
h5 { font-size: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: 0.5px; }

.accent { color: var(--primary); }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all var(--trans);
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  background: none;
  padding: 0;
}
.link-cta:hover { color: var(--accent-dark); gap: 10px; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #d8eef1;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar i { margin-right: 6px; color: var(--accent); }
.topbar a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 0.8rem;
}
.socials a i { margin: 0; color: #fff; }
.socials a:hover { background: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans);
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
}
.logo i {
  font-size: 1.8rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo small {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  gap: 6px;
}
.nav-link {
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: 8px;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }

.nav-cta, .nav-close { display: none; }
.header-cta { display: inline-flex; }
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  padding: 8px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 43, 51, 0.6);
  z-index: 98;
  opacity: 0;
  transition: opacity var(--trans);
}
.nav-overlay.active { display: block; opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 90px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 60%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(10, 125, 140, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-text .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 20px 0 30px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong {
  font-size: 2rem;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1;
}
.trust-item span { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.hero-card {
  position: absolute;
  bottom: 30px; left: -30px;
  background: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.hero-card i {
  font-size: 1.6rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 12px;
  border-radius: 10px;
}
.hero-card strong { display: block; font-size: 0.95rem; color: var(--dark); }
.hero-card span { font-size: 0.8rem; color: var(--muted); }

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

/* ---------- Sections Generic ---------- */
.section { padding: 90px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section-head.light h2, .section-head.light .eyebrow { color: #fff; }
.section-head.light .eyebrow { color: var(--accent); }
.section-head.light .accent { color: var(--accent); }
.section-head.light p { color: rgba(255,255,255,0.85); }

/* ---------- About ---------- */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img { position: relative; }
.about-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: 30px; right: -20px;
  background: var(--primary);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.about-badge i { font-size: 1.8rem; color: var(--accent); }
.about-badge strong { display: block; }
.about-badge span { font-size: 0.85rem; }

.about-text p {
  color: var(--muted);
  margin: 16px 0;
}
.about-list {
  margin: 24px 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.about-list i { color: var(--primary); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.service-img {
  height: 180px;
  overflow: hidden;
  background: var(--primary-light);
}
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  font-size: 1.6rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 50px; height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.service-body h3 { margin-bottom: 8px; color: var(--dark); }
.service-body p { color: var(--muted); font-size: 0.93rem; flex: 1; margin-bottom: 14px; }

/* ---------- Why ---------- */
.why {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--trans);
}
.why-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-5px);
  border-color: var(--accent);
}
.why-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
  background: rgba(244, 184, 96, 0.15);
  width: 70px; height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.why-card h4 { color: #fff; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.82); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.gallery-grid figure {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-grid figure:hover img { transform: scale(1.1); }
.gallery-grid figure::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(10, 125, 140, 0.7);
  opacity: 0;
  transition: opacity var(--trans);
}
.gallery-grid figure:hover::after { opacity: 1; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-alt); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}
.testi-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border);
}
.testi-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  position: absolute;
  top: 10px; right: 24px;
  font-size: 5rem;
  color: var(--primary-light);
  line-height: 1;
}
.stars { color: var(--accent); margin-bottom: 14px; font-size: 0.9rem; }
.testi-card > p { color: var(--text); font-size: 0.96rem; margin-bottom: 20px; position: relative; z-index: 1; }
.testi-user { display: flex; gap: 14px; align-items: center; }
.testi-user img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testi-user strong { display: block; color: var(--dark); font-size: 0.95rem; }
.testi-user span { font-size: 0.82rem; color: var(--muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 60px 0;
  color: #fff;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { opacity: 0.95; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.info-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-item i {
  font-size: 1.1rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-item strong { display: block; color: var(--dark); margin-bottom: 2px; }
.info-item span { color: var(--muted); font-size: 0.92rem; }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.72);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.logo-light { color: #fff; }
.logo-light i { background: rgba(244, 184, 96, 0.15); color: var(--accent); }
.logo-light small { color: rgba(255,255,255,0.6); }
.footer p { margin: 16px 0 20px; font-size: 0.92rem; }
.footer h5 { color: #fff; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 4px; width: 16px; }
.footer .socials a { background: rgba(255,255,255,0.08); }
.footer .socials a:hover { background: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  font-size: 0.85rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom i { color: #e74c6e; }

/* ---------- Floating CTAs ---------- */
.float-chat, .float-book {
  position: fixed;
  z-index: 90;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: all var(--trans);
}
.float-chat {
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.float-chat:hover { transform: scale(1.1); color: #fff; background: var(--primary-dark); }
.float-chat.active { background: var(--primary-dark); }

/* ---------- Chat Window ---------- */
.chat-window {
  position: fixed;
  bottom: 95px;
  right: 24px;
  width: 380px;
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 150;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}
.chat-window.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.chat-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.chat-bot-info h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.chat-status {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fa36d;
  display: inline-block;
  box-shadow: 0 0 8px #2fa36d;
}
.chat-close {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  padding: 4px;
  transition: all var(--trans);
}
.chat-close:hover {
  color: #fff;
  transform: scale(1.1);
}
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-alt);
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
  animation: msgFadeIn 0.3s ease forwards;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.chat-msg .time {
  display: block;
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.6;
}
.chat-msg.user .time {
  text-align: right;
}
.chat-input-area {
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--dark);
  outline: none;
  transition: all var(--trans);
}
.chat-input-area input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 125, 140, 0.1);
}
.chat-submit {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.chat-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.chat-submit:active {
  transform: translateY(0);
}

/* ---------- Typing Indicator ---------- */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
  align-self: flex-start;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: bounceDots 1.4s infinite ease-in-out both;
  opacity: 0.6;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDots {
  0%, 80%, 100% { transform: scale(0.6); }
  40% { transform: scale(1.2); }
}
.float-book {
  bottom: 24px; left: 24px;
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
}
.float-book:hover { background: var(--primary-dark); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 42, 0.75);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--dark);
  z-index: 10;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.modal-close:hover { background: #fff; transform: rotate(90deg); color: var(--primary); }

.modal-aside {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
}
.modal-aside h3 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 10px; }
.modal-aside > p { opacity: 0.9; font-size: 0.92rem; margin-bottom: 24px; }
.modal-features { margin-bottom: auto; }
.modal-features li {
  padding: 8px 0;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-features i {
  color: var(--accent);
  background: rgba(244, 184, 96, 0.15);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.modal-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}
.modal-contact i { color: var(--accent); margin-right: 8px; }

.modal-body {
  padding: 40px 36px;
  overflow-y: auto;
  max-height: 92vh;
}
.modal-body h2 { font-size: 1.8rem; margin-bottom: 8px; }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.req { color: #e74c6e; }

/* ---------- Form ---------- */
.booking-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  transition: all var(--trans);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 125, 140, 0.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group .error {
  display: none;
  color: #e74c6e;
  font-size: 0.78rem;
  margin-top: 5px;
}
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #e74c6e;
  background: #fff5f7;
}
.form-group.invalid .error { display: block; }

.check-group .checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}
.check-group input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

#submitBtn { position: relative; margin-top: 8px; }
#submitBtn .btn-loader { display: none; }
#submitBtn.loading .btn-text { display: none; }
#submitBtn.loading .btn-loader { display: inline-flex; align-items: center; gap: 8px; }

.form-success {
  text-align: center;
  padding: 30px 20px;
  background: #e7f7ef;
  border-radius: var(--radius);
  margin-top: 20px;
  border: 1px solid #b8e4c8;
}
.form-success i {
  font-size: 3rem;
  color: #2fa36d;
  margin-bottom: 12px;
}
.form-success h4 { color: #1d6b46; margin-bottom: 6px; }
.form-success p { color: #2fa36d; font-size: 0.92rem; }

body.modal-open { overflow: hidden; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 992px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { max-width: 500px; margin: 0 auto; }
  .hero-card { left: auto; right: -10px; }
  .about-badge { right: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-dialog { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-aside { padding: 28px; }
  .modal-features { display: none; }
  .modal-contact { margin-top: 16px; flex-direction: row; flex-wrap: wrap; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }

  .topbar { display: none; }

  .header-inner {
    position: relative;
    justify-content: center;
  }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav {
    position: fixed;
    top: 0; left: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 99;
    padding: 70px 24px 24px;
    box-shadow: var(--shadow-lg);
    transition: left 0.35s ease;
    overflow-y: auto;
  }
  .nav.active { left: 0; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul li { width: 100%; }
  .nav-link { display: block; padding: 14px 16px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-link:hover { background: var(--primary-light); }
  .nav-close {
    display: flex;
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--dark);
    background: var(--bg-alt);
    border-radius: 50%;
  }
  .nav-cta { display: inline-flex; margin-top: 20px; width: 100%; }

  .hero { padding: 40px 0 70px; }
  .hero-trust { gap: 20px; }
  .trust-item strong { font-size: 1.6rem; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .hero-card { left: 50%; transform: translateX(-50%); bottom: -20px; right: auto; max-width: 85%; }
  .hero-image { margin-bottom: 30px; }
  .scroll-down { display: none; }

  .about-badge { right: 10px; bottom: 20px; padding: 12px 16px; }
  .about-list { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .footer { padding-top: 50px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner h2 { font-size: 1.6rem; }

  .float-book { display: inline-flex; right: 24px; left: auto; }
  .float-chat { width: 50px; height: 50px; font-size: 1.4rem; bottom: 90px; }

  .chat-window {
    width: calc(100% - 48px);
    right: 24px;
    bottom: 155px;
    height: 450px;
  }

  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; }
  .modal-aside { padding: 24px; }
  .modal-aside h3 { font-size: 1.3rem; }
  .modal-body { padding: 28px 22px; }
  .modal-body h2 { font-size: 1.4rem; }

  .booking-form .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.05rem; }
  .logo i { width: 42px; height: 42px; font-size: 1.4rem; }
  .logo small { font-size: 0.6rem; letter-spacing: 1.5px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 24px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .modal-contact { flex-direction: column; }
  
  .chat-window {
    width: 100%;
    height: 100%;
    max-height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
    z-index: 210;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
