/* ========================================
   PSICÓLOGO CAMPO GRANDE MS - Estilos
   ======================================== */

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

:root {
  --teal-900: #083F42;
  --teal-700: #0F5C5C;
  --teal-500: #7FA8A0;
  --teal-100: #E8F0EE;
  --cream: #F8F6F1;
  --white: #FFFFFF;
  --navy: #173238;
  --slate: #64777A;
  --border: #E3E8E6;
  --whatsapp: #25D366;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo svg {
  width: 32px;
  height: 32px;
  color: var(--teal-700);
}

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

.logo-text {
  line-height: 1.2;
}

.logo-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.logo-text small {
  display: block;
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.02em;
}

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--teal-700);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--teal-900);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--teal-700);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-header:hover {
  background: var(--teal-900);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--teal-700);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 2px solid var(--teal-700);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--teal-700);
  color: var(--white);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 8px 0;
  }

  .nav .btn-primary,
  .nav .btn-header {
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: var(--cream);
  padding: 48px 24px 24px;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.hero-subtitle {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
}

.hero-text {
  margin-top: 12px;
  font-size: 16px;
  color: var(--slate);
  line-height: 1.6;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

  .hero-image {
    display: none;
  }
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-section {
  position: relative;
  margin-top: -32px;
  z-index: 10;
  padding: 0 24px;
}

.search-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 24px;
}

.search-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  position: relative;
}

.search-input svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--slate);
}

.search-input input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #FFFFFF;
  font-size: 14px;
  color: var(--navy);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input input::placeholder {
  color: var(--slate);
}

.search-input input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(127,168,160,0.15);
}

.search-btn {
  padding: 12px 32px;
  background: var(--teal-700);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--teal-900);
}

@media (max-width: 640px) {
  .search-form {
    flex-direction: column;
  }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 64px 24px;
}

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

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
}

.section-subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: var(--slate);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ========================================
   SPECIALTY CARDS
   ======================================== */
.specialties-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.specialty-card:hover {
  border-color: rgba(15,92,92,0.4);
  box-shadow: var(--shadow-md);
}

.specialty-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--teal-100);
  color: var(--teal-700);
  transition: all 0.2s;
}

.specialty-card:hover .specialty-icon {
  background: var(--teal-700);
  color: var(--white);
}

.specialty-icon svg {
  width: 28px;
  height: 28px;
}

.specialty-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
}

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

@media (max-width: 640px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   LOCATION CARDS
   ======================================== */
.locations-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.location-card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.location-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.location-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,50,56,0.8), rgba(23,50,56,0.2), transparent);
  transition: background 0.3s;
}

.location-card:hover::after {
  background: linear-gradient(to top, rgba(23,50,56,0.7), rgba(23,50,56,0.15), transparent);
}

.location-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    height: 180px;
  }
}

/* ========================================
   PSYCHOLOGIST CARDS
   ======================================== */
.psychologists-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-700);
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--teal-900);
}

.view-all svg {
  width: 16px;
  height: 16px;
}

.psychologists-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.psychologist-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.2s;
}

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

.psychologist-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.psychologist-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--teal-100);
}

.psychologist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.psychologist-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.psychologist-crp {
  font-size: 12px;
  color: var(--slate);
  margin-top: 2px;
}

.psychologist-specialties {
  font-size: 14px;
  color: var(--slate);
  margin-top: 6px;
}

.psychologist-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--slate);
}

.psychologist-meta svg {
  width: 14px;
  height: 14px;
  margin-right: 2px;
}

.psychologist-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.btn-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-card:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-whatsapp:hover {
  opacity: 0.9;
}

.btn-whatsapp svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1024px) {
  .psychologists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .psychologists-grid {
    grid-template-columns: 1fr;
  }

  .psychologists-header .view-all {
    display: none;
  }
}

/* ========================================
   STEPS
   ======================================== */
.steps-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 18px;
  font-weight: 700;
}

.step h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--slate);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   TRUST
   ======================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-card h3 {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.trust-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--slate);
  max-width: 280px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--slate);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--teal-700);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--slate);
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal-700); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.mobile-only { display: none; }
@media (max-width: 640px) {
  .mobile-only { display: block; }
}

/* Page Header */
.page-header {
  padding: 48px 24px;
  background: var(--cream);
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
}

.page-header p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--slate);
  max-width: 640px;
  line-height: 1.6;
}

/* Filters */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 14px;
  color: var(--navy);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: var(--teal-500);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 24px;
  font-size: 13px;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--teal-700);
}

.breadcrumb span {
  margin: 0 8px;
}

/* Profile Page */
.profile-header {
  padding: 48px 24px;
  background: var(--cream);
}

.profile-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--teal-100);
}

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

.profile-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
}

.sidebar-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.sidebar-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-item p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--navy);
}

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

.faq-question {
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--slate);
  transition: transform 0.2s;
}

.faq-answer {
  padding-bottom: 16px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

/* Contact Form */
.contact-form {
  max-width: 640px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 14px;
  color: var(--navy);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(127,168,160,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

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

.plan-card.featured {
  border-color: var(--teal-700);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.plan-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.plan-price {
  margin-top: 16px;
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-700);
}

.plan-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
}

.plan-features {
  margin-top: 24px;
  text-align: left;
}

.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  color: var(--teal-700);
  flex-shrink: 0;
}

.plan-features li.disabled {
  color: var(--slate);
}

.plan-features li.disabled svg {
  color: var(--border);
}

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

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

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

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

.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--teal-100);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 20px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.blog-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}

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