/*
Theme Name: Keila Almeida
Theme URI: https://psikeila.com.br
Author: Projeto exclusivo para Keila Almeida
Description: Tema editorial e acolhedor para Keila Almeida | Psicóloga.
Version: 1.2.5
Text Domain: keila-almeida
*/

:root {
  --ink: #17252d;
  --ink-soft: #30424a;
  --cream: #f4eee4;
  --cream-deep: #e8ddce;
  --paper: #fffaf3;
  --olive: #596340;
  --olive-light: #8c9870;
  --terracotta: #b75e3f;
  --gold: #c79b61;
  --white: #fffdfa;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(23, 37, 45, .15);
  --radius: 1.6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--white); background: var(--terracotta); }

.skip-link {
  position: fixed; z-index: 9999; top: .75rem; left: .75rem;
  padding: .75rem 1rem; color: var(--white); background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.section { position: relative; padding: clamp(5rem, 9vw, 8.5rem) 0; }
.eyebrow {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem;
  color: var(--terracotta); font-size: .76rem; font-weight: 800;
  letter-spacing: .17em; line-height: 1.3; text-transform: uppercase;
}
.eyebrow::before { width: 2.4rem; height: 1px; content: ""; background: currentColor; }
.display {
  margin: 0; font-family: var(--serif); font-size: clamp(3.2rem, 8vw, 7.4rem);
  font-weight: 400; letter-spacing: -.055em; line-height: .91;
}
.section-title {
  max-width: 850px; margin: 0; font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 400;
  letter-spacing: -.045em; line-height: 1.02;
}
.section-title em, .display em { color: var(--terracotta); font-weight: 400; }
.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.75; }

.site-header {
  position: absolute; z-index: 100; top: 0; left: 0; width: 100%;
  color: var(--white);
}
.header-inner {
  display: flex; min-height: 6.4rem; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.brand-mark { width: 2.85rem; height: 2.85rem; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.03em; }
.brand-role { margin-top: .36rem; font-size: .58rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { position: relative; font-size: .83rem; font-weight: 650; letter-spacing: .04em; text-decoration: none; }
.site-nav > a:not(.nav-cta):not(.nav-instagram)::after {
  position: absolute; right: 0; bottom: -.45rem; left: 0; height: 1px;
  content: ""; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease;
}
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.45); border-radius: 99px; }
.nav-conversation { background: rgba(255,255,255,.04); }
.nav-instagram { display: inline-flex; width: 2.7rem; height: 2.7rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; transition: color .2s ease, background .2s ease; }
.nav-instagram:hover, .nav-instagram:focus-visible { color: var(--ink); background: var(--cream); }
.instagram-glyph { position: relative; display: block; width: 1.08rem; height: 1.08rem; border: 1.7px solid currentColor; border-radius: .32rem; }
.instagram-glyph::before { position: absolute; top: 50%; left: 50%; width: .42rem; height: .42rem; content: ""; border: 1.5px solid currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.instagram-glyph::after { position: absolute; top: .15rem; right: .15rem; width: .15rem; height: .15rem; content: ""; border-radius: 50%; background: currentColor; }
.nav-instagram-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-whatsapp { display: inline-flex; align-items: center; gap: .45rem; color: #10271a; background: #d7f7df; border-color: #d7f7df; }
.nav-whatsapp::before { content: "✆"; font-size: 1rem; line-height: 1; }
.menu-toggle { display: none; border: 0; color: inherit; background: transparent; font: inherit; }

.hero {
  position: relative; display: grid; min-height: 100svh; align-items: end; overflow: hidden;
  color: var(--white); background: var(--ink);
}
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 37%; }
.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(10,23,31,.88) 0%, rgba(10,23,31,.65) 41%, rgba(10,23,31,.08) 76%),
    linear-gradient(0deg, rgba(10,23,31,.74) 0%, transparent 52%);
}
.hero-content { position: relative; z-index: 1; padding: 11rem 0 clamp(4.5rem, 9vw, 7.5rem); }
.hero-copy { max-width: 790px; }
.hero .eyebrow { color: #e8b483; }
.hero .display { max-width: 760px; }
.hero-intro { max-width: 630px; margin: 1.8rem 0 2.15rem; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.button {
  display: inline-flex; min-height: 3.35rem; align-items: center; justify-content: center; gap: .8rem;
  padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: 99px;
  font-size: .87rem; font-weight: 750; text-decoration: none; transition: transform .25s ease, background .25s ease, color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--cream); }
.button-ghost { border-color: rgba(255,255,255,.36); color: var(--white); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.button-dark { color: var(--white); background: var(--ink); }
.button-cream { color: var(--ink); background: var(--cream); }
.button-arrow { font-size: 1.15em; transition: transform .25s ease; }
.button:hover .button-arrow { transform: translateX(4px); }
.hero-note {
  position: absolute; right: max(1.5rem, calc((100vw - 1180px)/2)); bottom: clamp(3rem, 6vw, 5.5rem);
  display: grid; width: 12rem; height: 12rem; place-content: center; padding: 1.4rem;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  color: rgba(255,255,255,.87); text-align: center; backdrop-filter: blur(8px);
}
.hero-note strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.15; }
.hero-note span { margin-top: .5rem; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.manifesto { overflow: hidden; color: var(--cream); background: var(--terracotta); }
.manifesto .container { display: grid; grid-template-columns: .65fr 1.35fr; gap: 7vw; align-items: start; }
.manifesto-label { padding-top: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.manifesto blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 4.7vw, 4.4rem); letter-spacing: -.035em; line-height: 1.05; }
.manifesto blockquote em { color: #2d3431; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(300px, .86fr) 1.14fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.about-visual { position: relative; }
.about-visual::before {
  position: absolute; z-index: 0; top: -1.4rem; right: -1.4rem; width: 38%; height: 42%;
  content: ""; border: 1px solid var(--terracotta); border-radius: 50% 50% 6% 50%;
}
.about-visual img { position: relative; z-index: 1; width: 100%; height: clamp(520px, 64vh, 640px); border-radius: 47% 47% 1.2rem 1.2rem; object-fit: cover; object-position: center 22%; box-shadow: var(--shadow); }
.about-stamp {
  position: absolute; z-index: 2; right: -1.3rem; bottom: 1.8rem; display: grid;
  width: 8.5rem; height: 8.5rem; place-content: center; padding: 1rem;
  border-radius: 50%; color: var(--cream); background: var(--olive); text-align: center;
  font-size: .65rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
.about-copy .section-title { margin-bottom: 2rem; }
.about-copy p { max-width: 660px; margin: 0 0 1.2rem; color: var(--ink-soft); }
.about-copy .lead { color: var(--ink); }
.credential { display: flex; gap: .9rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--cream-deep); }
.credential-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 .35rem rgba(183,94,63,.12); }
.credential strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.credential span { color: var(--ink-soft); font-size: .86rem; }

.care { background: var(--cream); }
.care-header { display: grid; grid-template-columns: 1.25fr .75fr; gap: 5vw; align-items: end; margin-bottom: 4rem; }
.care-header .lead { max-width: 440px; margin: 0 0 .25rem; }
.care-list { border-top: 1px solid rgba(23,37,45,.22); }
.care-item {
  display: grid; grid-template-columns: 5rem .65fr 1.35fr; gap: 2rem; align-items: start;
  padding: 2.4rem 0; border-bottom: 1px solid rgba(23,37,45,.22);
}
.care-number { color: var(--terracotta); font-family: var(--serif); font-size: 1.15rem; }
.care-item h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 400; line-height: 1.05; }
.care-item p { max-width: 620px; margin: 0; color: var(--ink-soft); }

.themes { color: var(--cream); background: var(--ink); overflow: hidden; }
.themes::before {
  position: absolute; top: -15rem; right: -12rem; width: 38rem; height: 38rem;
  content: ""; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 7rem rgba(255,255,255,.025), 0 0 0 14rem rgba(255,255,255,.018);
}
.themes .eyebrow { color: #e8b483; }
.themes-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 5vw; align-items: end; margin-bottom: 4rem; }
.themes-intro .lead { max-width: 450px; margin: 0; color: rgba(244,238,228,.68); }
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.theme-card { display: grid; min-height: 14rem; grid-template-columns: 3.2rem 1fr; gap: 1.5rem; padding: 2rem 2rem 2.4rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.theme-card:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.16); }
.theme-card:nth-child(even) { padding-left: 2rem; }
.theme-card span { color: #e8b483; font-family: var(--serif); }
.theme-card h3 { margin: 0 0 .75rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 400; line-height: 1.12; }
.theme-card p { margin: 0; color: rgba(244,238,228,.66); font-size: .93rem; }

.approach { padding: 0; background: var(--paper); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; }
.approach-media { min-height: 620px; }
.approach-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.approach-copy { display: flex; align-items: center; padding: clamp(4rem, 8vw, 8rem); }
.approach-copy-inner { max-width: 590px; }
.approach blockquote { margin: 2.1rem 0 1.6rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.04em; line-height: 1.07; }
.approach blockquote em { color: var(--terracotta); }
.approach cite { color: var(--ink-soft); font-size: .8rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.approach p { margin-top: 2.2rem; color: var(--ink-soft); }

.contact { overflow: hidden; color: var(--cream); background: var(--olive); }
.contact::before, .contact::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.contact::before { top: -12rem; left: -10rem; width: 32rem; height: 32rem; }
.contact::after { right: -6rem; bottom: -12rem; width: 26rem; height: 26rem; }
.contact-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact-copy { position: sticky; top: 3rem; }
.contact .eyebrow { color: #f1c999; }
.contact-copy .lead { max-width: 580px; margin: 1.6rem 0 1.4rem; color: rgba(244,238,228,.78); }
.contact-email { display: inline-block; color: var(--cream); font-size: .9rem; font-weight: 750; text-underline-offset: .35rem; }
.contact-form-card { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: .4rem; text-align: left; }
.form-field label { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.form-field label small { color: #68787d; font-size: .66rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 3.15rem; padding: .78rem .9rem; border: 1px solid #c8c5bc; border-radius: .7rem;
  color: var(--ink); background: #fff; font: inherit; font-size: .93rem; line-height: 1.45;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 8.5rem; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(89,99,64,.17); }
.form-consent { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: .76rem; line-height: 1.5; text-align: left; }
.form-consent input { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: .15rem; accent-color: var(--olive); }
.contact-form .button { width: 100%; cursor: pointer; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 1.25rem; padding: .9rem 1rem; border-radius: .75rem; font-size: .83rem; line-height: 1.5; }
.form-status strong { display: block; }
.form-status-success { color: #24432b; background: #e1efdf; }
.form-status-warning { color: #704228; background: #f6e5d7; }
.turnstile-wrap { min-height: 65px; overflow: hidden; }
.contact-note { margin: 1.2rem 0 0; color: #6b7271; font-size: .7rem; line-height: 1.55; }

.whatsapp-float {
  position: fixed; z-index: 90; right: 1.1rem; bottom: 1.1rem;
  display: block; width: 3.35rem; height: 3.35rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; box-shadow: 0 12px 34px rgba(16,39,26,.32); text-decoration: none;
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float img { width: 100%; height: 100%; object-fit: contain; }

.site-footer { color: rgba(244,238,228,.78); background: #101b21; }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; gap: 5rem; align-items: end; padding: 4.5rem 0 3rem; }
.footer-brand .brand { color: var(--cream); }
.footer-brand p { max-width: 360px; margin: 1.2rem 0 0; font-size: .86rem; }
.footer-col { display: grid; gap: .65rem; }
.footer-col strong { margin-bottom: .35rem; color: var(--cream); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-col a { font-size: .86rem; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 1.2rem 0 1.6rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .69rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .container { width: min(100% - 2rem, 700px); }
  .menu-toggle { position: relative; z-index: 102; display: inline-flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 700; }
  .menu-toggle::before { width: 1.15rem; height: .75rem; content: ""; border-top: 1px solid; border-bottom: 1px solid; }
  .site-nav { position: fixed; z-index: 101; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem; padding: 3rem; color: var(--cream); background: rgba(23,37,45,.98); transform: translateX(100%); transition: transform .35s ease; }
  .site-nav.is-open { transform: none; }
  .site-nav a { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
  .site-nav .nav-cta { font-family: var(--sans); font-size: .9rem; }
  .site-nav .nav-conversation { margin-top: 1rem; }
  .site-nav .nav-whatsapp { display: inline-flex; }
  .site-nav .nav-instagram { width: auto; height: auto; justify-content: flex-start; gap: .8rem; border: 0; border-radius: 0; }
  .site-nav .nav-instagram:hover, .site-nav .nav-instagram:focus-visible { color: var(--cream); background: transparent; }
  .site-nav .instagram-glyph { width: 1.4rem; height: 1.4rem; }
  .site-nav .nav-instagram-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .hero-media img { object-position: 58% center; }
  .hero-media::after { background: linear-gradient(90deg, rgba(10,23,31,.9), rgba(10,23,31,.45)), linear-gradient(0deg, rgba(10,23,31,.75), transparent 60%); }
  .hero-note { display: none; }
  .hero-copy { max-width: 620px; }
  .manifesto .container, .care-header, .themes-intro, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-copy { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { width: min(88%, 520px); }
  .about-visual img { height: min(68vh, 600px); min-height: 510px; }
  .care-item { grid-template-columns: 3rem 1fr; }
  .care-item p { grid-column: 2; }
  .approach-grid { grid-template-columns: 1fr; min-height: 0; }
  .approach-media { height: 70vw; min-height: 480px; max-height: 680px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .section { padding-block: 4.8rem; }
  .header-inner { min-height: 5.4rem; }
  .brand-name { font-size: 1.25rem; }
  .brand-role { font-size: .53rem; }
  .brand-mark { width: 2.55rem; height: 2.55rem; }
  .hero { min-height: 760px; }
  .hero-content { padding-top: 9rem; }
  .display { font-size: clamp(3.35rem, 16vw, 5.2rem); }
  .hero-intro { font-size: 1rem; }
  .button { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .whatsapp-float { right: .75rem; bottom: .75rem; width: 3.15rem; height: 3.15rem; }
  .about-stamp { right: -1rem; width: 7.2rem; height: 7.2rem; font-size: .56rem; }
  .about-visual img { height: 470px; min-height: 0; }
  .care-item { grid-template-columns: 2.2rem 1fr; gap: 1rem; }
  .theme-grid { grid-template-columns: 1fr; }
  .theme-card, .theme-card:nth-child(even) { min-height: 0; padding: 1.8rem 0 2.1rem; border-right: 0; }
  .approach-media { min-height: 420px; }
  .approach-copy { padding: 4.5rem 1.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
