/* =====================================================
   Landing page | Sabrina Meneses, Psicóloga
   Para mudar o visual, edite as variáveis abaixo.
   ===================================================== */

:root {
  /* Cores */
  --bg: #ECDCD0;          /* fundo nude */
  --bg-soft: #F6ECE4;     /* fundo claro (seção Sobre) */
  --rose: #A94A5C;        /* destaque: títulos e botões */
  --rose-dark: #8A3849;   /* texto corrido (melhor contraste) */
  --rose-deep: #6E2B3A;   /* fundo do rodapé */
  --rose-soft: #C67E84;   /* formas atrás da foto */
  --rose-light: #D29C9C;
  --ring: #D9A99A;        /* contorno da moldura oval */
  --white: #fff;

  /* Tipografia */
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-script: "Pinyon Script", cursive;

  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--rose-dark);
  background-color: var(--bg);
  /* textura de papel (ruído sutil) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .35 0 0 0 0 .3 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--rose);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-style: italic; }
p { margin: 0 0 1.1rem; }
a { color: inherit; }
.wrap { width: min(1120px, 92%); margin-inline: auto; }
.icon { width: 1.3em; height: 1.3em; fill: currentColor; flex: none; }

/* Foco visível para navegação por teclado */
a:focus-visible, button:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--rose-dark); transform: translateY(-2px); }
.btn--small { padding: .5rem 1.2rem; font-size: .95rem; }
.btn--big { padding: 1rem 1.9rem; font-size: 1.1rem; box-shadow: 0 10px 24px -10px var(--rose); }
.btn--light { background: var(--bg-soft); color: var(--rose-deep); }
.btn--light:hover { background: var(--white); }

/* ===== Menu superior ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled, .nav.is-open { background: var(--white); box-shadow: 0 4px 20px rgba(110, 43, 58, .12); }

.nav__bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__logo { font-family: var(--font-script); font-size: 2rem; color: var(--rose); text-decoration: none; }

.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { text-decoration: none; font-size: 1.05rem; }
.nav__links a:not(.btn):hover { color: var(--rose); }

/* Botão hambúrguer (só no celular) */
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--rose); transition: transform .25s, opacity .25s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: calc(var(--nav-h) + 3rem) 0 4rem; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }

.hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); font-style: italic; margin-bottom: .6rem; }
.hero__cite { font-family: var(--font-title); font-weight: 700; color: var(--rose); margin-bottom: 1.6rem; }
.hero__cite::before { content: "— "; }
.hero__sub { font-size: 1.3rem; max-width: 34em; margin-bottom: 2rem; }
.hero__note { margin: 1.1rem 0 0; font-size: 1rem; }

/* Única animação "de entrada" da página */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__text, .photo--hero { animation: rise .8s ease-out both; }
.photo--hero { animation-delay: .15s; }

/* ===== Foto em moldura oval com formas orgânicas ===== */
.photo { position: relative; margin: 0; width: min(100%, 400px); justify-self: center; }
.photo::before, .photo::after { content: ""; position: absolute; z-index: 0; }
.photo::before {          /* forma rosa grande */
  inset: 6% -14% -8% 18%;
  background: var(--rose-light);
  border-radius: 58% 42% 50% 50% / 48% 56% 44% 52%;
}
.photo::after {           /* forma rosa média */
  inset: 22% -6% -14% 4%;
  background: var(--rose-soft);
  opacity: .55;
  border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
}
.photo__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 50%;
  border: 7px solid var(--ring);
  overflow: hidden;
  background: var(--rose-light);
}
.photo__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-title); font-style: italic; font-size: 4rem; color: var(--bg-soft); }

/* Foto com moldura e formas já desenhadas na própria imagem (perfil.webp).
   As bordas esmaecem para se misturar ao fundo da página. */
.photo--art { width: min(100%, 480px); }
.photo--art::before, .photo--art::after { display: none; }
.photo--art .photo__frame { aspect-ratio: auto; border: 0; border-radius: 0; background: none; overflow: visible; }
.photo--art .photo__frame img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 94%, transparent);
  mask-composite: intersect;
}

/* ===== Seções ===== */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--soft { background-color: var(--bg-soft); }
section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) - 8px); }

/* Especialidades: título à esquerda, lista com divisórias à direita */
.spec { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.spec__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
.spec__list { margin: 0; }
.spec__list > div { padding: 1.6rem 0; border-top: 2px solid var(--ring); }
.spec__list > div:last-child { border-bottom: 2px solid var(--ring); }
.spec__list dt { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--rose); margin-bottom: .4rem; }
.spec__list dd { margin: 0; }
.spec__list em { display: block; margin-top: .8rem; font-family: var(--font-title); font-weight: 600; color: var(--rose); }

/* Sobre mim */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.photo--about { width: min(100%, 360px); }
.photo--about .photo__frame { aspect-ratio: 1; border-radius: 52% 48% 55% 45% / 50% 55% 45% 50%; }
.about__text { max-width: 36em; }
.about__sign { margin-top: 1.8rem; font-family: var(--font-title); font-weight: 700; color: var(--rose); line-height: 1.4; }
.about__sign span { font-family: var(--font-body); font-weight: 400; color: var(--rose-dark); }

/* ===== Contato / rodapé ===== */
.contact { background: var(--rose-deep); color: var(--bg-soft); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.contact h2 { color: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact__grid p { max-width: 30em; margin-bottom: 1.8rem; }

.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { padding: 1rem 0; border-top: 1px solid rgba(246, 236, 228, .25); }
.contact__list li:last-child { border-bottom: 1px solid rgba(246, 236, 228, .25); }
.contact__list span { display: block; font-family: var(--font-title); font-weight: 700; font-size: .95rem; color: var(--rose-light); }
.contact__list a { text-decoration-color: var(--rose-soft); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--white); }

.contact__end { margin-top: 4rem; text-align: center; font-size: .95rem; }
.contact__end p { margin: 0; opacity: .8; }
.contact__sign { font-family: var(--font-script); font-size: 2.4rem; opacity: 1 !important; color: var(--white); }

/* Botão flutuante de WhatsApp (celular) */
.fab {
  display: none;
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 40;
  width: 56px; height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(110, 43, 58, .35);
}
.fab .icon { width: 28px; height: 28px; }

/* ===== Responsivo ===== */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 4% 1.5rem;
    background: var(--white);
    box-shadow: 0 12px 20px rgba(110, 43, 58, .12);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--bg); }
  .nav__links .btn { margin-top: 1rem; justify-content: center; }

  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__grid, .spec, .about, .contact__grid { grid-template-columns: 1fr; }
  .photo--hero { order: -1; width: min(70%, 300px); margin-bottom: 1.5rem; }
  .spec__intro { position: static; }
  .btn--big { width: 100%; justify-content: center; }
  .fab { display: grid; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text, .photo--hero { animation: none; }
  * { transition: none !important; }
}
