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

:root {
  /* Cores vibrantes inspiradas no logo */
  --primary-color: #3b205e;
  /* Roxo profundo e quente */
  --primary-light: #57318a;
  --accent-color: #A92355;
  /* Vinho/Magenta vibrante do traço do logo */
  --accent-hover: #c92a65;
  --bg-color: #Fdfbfd;
  /* Fundo limpo, quase branco mas com toque roxo muito sutil */
  --bg-offset: #ffffff;
  --text-main: #2b1f3d;
  --text-muted: #6e657a;
  --border-color: #eee9f2;
  --focus-ring: rgba(169, 35, 85, 0.4);

  --font-heading: 'Playfair Display', serif;
  /* Mantendo elegância para Psicanálise */
  --font-text: 'Inter', sans-serif;

  --container-width: 1200px;
  --header-height: 100px;

  /* Gradientes mais fortes e modernos */
  --hero-gradient: linear-gradient(135deg, #f8f4fa 0%, #faeef3 100%);
  --footer-gradient: linear-gradient(180deg, var(--primary-color) 0%, #2a1645 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Sólido e Elegante */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: white;
  /* Header branco sólido e limpo */
  box-shadow: 0 4px 20px rgba(59, 32, 94, 0.04);
  z-index: 1000;
  border-bottom: 2px solid var(--accent-color);
  /* Linha vinho vibrante marcando o topo */
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(59, 32, 94, 0.08);
  height: 80px;
  /* Reduzido de 100px ao dar scroll */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  /* Itens usando toda altura do header */
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  /* Centraliza logo verticalmente */
}

.logo a {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  color: var(--primary-color);
}

.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: -20px;
  /* Reduz distanciamento para o subtítulo */
  line-height: 1;
  /* Remove o leading vertical extra */
}

.logo-text span {
  font-family: var(--font-text);
  font-size: 1.05rem;
  /* Aumentado levemente */
  font-weight: 400;
  color: #3b245e;
  /* Ou var(--primary-color) para manter o original, mas pedido da ref é este tom */
  letter-spacing: 0.02em;
}

.logo img {
  height: 70px;
  max-width: none;
  margin-right: 15px;
}

.main-nav {
  height: 100%;
}

.main-nav ul {
  list-style: none;
  display: flex;
  height: 100%;
  align-items: stretch;
  /* Stretch links full height */
  gap: 0;
  /* Gap handled by link padding */
}

.main-nav li {
  height: 100%;
}

.main-nav a {
  display: flex;
  align-items: flex-end;
  /* Text at the bottom */
  height: 100%;
  font-size: 0.95rem;
  /* Restored readable size */
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 0 1.2rem 1.4rem 1.2rem;
  transition: all 0.2s ease;
  border-radius: 0;
  /* Fully rectangular to match design */
}

.main-nav a.active {
  color: var(--accent-color);
  font-weight: 600;
}

.main-nav a:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-text);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  border: 2px solid var(--accent-color);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

/* Base Page Padding */
main {
  min-height: calc(100vh - var(--header-height));
}

.page-content {
  padding-top: var(--header-height);
}

/* Section Common */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
}

.section-title-left {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  line-height: 1.2;
  display: inline-block;
  /* Allows the pseudo-element to be bounded by the text width on the right */
}

.section-title-left::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 0;
  width: 100vw;
  /* Bleeds off the left edge of the screen */
  height: 3px;
  background-color: var(--accent-color);
}

.section-title-white {
  color: white;
}

.section-title-white::after {
  background-color: white;
}

.section-title-blue {
  color: var(--primary-color);
}

.section-title-blue::after {
  background-color: var(--primary-color);
}

/* Cards Common */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  /* Bordas bem mais suaves/orgânicas */
  box-shadow: 0 10px 30px rgba(59, 32, 94, 0.06);
  /* Sombra colorida */
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 32, 94, 0.12);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

/* Page Header Global (Component) */
.page-header {
  background: linear-gradient(135deg, var(--bg-color) 0%, #f4e8ea 50%, #e6d4e8 100%);
  padding: 6rem 0 4rem;
  text-align: left;
  border-bottom: 3px solid #3b245e;
  position: relative;
  overflow: visible;
}

/* Linhas onduladas removidas — apenas logo watermark */

.header-bg-logo {
  position: absolute;
  top: -40%;
  right: 0%;
  height: 260%;
  width: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1001;
}

.page-header h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.page-header p {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Texture Background for the First Content Section of Internal Pages */
parletre-page-header + section {
  background-image: url('../fundo textura branco.png');
  background-repeat: repeat;
  background-color: var(--bg-color);
}

/* Footer - Simplificado */
.site-footer {
  background: var(--footer-gradient);
  color: white;
  padding: 2.5rem 0;
  margin-top: 0;
  /* Removed 5rem top margin to directly connect sections */
}

.footer-content-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-right: 0;
}

.footer-address {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  border-left: none;
  padding-left: 0;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(169, 35, 85, 0.3);
}

.footer-copy {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: auto;
    /* IMPORTANTE: Desfaz altura de 100% vinda do desktop para que acomode os menus e o clip-path não corte! */
    background: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    padding: 1rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }

  .main-nav.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    height: auto;
    /* Desfaz altura de 100% do desktop */
  }

  .main-nav li {
    height: auto;
  }

  .main-nav a {
    display: block;
    height: auto;
    /* Desfaz altura de 100% do desktop */
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav a::after {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-single-line {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1.2rem;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-logo {
    margin-right: 0;
  }

  .footer-address {
    border-left: none;
    padding-left: 0;
  }

  .logo a {
    font-size: 1.1rem;
  }

  .logo-text {
    white-space: normal;
    line-height: 1.2;
    max-width: 180px;
    /* Evita estourar o header com o menu hamburger */
  }

  .page-header {
    padding: 2rem 0 2.5rem;
    overflow: hidden;
  }

  .header-bg-logo {
    height: 130%;
    top: -20px;
    right: -40px;
    z-index: 1;
    opacity: 1;
  }

  .page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 80%;
  }

  .page-header p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 80%;
  }
} 1rem;
    line-height: 1.5;
    max-width: 80%;
  }
}