/* ============================================================
   Michelle Negherbon Gross — Psicanalista | Site institucional
   Paleta: off-white/creme, terracota, café/grafite, bege suave
   ============================================================ */

:root {
  --bg: #FBF5EE;
  --bg-alt: #F2E6D6;
  --bg-deep: #7A4A34;
  --terracotta: #B04E2C;
  --terracotta-dark: #8F3F23;
  --terracotta-soft: #E9C3AE;
  --text: #2E2118;
  --text-soft: #5B4A3E;
  --text-inverse: #FBF5EE;
  --border: #E4D5C2;
  --focus: #8B3A1F;
  --radius-lg: 220px;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--text);
}

p { margin: 0 0 1em; }

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

/* Focus visibility for keyboard navigation */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.btn-primary.large {
  font-size: 1.05rem;
  padding: 18px 34px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 238, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.01em;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a:not(.btn) {
  position: relative;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 500;
  padding-bottom: 3px;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: right 0.2s ease;
}
.main-nav a:not(.btn):hover { color: var(--terracotta-dark); }
.main-nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: 64px;
  row-gap: 4px;
  align-items: start;
  grid-template-areas:
    "eyebrow media"
    "name media"
    "headline media"
    "sub media"
    "cta media";
}
.hero-grid > .hero-headline { align-self: start; margin-top: 6px; }
.hero-media {
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 14px;
}
.hero-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.hero-headline {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-media, .about-media { position: relative; }
.photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Identificação (fragments) ---------- */
.section-alt {
  background: var(--bg-alt);
  padding: 76px 0;
}
.fragments {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.fragments h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 36px;
  position: relative;
  padding-top: 26px;
}
.fragments h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 1.5px;
  background: var(--text-soft);
  opacity: 0.45;
}
.fragment {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.fragment:last-of-type { margin-bottom: 0; }
.fragment.emphasis {
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 32px;
}

/* ---------- Como posso ajudar (cards) ---------- */
.section { padding: 88px 0; }
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 18px; }
.section-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-soft);
  opacity: 0.5;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 34px;
  transition: border-color 0.2s ease;
}
.card:hover {
  border-color: var(--text-soft);
}
.card.featured {
  border-color: var(--terracotta);
}
.card-icon {
  display: block;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.card.featured .card-icon { color: var(--terracotta); }
.card-icon svg { display: block; width: 30px; height: 30px; }
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.card p {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-bottom: 0;
}
.cards-note {
  text-align: center;
  max-width: 620px;
  margin: 40px auto 32px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}
.cards-cta { text-align: center; }

/* ---------- Sobre mim ---------- */
.about .container {
  display: flex;
  align-items: center;
  gap: 64px;
}
.about-media { flex: 1 1 340px; display: flex; justify-content: center; }
.about-media .photo-frame { max-width: 340px; }
.about-text { flex: 1 1 480px; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.about-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
}
.credential {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid var(--terracotta-soft);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--terracotta-dark);
  font-weight: 600;
}

/* ---------- Pausa / Como funciona a psicanálise ---------- */
.pause {
  background: var(--terracotta-dark);
  color: var(--text-inverse);
  padding: 100px 0;
  text-align: center;
}
.pause .container { max-width: 720px; }
.pause p { color: rgba(251, 245, 238, 0.9); font-size: 1.05rem; }
.pause-mark {
  display: block;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(251, 245, 238, 0.55);
  margin-bottom: 6px;
}
.pause .lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  color: #fff;
  margin-bottom: 26px;
}

/* ---------- Como funciona o atendimento (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.step-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--terracotta);
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-soft);
  font-size: 0.98rem;
}
.modality-summary {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.98rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 40px;
}
.steps-cta { text-align: center; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.15s ease;
}
.faq-item summary:hover { color: var(--terracotta-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  color: var(--text-soft);
  padding: 0 4px 22px;
  max-width: 65ch;
}

/* ---------- Encerramento ---------- */
.closing {
  text-align: center;
  padding: 96px 0 88px;
}
.closing .container { max-width: 640px; }
.closing h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
.closing p { color: var(--text-soft); }
.closing .btn { margin-top: 12px; }
.signature {
  margin-top: 52px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text);
}
.signature-name {
  margin-top: 6px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-soft);
  text-decoration: none;
}
.instagram-link:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.instagram-link svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  padding: 72px 0 32px;
  font-size: 0.9rem;
  color: rgba(251, 245, 238, 0.7);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg);
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-logo .logo-mark { width: 42px; height: 42px; }
.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(251, 245, 238, 0.6);
  max-width: 32ch;
}
.footer-col-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 245, 238, 0.55);
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: rgba(251, 245, 238, 0.82);
  text-decoration: none;
  font-size: 0.96rem;
}
.footer-nav a:hover { color: #fff; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(251, 245, 238, 0.82);
  text-decoration: none;
  font-size: 0.96rem;
}
.footer-contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-contact-link:hover { color: var(--terracotta-soft); }
.footer-divider {
  height: 1px;
  background: rgba(251, 245, 238, 0.14);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(251, 245, 238, 0.55);
}
.footer-bottom a,
.footer-privacy-link {
  color: rgba(251, 245, 238, 0.75);
  text-decoration: none;
}
.footer-bottom a:hover,
.footer-privacy-link:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-emergency {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(251, 245, 238, 0.55);
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float:hover { filter: brightness(1.05); }

/* ---------- Simple pages (privacy / 404) ---------- */
.simple-page {
  padding: 64px 0 96px;
}
.simple-page .container { max-width: 760px; }
.simple-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.simple-page h2 {
  font-size: 1.25rem;
  margin-top: 40px;
}
.simple-page p { color: var(--text-soft); }
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--terracotta-dark);
  text-decoration: none;
  font-weight: 600;
}

/* ============================================================
   Responsive — mobile first breakpoints
   ============================================================ */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .nav-links.open .btn { margin-top: 8px; }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "name"
      "headline"
      "media"
      "sub"
      "cta";
    row-gap: 0;
  }
  .hero-media { margin: 20px 0 24px; }

  .hero { padding: 40px 0 56px; }

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

  .about .container { flex-direction: column; text-align: center; }
  .about-text { text-align: left; }

  .steps { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 64px 0; }
  .section-alt { padding: 64px 0; }
  .pause { padding: 72px 0; }
  .closing { padding: 72px 0 64px; }

  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .site-footer { padding-top: 56px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .photo-frame { border-radius: 140px 140px 6px 6px; }
}
