/* ============================================================
   FS Psicologia Clínica — production stylesheet
   Palette 70/20/10 · Spectral (titles) + Inter (body)
   ============================================================ */

:root {
  --off:    #F6F3ED;  /* warm off-white base (~70%) */
  --off-2:  #F1ECE2;  /* alt section background */
  --card:   #FAF8F2;  /* card surface */
  --img-bg: #EFEAE0;  /* image placeholder background */
  --petrol: #0E4456;  /* deep desaturated petrol (~20%) */
  --deep:   #0C2A35;  /* darkest petrol — titles, dark blocks */
  --body:   #3a4d54;  /* body text */
  --muted:  #5a6c72;  /* secondary text */
  --gold:   #C2A063;  /* sober gold accent (~10%) */

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(194,160,99,0.28); }

img, picture { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--deep); margin: 0; }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--deep); color: var(--off);
  padding: 10px 16px; border-radius: 0 0 6px 0;
  font-family: var(--sans); font-size: .9rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- Shared layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 720px; margin: 0 auto; }
.section { padding: clamp(72px, 12vh, 128px) var(--gutter); scroll-margin-top: 80px; }
.section > .container { padding-left: 0; padding-right: 0; }
.section-alt { background: var(--off-2); }

/* ---- Eyebrow (overline with gold tick) ---- */
.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--petrol);
  display: flex; align-items: center; gap: 13px; margin: 0 0 28px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); display: inline-block; flex-shrink: 0; }
.eyebrow-heading { margin-bottom: 48px; }

/* ---- Buttons ---- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; font-family: var(--sans);
  font-weight: 500; font-size: .97rem; letter-spacing: .01em;
  text-decoration: none; border-radius: 6px;
}
.btn-primary { background: var(--petrol); color: var(--off); padding: 15px 28px; transition: background .25s ease; }
.btn-primary:hover { background: var(--deep); }
.btn-primary-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-secondary { background: transparent; color: var(--petrol); padding: 14px 26px; border: 1px solid rgba(14,68,86,.3); transition: border-color .25s ease; }
.btn-secondary:hover { border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(246,243,237,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,68,86,.08);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--deep); }
.brand-mark { height: 40px; width: 40px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; letter-spacing: .01em; color: var(--deep); }

.nav-desktop { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav-link { font-size: .9rem; color: var(--body); text-decoration: none; letter-spacing: .01em; transition: color .2s ease; }
.nav-link:hover { color: var(--petrol); }
.nav-cta { background: var(--petrol); color: var(--off); font-weight: 500; font-size: .82rem; padding: 9px 18px; border-radius: 6px; text-decoration: none; transition: background .25s ease; }
.nav-cta:hover { background: var(--deep); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; margin-right: -8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--deep); display: block; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--off); border-bottom: 1px solid rgba(14,68,86,.1);
  padding: 14px var(--gutter) 24px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 16px 36px rgba(12,42,53,.1);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { font-size: 1rem; color: #27414a; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(14,68,86,.07); }
.nav-mobile .nav-cta-mobile { margin-top: 14px; background: var(--petrol); color: var(--off); font-weight: 500; font-size: .95rem; padding: 13px 20px; border-radius: 6px; text-align: center; border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { scroll-margin-top: 80px; }
.hero-grid {
  display: grid; gap: clamp(40px, 5vw, 76px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  padding-top: clamp(120px, 17vh, 176px); padding-bottom: clamp(64px, 9vh, 104px);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.55rem); line-height: 1.12; letter-spacing: -.01em;
  margin: 0 0 26px; max-width: 15ch; text-wrap: balance;
}
.eyebrow + h1 { margin-top: 0; }
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.7; color: var(--body); margin: 0 0 38px; max-width: 44ch; }
.hero-media {
  aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(14,68,86,.12); background: var(--img-bg);
  max-width: 560px; width: 100%; margin-left: auto;
}
.hero-media img, .about-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 50% 50%; }

/* ============================================================
   ACOLHIMENTO + PULL QUOTE
   ============================================================ */
.section-opening { padding-top: clamp(56px, 9vh, 96px); padding-bottom: clamp(56px, 9vh, 96px); }
.lead { font-size: clamp(1.18rem, 2vw, 1.42rem); line-height: 1.72; color: #27414a; margin: 0; }

.pullquote-section { background: var(--deep); padding: clamp(72px, 13vh, 128px) var(--gutter); }
.pq-rule { width: 54px; height: 1px; background: var(--gold); margin-bottom: 32px; }
.pullquote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem); line-height: 1.36; color: var(--off);
  margin: 0; letter-spacing: -.005em; max-width: 900px;
}
.pullquote-section .container { max-width: 900px; }

/* ============================================================
   SOBRE
   ============================================================ */
.about-grid {
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start;
  max-width: 1100px;
}
.about-media {
  aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(14,68,86,.12); background: var(--img-bg); max-width: 380px;
}
.about-media img { object-position: 50% 18%; }
.about-text { max-width: 54ch; }
.about-name { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.18; margin: 0 0 26px; letter-spacing: -.01em; }
.about-text p { font-size: 1.06rem; line-height: 1.74; color: var(--body); margin: 0 0 20px; }
.about-text p:last-child { margin-bottom: 0; }

/* ============================================================
   COMO TRABALHO — pillars
   ============================================================ */
.section > .container { max-width: 1100px; }
.pillars { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillar-rule { width: 40px; height: 1px; background: var(--gold); margin-bottom: 22px; }
.pillar-num { font-family: var(--serif); font-size: 1.7rem; color: var(--petrol); margin: 0 0 14px; font-weight: 500; }
.pillar h3 { font-size: 1.32rem; margin: 0 0 14px; letter-spacing: -.005em; }
.pillar p { font-size: 1rem; line-height: 1.7; color: var(--body); margin: 0; }

/* ============================================================
   PARA QUEM — audience
   ============================================================ */
.audience { max-width: 880px; }
.audience-intro {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.34; color: var(--deep); margin: 0 0 44px; max-width: 24ch; letter-spacing: -.01em;
}
.audience-item {
  display: flex; gap: clamp(20px, 4vw, 40px); padding: 30px 0;
  border-top: 1px solid rgba(14,68,86,.16); align-items: baseline;
}
.audience-item-last { border-bottom: 1px solid rgba(14,68,86,.16); }
.a-num { font-family: var(--serif); font-size: 1.5rem; color: var(--petrol); flex-shrink: 0; min-width: 2ch; }
.audience-item h3 { font-size: 1.3rem; margin: 0 0 10px; }
.audience-item p { font-size: 1.02rem; line-height: 1.7; color: var(--body); margin: 0; }

/* ============================================================
   ATENDIMENTO
   ============================================================ */
.atend-grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { border: 1px solid rgba(14,68,86,.14); border-radius: 10px; padding: clamp(28px, 4vw, 40px); background: var(--card); }
.card h3 { font-size: 1.45rem; margin: 0 0 18px; }
.card p { font-size: 1.04rem; line-height: 1.72; color: var(--body); margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.atend-note { font-size: .96rem; line-height: 1.7; color: var(--muted); margin: 30px 0 0; }

/* ============================================================
   FAQ — native <details> accordion
   ============================================================ */
.faq { max-width: 820px; }
.faq-item { border-top: 1px solid rgba(14,68,86,.16); }
.faq-item-last { border-bottom: 1px solid rgba(14,68,86,.16); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; padding: 24px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--serif); font-weight: 500; font-size: 1.18rem; color: var(--deep); }
.faq-item summary::after {
  content: "+"; font-family: var(--serif); font-size: 1.4rem; color: var(--gold);
  flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-a { font-size: 1.04rem; line-height: 1.72; color: var(--body); margin: 0; padding: 0 0 26px; max-width: 60ch; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-head { max-width: 680px; margin-bottom: clamp(48px, 7vh, 72px); }
.contact-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin: 0 0 34px; letter-spacing: -.01em; text-wrap: balance; }
.email-line { font-size: .92rem; line-height: 1.7; color: var(--muted); margin: 22px 0 0; }
.email-line a { color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(194,160,99,.6); }

.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.contact-info h3 { font-size: 1.2rem; margin: 0 0 16px; }
.contact-info p { font-size: 1.02rem; line-height: 1.72; color: var(--body); margin: 0 0 18px; }
.maps-link { font-size: .95rem; color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(194,160,99,.6); }
.map-embed { border-radius: 10px; overflow: hidden; border: 1px solid rgba(14,68,86,.14); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--deep); color: #cdd8da; padding: clamp(56px, 9vh, 84px) var(--gutter) clamp(40px, 6vh, 56px); }
.site-footer .container { max-width: 1100px; }
.footer-top {
  display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start; padding-bottom: clamp(36px, 5vh, 52px); border-bottom: 1px solid rgba(246,243,237,.12);
}
.footer-id { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo { height: 44px; width: 44px; object-fit: contain; }
.footer-name { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--off); }
.footer-meta { font-size: .95rem; line-height: 1.7; color: #9fb0b3; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: .95rem; color: #cdd8da; text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; padding-top: 28px; }
.ethics { font-size: .8rem; line-height: 1.65; color: #7e9296; margin: 0; max-width: 64ch; }
.copyright { font-size: .8rem; color: #7e9296; margin: 0; white-space: nowrap; }

/* ============================================================
   RESPONSIVE — desktop / mobile nav switch
   ============================================================ */
@media (max-width: 859px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 860px) {
  .nav-mobile { display: none !important; }
}

/* ============================================================
   SCROLL REVEAL — progressive enhancement only
   (content is fully visible without JS)
   ============================================================ */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
/* Failsafe: if the reveal script never runs, show everything anyway. */
html.reveal-fallback [data-reveal] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
