/* SmileCraft — Webflow-style CSS
   Built with Webflow export conventions (w-container, w-nav, etc.) */

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #14b8a6;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f0fdfa;
  --bg-muted: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 118, 110, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* Webflow Container */
.w-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 96px 0;
}

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding: 10px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.top-bar-link:hover {
  color: #fff;
}

/* Navbar */
.navbar {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.brand-icon {
  font-size: 1.75rem;
}

.brand-accent {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.w--current {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  margin-left: 8px;
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-button.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.active .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-button.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  margin-bottom: 16px;
}

.badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Section Headers */
.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-heading em {
  font-style: italic;
  color: var(--primary);
}

.section-heading.light {
  color: #fff;
}

.section-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-text.light {
  color: rgba(255, 255, 255, 0.85);
}

/* Hero */
.hero-section {
  padding: 64px 0 96px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 50%, var(--bg-muted) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-heading em {
  font-style: italic;
  color: var(--primary);
}

.hero-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-float-card {
  position: absolute;
  bottom: 32px;
  left: -24px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: float 3s ease-in-out infinite;
}

.float-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.hero-float-card strong {
  display: block;
  font-size: 0.9375rem;
}

.hero-float-card span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Services */
.services-section {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon.general { background: #dbeafe; color: #2563eb; }
.service-icon.cosmetic { background: #fce7f3; color: #db2777; }
.service-icon.pediatric { background: #fef3c7; color: #d97706; }
.service-icon.emergency { background: #fee2e2; color: #dc2626; }

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.service-link:hover {
  color: var(--primary-dark);
}

/* About */
.about-section {
  background: var(--bg-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: -16px;
  background: var(--primary);
  color: #fff;
  padding: 24px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
}

.about-features {
  margin: 28px 0 32px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Team */
.team-section {
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.team-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-light);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-section {
  background: var(--bg-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.testimonial-card.featured {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.02);
}

.testimonial-card.featured .stars {
  color: #fde68a;
}

.testimonial-card.featured p {
  color: rgba(255, 255, 255, 0.95);
}

.testimonial-card.featured .testimonial-author span {
  color: rgba(255, 255, 255, 0.7);
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.testimonial-card.featured .author-avatar {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Appointment */
.appointment-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.appointment-contact {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.contact-item:hover {
  color: #fff;
}

.appointment-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}

.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(13, 148, 136, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
}

.form-message.success {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.form-message.error {
  background: #fee2e2;
  color: #dc2626;
}

.hidden {
  display: none !important;
}

/* Contact / Map */
.contact-section {
  background: var(--bg-muted);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-card a {
  color: var(--primary);
}

.contact-card a:hover {
  color: var(--primary-dark);
}

/* Footer */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-links h4 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: var(--accent);
}

.footer-bottom a:hover {
  color: #fff;
}

/* FAB Buttons */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
  color: #fff;
}

.fab:hover {
  transform: scale(1.08);
}

.fab-call {
  background: var(--primary);
}

.fab-whatsapp {
  background: #25d366;
}

.fab-chat {
  background: var(--text);
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  z-index: 998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  font-size: 1.5rem;
}

.chatbot-title strong {
  display: block;
  font-size: 0.9375rem;
}

.chatbot-title span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--bg-muted);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick-replies {
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.chat-quick-replies button {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition);
}

.chat-quick-replies button:hover {
  background: var(--primary);
  color: #fff;
}

.chat-input-wrap {
  display: flex;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.chat-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.chat-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input-wrap button {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-input-wrap button:hover {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-grid,
  .about-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .testimonials-grid,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image {
    height: 400px;
  }

  .hero-float-card {
    left: 16px;
  }

  .testimonial-card.featured {
    transform: none;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }

  .top-bar-right {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .services-grid,
  .team-grid,
  .testimonials-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .about-badge {
    right: 16px;
  }

  .appointment-form {
    padding: 24px;
  }

  .chatbot {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 90px;
  }

  .fab-group {
    bottom: 16px;
    right: 16px;
  }

  .fab {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 479px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-image {
    height: 320px;
  }
}
