/*
Theme Name: L. Ferreira da Silva
Theme URI: https://lferreiradasilva.site
Author: L. Ferreira da Silva
Author URI: https://lferreiradasilva.site
Description: Tema personalizado para L. Ferreira da Silva - Psicologia e Psicanálise em Macapá/AP.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lferreira-theme
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============================================
   CSS CUSTOM PROPERTIES (COLOR PALETTE)
   ============================================ */
:root {
  --color-teal: #1B6CA8;
  --color-sage: #A8C5A0;
  --color-off-white: #FAF8F5;
  --color-lavender: #C9C0D3;
  --color-charcoal: #2C2C2C;
  --color-white: #FFFFFF;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1ebe57;

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Source Sans Pro', sans-serif;

  --transition-smooth: 0.3s ease;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 16px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-sage);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p {
  margin-bottom: 1.2rem;
  color: var(--color-charcoal);
  opacity: 0.9;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--color-sage);
  color: var(--color-charcoal);
}

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

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

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

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 108, 168, 0.1);
  transition: box-shadow var(--transition-smooth);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1.2;
}

.logo-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal);
  position: relative;
  padding-bottom: 4px;
}

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

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  width: 100%;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color var(--transition-smooth);
}

.nav-cta:hover {
  background-color: var(--color-whatsapp-hover);
  color: var(--color-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-charcoal);
  transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #e8f4f8 0%, #f0e8f4 50%, var(--color-off-white) 100%);
  padding: 8rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 197, 160, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 192, 211, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.2rem;
  color: var(--color-teal);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2.5rem;
  color: var(--color-charcoal);
  opacity: 0.85;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
}

.hero-cta:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  color: var(--color-white);
}

/* ============================================
   SECTIONS (Sobre, Missão, Contato)
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-sage);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Sobre */
.sobre-section {
  background-color: var(--color-white);
}

.sobre-text {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
}

.icon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.icon-card {
  background-color: var(--color-off-white);
  border: 1px solid rgba(27, 108, 168, 0.08);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.icon-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.icon-card h3 {
  margin-bottom: 0.6rem;
  color: var(--color-teal);
}

.icon-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.8;
}

/* Missão */
.missao-section {
  background: linear-gradient(180deg, var(--color-off-white) 0%, rgba(201, 192, 211, 0.15) 100%);
}

.missao-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
}

/* Contato */
.contato-section {
  background-color: var(--color-white);
}

.contato-lead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-teal);
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contato-card {
  background-color: var(--color-off-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(27, 108, 168, 0.08);
  transition: box-shadow var(--transition-smooth);
}

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

.contato-card .icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.contato-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-teal);
}

.contato-card p,
.contato-card a {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-teal);
  color: var(--color-white);
  font-size: 1.1rem;
  transition: background-color var(--transition-smooth);
}

.social-links a:hover {
  background-color: var(--color-sage);
  color: var(--color-charcoal);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-sage);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.4rem;
  display: block;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--color-sage);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: var(--color-white);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.privacy-content h1 {
  color: var(--color-teal);
  margin-bottom: 2rem;
  text-align: center;
}

.privacy-content h2 {
  color: var(--color-teal);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.privacy-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.privacy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 7rem;
    min-height: 90vh;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .icon-cards {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.8rem 1rem;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-subtitle {
    font-size: 0.65rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
