/* Design system alinhado com a identidade Instagram @psic.flaviagomes:
   marfim/creme, rosa-velho, sépia. Type: Cormorant Garamond / Raleway. Mobile-first.
   Nomes --teal* mantidos como tokens de accent para não tocar no resto do ficheiro. */

:root {
  --bg: #FAF6F0;
  --bg-tint: #F2EAE1;
  --surface: #FFFFFF;
  --text: #43362E;
  --muted: #77655A;
  --line: #E8DED3;
  --teal: #9E5F58;
  --teal-deep: #83473F;
  --teal-soft: #F0DFD8;
  --sage: #A98F72;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(67, 54, 46, 0.09);
  --shadow-soft: 0 6px 18px rgba(67, 54, 46, 0.05);
  --container: 1080px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Raleway", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
}

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

p {
  margin: 0;
}

/* Signature: focus thread — scroll progress line (EMDR nod) */
.focus-thread {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 40;
}

@supports (animation-timeline: scroll()) {
  .focus-thread {
    animation: thread linear both;
    animation-timeline: scroll(root);
  }

  @keyframes thread {
    to { transform: scaleX(1); }
  }
}

/* Scroll reveals — pure CSS, degrade to visible */
.reveal {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(1.4rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .focus-thread,
  .hero-shape .blob,
  .faq-item::details-content {
    animation: none !important;
    transition: none !important;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  z-index: 50;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a {
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-deep);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem;
  color: var(--teal-deep);
  transition: color 0.2s ease;
}

.nav-icon:hover,
.nav-icon:focus-visible {
  color: var(--teal);
}

.nav-cta {
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--teal-deep);
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-shape {
  position: absolute;
  top: -10%;
  right: -22%;
  width: min(38rem, 90vw);
  color: var(--teal-soft);
  z-index: -1;
}

.hero-shape .blob {
  transform-origin: 50% 50%;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(2deg); }
}

.hero-copy {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  max-width: 22ch;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.hero-text {
  margin-top: 1.4rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.chip-list li {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-deep);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 124, 116, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: clamp(3.8rem, 8vw, 6.5rem) 0;
}

.section-tinted {
  background: var(--bg-tint);
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-heading .eyebrow {
  margin-bottom: 0.7rem;
}

.section-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}

.formacoes h2 {
  margin-bottom: 1.3rem;
}

/* Passe-partout: a moldura clara separa o azul saturado da foto do creme da
   pagina, e o raio de topo generoso resolve-se sozinho em semicirculo a
   qualquer largura porque o browser reduz raios que excedem o lado. */
.foto-mat {
  width: max-content;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.sobre-foto {
  display: block;
  width: clamp(215px, 38vw, 320px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 999px 999px var(--radius-sm) var(--radius-sm);
}

.contact-link {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Areas */
.areas-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.area-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.area-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.area-card svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--teal);
}

.areas-quote {
  margin: clamp(2.2rem, 5vw, 3.2rem) 0 0;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.areas-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.55;
  max-width: 48ch;
}

.areas-quote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-deep);
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 1.6rem 1.5rem 1.6rem 4.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.4rem;
  top: 1.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal);
}

.step p {
  color: var(--muted);
}

.step-modes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--teal);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] {
  border-color: var(--teal);
}

.faq-item p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.faq-item::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.35s ease,
    opacity 0.3s ease,
    content-visibility 0.35s allow-discrete;
}

.faq-item[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* Contact */
.contact-heading {
  text-align: center;
}

.contact-heading h2,
.contact-heading p {
  margin-left: auto;
  margin-right: auto;
}

.contact-heading p {
  color: var(--muted);
  text-wrap: balance;
}

.contact-grid {
  display: grid;
  gap: 1.4rem;
  max-width: 52rem;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.8rem, 4vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-card-icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  margin-bottom: 1.2rem;
}

.contact-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
}

.contact-card-detail {
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}

.contact-card-meta {
  margin-top: 0.55rem;
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-card-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.93rem;
  flex-grow: 1;
}

.contact-card .button {
  margin-top: 1.4rem;
  width: 100%;
}

.contact-disclaimer {
  margin: 1.6rem auto 0;
  max-width: 52rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-name {
  font-family: var(--font-display);
  color: var(--teal-deep);
}

.footer-note {
  margin-top: 0.4rem;
  max-width: 52ch;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--teal-deep);
}

/* ≥700px */
@media (min-width: 700px) {
  .section-grid {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .areas-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .area-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.4rem 1.3rem;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ≥960px */
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ≤420px */
@media (max-width: 420px) {
  .button {
    width: 100%;
  }
}
