/* ============================================================
   Acalento Digital — Amanda Lupi — Psicóloga Clínica
   CSS Completo — Paleta Premium Clínica
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:          #F0EBE3;
  --bg-card:     #F9F6F2;
  --fg:          #2D302D;
  --fg-muted:    #6B6B6B;
  --primary:     #5F7A5A;
  --primary-fg:  #ffffff;
  --primary-10:  rgba(95,122,90,0.10);
  --primary-06:  rgba(95,122,90,0.06);
  --secondary:   #C98A6E;
  --secondary-fg:#ffffff;
  --secondary-10:rgba(201,138,110,0.10);
  --accent:      #A87A50;
  --accent-fg:   #ffffff;
  --border:      #D8CFC4;
  --muted-bg:    #E8E0D6;
  --danger:      #DC3545;
  --danger-fg:   #ffffff;
  --success:     #28A745;
  --warning:     #F0AD4E;
  --radius:      0.75rem;
  --radius-lg:   1.5rem;
  --shadow:      0 4px 24px -4px rgba(45,48,45,0.10);
  --shadow-hover:0 8px 32px -4px rgba(45,48,45,0.18);
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:'Playfair Display', Georgia, serif;
  --transition:  all 0.3s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--fg); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

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

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- 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.9rem; border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: #4E6A4A; color: var(--primary-fg); }
.btn-secondary { background: var(--secondary); color: var(--secondary-fg); }
.btn-secondary:hover { background: #B87A5E; color: var(--secondary-fg); }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { background: #976A40; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--fg); }
.btn-outline:hover { background: var(--primary-10); border-color: var(--primary); color: var(--primary); }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-danger { background: var(--danger); color: var(--danger-fg); }
.btn-danger:hover { background: #C82333; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-icon {
  display: inline-flex; padding: 0.75rem; border-radius: var(--radius);
  background: var(--primary-10); color: var(--primary); margin-bottom: 1rem;
  transition: var(--transition);
}
.card:hover .card-icon { background: var(--primary); color: var(--primary-fg); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.75rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: rgba(40,167,69,0.1); color: #28A745; }
.badge-warning { background: rgba(240,173,78,0.1); color: #D4940E; }
.badge-danger  { background: rgba(220,53,69,0.1); color: #DC3545; }
.badge-primary { background: var(--primary-10); color: var(--primary); }
.badge-muted   { background: var(--muted-bg); color: var(--fg-muted); }
.badge-secondary { background: var(--secondary-10); color: var(--secondary); }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--fg); margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem;
  background: #fff; color: var(--fg); transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-10);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 0.3rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input[type="checkbox"] { accent-color: var(--primary); width: 1rem; height: 1rem; }

/* ---- Navbar ---- */
.navbar {
  background: rgba(249,246,242,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
  padding: 0.75rem 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.navbar-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary-10); }
.navbar-brand-text h1 { font-size: 1.15rem; color: var(--fg); margin: 0; line-height: 1.2; }
.navbar-brand-text span { font-size: 0.65rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); font-weight: 500; }
.navbar-nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.navbar-nav a { font-size: 0.85rem; font-weight: 500; color: var(--fg-muted); }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.navbar-toggle svg { width: 24px; height: 24px; color: var(--fg); }

/* ---- Hero ---- */
.hero { position: relative; min-height: 92vh; overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(61,64,61,0.90), rgba(61,64,61,0.70), rgba(61,64,61,0.30)); }
.hero-content { position: relative; z-index: 2; }
.hero-badge { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero-badge img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(201,138,110,0.5); object-fit: cover; }
.hero-badge-text span { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--secondary); }
.hero-badge-text p { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.hero h1 { color: #fff; font-size: 3rem; line-height: 1.1; }
.hero h1 .highlight { color: var(--secondary); }
.hero-desc { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 480px; margin-top: 1.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.hero-trust span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.hero-trust svg { width: 16px; height: 16px; color: var(--secondary); }
.hero-image { display: none; }

/* ---- Trust Bar ---- */
.trust-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.trust-bar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--fg-muted); }
.trust-item svg { width: 20px; height: 20px; color: var(--primary); }

/* ---- Section ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--primary-06); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header .overline { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--secondary); display: block; margin-bottom: 0.5rem; }
.section-header p { color: var(--fg-muted); margin-top: 1rem; }

/* ---- Grid ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- About Section ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 1; max-width: 320px; margin: 0 auto; box-shadow: var(--shadow); }
.about-image .crp-badge {
  position: absolute; bottom: -0.75rem; right: -0.75rem;
  background: var(--secondary); color: #fff; padding: 0.5rem 1rem;
  border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow);
}
.about-tags { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.about-tag {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem;
  border-radius: 999px; font-size: 0.85rem; font-weight: 500;
}
.about-tag-primary { background: var(--primary-10); color: var(--primary); }
.about-tag-secondary { background: var(--secondary-10); color: var(--secondary); }

/* ---- Atmosphere Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; }
.gallery-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(61,64,61,0.6), transparent); }
.gallery-item .caption { position: absolute; bottom: 1.5rem; left: 1.5rem; }
.gallery-item .caption h4 { color: #fff; font-size: 1.1rem; }
.gallery-item .caption p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ---- Steps ---- */
.step-card { text-align: center; }
.step-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: rgba(201,138,110,0.3); }

/* ---- CTA Section ---- */
.cta-box {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: 3.5rem; text-align: center; max-width: 800px; margin: 0 auto;
}
.cta-box .cta-bg { position: absolute; inset: 0; }
.cta-box .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-box .cta-bg .overlay { position: absolute; inset: 0; background: rgba(61,64,61,0.85); }
.cta-box .cta-content { position: relative; z-index: 2; }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 1rem auto 0; }

/* ---- Footer ---- */
.footer { background: var(--fg); color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer a:hover { color: var(--secondary); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; }

/* ---- Auth Pages ---- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-image { position: relative; display: none; }
.auth-image img { width: 100%; height: 100%; object-fit: cover; }
.auth-image .overlay { position: absolute; inset: 0; background: rgba(61,64,61,0.6); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; text-align: center; }
.auth-image .overlay h2 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; }
.auth-image .overlay p { color: rgba(255,255,255,0.8); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 3rem; }
.auth-form-inner { width: 100%; max-width: 420px; }
.auth-form-inner .logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.auth-form-inner .logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---- Dashboard Layout ---- */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; background: #3D4A38; color: rgba(255,255,255,0.8);
  padding: 1.5rem; display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 50;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sidebar-brand h3 { color: #fff; font-size: 1rem; }
.sidebar-brand span { font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.sidebar-nav { list-style: none; flex: 1; }
.sidebar-nav li { margin-bottom: 0.25rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem;
  border-radius: var(--radius); font-size: 0.85rem; color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-nav a.active { background: rgba(201,138,110,0.2); color: var(--secondary); }
.sidebar-nav a svg { width: 18px; height: 18px; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }
.sidebar-footer a { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.sidebar-footer a:hover { color: #fff; }

.main-content { flex: 1; margin-left: 260px; padding: 2rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; }
.page-header p { color: var(--fg-muted); margin-top: 0.25rem; }

/* ---- Stats Cards ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--fg-muted); font-weight: 500; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--fg); margin-top: 0.25rem; }
.stat-card .stat-sub { font-size: 0.75rem; color: var(--fg-muted); margin-top: 0.25rem; }

/* ---- Table ---- */
.table-wrapper { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--muted-bg); }
th { padding: 0.75rem 1rem; text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 0.75rem 1rem; font-size: 0.85rem; border-top: 1px solid var(--border); }
tbody tr:hover { background: var(--primary-06); }

/* ---- Flash Messages ---- */
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.85rem; font-weight: 500; }
.flash-success { background: rgba(40,167,69,0.1); color: #28A745; border: 1px solid rgba(40,167,69,0.2); }
.flash-error { background: rgba(220,53,69,0.1); color: #DC3545; border: 1px solid rgba(220,53,69,0.2); }
.flash-info { background: var(--primary-10); color: var(--primary); border: 1px solid rgba(95,122,90,0.2); }

/* ---- Pricing Cards ---- */
.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--secondary); box-shadow: 0 0 0 2px var(--secondary); }
.pricing-badge { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; padding: 0.25rem 1rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.pricing-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--fg); }
.pricing-price small { font-size: 0.9rem; font-weight: 400; color: var(--fg-muted); }
.pricing-per { font-size: 0.85rem; color: var(--fg-muted); }
.pricing-features { list-style: none; margin: 1.5rem 0; text-align: left; }
.pricing-features li { padding: 0.5rem 0; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

/* ---- Contact Page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-info-card:last-child { border-bottom: none; }
.contact-info-icon { display: flex; padding: 0.75rem; border-radius: var(--radius); background: var(--primary-10); color: var(--primary); flex-shrink: 0; }

/* ---- Modal ---- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border-radius: var(--radius-lg); padding: 2rem; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--fg-muted); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-muted { color: var(--fg-muted); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: #fff; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.font-display { font-family: var(--font-display); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(249,246,242,0.98);
  z-index: 150; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; color: var(--fg); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; cursor: pointer; font-size: 1.5rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 80vh; }
  .navbar-nav { display: none; }
  .navbar-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-image img { margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-image { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .sidebar.mobile-open { display: flex; width: 100%; }
  .cta-box { padding: 2rem; }
  .pricing-card { max-width: 400px; margin: 0 auto; }
}

@media (min-width: 769px) {
  .auth-image { display: block; }
  .hero-image { display: block; }
  .hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
}

@media (min-width: 1025px) {
  .hero h1 { font-size: 3.5rem; }
}
