/* === BrightSmile Dental — custom styles === */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface2: #f3f1ee;
  --accent: #e07b39;
  --accent-dim: rgba(224, 123, 57, 0.12);
  --accent-glow: rgba(224, 123, 57, 0.08);
  --fg: #1a1a2e;
  --fg-muted: #6b6b80;
  --fg-subtle: #a0a0b0;
  --border: #e8e4de;
  --radius: 14px;
  --font: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --teal: #2dd4a8;
  --teal-dim: rgba(45, 212, 168, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* === NAV === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 18px; font-weight: 700; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent); color: #fff; padding: 8px 20px;
  border-radius: 100px; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer;
}
.nav-cta:hover { background: #c96a2d; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(224,123,57,0.3); }

/* === HERO === */
.hero {
  min-height: 100vh; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(224,123,57,0.06) 1px, transparent 1px);
  background-size: 36px 36px; pointer-events: none;
}
.hero-content {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 28px; }
.hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 100px; width: fit-content;
}
.hero-headline {
  font-family: var(--font-serif); font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--fg);
}
.hero-headline em { font-style: normal; color: var(--accent); }
.hero-subheadline {
  font-size: 18px; line-height: 1.65; color: var(--fg-muted); max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 32px;
  border-radius: 100px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
}
.btn-primary:hover { background: #c96a2d; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,123,57,0.3); }
.btn-secondary {
  background: var(--surface); color: var(--fg); padding: 14px 28px;
  border-radius: 100px; font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1.5px solid var(--border); display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--fg-muted); transform: translateY(-1px); }
.hero-social-proof { display: flex; gap: 16px; align-items: center; }
.social-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-dim); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--accent); }
.social-text { font-size: 13px; color: var(--fg-muted); }
.hero-right { position: relative; }
.hero-image-frame {
  background: var(--surface); border-radius: 24px; padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.hero-image-inner {
  background: linear-gradient(135deg, #e07b39 0%, #f4a261 50%, #2dd4a8 100%);
  border-radius: 16px; height: 360px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-image-inner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.smile-icon { font-size: 80px; opacity: 0.9; }
.hero-float-card {
  position: absolute; background: var(--surface); border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500;
  animation: float 3s ease-in-out infinite;
}
.float-card-1 { bottom: 24px; left: -24px; animation-delay: 0s; }
.float-card-2 { top: 24px; right: -20px; animation-delay: 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-icon { font-size: 24px; }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(30px, 4vw, 44px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px;
}
.section-subtitle { font-size: 17px; color: var(--fg-muted); max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* === SERVICES === */
.services-section { padding: 100px 24px; background: var(--surface); }
.services-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; transition: all 0.25s; cursor: default;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.07); border-color: var(--accent); }
.service-icon { font-size: 40px; margin-bottom: 20px; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.service-tag {
  display: inline-block; margin-top: 16px; padding: 4px 12px;
  background: var(--accent-dim); color: var(--accent); border-radius: 100px;
  font-size: 11px; font-weight: 600;
}

/* === AI FEATURES === */
.ai-features-section { padding: 100px 24px; background: var(--bg); }
.features-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px; display: flex; gap: 24px; align-items: flex-start; transition: all 0.25s;
}
.feature-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(45,212,168,0.1); }
.feature-emoji { font-size: 40px; flex-shrink: 0; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--teal-dim); border-radius: 16px; }
.feature-content { flex: 1; }
.feature-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.feature-badge.live { background: rgba(34,197,94,0.15); color: #16a34a; }
.feature-badge.automated { background: var(--accent-dim); color: var(--accent); }
.feature-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-content p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 16px; }
.feature-stat {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: var(--surface2); padding: 8px 14px; border-radius: 10px;
}
.feature-stat .num { font-size: 22px; font-weight: 800; color: var(--teal); }
.feature-stat .label { font-size: 12px; color: var(--fg-muted); }

/* === TESTIMONIALS === */
.testimonials-section { padding: 100px 24px; background: var(--surface); }
.testimonials-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 28px;
}
.testimonial-stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); font-size: 14px; }
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-sub { font-size: 12px; color: var(--fg-subtle); }

/* === BOOKING === */
.book-section {
  padding: 100px 24px; background: var(--fg); position: relative; overflow: hidden;
}
.book-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(224,123,57,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.book-inner { max-width: 800px; margin: 0 auto; position: relative; }
.book-section .section-title { color: #fff; }
.book-section .section-subtitle { color: rgba(255,255,255,0.6); }
.booking-form {
  background: var(--surface); border-radius: 24px; padding: 40px;
  margin-top: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--fg); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font); font-size: 14px; background: var(--bg);
  transition: border-color 0.2s; outline: none; color: var(--fg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
}
.time-slots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.time-slot {
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.time-slot:hover, .time-slot.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.date-picker-wrap { margin-top: 8px; }
.date-picker-wrap input[type="date"] {
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font); font-size: 14px; background: var(--bg); outline: none; color: var(--fg);
}
.appointment-types { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.appt-type {
  padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 100px;
  background: var(--bg); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.appt-type:hover, .appt-type.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.form-submit { margin-top: 20px; width: 100%; }
.form-success {
  display: none; text-align: center; padding: 40px;
}
.form-success.show { display: block; }
.form-success-icon { font-size: 56px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--fg-muted); }

/* === FOOTER === */
footer { background: var(--surface2); border-top: 1px solid var(--border); padding: 48px 24px 32px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: 14px; color: var(--fg-muted); margin-top: 12px; line-height: 1.65; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--fg-muted); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1140px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--fg-subtle); }
.demo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-dim); color: var(--accent);
  padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700;
  text-decoration: none;
}

/* === CHATBOT WIDGET === */
.chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; font-family: var(--font); }
.chatbot-toggle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(224,123,57,0.4); transition: all 0.2s; color: #fff; position: relative;
}
.chatbot-toggle:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(224,123,57,0.5); }
.chatbot-badge {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px;
  background: #ef4444; color: #fff; border-radius: 50%; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.chatbot-window {
  display: none; position: absolute; bottom: 68px; right: 0;
  width: 380px; background: var(--surface); border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15); border: 1px solid var(--border);
  overflow: hidden; flex-direction: column; max-height: 520px;
}
.chatbot-window.open { display: flex; }
.chatbot-header {
  background: var(--fg); color: #fff; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; position: relative;
}
.chatbot-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chatbot-name { font-weight: 700; font-size: 14px; }
.chatbot-status { font-size: 11px; opacity: 0.7; }
.chatbot-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; opacity: 0.6;
  line-height: 1; padding: 4px;
}
.chatbot-close:hover { opacity: 1; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; max-height: 280px; }
.chat-message { display: flex; gap: 8px; }
.chat-message.user { flex-direction: row-reverse; }
.msg-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  background: var(--surface2); color: var(--fg);
}
.chat-message.bot .msg-bubble { background: var(--teal-dim); }
.chat-message.user .msg-bubble { background: var(--accent-dim); color: var(--fg); }
.chatbot-suggestions { padding: 0 16px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion-chip {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 100px;
  padding: 6px 14px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s;
  color: var(--fg);
}
.suggestion-chip:hover { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.chatbot-input-wrap { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chatbot-input-wrap input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 100px;
  font-family: var(--font); font-size: 13px; outline: none; background: var(--bg); color: var(--fg);
}
.chatbot-input-wrap input:focus { border-color: var(--accent); }
.chatbot-input-wrap button {
  padding: 10px 18px; background: var(--accent); color: #fff; border: none;
  border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.chatbot-input-wrap button:hover { background: #c96a2d; }

/* === DEMO ADMIN LINK === */
.admin-bar {
  position: fixed; bottom: 24px; left: 24px; z-index: 998;
  background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-size: 12px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.admin-bar a { color: var(--teal); text-decoration: none; font-weight: 600; }
.admin-bar a:hover { text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}