/*
Theme Name: Giovanna Farina
Theme URI: https://giovannafarina.com.br
Author: Giovanna Farina
Description: Lightweight single-page theme for Giovanna Farina's psychology practice.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: giovanna-farina
*/

:root {
  --color-ink: #23302c;
  --color-muted: #53625c;
  --color-canvas: #f8f4ee;
  --color-surface: #fffdf9;
  --color-soft: #e7eee7;
  --color-primary: #355e4d;
  --color-primary-dark: #244438;
  --color-accent: #c98267;
  --color-line: #d8ded8;
  --shadow-soft: 0 24px 64px rgba(35, 48, 44, 0.1);
  --radius-small: 0.75rem;
  --radius-large: 2rem;
  --content-width: 72rem;
  --reading-width: 43rem;
  --space-section: clamp(4rem, 8vw, 7rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-canvas);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  color: #fff;
  background: var(--color-primary-dark);
  border-radius: var(--radius-small);
}

.container { width: min(calc(100% - 2rem), var(--content-width)); margin-inline: auto; }
.section { padding-block: var(--space-section); scroll-margin-top: 6rem; }
.section--surface { background: var(--color-surface); }
.section--soft { background: var(--color-soft); }
.section__intro { max-width: var(--reading-width); margin-bottom: 3rem; }
.section__intro h2 { max-width: 19ch; }
.eyebrow { margin: 0 0 0.75rem; color: var(--color-primary); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.5vw, 4.8rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.15rem, 4.2vw, 3.5rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
p { margin: 1rem 0 0; }
.lead { max-width: 38rem; color: var(--color-muted); font-size: clamp(1.15rem, 2vw, 1.35rem); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 244, 238, 0.94); border-bottom: 1px solid rgba(53, 94, 77, 0.12); backdrop-filter: blur(12px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 1.5rem; }
.brand { text-decoration: none; }
.brand__name { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.15; }
.brand__credential { display: block; color: var(--color-muted); font-size: 0.75rem; line-height: 1.3; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--color-primary); }
.nav__contact { padding: 0.55rem 1rem; color: #fff; background: var(--color-primary); border-radius: 999px; }
.nav a.nav__contact:hover { color: #fff; background: var(--color-primary-dark); }
.menu-toggle { display: none; padding: 0.6rem; color: var(--color-ink); background: transparent; border: 1px solid var(--color-line); border-radius: 50%; cursor: pointer; }

.hero { position: relative; min-height: calc(100svh - 5rem); padding-block: clamp(2.5rem, 4vw, 4rem); overflow: hidden; }
.hero::before { position: absolute; width: 32rem; height: 25rem; right: -17rem; bottom: -13rem; content: ""; background: var(--color-soft); border-radius: 58% 42% 35% 65%; transform: rotate(-24deg); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.hero__copy { position: relative; z-index: 1; }
.hero .eyebrow { max-width: 34ch; }
.hero__title { max-width: 16ch; }
.hero .lead { max-width: 43ch; margin-top: 1.5rem; }
.hero__title span { display: block; color: var(--color-primary); }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 3.5rem; padding: 0.85rem 1.4rem; font-weight: 700; line-height: 1.2; text-decoration: none; border-radius: 999px; transition: transform 160ms ease, background-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--color-primary); }
.button--primary:hover { background: var(--color-primary-dark); }
.button--secondary { color: var(--color-primary-dark); border: 1px solid var(--color-primary); }
.button__icon { width: 1.25rem; height: 1.25rem; }
.hero__note { color: var(--color-muted); font-size: 0.9rem; }
.hero__portrait { position: relative; isolation: isolate; align-self: center; margin: 0; padding-top: 3rem; }
.hero__portrait::before { position: absolute; z-index: -2; inset: 12% -3% 0; content: ""; background: #dce6dd url("assets/images/paper-grain.svg"); border-radius: 48% 52% 32% 38% / 35% 42% 22% 28%; }
.hero__portrait::after { position: absolute; z-index: -1; inset: 6% -7% 5% 8%; content: ""; border: 1px solid #8b9e8e; border-radius: 48% 52% 40% 60% / 47% 33% 67% 53%; transform: rotate(9deg); }
.hero__portrait img { width: 100%; object-fit: contain; object-position: center bottom; }

.about__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.about__statement { margin-top: 1.75rem; padding-left: 1.5rem; border-left: 3px solid var(--color-accent); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; }
.about__copy { max-width: var(--reading-width); color: var(--color-muted); }
.about__copy > p:first-child { margin-top: 0; }
.fact-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.fact-list li { padding: 0.55rem 0.9rem; color: var(--color-primary-dark); background: var(--color-soft); border-radius: 999px; font-size: 0.9rem; font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.card { position: relative; padding: 1.5rem 0 0; border-top: 1px solid #8b9e8e; }
.card:not(:last-child)::after { position: absolute; top: -1px; left: 100%; width: 2rem; border-top: 1px solid #8b9e8e; content: ""; }
.card__number { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.5rem; color: var(--color-primary); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 50% 45% 50% 40%; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.card p { color: var(--color-muted); font-size: 1rem; }

.care__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.care__list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.care__list li { position: relative; padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--color-line); }
.care__list li::before { position: absolute; left: 0; color: var(--color-accent); content: "●"; }
.care__aside { padding: clamp(1.75rem, 4vw, 3rem); background: var(--color-primary); color: #fff; border-radius: var(--radius-large); box-shadow: var(--shadow-soft); }
.care__aside p { color: rgba(255, 255, 255, 0.82); }
.care__aside .eyebrow { color: #f3d8c6; }
.care__aside h3 { font-size: clamp(2rem, 3vw, 2.75rem); max-width: 13ch; }

.contact { text-align: center; }
.contact__box { position: relative; isolation: isolate; max-width: 58rem; margin-inline: auto; padding: clamp(2rem, 6vw, 4rem); }
.contact__box::before { display: block; width: 4.5rem; height: 1.5rem; margin: 0 auto 2rem; background: #c98267 url("assets/images/paper-grain.svg"); border-radius: 70% 30% 65% 35%; transform: rotate(-8deg); content: ""; }
.contact__box h2 { max-width: 21ch; margin-inline: auto; }
.contact__box .lead { margin-inline: auto; }
.contact__box .button { margin-top: 2rem; }

.site-footer { padding-block: 2.5rem; color: #eef4f0; background: var(--color-primary-dark); }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.footer__name { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.footer__meta { margin-top: 0.35rem; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.5rem; font-size: 0.9rem; }

@media (max-width: 800px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: 1rem; background: var(--color-canvas); border-bottom: 1px solid var(--color-line); box-shadow: 0 12px 24px rgba(35, 48, 44, 0.1); }
  .nav.is-open { display: block; }
  .nav__list { align-items: stretch; flex-direction: column; }
  .nav a { display: block; padding: 0.65rem; }
  .nav__contact { text-align: center; }
  .hero { min-height: auto; padding-bottom: 3rem; }
  .hero__grid, .about__grid, .care__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 16ch; }
  .hero__portrait { max-width: 22rem; width: 85%; margin-inline: auto; padding-top: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 0 0 0 4.5rem; border-top: 0; }
  .card__number { position: absolute; left: 0; top: 0; margin: 0; }
  .card:not(:last-child)::after { left: 1.5rem; top: 3rem; bottom: -2rem; width: 0; border-top: 0; border-left: 1px solid #8b9e8e; }
  .footer__inner { align-items: flex-start; flex-direction: column; }
  .footer__links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  .container { width: min(calc(100% - 1.25rem), var(--content-width)); }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero__portrait { max-width: 19rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
