/* ===== Design System - Dr. Rafael Ferreira Miranda ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #1e3a5f;
  --primary-light: #2d4a6f;
  --accent: #4a9b8c;
  --accent-light: #5fb3a3;
  --gold: #c9a962;
  --bg-light: #f8f9fa;
  --bg-cream: #faf9f7;
  --text-dark: #1a1a2e;
  --text-muted: #5a6270;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 100%);
  --gradient-accent: linear-gradient(135deg, #4a9b8c 0%, #3d8577 100%);
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 8px 40px rgba(30, 58, 95, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--primary); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

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

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 155, 140, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 155, 140, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(74, 155, 140, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 155, 140, 0.1);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 { color: var(--primary); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-credentials {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 58, 95, 0.1);
}

.credential {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.credential strong { color: var(--primary); }

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

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

.hero-image::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.2;
}

/* ===== Sections ===== */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== About ===== */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-content h2 { margin-bottom: 24px; }

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.credential-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.credential-card h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.credential-card p {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

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

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

.service-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(74, 155, 140, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

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

/* ===== Differentials ===== */
.differentials { background: var(--gradient-primary); color: white; }
.differentials h2 { color: white; }
.differentials .section-header p { color: rgba(255,255,255,0.8); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.diff-item {
  text-align: center;
  padding: 32px;
}

.diff-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.diff-item h3 { color: white; margin-bottom: 12px; font-size: 1.2rem; }
.diff-item p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* ===== Locations ===== */
.locations { background: var(--white); }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.location-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.location-map {
  width: 100%;
  height: 200px;
  background: #e0e0e0;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info { padding: 24px; }

.location-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.location-address {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.location-cta { width: 100%; justify-content: center; }

/* ===== FAQ ===== */
.faq { background: var(--bg-light); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.faq-question:hover { background: var(--bg-light); }

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer { max-height: 500px; }

.faq-answer-content {
  padding: 0 24px 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Testimonials ===== */
.testimonials { background: var(--white); }

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

.testimonial-card {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-quote {
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  left: 24px;
}

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

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.testimonial-name { font-weight: 600; color: var(--primary); }
.testimonial-info { font-size: 0.85rem; color: var(--text-muted); }

/* ===== CTA Section ===== */
.cta-section {
  background: var(--gradient-accent);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 32px; }
.cta-section .btn { background: white; color: var(--accent); }
.cta-section .btn:hover { background: var(--bg-cream); }

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-brand h3 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.footer ul { list-style: none; }

.footer ul li {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-credentials { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 350px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding-top: 100px; }
  section { padding: 60px 0; }
  .credentials-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-credentials { flex-direction: column; gap: 12px; }
}
