/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #9b59b6;
  --accent-light: #f3e8f9;
  --accent-hover: #8e44ad;
  --foreground: #2d1b4e;
  --foreground-70: rgba(45, 27, 78, 0.7);
  --foreground-30: rgba(45, 27, 78, 0.3);
  --background: #faf5ff;
  --white: #ffffff;
  --border: #e8daf0;
  --radius: 0.5rem;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background-color: var(--accent-light);
}

.btn-full {
  width: 100%;
}

.btn-icon, .btn-icon-right {
  width: 1rem;
  height: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 3rem;
  width: auto;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  display: none;
}

@media (min-width: 768px) {
  .logo-img { height: 3.5rem; }
  .logo-tagline { display: block; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground-70);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.nav-mobile {
  border-top: 1px solid var(--border);
  background: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile.hidden { display: none; }

.nav-link-mobile {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground-70);
  padding: 0.5rem 0;
}
.nav-link-mobile:hover { color: var(--accent); }

.hidden { display: none !important; }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image-wrapper {
  width: 100%;
  height: 60vh;
}

@media (min-width: 768px) {
  .hero-image-wrapper { height: 100vh; }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

@media (min-width: 768px) {
  .hero-image { object-position: center; }
}

.hero-cta {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    bottom: 3rem;
    gap: 1rem;
  }
}

/* About */
.about {
  padding: 4rem 0;
  background: var(--white);
}

@media (min-width: 768px) {
  .about { padding: 5rem 0; }
}

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-text h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .about-text h2 { font-size: 3rem; }
}

.about-text p {
  color: var(--foreground-70);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-text p { font-size: 1.125rem; }
}

.about-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem !important;
  font-weight: 600;
  color: var(--accent) !important;
  margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
  .about-quote { font-size: 1.25rem !important; }
}

.about-image {
  position: relative;
  height: 24rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .about-image { height: 100%; min-height: 400px; }
}

/* Services */
.services {
  padding: 4rem 0;
  background: var(--background);
}

@media (min-width: 768px) {
  .services { padding: 5rem 0; }
}

.services-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .services-header {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
  }
}

.services-title h2 {
  font-size: 1.875rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .services-title h2 { font-size: 3rem; }
}

.services-description p {
  color: var(--foreground-70);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .services-description p { font-size: 1.125rem; }
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .service-tags { gap: 0.75rem; }
}

.tag {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}

@media (min-width: 768px) {
  .tag { padding: 0.5rem 1rem; font-size: 0.875rem; }
}

.tag:hover {
  background-color: var(--accent);
  color: white;
}

.link-discover {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: underline;
}

.link-icon {
  width: 1rem;
  height: 1rem;
}

/* Procedures */
.procedures-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .procedures-list { gap: 2.5rem; }
}

.procedure-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .procedure-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2.5rem;
  }
}

.procedure-item:last-child {
  border-bottom: none;
}

.procedure-content {
  flex: 1;
}

.procedure-num {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--foreground-30);
  display: block;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .procedure-num { font-size: 1.875rem; }
}

.procedure-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .procedure-title { font-size: 1.875rem; }
}

.procedure-desc {
  color: var(--foreground-70);
  font-size: 1rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .procedure-desc { font-size: 1.125rem; }
}

.procedure-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Diferenciais */
.diferenciais {
  padding: 4rem 0;
  background: var(--accent-light);
}

@media (min-width: 768px) {
  .diferenciais { padding: 5rem 0; }
}

.diferenciais-container {
  max-width: 56rem;
  text-align: center;
}

.diferenciais-container h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .diferenciais-container h2 { font-size: 3rem; }
}

.divider {
  width: 3rem;
  height: 0.25rem;
  background: var(--accent);
  margin: 0 auto 2rem;
}

.diferenciais-text {
  color: var(--foreground-70);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .diferenciais-text { font-size: 1.125rem; }
}

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

@media (min-width: 768px) {
  .diferenciais-grid { grid-template-columns: repeat(3, 1fr); }
}

.diferencial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.diferencial-icon {
  width: 4rem;
  height: 4rem;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.diferencial-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  stroke: var(--accent);
}

.diferencial-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.diferencial-card p {
  color: var(--foreground-70);
  font-size: 0.875rem;
}

/* FAQ */
.faq {
  padding: 4rem 0;
  background: var(--white);
}

@media (min-width: 768px) {
  .faq { padding: 5rem 0; }
}

.faq-container {
  max-width: 48rem;
  text-align: center;
}

.faq-container h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .faq-container h2 { font-size: 3rem; }
}

.faq-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .faq-item summary { font-size: 1rem; }
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--foreground-70);
  font-size: 0.875rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .faq-item p { font-size: 1rem; }
}

/* Contact */
.contact {
  padding: 4rem 0;
  background: var(--background);
}

@media (min-width: 768px) {
  .contact { padding: 5rem 0; }
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .contact-header { margin-bottom: 4rem; }
}

.contact-header h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .contact-header h2 { font-size: 3rem; }
}

.contact-header p {
  color: var(--foreground-70);
  font-size: 1rem;
  max-width: 40rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-header p { font-size: 1.125rem; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-info { gap: 2rem; }
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .contact-icon { width: 1.5rem; height: 1.5rem; }
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .contact-item h3 { font-size: 1.125rem; }
}

.contact-item a {
  color: var(--accent);
  transition: color 0.2s;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .contact-item a { font-size: 1rem; }
}

.contact-item a:hover { color: var(--accent-hover); }

.contact-item p {
  color: var(--foreground-70);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .contact-item p { font-size: 1rem; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--foreground);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: none;
}

/* Map */
.map-section {
  padding: 4rem 0;
  background: var(--background);
}

@media (min-width: 768px) {
  .map-section { padding: 5rem 0; }
}

.map-title {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .map-title { font-size: 3rem; margin-bottom: 3rem; }
}

.map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 24rem;
}

@media (min-width: 768px) {
  .map-wrapper { height: 31rem; }
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* Footer */
.footer {
  background: var(--accent-light);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .footer { padding: 3rem 0; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-logo { height: 3rem; }
}

.footer-grid p {
  color: var(--foreground-70);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid p { font-size: 1rem; }
}

.footer-grid h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-grid ul a {
  color: var(--foreground-70);
  font-size: 0.875rem;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .footer-grid ul a { font-size: 1rem; }
}

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

.footer-grid > div:last-child a {
  color: var(--foreground-70);
  transition: color 0.2s;
}
.footer-grid > div:last-child a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--foreground-70);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .footer-bottom p { font-size: 0.875rem; }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
  fill: white;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  max-width: 56rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  position: sticky;
  top: 0;
  background: linear-gradient(to right, var(--accent-light), rgba(243, 232, 249, 0.5));
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .modal-header h2 { font-size: 1.875rem; }
}

.modal-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--accent-light);
}

.modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
}

.modal-body {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .modal-body { padding: 2rem; }
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .modal-grid { grid-template-columns: 1fr 1fr; }
}

.modal-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--accent-light);
}

.modal-content p {
  color: var(--foreground-70);
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
