/* ==========================================================================
   Wendell Filho — Psicólogo Clínico | Landing Page
   ========================================================================== */

:root {
  --navy-900: #000814;
  --navy-800: #001d3d;
  --navy-700: #003566;
  --gold: #ffc300;
  --gold-dark: #e0a800;

  --ink: #0c1b2a;
  --ink-soft: #4a5a6a;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --border: #e2e8f0;

  --font-head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(0, 8, 20, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(0, 8, 20, 0.25);
  --container: 1180px;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.15;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .9em;
}
.eyebrow--light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow-sm); }

.btn-accent { background: var(--gold); color: var(--navy-900); }
.btn-accent:hover { background: #ffd23f; box-shadow: 0 12px 28px -12px rgba(255, 195, 0, .55); }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--navy-800); }
.btn-ghost:hover { border-color: var(--navy-800); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-800);
  font-size: 1.02rem;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.main-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--navy-800); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy-800);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 70px; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(255, 195, 0, .16), transparent 60%),
    linear-gradient(160deg, #f4f8fc 0%, #eef3f9 45%, #f7f4ea 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "text media"
    "cta   media";
  gap: 12px 56px;
  align-items: center;
}

.hero-text { grid-area: text; }
.hero-cta { grid-area: cta; }

.hero-lead { font-size: 1.08rem; max-width: 46ch; }

.hero h1 span { color: var(--navy-700); position: relative; }
.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .3em;
  background: rgba(255, 195, 0, .45);
  z-index: -1;
  border-radius: 4px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
}
.hero-tags li {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tags li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-media { grid-area: media; position: relative; display: flex; justify-content: center; padding: 18px; }

/* ---------- Organic "blob" photo frames ---------- */
/* Crops the source photo (never stretches it — object-fit: cover only trims
   the edges) into an irregular shape so square source images don't read as
   plain squares, and adds soft brand-colored shapes behind for depth. */
.photo-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 63% 37% 54% 46% / 43% 51% 49% 57%;
}
.hero-media::before {
  width: 82%; height: 82%;
  top: -4%; left: 6%;
  background: linear-gradient(145deg, var(--gold), #ffe08a);
  opacity: .5;
}
.hero-media::after {
  width: 70%; height: 70%;
  bottom: -6%; right: 2%;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  opacity: .16;
}

.photo-frame--hero {
  aspect-ratio: 6 / 5;
  border-radius: 58% 42% 52% 48% / 41% 46% 54% 59%;
}
.photo-frame--hero img { object-position: center 38%; }

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 18px;
  animation: float 5s ease-in-out infinite;
}
.floating-card--top { top: 6%; right: -2%; }
.floating-card--bottom { bottom: 6%; left: -4%; animation-delay: 1.2s; }

.floating-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.floating-icon--accent { background: var(--gold); color: var(--navy-900); }

.floating-label { display: block; font-size: .7rem; color: var(--ink-soft); font-weight: 600; }
.floating-value { display: block; font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--navy-800); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Feature strip ---------- */
.features { padding: 70px 0 90px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: .5em; }
.feature-card p { font-size: .9rem; margin: 0; }

/* ---------- About ---------- */
.about { padding: 30px 0 100px; }
.about-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; display: flex; justify-content: center; padding: 16px; }
.about-media::before,
.about-media::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 61% 39% 44% 56% / 49% 42% 58% 51%;
}
.about-media::before {
  width: 74%; height: 74%;
  top: -2%; left: 10%;
  background: linear-gradient(145deg, var(--gold), #ffe08a);
  opacity: .45;
}
.about-media::after {
  width: 62%; height: 62%;
  bottom: -4%; right: 8%;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  opacity: .16;
}

.about-photo-wrap { position: relative; z-index: 1; width: min(100%, 380px); }

.photo-frame--about {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 44% 56% 61% 39% / 55% 48% 52% 45%;
}
.photo-frame--about img { object-position: center 22%; }

.about-badge {
  position: absolute;
  z-index: 2;
  bottom: 2%;
  right: -4%;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-family: var(--font-head); color: var(--gold); font-size: 1rem; }
.about-badge span { font-size: .75rem; letter-spacing: .04em; }

.about-copy p { font-size: 1rem; }

.check-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--navy-800);
  font-size: .95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001d3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.about-copy blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--navy-800);
  font-size: 1rem;
}

/* ---------- Why (gradient band) ---------- */
.why { position: relative; padding: 100px 0; overflow: hidden; color: #fff; text-align: center; }
.why-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
}
.why-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(45% 60% at 85% 20%, rgba(255,195,0,.18), transparent 60%);
}
.why-title { color: #fff; max-width: 720px; margin-left: auto; margin-right: auto; }
.why-lead { color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto 50px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
  text-align: left;
}
.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.why-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.why-card h3 { color: #fff; }
.why-card p { color: rgba(255,255,255,.7); margin: 0; font-size: .92rem; }

/* ---------- Services ---------- */
.services { padding: 100px 0; background: var(--bg-soft); }
.services h2 { max-width: 640px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.service-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(0, 53, 102, .08);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: .5em; }
.service-card p { font-size: .9rem; margin: 0; }

.service-card--cta {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255,255,255,.75); }
.service-card--cta .btn { margin-top: 8px; align-self: flex-start; }

/* ---------- Formato presencial/online ---------- */
.formato { padding: 100px 0; }
.formato h2 { max-width: 620px; }

.formato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 46px;
}
.formato-grid--single {
  grid-template-columns: 1fr;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.formato-card {
  border-radius: var(--radius);
  padding: 36px 34px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.formato-card--accent {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  border-color: transparent;
  color: #fff;
}
.formato-card--accent h3 { color: #fff; }
.formato-card--accent .check-list li { color: #fff; }
.formato-card--accent .check-list li::before { background: var(--gold); }

.formato-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: rgba(0, 53, 102, .08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.formato-tag--dark { color: var(--navy-900); background: var(--gold); }

.formato-footer {
  margin-top: 40px;
  max-width: 720px;
  font-size: .95rem;
}

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; background: var(--bg-soft); }
.faq-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.faq-intro { position: sticky; top: 110px; }
.faq-intro p:last-of-type { margin-bottom: 26px; }

.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-800);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--navy-800);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; background: var(--gold); }
.faq-item p { margin: 14px 0 0; font-size: .92rem; }

/* ---------- CTA final ---------- */
.cta-final {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.cta-final-inner { max-width: 680px; margin: 0 auto; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.75); margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,.55); }

.footer-contact { display: flex; gap: 22px; }
.footer-contact a {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9rem;
  transition: color .15s ease;
}
.footer-contact a:hover { color: var(--gold); }

.footer-copy { font-size: .82rem; margin: 0; width: 100%; text-align: center; color: rgba(255,255,255,.4); }

@media (min-width: 640px) {
  .footer-copy { width: auto; text-align: right; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.4);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

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

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "media"
      "cta";
    gap: 0;
  }
  .hero-text { margin-bottom: 22px; }
  .hero-media { max-width: 260px; margin: 0 auto 26px; padding: 10px; }
  .hero-cta { margin-top: 4px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 320px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .formato-grid { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .floating-card { padding: 10px 14px; }
  .floating-card--top { right: 0; top: -2%; }
  .floating-card--bottom { left: 0; bottom: -2%; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
