/*
Theme Name: Valeska Canci
Theme URI: https://valeskacanci.com.br
Author: Valeska Canci
Description: Tema personalizado para o site da terapeuta sistêmica Valeska Canci.
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: valeska-canci
*/

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

:root {
  --bg: hsl(35, 30%, 96%);
  --fg: hsl(25, 20%, 18%);
  --primary: hsl(16, 45%, 45%);
  --primary-fg: #ffffff !important;
  --primary-fg-hex: #ffffff;
  --secondary: hsl(145, 18%, 42%);
  --muted: hsl(25, 10%, 45%);
  --card: hsl(35, 25%, 93%);
  --accent: hsl(35, 35%, 85%);
  --border: hsl(35, 20%, 85%);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

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

/* ========== NAVBAR ========== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsla(35, 30%, 96%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(35, 20%, 85%, 0.5);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav .logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--fg);
}
.site-nav .nav-links { display: flex; align-items: center; gap: 2rem; }
.site-nav .nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.current { color: var(--primary); font-weight: 500; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg) !important;
  color: var(--primary-fg-hex) !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary.lg { padding: 1rem 2rem; font-size: 1rem; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 768px) {
  .site-nav .nav-links { display: none; }
  .menu-toggle { display: block; }
  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: var(--bg); /* Ensure main background is consistent */
}
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.3 !important;
  display: block !important;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsla(35, 30%, 96%, 0.95), hsla(35, 30%, 96%, 0.8), hsla(35, 30%, 96%, 0.4)) !important;
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content {
  max-width: 640px;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-title .italic {
  font-style: italic;
}
.hero-title .text-primary {
  color: var(--primary);
}
.hero-description {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
@media (max-width: 1024px) {
  .hero { text-align: center; }
  .hero-content { margin: 0 auto; }
}

/* ========== SECTIONS ========== */
.section { padding: 6rem 0; }
.section-header { margin-bottom: 4rem; max-width: 768px; }
.section-label {
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.section-description {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Empathy Section */
.empathy .section-header { text-align: center; margin: 0 auto 3rem; }
.empathy .features-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 768px;
  margin: 0 auto;
}
.feature-item {
  background: var(--card);
  padding: 1.25rem 2rem;
  border-radius: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid hsla(35, 20%, 85%, 0.5);
  text-align: left;
}
.feature-icon-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.feature-item p { margin: 0; color: var(--fg); font-size: 1rem; }
.quote-box {
  background: transparent;
  padding: 3rem 0 0;
  text-align: center;
}
.quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  font-style: italic;
}

/* Plans */
.plans { background: hsla(35, 30%, 96%, 0.5); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.plan-card {
  background: var(--bg);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.plan-card.featured {
  ring: 2px solid var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.plan-card h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.plan-subtitle { color: var(--secondary); font-size: 0.875rem; margin-bottom: 1.5rem; font-weight: 500; }
.plan-desc { color: var(--muted); font-size: 0.9375rem; margin-bottom: 2rem; flex-grow: 1; }
.plan-features { list-style: none; margin-bottom: 2.5rem; }
.plan-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}
.plan-features li::before { content: '✓'; color: var(--secondary); font-weight: bold; }
.btn.full-width { display: block; text-align: center; }
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #ffffff !important; }

/* About Tweaks */
.about-image-wrapper { text-align: center; }
.about-text p { color: var(--muted); margin-bottom: 1.25rem; font-size: 1.0625rem; }
.about-text strong { color: var(--fg); }

/* Pillars Tweak */
.pillar { text-align: left; padding: 2rem; background: var(--card); border-radius: 1rem; border: 1px solid var(--border); }
.pillar-number { margin-left: 0; margin-bottom: 1rem; }

/* CTA Tweak */
.cta { background: hsla(16, 45%, 45%, 0.05); text-align: center; }
.cta .container { max-width: 640px; }
.cta p { font-size: 1.125rem; color: var(--muted); line-height: 1.7; margin-bottom: 2.5rem; }

/* ========== BLOG ========== */
.blog-hero { padding-top: 7rem; padding-bottom: 4rem; background: hsla(35, 35%, 85%, 0.3); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid hsla(35, 20%, 85%, 0.6);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.blog-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.blog-card-bar { height: 6px; background: linear-gradient(to right, var(--primary), var(--secondary)); }
.blog-card-body { padding: 1.5rem; }
.blog-card .category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--secondary);
  background: hsla(145, 18%, 42%, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.blog-card h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.blog-card:hover h2 { color: var(--primary); }
.blog-card .excerpt { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid hsla(35, 20%, 85%, 0.5);
  font-size: 0.75rem;
  color: var(--muted);
}
.blog-card .read-more { color: var(--primary); font-weight: 500; font-size: 0.875rem; }

/* ========== FOOTER ========== */
.site-footer { padding: 4rem 0; border-top: 1px solid var(--border); text-align: center; }
.site-footer .footer-quote {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--muted);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.site-footer .footer-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.05em;
}
.site-footer .copyright {
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
