/* Variáveis de cores */
:root {
  --primary-color: #2b4751;
  --secondary-color: #63adc4;
  --accent-color: #e0ddc7;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #888888;
  --background-light: #f9f9f7;
  --white: #ffffff;
  --black: #000000;
  --whatsapp-color: #25D366;
  --border-color: #e0e0e0;
  --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Variáveis de acessibilidade */
  --focus-outline: 3px solid #4a90e2;
  --focus-color: #4a90e2;
  --high-contrast-text: #000000;
  --high-contrast-bg: #ffffff;
}

/* Reset básico */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 10px;
  z-index: 100;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-outline);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Foco em elementos interativos */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

a:active {
  transform: translateY(1px);
}

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

button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
  background: transparent;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--background-light);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Header */
header {
  background-color: var(--primary-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 60px;
  width: auto;
}

.clinic-name {
  margin-left: 15px;
}

.clinic-name h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.contact-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.phone {
  display: flex;
  align-items: center;
  color: white;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  color: white;
}

.phone-number {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.phone-number:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  background-color: var(--whatsapp-color);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #20BA5C;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  color: white;
  text-decoration: none;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: #2b4751;
  background-image: url('/assets/images/hero-background.webp');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(43, 71, 81, 0.8);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 15px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #e0ddc7;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  margin-top: 30px;
}

.btn-hero {
  display: inline-block;
  background-color: #63adc4;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-hero:hover {
  background-color: #4f96ab;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  text-decoration: none;
}

.btn-hero:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Biografia */
.bio-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.bio-image {
  flex: 0 0 calc(40% - 20px);
  min-width: 300px;
}

.bio-content {
  flex: 1;
  min-width: 300px;
}

.doctor-image {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin: 0 auto 30px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.image-caption {
  text-align: center;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 30px;
}

/* Capitular */
.capitular::first-letter {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 5.5rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 8px;
  color: var(--primary-color);
  font-weight: 700;
}

/* Depoimentos */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Depoimentos - correção do estilo */
.testimonial-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.testimonial-card blockquote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 30px; /* Aumentado para dar espaço ao rodapé */
  flex: 1;
}

.testimonial-card footer {
  margin-top: auto;
  background-color: var(--background-light); /* Alterado de preto para cor de fundo clara */
  padding: 15px;
  margin: 0 -30px -30px -30px;
  border-top: 1px solid var(--border-color);
}

.testimonial-card footer cite {
  display: block;
  color: var(--text-dark); /* Alterado para cor de texto escura */
}

.testimonial-card footer cite strong {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: var(--primary-color); /* Cor primária para o nome */
}

.testimonial-card footer cite span {
  color: var(--text-medium); /* Cor média para a descrição/idade */
  font-size: 0.9rem;
  display: block;
}


/* Perguntas Frequentes */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  padding: 20px;
  background-color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-medium);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition-medium);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition-medium);
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-question[aria-expanded="true"] {
  background-color: var(--primary-color);
}

.faq-question[aria-expanded="true"] h3 {
  color: white;
}

.faq-question[aria-expanded="true"] .faq-toggle {
  color: white;
  transform: rotate(45deg);
}

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

.faq-answer-inner {
  padding: 0 20px 20px;
}

.faq-answer p {
  margin-bottom: 0;
}

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

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

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
  font-family: 'Inter', sans-serif;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-about p {
  color: #adb5bd;
  font-size: 15px;
  line-height: 1.6;
}

.footer-creds {
  margin-top: 20px;
}

.footer-creds p {
  color: #adb5bd;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.2s;
}

.social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.contact-info {
  margin-bottom: 15px;
}

.contact-info strong {
  display: block;
  margin-bottom: 5px;
  color: white;
}

.contact-info p,
.contact-info a {
  color: #adb5bd;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 5px;
}

.contact-info a:hover {
  color: var(--secondary-color);
}

.copyright {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #adb5bd;
  font-size: 14px;
}

.footer-nav {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.footer-nav a {
  color: #adb5bd;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-container {
    width: 100%;
    justify-content: center;
  }
  
  .bio-container {
    flex-direction: column;
  }
  
  .bio-image, .bio-content {
    flex: 0 0 100%;
  }
  
  .capitular::first-letter {
    font-size: 4rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .capitular::first-letter {
    font-size: 3.5rem;
  }
  
  .doctor-image {
    width: 100%;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Imprimir */
@media print {
  .skip-link,
  .whatsapp-button,
  .hero-cta,
  .footer-links,
  .social-links,
  .footer-nav {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    max-width: 100%;
  }
  
  a {
    color: #000;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  
  img {
    max-width: 300px;
  }
}

/* Acessibilidade adicional */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #344e58;
    --secondary-color: #7abdcf;
    --background-light: #222;
    --text-dark: #eee;
    --text-medium: #ccc;
    --text-light: #aaa;
    --white: #181818;
    --black: #111;
  }
  
  img {
    filter: brightness(0.9);
  }
  
  .hero-section {
    background-color: #1a2c33;
  }
  
  .hero-overlay {
    background-color: rgba(20, 35, 42, 0.8);
  }
  
  .testimonial-card {
    background-color: #222;
  }
  
  .faq-question {
    background-color: #222;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #000;
    --text-dark: #000;
    --text-medium: #000;
    --text-light: #000;
    --background-light: #fff;
    --white: #fff;
  }
  
  * {
    border: 1px solid #000 !important;
  }
  
  a {
    text-decoration: underline !important;
  }
}
