/*
Theme Name: Bernardo Perondi Onepage
Theme URI: https://bernardoperondi.com.br
Author: Manus AI
Author URI: https://manus.im
Description: Tema onepage personalizado para o Dr. Bernardo Perondi, focado em psiquiatria humanista, com design sóbrio, elegante e acolhedor.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bernardo-onepage
*/

/* Reset and Base Styles */
:root {
  --bg-main: #EFE4D3;
  --bg-soft: #DCD7C6;
  --surface-warm: #E7D9C2;
  --brand-green: #5C7355;
  --brand-deep: #2F4135;
  --brand-ochre: #B89B6C;
  --brand-urucum: #A5533E;
  --text-main: #292D29;
  --text-soft: #5D5A53;
  --border-soft: #CFC3B4;
  
  --font-heading: 'Alegreya', Georgia, serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--brand-deep);
}

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

section {
  padding: 80px 0;
}

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

.section-dark {
  background-color: var(--brand-deep);
  color: var(--bg-main);
}

.section-dark h2, .section-dark h3 {
  color: var(--bg-main);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
}

.btn-primary {
  background-color: var(--brand-deep);
  color: var(--bg-main);
}

.btn-primary:hover {
  background-color: var(--brand-green);
  color: #fff;
}

.btn-secondary {
  background-color: var(--brand-urucum);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #8a4533;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--brand-deep);
  color: var(--brand-deep);
}

.btn-outline:hover {
  background-color: var(--brand-deep);
  color: var(--bg-main);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(239, 228, 211, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
}

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

.site-branding a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-deep);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-navigation a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
}

.main-navigation a:hover {
  color: var(--brand-green);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-subtitle {
  font-size: 20px;
  color: var(--brand-green);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* Trust Block */
.trust-block {
  background-color: var(--surface-warm);
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.trust-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--brand-green);
}

.trust-item p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--text-soft);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card {
  background-color: var(--bg-main);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.section-alt .card {
  background-color: var(--bg-main);
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--brand-green);
  margin-bottom: 16px;
}

/* Specialized Block (Ketamine) */
.specialized-block {
  background-color: var(--brand-deep);
  color: var(--bg-main);
  border-radius: 32px;
  padding: 64px;
  margin: 40px 0;
}

.specialized-block h2 {
  color: var(--bg-main);
}

.specialized-block p {
  color: rgba(239, 228, 211, 0.9);
}

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

.faq-question {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 16px;
  display: none;
}

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

/* Footer */
.site-footer {
  background-color: var(--brand-deep);
  color: var(--bg-main);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--brand-ochre);
  margin-bottom: 20px;
}

.footer-col p, .footer-col a {
  color: rgba(239, 228, 211, 0.8);
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--bg-main);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(239, 228, 211, 0.1);
  font-size: 14px;
  color: rgba(239, 228, 211, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 60px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .main-navigation {
    display: none; /* Mobile menu would need JS */
  }
  
  .specialized-block {
    padding: 32px;
    border-radius: 24px;
  }
}
