/* ============================================================
   Zainee's Aesthetics — Global Stylesheet
   Extracted from: index.html, about.html, services.html,
   team.html, appointment.html, blog.html, contact.html
   ============================================================ */

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --rosewood: #F9F1E8;
  --ivory: #fff;
  --mocha: #645D1E;
  --mocha-soft: rgba(100,93,30,.18);
  --mocha-whisper: rgba(100,93,30,.07);
  --glass: rgba(255,255,255,.62);
  --glass-border: rgba(100,93,30,.18);
  --shadow: 0 4px 24px rgba(100,93,30,.1), 0 1px 4px rgba(100,93,30,.06);
  --shadow-hover: 0 14px 44px rgba(100,93,30,.16), 0 2px 8px rgba(100,93,30,.09);
  --text: #2c2416;
  --text-dim: rgba(44,36,22,.62);
  --text-muted: rgba(44,36,22,.38);
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--rosewood);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Abhaya Libre', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  transition: background .3s, padding .3s, box-shadow .3s;
}

#navbar.scrolled {
  background: rgba(249,241,232,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .85rem 2rem;
  box-shadow: 0 2px 20px rgba(100,93,30,.12);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-logo-img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  transition: color .3s;
}

.logo-sub {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color .3s;
}

#navbar.scrolled .logo-name { color: var(--mocha); }
#navbar.scrolled .logo-sub  { color: var(--text-dim); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  padding: .5rem .75rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* Dark text once navbar has cream background (scrolled) */
#navbar.scrolled .nav-link {
  color: var(--text-dim);
}
#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active {
  color: var(--mocha);
  background: var(--mocha-whisper);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mocha);
}

.nav-cta {
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: var(--mocha);
  padding: .55rem 1.25rem;
  border-radius: 50px;
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s;
  margin-left: .5rem;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--mocha-soft);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}

#navbar.scrolled .hamburger span {
  background: var(--mocha);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(249,241,232,.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem 2rem;
    gap: .25rem;
    box-shadow: 0 8px 30px rgba(100,93,30,.12);
  }
  .nav-links.open {
    display: flex;
  }
}

/* ===========================
   GLASS CARD
   =========================== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  transition: transform .36s ease, box-shadow .36s ease, border-color .36s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--mocha-soft);
}

.white-bg .glass-card {
  background: rgba(249,241,232,.6);
  border-color: rgba(100,93,30,.14);
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--mocha);
  padding: .75rem 2rem;
  border-radius: 50px;
  letter-spacing: .04em;
  transition: transform .25s, box-shadow .25s;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--mocha-soft);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.12);
  padding: .7rem 1.75rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.6);
  letter-spacing: .04em;
  transition: background .25s, color .25s, border-color .25s;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
  color: #fff;
}

/* ===========================
   IMAGE PLACEHOLDER
   =========================== */
.img-ph {
  background: linear-gradient(135deg, #ede8df 0%, #d8cfc3 100%);
  border: 1.5px dashed rgba(100,93,30,.28);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1.5rem;
  width: 100%;
}

.img-ph svg {
  color: var(--mocha);
  opacity: .4;
}

.img-ph-label {
  font-size: .7rem;
  color: var(--mocha);
  opacity: .55;
  text-align: center;
}

/* ===========================
   SECTION UTILITIES
   =========================== */
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mocha);
  background: var(--mocha-whisper);
  border: 1px solid var(--mocha-soft);
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.mocha-line {
  width: 48px;
  height: 3px;
  background: var(--mocha);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ===========================
   FOOTER
   =========================== */
#footer {
  background: #2c2416;
  color: rgba(255,255,255,.85);
  padding: 4rem 2rem 0;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo-name {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F9F1E8;
  margin-bottom: .75rem;
}

.footer-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.footer-col h4 {
  font-family: 'Abhaya Libre', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #F9F1E8;
  margin-bottom: 1.25rem;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
  transition: color .2s;
  line-height: 1.5;
}

.footer-col a:hover {
  color: #F9F1E8;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom strong {
  color: rgba(249,241,232,.7);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

/* ===========================
   WHATSAPP FAB
   =========================== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .25s, box-shadow .25s;
}

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37,211,102,.45);
}

.whatsapp-fab svg {
  color: #fff;
}

/* ===========================
   SOCIAL BUTTON
   =========================== */
.soc-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}

.soc-btn:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  background: linear-gradient(135deg, #ede8df 0%, #F9F1E8 60%, #ede3d5 100%);
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(100,93,30,.08);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.7;
}

/* ===========================
   FORM SHARED STYLES
   (appointment + contact)
   =========================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
  letter-spacing: .02em;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255,255,255,.8);
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--mocha);
  box-shadow: 0 0 0 3px rgba(100,93,30,.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--mocha);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  letter-spacing: .04em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin-icon {
  display: inline;
  vertical-align: middle;
  margin-right: .4rem;
  animation: spin .8s linear infinite;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--mocha-soft);
}

.success-msg {
  display: none;
  background: rgba(100,93,30,.08);
  border: 1.5px solid var(--mocha);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.success-msg h4 {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mocha);
  margin-bottom: .5rem;
}

.success-msg p {
  font-size: .85rem;
  color: var(--text-dim);
}


/* ===========================
   REAL IMAGE STYLES
   =========================== */
.img-real {
  width: 100%;
  display: block;
  object-fit: cover;
}
.img-service {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}
.img-blog-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}
.img-blog-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}
.img-ba {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.img-clinic {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  display: block;
}

/* ============================================================
   === AI CHATBOT WIDGET ===
   ============================================================ */

/* Chat FAB Wrapper */
.chat-fab-wrap {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulsing rings */
.chat-pulse-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid rgba(100,93,30,.4);
  animation: chatRingPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.chat-pulse-ring:nth-child(2) { animation-delay: .8s; }
@keyframes chatRingPulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(2.2); opacity: 0;  }
}

/* Main robot button */
.chat-fab {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: robotFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(100,93,30,.45));
  transition: filter .3s;
}
.chat-fab:hover {
  filter: drop-shadow(0 14px 28px rgba(100,93,30,.65));
  animation-play-state: paused;
}
.chat-fab lottie-player {
  width: 80px;
  height: 80px;
  pointer-events: none;
}
/* Fallback shown if Lottie fails to load */
.chat-fab-fallback {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7a7020, #645D1E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.chat-fab-fallback svg { color: #fff; }
.chat-fab.lottie-error .chat-fab-fallback { display: flex; }
.chat-fab.lottie-error lottie-player { display: none; }
.chat-fab-label {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mocha);
  font-family: 'Poppins', sans-serif;
  background: rgba(255,255,255,.92);
  padding: .15rem .5rem;
  border-radius: 50px;
  border: 1px solid var(--mocha-soft);
  margin-top: -4px;
  box-shadow: 0 2px 8px rgba(100,93,30,.15);
}

@keyframes robotFloat {
  0%,100% { transform: translateY(0)    rotate(0deg);   }
  35%      { transform: translateY(-9px) rotate(1.5deg); }
  70%      { transform: translateY(-4px) rotate(-1deg);  }
}

/* Auto-popup tip bubble */
.chat-tip {
  position: absolute;
  bottom: 78px;
  left: 0;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 14px 14px 14px 4px;
  padding: .65rem 1rem;
  white-space: nowrap;
  font-size: .78rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  box-shadow: 0 8px 28px rgba(100,93,30,.18);
  opacity: 0;
  transform: translateY(10px) scale(.93);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.3,.64,1);
  z-index: 3;
}
.chat-tip::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  transform: rotate(45deg);
}
.chat-tip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-tip-close {
  display: inline-block;
  margin-left: .4rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  vertical-align: middle;
}
.chat-tip-close:hover { color: var(--mocha); }

.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  left: 2rem;
  z-index: 998;
  width: 360px;
  height: 520px;
  background: var(--rosewood);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(100,93,30,.22);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(.92) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.chat-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

.chat-header { background: var(--mocha); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.chat-header-avatar { width: 38px; height: 38px; background: rgba(255,255,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Abhaya Libre',serif; font-size: 1.1rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.chat-header-info { flex: 1; }
.chat-header-name { font-size: .9rem; font-weight: 700; color: #fff; font-family: 'Abhaya Libre',serif; line-height: 1.2; }
.chat-header-status { font-size: .65rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: .3rem; margin-top: .15rem; }
.chat-status-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; flex-shrink: 0; }
.chat-close { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; padding: .25rem; display: flex; align-items: center; border-radius: 6px; transition: color .2s, background .2s; }
.chat-close:hover { color: #fff; background: rgba(255,255,255,.12); }

.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--mocha-soft); border-radius: 2px; }

.chat-msg { display: flex; align-items: flex-end; gap: .5rem; max-width: 88%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.bot { align-self: flex-start; }
.chat-bubble { padding: .6rem .95rem; font-size: .8rem; line-height: 1.65; word-break: break-word; }
.chat-msg.bot .chat-bubble { background: #fff; color: var(--text); border-radius: 4px 14px 14px 14px; border: 1px solid var(--glass-border); box-shadow: 0 2px 8px rgba(100,93,30,.07); }
.chat-msg.user .chat-bubble { background: var(--mocha); color: #fff; border-radius: 14px 14px 4px 14px; }

.chat-typing { align-self: flex-start; }
.chat-typing-bubble { background: #fff; border: 1px solid var(--glass-border); padding: .7rem 1rem; border-radius: 4px 14px 14px 14px; display: flex; gap: 4px; align-items: center; box-shadow: 0 2px 8px rgba(100,93,30,.07); }
.chat-typing-dot { width: 6px; height: 6px; background: var(--mocha); border-radius: 50%; opacity: .4; animation: chatDotBounce .9s ease-in-out infinite; }
.chat-typing-dot:nth-child(2) { animation-delay: .18s; }
.chat-typing-dot:nth-child(3) { animation-delay: .36s; }
@keyframes chatDotBounce {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-footer { padding: .75rem; border-top: 1px solid var(--glass-border); background: rgba(255,255,255,.55); backdrop-filter: blur(10px); flex-shrink: 0; }
.chat-input-row { display: flex; gap: .5rem; align-items: center; }
.chat-input { flex: 1; padding: .6rem 1rem; border-radius: 50px; border: 1.5px solid var(--glass-border); background: #fff; font-size: .82rem; font-family: 'Poppins',sans-serif; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.chat-input:focus { border-color: var(--mocha); box-shadow: 0 0 0 3px var(--mocha-whisper); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:disabled { opacity: .6; }
.chat-send { width: 36px; height: 36px; background: var(--mocha); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform .2s, box-shadow .2s, opacity .2s; }
.chat-send:hover { transform: scale(1.1); box-shadow: 0 4px 14px var(--mocha-soft); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chat-send svg { color: #fff; }
.chat-disclaimer { font-size: .6rem; color: var(--text-muted); text-align: center; margin-top: .45rem; letter-spacing: .02em; }

@media (max-width: 480px) {
  .chat-panel { left: .75rem; right: .75rem; width: auto; bottom: 5rem; }
  .chat-fab-wrap { left: 1rem; bottom: 1rem; }
  .chat-tip { white-space: normal; max-width: 220px; }
}

/* ============================================================
   === INDEX PAGE ===
   ============================================================ */

/* HOME HERO */
.home-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}

/* Ken Burns slow zoom effect */
.slide.active .slide-bg {
  transform: scale(1.06);
}

/* Dark gradient overlay so text is always readable */
.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.20) 100%
  );
  pointer-events: none;
}

.slide-bg-1 {
  background-image: url('../images/hero/slide-1.jpg');
  background-color: #2c2016; /* fallback if image missing */
}

.slide-bg-2 {
  background-image: url('../images/hero/slide-2.jpg');
  background-color: #1a2020;
}

.slide-bg-3 {
  background-image: url('../images/hero/slide-3.jpg');
  background-color: #201a2a;
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F9F1E8;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.slide-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 680px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.slide-title span {
  color: #e8d9a0;
}

.slide-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.slide-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.slide-nav {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background .3s, width .3s;
  padding: 0;
}

.slide-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: .5;
}

.hero-scroll-hint span {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mocha);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--mocha), transparent);
}

/* STAT STRIP */
.stat-strip {
  background: var(--mocha);
  padding: 2.5rem 2rem;
}

.stat-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-num {
  font-family: 'Abhaya Libre', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #F9F1E8;
}

.stat-label {
  font-size: .72rem;
  color: rgba(249,241,232,.7);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .2rem;
}

@media (max-width: 600px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .slide-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}

/* INDEX SERVICE GRID */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.srv-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--mocha-whisper);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--mocha-soft);
}

/* CEO / TWO-COLUMN GRID */
.ceo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .ceo-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ============================================================
   === ABOUT PAGE ===
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .vm-grid {
    grid-template-columns: 1fr;
  }
}

.leader-card {
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .leader-card {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--mocha-soft);
}


/* ============================================================
   === SERVICES PAGE ===
   ============================================================ */

/* MODULE */
.module-section {
  padding: 5rem 2rem;
  scroll-margin-top: 80px;
}

.module-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.module-icon {
  width: 64px;
  height: 64px;
  background: var(--mocha-whisper);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mocha-soft);
  flex-shrink: 0;
}

.module-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: .5rem;
}

.module-desc {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 680px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
}

.service-card-icon {
  width: 40px;
  height: 40px;
  background: var(--mocha-whisper);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--mocha-soft);
}

.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.service-desc {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.service-ph {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .module-header {
    flex-direction: column;
    gap: 1rem;
  }
}


/* ============================================================
   === TEAM PAGE ===
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.team-card {
  padding: 1.75rem;
  text-align: center;
  cursor: default;
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--mocha-soft);
}

.team-photo-ph {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede8df, #d8cfc3);
  border: 3px solid var(--mocha-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.team-role {
  font-size: .75rem;
  color: var(--mocha);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.team-bio {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.team-creds {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .4rem;
  line-height: 1.5;
}

.section-divider {
  padding: 5rem 2rem;
}

.section-heading-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-heading-bar::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mocha-soft);
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   === APPOINTMENT PAGE ===
   ============================================================ */

/* BOOKING LAYOUT */
.booking-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23645D1E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

textarea.form-control {
  min-height: 100px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* APPOINTMENT SIDEBAR */
.info-card {
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.25rem;
}

.info-icon {
  width: 36px;
  height: 36px;
  background: var(--mocha-whisper);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--mocha-soft);
}

.info-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--mocha);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}

.info-val {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  padding: 1rem;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  transition: transform .25s, box-shadow .25s;
}

.wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}


/* ============================================================
   === BLOG PAGE ===
   ============================================================ */

.featured-blog {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .featured-blog {
    grid-template-columns: 1fr;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  cursor: pointer;
  overflow: hidden;
}

.blog-cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: .5rem;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .5rem;
  color: var(--text);
}

.blog-excerpt {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text-muted);
}

.read-more {
  font-size: .75rem;
  font-weight: 600;
  color: var(--mocha);
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* BEFORE/AFTER */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ba-card {
  overflow: hidden;
  cursor: pointer;
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .75rem;
}

.ba-label {
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}


/* ============================================================
   === CONTACT PAGE ===
   ============================================================ */

/* INFO CARDS STRIP */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.info-card-item {
  padding: 1.75rem;
  text-align: center;
}

.info-card-icon {
  width: 52px;
  height: 52px;
  background: var(--mocha-whisper);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 1px solid var(--mocha-soft);
}

.info-card-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: .4rem;
}

.info-card-val {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.55;
  font-weight: 500;
}

.info-card-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* CONTACT LAYOUT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 500px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

textarea.form-control {
  min-height: 120px;
}

/* MAP */
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* HOURS TABLE */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--mocha-whisper);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: .65rem 0;
  font-size: .82rem;
  color: var(--text-dim);
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 45%;
}

.hours-table .closed {
  color: rgba(44,36,22,.35);
}

.hours-table .open {
  color: var(--mocha);
  font-weight: 600;
}

/* QUICK CONTACT BUTTONS */
.qc-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--glass-border);
  background: rgba(255,255,255,.5);
  margin-bottom: .75rem;
  transition: border-color .2s, background .2s, transform .2s;
  cursor: pointer;
}

.qc-btn:hover {
  border-color: var(--mocha-soft);
  background: rgba(255,255,255,.8);
  transform: translateX(4px);
}

.qc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mocha-whisper);
  border: 1px solid var(--mocha-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qc-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--mocha);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .15rem;
}

.qc-val {
  font-size: .85rem;
  color: var(--text);
  font-weight: 500;
}


/* ============================================================
   === BLOG ARTICLE PAGES ===
   ============================================================ */

.article-hero {
  padding: 5rem 2rem 3rem;
  background: var(--rosewood);
  border-bottom: 1px solid var(--mocha-whisper);
}

.article-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.article-cat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mocha);
  background: var(--mocha-whisper);
  border: 1px solid var(--mocha-soft);
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.article-title {
  font-family: 'Abhaya Libre', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--mocha-whisper);
  border-bottom: 1px solid var(--mocha-whisper);
  margin-bottom: 2.5rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.article-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mocha-soft);
}

.article-author-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.article-author-role {
  font-size: .72rem;
  color: var(--text-muted);
}

.article-date {
  font-size: .78rem;
  color: var(--text-muted);
}

.article-read-time {
  font-size: .78rem;
  color: var(--mocha);
  font-weight: 600;
}

.article-cover {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 3rem;
  display: block;
  border-radius: 16px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  padding: 3rem 2rem 5rem;
  background: #fff;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.article-content h2 {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.5rem 0 .85rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--mocha-whisper);
}

.article-content h3 {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 .5rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: .5rem;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content .article-highlight {
  background: var(--mocha-whisper);
  border-left: 3px solid var(--mocha);
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--mocha);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: gap .2s;
}

.article-back:hover { gap: .7rem; }

.article-cta-box {
  background: var(--mocha);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.article-cta-box h3 {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #F9F1E8;
  margin-bottom: .75rem;
  border: none;
}

.article-cta-box p {
  font-size: .88rem;
  color: rgba(249,241,232,.72);
  margin-bottom: 1.5rem;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #F9F1E8;
  color: var(--mocha);
  padding: .75rem 2rem;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}

.article-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
