/* ==========================================================================
   Luísa Machado — Psicóloga
   Stylesheet built from the official brand kit (Mar 2022):
   colors, type, logo mark, and the "grifado / nuvem / risco suave" elements
   ========================================================================== */

@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/ClearSans-Light.woff2') format('woff2');
  font-weight: 350;
  font-display: swap;
}
@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/ClearSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/ClearSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* --- brand palette, straight from the kit --- */
  --coral: #E79781;
  --coral-deep: #DB6545;   /* darkened from brand coral to pass AA (large text) on white/lavender */
  --sage: #8ABE9E;
  --sage-deep: #3F7253;    /* darkened from brand sage — passes AA as button bg + small text */
  --blue: #4699C5;
  --blue-deep: #2E7092;    /* darkened from brand blue — passes AA as button bg + small text */
  --lavender: #EBEFFD;

  /* neutrals derived to sit alongside the pastel palette */
  --ink: #223A44;
  --ink-soft: #576F7B;
  --white: #FFFFFF;

  --font-body: 'Clear Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Alex Brush', cursive;

  --radius-lg: 28px;
  --radius-md: 16px;
  --container: 1120px;

  --shadow-soft: 0 20px 45px -25px rgba(34, 58, 68, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 350;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

a { color: inherit; }

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

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
}

/* "grifado" — the hand-drawn underline accent used throughout the kit */
.grifado {
  position: relative;
  white-space: nowrap;
}
.grifado::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.08em;
  height: 0.09em;
  background: var(--coral);
  border-radius: 4px;
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { filter: brightness(0.92); }

.btn-outline {
  background: transparent;
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}
.btn-outline:hover { background: var(--blue-deep); color: var(--white); }

.btn-whatsapp {
  background: var(--sage-deep);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-whatsapp:hover { filter: brightness(0.92); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --------------------------------------------------------------------- */
/* Decorative elements — "nuvem" & "risco suave" from the brand kit      */
/* --------------------------------------------------------------------- */

.deco-cloud {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.deco-swoosh {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------- */
/* Header                                                                 */
/* --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(34, 58, 68, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; }
.brand-word {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--blue-deep);
  line-height: 1;
  padding-top: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue-deep); }
.main-nav .btn-whatsapp { color: var(--white); }
.main-nav .btn-whatsapp:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--lavender);
  padding: 72px 0 96px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--blue-deep);
  background: rgba(70, 153, 197, 0.12);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  color: var(--ink);
  font-weight: 400;
}
.hero h1 .script {
  color: var(--coral-deep);
  font-size: 1.5em;
  display: inline-block;
  padding: 0 0.06em;
}
.hero h1 .script.alt { color: var(--blue-deep); }

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-figure {
  position: relative;
}
.hero-figure .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}
.hero-figure .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-figure .badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-figure .badge img { height: 30px; width: auto; }
.hero-figure .badge span {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.25;
}

/* --------------------------------------------------------------------- */
/* Section basics                                                        */
/* --------------------------------------------------------------------- */

section {
  position: relative;
  scroll-margin-top: 72px; /* offset for sticky header */
}

.section-pad { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .eyebrow { background: rgba(138, 190, 158, 0.18); color: var(--sage-deep); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* --------------------------------------------------------------------- */
/* Sobre                                                                  */
/* --------------------------------------------------------------------- */

.about {
  background: var(--white);
}
.about .container {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.about-quote {
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 350;
}
.about-quote .script {
  color: var(--sage-deep);
  font-size: 1.45em;
}
.about-sig {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-sig .script { font-size: 2.2rem; color: var(--blue-deep); }
.about-sig small { display: block; color: var(--ink-soft); font-size: 0.85rem; }

/* --------------------------------------------------------------------- */
/* Abordagem                                                              */
/* --------------------------------------------------------------------- */

.approach {
  background: var(--lavender);
}

.attributes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.attribute-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.attribute-card .mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.attribute-card .mark img { width: 26px; height: auto; }
.attribute-card h3 {
  font-family: var(--font-script);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 2px;
  color: var(--ink);
}
.attribute-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* --------------------------------------------------------------------- */
/* Especialidades                                                         */
/* --------------------------------------------------------------------- */

.specialties {
  background: var(--white);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.specialty-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(70, 153, 197, 0.18);
  background: var(--white);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.specialty-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.specialty-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.specialty-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.specialty-card .deco-nuvem {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  opacity: 0.18;
}

/* --------------------------------------------------------------------- */
/* Atendimento                                                           */
/* --------------------------------------------------------------------- */

.care {
  background: var(--sage);
  background: linear-gradient(180deg, rgba(138,190,158,0.16), rgba(138,190,158,0.32));
}

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

.care-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
}
.care-card .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.care-card .icon-badge svg { width: 26px; height: 26px; color: var(--blue-deep); }
.care-card h3 { font-size: 1.3rem; font-weight: 700; }
.care-card p { color: var(--ink-soft); margin-bottom: 0; }

/* --------------------------------------------------------------------- */
/* Contato                                                                */
/* --------------------------------------------------------------------- */

.contact {
  background: var(--white);
}
.contact .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-info > p { color: var(--ink-soft); margin-bottom: 32px; }

.contact-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-list .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-list .icon-badge svg { width: 20px; height: 20px; color: var(--blue-deep); }
.contact-list a { text-decoration: none; font-weight: 700; }
.contact-list a:hover { color: var(--blue-deep); }
.contact-list span.label { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }

.contact-form {
  background: var(--lavender);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(34,58,68,0.15);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.form-row textarea { min-height: 130px; }
.form-row input:focus,
.form-row textarea:focus { border-color: var(--blue); }

.cf-turnstile { margin: 4px 0 20px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
  margin-bottom: 0;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(138,190,158,0.25); color: #2e5c40; }
.form-status.err { background: rgba(231,151,129,0.25); color: #8a3a24; }

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 48px 0 28px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { height: 32px; }
.footer-brand .script { color: var(--white); font-size: 1.4rem; }
.footer-meta { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.footer-social a svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* --------------------------------------------------------------------- */
/* Floating WhatsApp button (mobile-friendly persistent CTA)             */
/* --------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(34,58,68,0.5);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; color: var(--white); }

/* --------------------------------------------------------------------- */
/* Responsive                                                             */
/* --------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero .container,
  .contact .container {
    grid-template-columns: 1fr;
  }
  .hero-figure { order: -1; max-width: 380px; margin: 0 auto; }
  .care-grid { grid-template-columns: 1fr; }
  .attributes { grid-template-columns: 1fr; }
  .specialties-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(34,58,68,0.08);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 340px; }
  .main-nav a {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid rgba(34,58,68,0.06);
  }
  .main-nav .btn { margin: 12px 24px 16px; }
}

@media (max-width: 640px) {
  .section-pad { padding: 64px 0; }
  .hero { padding: 48px 0 72px; }
  .contact-form { padding: 28px; }
  .about-quote { font-size: 1.15rem; }
}
