/* ===== Variables ===== */
:root {
  --teal: #0e8a8a;
  --teal-dark: #0a6b6b;
  --teal-light: #e6f5f5;
  --teal-pill: #d4efef;
  --navy: #004d57;
  --navy-dark: #003840;
  --text: #2d3748;
  --text-muted: #64748b;
  --bg-light: #f4f8fa;
  --bg-hero: linear-gradient(135deg, #e8f4f8 0%, #f8fcfd 50%, #ffffff 100%);
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 77, 87, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 77, 87, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 77, 87, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-family);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.badge {
  display: inline-block;
  background: var(--teal-pill);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--primary:hover:not(:disabled) {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 138, 138, 0.35);
}

.btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn--outline {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal-light);
}

.btn--full {
  width: 100%;
  margin-top: 8px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 138, 138, 0.08);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__icon {
  width: 36px;
  height: 36px;
  color: var(--teal);
  flex-shrink: 0;
}

.logo__icon svg {
  width: 100%;
  height: 100%;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__text strong {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo__text span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.logo--light .logo__text strong,
.logo--light .logo__text span {
  color: var(--white);
}

.logo--light .logo__icon {
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--teal);
}

.nav__btn {
  background: var(--teal);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.25s;
}

.nav__btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--bg-hero);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1.2;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__form-wrap {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.appointment-form--hero {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.appointment-form--hero .form-group {
  margin-bottom: 14px;
}

.appointment-form--hero h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
}

.hero-card__illustration {
  background: linear-gradient(145deg, #eef8f8, #f5fbfc);
  border-radius: var(--radius);
  padding: 40px 24px;
  margin-bottom: 20px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooth-scene {
  position: relative;
  width: 140px;
  height: 160px;
}

.tooth-scene__tooth {
  width: 80px;
  height: 100px;
  background: linear-gradient(180deg, #fff 0%, #e8f4f4 100%);
  border-radius: 40px 40px 20px 20px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 -8px 16px rgba(14, 138, 138, 0.1);
}

.tooth-scene__tooth::before {
  content: "";
  position: absolute;
  inset: 12px 8px auto;
  height: 2px;
  background: rgba(14, 138, 138, 0.15);
  border-radius: 2px;
  box-shadow: 0 12px 0 rgba(14, 138, 138, 0.12), 0 24px 0 rgba(14, 138, 138, 0.1);
}

.tooth-scene__tool {
  width: 60px;
  height: 8px;
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
  border-radius: 4px;
  position: absolute;
  top: 30%;
  right: -10px;
  transform: rotate(-30deg);
}

.tooth-scene__tool::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -4px;
  width: 16px;
  height: 16px;
  background: var(--teal);
  border-radius: 50%;
}

.tooth-scene__spark {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.spark--1 { top: 10%; left: 20%; animation-delay: 0s; }
.spark--2 { top: 15%; right: 15%; animation-delay: 0.5s; }
.spark--3 { bottom: 20%; left: 10%; animation-delay: 1s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-card__caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-card__caption strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.floating-badge {
  position: absolute;
  background: var(--white);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.floating-badge--top {
  top: 10%;
  right: -10px;
}

.floating-badge--bottom {
  bottom: 15%;
  left: -20px;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about-card {
  background: var(--teal);
  border-radius: 24px;
  padding: 48px 36px 80px;
  color: var(--white);
  min-height: 340px;
}

.about-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.about-card__icon svg {
  width: 100%;
  height: 100%;
}

.about-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.65;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: -16px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-badge__icon {
  font-size: 1.25rem;
}

.about__content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-light);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 138, 138, 0.06);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature__icon--tech {
  background: #dbeafe;
  color: #2563eb;
}

.feature__icon--pro {
  background: #fce7f3;
  color: #db2777;
}

.feature__icon--safe {
  background: #d1fae5;
  color: #059669;
}

.feature h4 {
  margin-bottom: 4px;
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== Services ===== */
.services {
  background: var(--bg-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14, 138, 138, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card__icon--blue { background: #dbeafe; }
.service-card__icon--orange { background: #ffedd5; }
.service-card__icon--yellow { background: #fef9c3; }
.service-card__icon--teal { background: var(--teal-light); }
.service-card__icon--purple { background: #ede9fe; }
.service-card__icon--pink { background: #fce7f3; }
.service-card__icon--red { background: #fee2e2; }
.service-card__icon--gold { background: #fef3c7; }
.service-card__icon--green { background: #d1fae5; }

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.service-card__tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  transition: color 0.2s;
}

.service-card__tag:hover {
  color: var(--teal-dark);
}

/* ===== Contact ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--teal-light);
  border: 1px solid rgba(14, 138, 138, 0.12);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.info-card__icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.info-card__icon svg {
  width: 22px;
  height: 22px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.appointment-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14, 138, 138, 0.08);
}

.appointment-form h3 {
  margin-bottom: 24px;
  font-size: 1.35rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 138, 138, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
}

/* ===== Login Modal ===== */
body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 45, 52, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(420px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal__close:hover {
  background: #e2e8f0;
  color: var(--navy);
}

.modal__dialog h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal__subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* ===== Map ===== */
.map-container {
  width: 100%;
  min-height: 420px;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14, 138, 138, 0.08);
  background: var(--bg-light);
}

.map-container iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}

/* ===== Floating Action Button ===== */
.fab-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.fab-widget.open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-action:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.fab-action svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.fab-action--call {
  background: var(--teal);
  color: var(--white);
}

.fab-action--call svg {
  color: var(--white);
}

.fab-action--whatsapp {
  background: #25d366;
  color: var(--white);
}

.fab-action--whatsapp svg {
  color: var(--white);
}

.fab-action--location {
  background: #ea4335;
  color: var(--white);
}

.fab-action--location svg {
  color: var(--white);
}

.fab-main {
  position: relative;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(14, 138, 138, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab-main:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(14, 138, 138, 0.5);
}

.fab-main__icon {
  width: 26px;
  height: 26px;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-main__icon--close {
  opacity: 0;
  transform: scale(0.6);
}

.fab-widget.open .fab-main__icon--chat {
  opacity: 0;
  transform: scale(0.6);
}

.fab-widget.open .fab-main__icon--close {
  opacity: 1;
  transform: scale(1);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  padding: 48px 0 32px;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__details {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .appointment-form--hero {
    position: static;
  }

  .map-container,
  .map-container iframe {
    min-height: 320px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-badge {
    right: 16px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + 24px) 32px 32px;
    gap: 20px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav.open {
    right: 0;
  }

  .nav__btn {
    margin-top: 8px;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 24px;
  }

  .appointment-form {
    padding: 24px;
  }

  .fab-widget {
    right: 16px;
    bottom: 16px;
  }

  .fab-main {
    width: 56px;
    height: 56px;
  }

  .fab-main__icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }
}
