/* ============================================
   DR. ROSIMAR - INSTITUTO DELL'ANIMA
   Site de Autoridade em Neuropsicologia
   ============================================ */

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

:root {
  --green: #2C624B;
  --green-dark: #1E4A37;
  --green-light: #3A7A5E;
  --brown: #B07935;
  --brown-light: #C4944F;
  --brown-dark: #8E6128;
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --off-white-alt: #F2EDE7;
  --text-dark: #2A2A2A;
  --text-medium: #555555;
  --text-light: #777777;
  --border-light: #E8E2DA;
  --shadow-soft: 0 2px 20px rgba(44, 98, 75, 0.08);
  --shadow-medium: 0 4px 30px rgba(44, 98, 75, 0.12);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--green-dark);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER / NAV --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

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

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

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

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green-dark);
  font-weight: 600;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brown);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--green);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.3px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  transition: var(--transition);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

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

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(44, 98, 75, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-brown {
  background: var(--brown);
  color: var(--white);
}

.btn-brown:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(176, 121, 53, 0.25);
}

.btn-white {
  background: var(--white);
  color: var(--green);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-arrow::after {
  content: '\2192';
  font-size: 1.1em;
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- HERO --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(44,98,75,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44, 98, 75, 0.08);
  color: var(--green);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--brown);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--green-dark);
  line-height: 1.2;
}

.hero h1 span {
  color: var(--brown);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.8;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-credentials li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-medium);
  background: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
}

.hero-credentials li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brown);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero-image-wrapper {
  position: relative;
  width: 420px;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  border-left: 4px solid var(--brown);
  max-width: 260px;
}

.hero-floating-card p {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.5;
}

.hero-floating-card strong {
  color: var(--green-dark);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* --- SECTIONS GENERAL --- */
section {
  padding: 100px 0;
}

.section-bg {
  background: var(--off-white);
}

.section-bg-alt {
  background: var(--off-white-alt);
}

.section-green {
  background: var(--green);
  color: var(--white);
}

.section-green h2,
.section-green h3,
.section-green h4 {
  color: var(--white);
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-medium);
  font-size: 1.05rem;
}

.section-green .section-header p {
  color: rgba(255,255,255,0.8);
}

.section-green .section-label {
  color: var(--brown-light);
}

/* --- POSITIONING SECTION (Home) --- */
.positioning {
  padding: 80px 0;
}

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

.positioning-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.positioning-content p {
  color: var(--text-medium);
  margin-bottom: 16px;
  font-size: 1rem;
}

.positioning-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.positioning-highlight {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.positioning-highlight:hover {
  box-shadow: var(--shadow-card);
}

.positioning-highlight .icon {
  width: 44px;
  height: 44px;
  background: rgba(44, 98, 75, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 1.2rem;
}

.positioning-highlight h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.positioning-highlight p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- SERVICE CARDS --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.service-card.featured::before {
  display: none;
}

.service-card.featured h3,
.service-card.featured h4 {
  color: var(--white);
}

.service-card.featured p {
  color: rgba(255,255,255,0.85);
}

.service-card.featured .service-badge {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(44, 98, 75, 0.08);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-medium);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.service-card .btn {
  margin-top: 8px;
}

.service-list {
  margin: 16px 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
}

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brown);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.service-card.featured .service-list li::before {
  background: var(--brown-light);
}

/* --- AUTHORITY / CREDENTIALS --- */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.authority-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

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

.authority-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.authority-label {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 6px;
}

/* --- EDUCATIONAL BLOCKS --- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.edu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

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

.edu-icon {
  width: 52px;
  height: 52px;
  background: rgba(44, 98, 75, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--green);
}

.edu-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
}

.edu-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* --- CTA SECTION --- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(176,121,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- ABOUT PAGE --- */
.about-hero {
  padding: 140px 0 80px;
  background: var(--off-white);
}

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

.about-photo {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 100px;
}

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

.about-intro h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.about-intro .subtitle {
  font-size: 1.1rem;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 24px;
}

.about-intro .crp {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.about-intro p {
  color: var(--text-medium);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* --- FORMATION GRID --- */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.formation-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition);
}

.formation-card:hover {
  box-shadow: var(--shadow-card);
}

.formation-card .level {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 8px;
}

.formation-card h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--green-dark);
}

.formation-card .institution {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* --- DIFFERENTIALS --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.diff-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all var(--transition);
}

.diff-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

.diff-icon {
  width: 48px;
  height: 48px;
  background: rgba(176,121,53,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.diff-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
}

.diff-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* --- NEURO PAGE --- */
.neuro-hero {
  padding: 160px 0 100px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  position: relative;
}

.neuro-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 74, 55, 0.88) 0%, rgba(44, 98, 75, 0.82) 100%);
  z-index: 1;
}

.neuro-hero .container {
  position: relative;
  z-index: 2;
}

.neuro-hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.neuro-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 32px;
}

.neuro-hero .hero-credentials li {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.95);
}

.neuro-hero .hero-credentials li::before {
  background: var(--brown-light);
}

/* --- STEPS / PROCESS --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(44,98,75,0.2);
}

.step-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--green-dark);
}

.step-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

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

.indication-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}

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

.indication-icon {
  width: 44px;
  height: 44px;
  background: rgba(44, 98, 75, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  font-size: 1.1rem;
}

.indication-card h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.indication-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- DELIVERABLES --- */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.deliverable-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
}

.deliverable-card .check {
  width: 36px;
  height: 36px;
  background: rgba(176, 121, 53, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brown-light);
  font-size: 1rem;
}

.deliverable-card h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.deliverable-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

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

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  gap: 16px;
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(44, 98, 75, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--green);
  transition: transform var(--transition);
}

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

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

.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

/* --- SERVICES PAGE --- */
.services-hero {
  padding: 160px 0 100px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 74, 55, 0.88) 0%, rgba(44, 98, 75, 0.82) 100%);
  z-index: 1;
}

.services-hero .container {
  position: relative;
  z-index: 2;
}

.services-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--white);
}

.services-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
}

.services-hero .section-label {
  color: var(--brown-light);
}

.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}

.service-detail:last-of-type {
  border-bottom: none;
}

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

.service-detail-content h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.service-detail-content p {
  color: var(--text-medium);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.service-detail-sidebar {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.service-detail-sidebar h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
}

.service-detail-sidebar ul {
  margin-bottom: 24px;
}

.service-detail-sidebar li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.service-detail-sidebar li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brown);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

/* --- NEURO BANNER (on services page) --- */
.neuro-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  color: var(--white);
}

.neuro-banner h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.neuro-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo img {
  height: 44px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

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

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.65);
}

.footer-contact .label {
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  min-width: fit-content;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- WHATSAPP FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: transform var(--transition);
}

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

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

/* --- INTERNAL PAGE HERO (generic) --- */
.page-hero {
  padding: 140px 0 60px;
  background: var(--off-white);
}

.page-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 700px;
}

/* --- ABOUT EXPERIENCE TIMELINE --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--off-white);
}

.timeline-item h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
}

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

.affiliation-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.affiliation-card .abbr {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}

.affiliation-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* --- TWO COLUMNS CONTENT --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.two-col h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.two-col p {
  color: var(--text-medium);
  margin-bottom: 16px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .hero-image-wrapper {
    width: 100%;
    max-width: 400px;
    height: 400px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .about-hero .container {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    height: 350px;
    max-width: 350px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-template-columns: 1fr;
  }

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

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

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

  .formation-grid {
    grid-template-columns: 1fr;
  }

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

  .positioning-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .neuro-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .deliverables-grid {
    grid-template-columns: 1fr;
  }

  .affiliations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 68px;
  }

  .logo img {
    height: 42px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-floating-card {
    display: none;
  }

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

  .hero-credentials {
    gap: 8px;
  }

  .hero-credentials li {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
    padding: 13px 24px;
    font-size: 0.9rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .authority-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .authority-card {
    padding: 20px 12px;
  }

  .authority-number {
    font-size: 1.8rem;
  }

  .authority-label {
    font-size: 0.78rem;
  }

  .edu-grid,
  .diff-grid,
  .indications-grid {
    grid-template-columns: 1fr;
  }

  .edu-card {
    padding: 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .neuro-hero {
    padding: 120px 0 70px;
  }

  .neuro-hero h1 {
    font-size: 1.8rem;
  }

  .neuro-hero p {
    font-size: 1rem;
  }

  .services-hero {
    padding: 120px 0 70px;
  }

  .page-hero h1,
  .services-hero h1 {
    font-size: 1.7rem;
  }

  .about-hero {
    padding: 100px 0 60px;
  }

  .about-intro h1 {
    font-size: 1.8rem;
  }

  .about-photo {
    height: 300px;
    max-width: 100%;
  }

  .neuro-banner {
    padding: 32px 24px;
  }

  .neuro-banner h3 {
    font-size: 1.3rem;
  }

  .positioning-highlights {
    grid-template-columns: 1fr;
  }

  .positioning-content h2 {
    font-size: 1.6rem;
  }

  .two-col h2 {
    font-size: 1.5rem;
  }

  .formation-card {
    padding: 20px;
  }

  .service-detail-sidebar {
    padding: 28px;
  }

  .whatsapp-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }

  .services-grid-3 {
    gap: 20px;
  }

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

  .dr-section-photo {
    max-width: 100%;
    height: 300px;
  }

  .neuro-featured-img {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .neuro-hero h1,
  .services-hero h1 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .authority-grid {
    gap: 8px;
  }

  .authority-card {
    padding: 16px 8px;
  }

  .authority-number {
    font-size: 1.5rem;
  }

  .service-card-img .card-content {
    padding: 24px;
  }
}

/* --- SERVICE CARDS WITH IMAGES --- */
.service-card-img {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

.service-card-img .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-img .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-img:hover .card-image img {
  transform: scale(1.05);
}

.service-card-img .card-content {
  padding: 32px;
}

.service-card-img .card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--green-dark);
}

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

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

@media (max-width: 1024px) {
  .services-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* --- NEURO FEATURED IMAGE SECTION --- */
.neuro-featured-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.neuro-featured-img .img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.neuro-featured-img .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .neuro-featured-img {
    grid-template-columns: 1fr;
  }
}

/* --- DR ROSIMAR SECTION (on neuro page) --- */
.dr-section {
  padding: 80px 0;
}

.dr-section-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}

.dr-section-photo {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

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

.dr-section-content h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.dr-section-content .subtitle {
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 1rem;
}

.dr-section-content p {
  color: var(--text-medium);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.dr-section-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.dr-section-credentials li {
  font-size: 0.82rem;
  color: var(--text-medium);
  background: var(--off-white);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .dr-section-grid {
    grid-template-columns: 1fr;
  }

  .dr-section-photo {
    max-width: 280px;
    height: 340px;
  }
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SOBRE PAGE — EDITORIAL FORMATION LAYOUT
   ============================================ */

.formation-editorial {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Shared block base */
.formation-block {
  position: relative;
}

/* Block label (tier heading) */
.formation-block-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 20px;
}

/* ---- PRIMARY BLOCK ---- */
.formation-block--primary {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border-light);
}

.formation-primary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.formation-primary-card {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--border-light);
}

.formation-primary-card:first-child {
  padding-left: 0;
}

.formation-primary-card:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 32px;
}

.formation-primary-card:nth-child(2) {
  padding-left: 32px;
}

.formation-degree {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.formation-institution {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  font-style: italic;
}

/* ---- SECONDARY BLOCK ---- */
.formation-block--secondary {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.formation-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}

.formation-secondary-card {
  padding: 18px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--green-light);
}

.formation-degree-sm {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-body);
}

.formation-institution-sm {
  font-size: 0.83rem;
  color: var(--text-light);
  display: block;
  line-height: 1.4;
}

/* ---- TERTIARY BLOCK ---- */
.formation-block--tertiary {
  padding: 32px 0 8px;
}

.formation-tertiary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
}

.formation-tertiary-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 0;
  border-right: 1px solid var(--border-light);
  margin-right: 18px;
}

.formation-tertiary-card:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.formation-degree-xs {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.formation-sep {
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.5;
}

.formation-institution-xs {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ============================================
   SOBRE PAGE — ACADEMIC PRODUCTION GRID
   ============================================ */

.academic-production-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 28px;
  align-items: start;
}

.academic-cards {
  display: flex;
  flex-direction: column;
}

/* Book cover placeholders */
.book-covers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--off-white);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-cover-placeholder span {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.book-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   SOBRE PAGE — PRINCIPLE CARDS
   ============================================ */

.principle-card {
  padding: 18px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--brown);
  transition: box-shadow var(--transition);
}

.principle-card:hover {
  box-shadow: var(--shadow-card);
}

.principle-card h4 {
  font-size: 0.97rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.principle-card p {
  font-size: 0.87rem;
  color: var(--text-medium);
  line-height: 1.55;
  margin: 0;
}

/* ============================================
   RESPONSIVE — FORMATION / PRODUCTION / CARDS
   ============================================ */

@media (max-width: 1024px) {
  .formation-primary-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .formation-primary-card {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0 0 24px 0 !important;
  }

  .formation-primary-card:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }

  .academic-production-grid {
    grid-template-columns: 1fr;
  }

  .book-covers {
    flex-direction: row;
    max-width: 280px;
  }

  .book-cover-placeholder {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .formation-block--primary {
    padding: 36px 0 32px;
  }

  .formation-block--secondary {
    padding: 32px 0;
  }

  .formation-secondary-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .formation-tertiary-grid {
    flex-direction: column;
    gap: 8px;
  }

  .formation-tertiary-card {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    margin-right: 0;
    padding: 0 0 10px 0;
  }

  .formation-tertiary-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .formation-degree {
    font-size: 1.1rem;
  }

  .academic-production-grid {
    grid-template-columns: 1fr;
  }

  .book-covers {
    flex-direction: row;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .formation-block--primary {
    padding: 28px 0 24px;
  }

  .formation-block--secondary {
    padding: 24px 0;
  }

  .formation-block--tertiary {
    padding: 20px 0 4px;
  }

  .book-covers {
    max-width: 200px;
  }

  .principle-card {
    padding: 14px 16px;
  }
}
