/* ==========================================================================
   Alessandra Rego — Psicóloga Clínica (TCC)
   ========================================================================== */

:root {
  --color-green-900: #16302c;
  --color-green-800: #1d403c;
  --color-green-700: #27524c;
  --color-cream: #e5dbc2;
  --color-cream-light: #f6f2e7;
  --color-terracotta: #be947b;
  --color-terracotta-dark: #a97c62;
  --color-text: #26312e;
  --color-text-muted: #5b6864;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;

  --font-display: "Italiana", serif;
  --font-heading: "Lora", serif;
  --font-body: "Mulish", sans-serif;

  --container-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 40px -20px rgba(22, 48, 44, 0.35);

  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-green-800);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-green-800);
  color: var(--color-cream-light);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-terracotta-dark);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--color-terracotta); }

.section-heading {
  max-width: 680px;
  margin-bottom: 3rem;
}
.section-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--color-terracotta);
  color: var(--color-green-900);
}
.btn-accent:hover { background: var(--color-terracotta-dark); }

.btn-outline {
  border-color: var(--color-cream-light);
  color: var(--color-cream-light);
}
.btn-outline:hover { background: rgba(246, 242, 231, 0.12); }

.btn-outline-dark {
  border-color: var(--color-green-800);
  color: var(--color-green-800);
}
.btn-outline-dark:hover { background: var(--color-green-800); color: var(--color-cream-light); }

.btn-small { padding: 0.6em 1.3em; font-size: 0.85rem; }
.btn-full { width: 100%; }

.icon-inline { width: 1.1em; height: 1.1em; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-green-800);
  border-bottom: 1px solid rgba(246, 242, 231, 0.1);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 40px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-cream-light);
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: var(--color-cream-light);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-cream-light);
  transition: transform var(--transition), opacity var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--color-green-800);
  color: var(--color-cream-light);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-block: 64px 0;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(246, 242, 231, 0.85);
  max-width: 46ch;
}

.hero h1 { color: var(--color-cream-light); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1.8rem;
}

.hero-media {
  align-self: end;
  display: flex;
  justify-content: center;
}
.hero-media img {
  max-height: 520px;
  width: auto;
}

/* ==========================================================================
   Differentials
   ========================================================================== */

.differentials {
  background: var(--color-cream);
  padding-block: 56px;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.diff-card { text-align: left; }

.diff-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  color: var(--color-terracotta-dark);
  margin-bottom: 1rem;
}
.diff-icon svg { width: 100%; height: 100%; }

.diff-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.diff-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding-block: 96px; }

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius);
  background: var(--color-cream);
  width: auto;
  height: auto;
  max-height: 480px;
  max-width: 100%;
  margin-inline: auto;
}

.credentials {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.credentials li {
  position: relative;
  padding-left: 1.6em;
  color: var(--color-text-muted);
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-terracotta);
}

/* ==========================================================================
   TCC section
   ========================================================================== */

.tcc {
  background: var(--color-green-800);
  color: var(--color-cream-light);
  padding-block: 96px;
}
.tcc h2 { color: var(--color-cream-light); }
.tcc .section-lead { color: rgba(246, 242, 231, 0.8); }

.tcc-paragraph {
  max-width: 820px;
  font-size: 1.05rem;
  color: rgba(246, 242, 231, 0.85);
  margin-bottom: 3rem;
}

.tcc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.tcc-item {
  background: rgba(246, 242, 231, 0.06);
  border: 1px solid rgba(246, 242, 231, 0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.tcc-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-terracotta);
  display: block;
  margin-bottom: 0.4rem;
}
.tcc-item h3 { color: var(--color-cream-light); font-size: 1.05rem; }
.tcc-item p { color: rgba(246, 242, 231, 0.75); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Areas
   ========================================================================== */

.areas { padding-block: 96px; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.area-card {
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  border-left: 4px solid var(--color-terracotta);
  transition: transform var(--transition), box-shadow var(--transition);
}
.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.area-card h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--color-green-800);
}

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  background: var(--color-cream);
  padding-block: 96px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.process-steps li {
  background: var(--color-cream-light);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-green-800);
  color: var(--color-cream-light);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
}

.process-steps p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding-block: 96px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}

.faq-item {
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-green-800);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-terracotta-dark);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0.9rem 0 0;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--color-green-800);
  color: var(--color-cream-light);
  padding-block: 96px;
}
.contact h2 { color: var(--color-cream-light); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 1.8rem 0;
}
.contact-channels li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
}
.contact-channels svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-terracotta);
  margin-top: 2px;
}
.contact-channels a:hover { text-decoration: underline; }

.crisis-note {
  font-size: 0.88rem;
  color: rgba(246, 242, 231, 0.75);
  border-left: 3px solid var(--color-terracotta);
  padding-left: 14px;
  margin-top: 2rem;
}

.contact-form {
  position: relative;
  background: var(--color-cream-light);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.9rem; }
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #cfc4a8;
  border-radius: var(--radius-sm);
  background: #fff;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-terracotta);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--color-green-700);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-green-900);
  color: rgba(246, 242, 231, 0.7);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-footer .brand-name { font-size: 1.1rem; }

.footer-crp { font-size: 0.85rem; margin: 0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a:hover { color: var(--color-cream-light); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  margin: 20px 0 0;
  border-top: 1px solid rgba(246, 242, 231, 0.1);
  padding-top: 20px;
}

/* ==========================================================================
   Botão flutuante do WhatsApp
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: var(--color-whatsapp-dark);
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 48px 0; text-align: left; }
  .hero-media { order: -1; }
  .hero-media img { max-height: 340px; }

  .differentials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 320px; margin-inline: auto; }
  .tcc-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-green-800);
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
  }
  .site-nav li { width: 100%; padding-block: 10px; }
  .site-nav .btn { margin-top: 12px; }

  .differentials-grid { grid-template-columns: 1fr; }
  .tcc-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
