/* Rebeca Pereira — Psychotherapy practice site
   Calm, warm, professional. Cream / umber / terracotta / sage / gold. */

@import url("../fonts/fonts.css");

:root {
  --bg: #faf7f1;
  --bg-soft: #f4eee2;
  --card: #fffdf9;
  --ink: #3a3129;
  --ink-soft: #5c5145;
  --line: #e7dcc8;
  --terra: #c37b43;
  --terra-deep: #a85b2a;
  --terra-deep-dark: #8a4a22;
  --sage: #b8b190;
  --sage-soft: #eef0e4;
  --gold: #d9a441;
  --gold-soft: #f7ecd4;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(58, 49, 41, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--terra-deep); text-underline-offset: 3px; }
a:hover { color: var(--terra-deep-dark); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 200;
  text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

:focus-visible {
  outline: 3px solid var(--terra-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Portuguese banner (EN home, first visit only) ---------- */
.pt-banner {
  background: var(--sage-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.pt-banner .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.55rem; padding-bottom: 0.55rem;
}
.pt-banner a { font-weight: 600; }
.pt-banner button {
  flex: none; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); border-radius: 999px; padding: 0.3rem 0.8rem;
  font-size: 0.85rem; cursor: pointer; font-family: var(--sans);
}
.pt-banner button:hover { border-color: var(--terra); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; display: block; }
.brand-sub {
  display: block; font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 600;
}
.brand:hover .brand-name { color: var(--terra-deep); }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.35rem; align-items: center;
}
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.98rem;
}
.main-nav a:hover { color: var(--terra-deep); }
.main-nav a[aria-current="page"] {
  color: var(--terra-deep); font-weight: 700;
  text-decoration: underline; text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.lang-switch { display: flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; flex: none; }
.lang-switch a { text-decoration: none; color: var(--ink-soft); font-weight: 600; padding: 0.25rem 0.15rem; }
.lang-switch a[aria-current="true"] { color: var(--ink); }
.lang-switch a:hover { color: var(--terra-deep); }
.lang-switch .sep { color: var(--line); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--terra-deep); color: #fff;
  font-weight: 700; font-size: 1rem;
  padding: 0.65rem 1.4rem; border-radius: 999px; border: 0;
  font-family: var(--sans); line-height: 1.4; text-align: center;
}
.btn:hover, .btn:focus-visible { background: var(--terra-deep-dark); color: #fff; }
.btn-outline {
  background: transparent; color: var(--terra-deep);
  border: 2px solid var(--terra-deep);
}
.btn-outline:hover { background: var(--terra-deep); color: #fff; }

.header-cta { flex: none; white-space: nowrap; }

/* Hamburger */
.menu-toggle {
  display: none; flex: none;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.5rem 0.6rem; cursor: pointer; color: var(--ink);
}
.menu-toggle .bars { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
}
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1.25rem; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li:last-child { border-bottom: 0; }
.mobile-menu a.nav-link {
  display: block; padding: 0.7rem 0; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 1.05rem;
}
.mobile-menu a.nav-link[aria-current="page"] { color: var(--terra-deep); }
.mobile-menu .btn { display: block; margin-top: 0.9rem; }

/* ---------- Crisis ribbon ---------- */
.crisis-ribbon {
  background: var(--gold-soft);
  border-bottom: 1px solid var(--line);
  text-align: center; font-size: 0.88rem; color: var(--ink);
  padding: 0.4rem 1rem;
}
.crisis-ribbon a { font-weight: 700; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 2.5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terra-deep); font-weight: 700; margin-bottom: 0.9rem;
}
.hero p.lede { font-size: 1.2rem; color: var(--ink-soft); }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }

.arch-frame {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid #fff;
  max-width: 420px; margin: 0 auto;
}
.arch-frame img { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-title p { color: var(--ink-soft); }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.99rem; color: var(--ink-soft); margin: 0; }
.card .card-kicker {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terra-deep); font-weight: 700; margin-bottom: 0.5rem; display: block;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; position: relative;
}
.step-num {
  font-family: var(--serif); font-size: 2.2rem; color: var(--terra);
  line-height: 1; display: block; margin-bottom: 0.6rem; font-weight: 600;
}
.step h3 { font-size: 1.12rem; }
.step p { font-size: 0.99rem; color: var(--ink-soft); margin-bottom: 0.5rem; }

.specialties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.specialty {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.specialty h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.specialty p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }
.specialty .note { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }

.hub-teaser {
  background: var(--sage-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  max-width: 760px; margin: 0 auto;
}
.hub-teaser h2 { margin-bottom: 0.5rem; }
.hub-teaser p { color: var(--ink-soft); }

.faq-teaser { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 680px; }
.faq-teaser li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.faq-teaser li::before { content: "— "; color: var(--terra); }

.cta-band {
  background: var(--ink); color: var(--bg);
  border-radius: calc(var(--radius) + 6px);
  padding: 3rem 2rem; text-align: center; margin: 1rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e9e0d2; max-width: 560px; margin: 0 auto 1.5rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 0.8rem; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700;
  font-size: 1.05rem; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; color: var(--terra-deep);
  flex: none; line-height: 1; font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-body { padding: 0 1.3rem 1.3rem; color: var(--ink-soft); }
.faq-list .faq-body p { margin-bottom: 0.8rem; }
.faq-list .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Fees table ---------- */
.fee-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.fee-table caption { text-align: left; font-weight: 700; padding: 0.8rem 0; font-family: var(--serif); font-size: 1.15rem; }
.fee-table th, .fee-table td {
  text-align: left; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line);
}
.fee-table th { background: var(--bg-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }
.fee-table td.price { font-weight: 700; white-space: nowrap; }

.info-block { margin-bottom: 2.2rem; }
.info-block h2 { margin-bottom: 0.6rem; }
.note-box {
  background: var(--gold-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.note-box h2, .note-box h3 { margin-top: 0; }
.note-box p:last-child { margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.about-grid .arch-frame { max-width: 360px; }
.pull { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); border-left: 3px solid var(--terra); padding-left: 1.2rem; margin: 1.5rem 0; }
.secondary-photo { max-width: 560px; margin: 2.5rem auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cred-line { font-weight: 600; }
.tbd {
  background: var(--gold-soft); border: 1px dashed var(--terra);
  border-radius: 8px; padding: 0.1rem 0.5rem; font-size: 0.9em;
  white-space: nowrap;
}

/* ---------- Book page ---------- */
.book-steps { list-style: none; margin: 1.5rem 0; padding: 0; counter-reset: bk; max-width: 680px; }
.book-steps li {
  counter-increment: bk; padding: 1rem 0 1rem 3.2rem; position: relative;
  border-bottom: 1px solid var(--line);
}
.book-steps li::before {
  content: counter(bk); position: absolute; left: 0; top: 0.9rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--terra); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.book-steps li:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e0d2; margin-top: 3rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; }
.footer-crisis {
  text-align: center; padding: 1rem 1.25rem; margin: -2.5rem 0 2rem;
  background: var(--gold); color: var(--ink); border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
}
.footer-crisis a { color: var(--ink); font-weight: 800; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: 0.4rem; }
.footer-cred { font-size: 0.92rem; color: #cfc3ae; margin-bottom: 1rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.footer-contact li { margin-bottom: 0.4rem; }
.footer-contact a, .footer-nav a { color: #e9e0d2; }
.footer-contact a:hover, .footer-nav a:hover { color: #fff; }
.footer-nav h3 { color: #fff; font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: 0.6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(233, 224, 210, 0.2);
  padding-top: 1.25rem; font-size: 0.85rem; color: #bfae94;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom a { color: #cfc3ae; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta {
    font-size: 0.66rem; padding: 0.45rem 0.7rem; line-height: 1.3;
    max-width: 7.2rem; white-space: normal;
  }
  .header-inner { gap: 0.6rem; padding: 0.45rem 0.9rem; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { display: none; }
  .lang-switch { font-size: 0.8rem; margin-left: auto; }
  .hero { padding: 2rem 0 1.75rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .arch-frame { max-width: 320px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .specialties { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 0.95rem; }
  .header-cta { max-width: 6.4rem; font-size: 0.62rem; }
  .lang-switch { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
