/* ============================================================
   DR. HEITOR PÓVOAS — folha de estilo principal
   Paleta navy/dourado coerente com identidade Clínica Baros
   Fontes: Cormorant Garamond (display) + Inter (texto)
   ============================================================ */

:root {
  /* Paleta */
  --navy:        #0F2B45;
  --navy-light:  #163550;
  --navy-deep:   #0a1d30;
  --gold:        #C9A961;
  --gold-dim:    #a08846;
  --cream:       #F5F5F0;
  --cream-soft:  #fafaf6;
  --gray-text:   #3a4a5a;
  --gray-mute:   #6b7a89;
  --gray-light:  #e5e9ee;
  --divider:     #d6dde4;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Containers */
  --container-wide:   1240px;
  --container-narrow: 760px;
}

/* ============================================================
   RESET BÁSICO
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-text);
  background: white;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-dim);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1.2em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

strong { color: var(--navy); font-weight: 600; }

hr {
  border: 0;
  height: 1px;
  background: var(--divider);
  margin: var(--space-md) 0;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  background: white;
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.site-header__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 600;
}

.site-header__role {
  font-size: 0.7rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--gray-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--navy); }

.site-nav__cta {
  background: var(--navy);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.site-nav__cta:hover { background: var(--navy-deep); }

.site-nav__toggle { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--divider);
    gap: 0.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.6rem 0; }
  .site-nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
  }
  .site-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-lg) 1.5rem;
  border-bottom: 6px solid var(--gold);
  position: relative;
}

.hero__container {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero__kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
}

.hero__title {
  color: var(--cream);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin: 0 0 1.5rem;
  line-height: 1.05;
}

.hero__title .accent {
  color: var(--gold);
  font-style: italic;
}

.hero__deck {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(245, 245, 240, 0.85);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__credentials {
  font-size: 0.82rem;
  color: rgba(245, 245, 240, 0.6);
  letter-spacing: 0.04em;
}

.hero__image img {
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .hero__container { grid-template-columns: 1fr; }
  .hero__image { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   BOTÕES
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy) !important;
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--cream) !important;
  border-color: rgba(245, 245, 240, 0.3);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}

.btn--large {
  padding: 1.2rem 2.4rem;
  font-size: 1.05rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: var(--space-xl) 1.5rem;
}

.section--alt {
  background: var(--cream-soft);
}

.section__container {
  max-width: var(--container-wide);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
  max-width: 720px;
}

.section__cta {
  text-align: center;
  margin-top: var(--space-md);
}

.section__cta .btn--ghost {
  color: var(--navy) !important;
  border-color: var(--gray-light);
}

.section__cta .btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dim) !important;
}

/* ============================================================
   GRID DE DIFERENCIAIS (home)
   ============================================================ */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.diff-card {
  background: white;
  padding: 2.2rem;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(15, 43, 69, 0.04);
}

.diff-card__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.diff-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.diff-card p {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin: 0;
}

/* ============================================================
   ÁREAS DE ATUAÇÃO (home)
   ============================================================ */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--gray-light);
  text-decoration: none !important;
  display: block;
  transition: all 0.25s;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 43, 69, 0.08);
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin-bottom: 1.4rem;
}

.service-card__link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============================================================
   POSTS GRID (home + página /blog)
   ============================================================ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background: white;
  padding: 2rem;
  border-radius: 4px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(15, 43, 69, 0.04);
}

.post-card__date {
  font-size: 0.78rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.post-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.post-card__title a {
  text-decoration: none;
  color: var(--navy);
}

.post-card__title a:hover { color: var(--gold-dim); }

.post-card__description {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin-bottom: 1.2rem;
}

.post-card__link {
  font-size: 0.88rem;
  color: var(--gold-dim);
  text-decoration: none;
  font-weight: 500;
}

/* ============================================================
   CTA FINAL (home)
   ============================================================ */

.cta-final {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-xl) 1.5rem;
  text-align: center;
}

.cta-final__container {
  max-width: 720px;
  margin: 0 auto;
}

.cta-final h2 {
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.cta-final p {
  color: rgba(245, 245, 240, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.cta-final__note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(245, 245, 240, 0.55);
}

/* ============================================================
   POST (artigos individuais)
   ============================================================ */

.post {
  padding: var(--space-md) 0 var(--space-lg);
}

.post__container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.post__container--narrow {
  max-width: var(--container-narrow);
}

.post__header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--divider);
  margin-bottom: var(--space-md);
}

.post__breadcrumb {
  font-size: 0.82rem;
  color: var(--gray-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}

.post__breadcrumb a {
  text-decoration: none;
  color: var(--gold-dim);
}

.post__title {
  margin-bottom: 1rem;
}

.post__meta {
  font-size: 0.88rem;
  color: var(--gray-mute);
  display: flex;
  gap: 0.8rem;
}

.post__body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post__body h2 {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.post__body h3 {
  margin-top: 1.8rem;
  font-size: 1.3rem;
  color: var(--navy);
}

.post__body ul, .post__body ol {
  padding-left: 1.6em;
}

.post__body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.4em 0 0.4em 1.4em;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--gray-text);
  background: var(--cream-soft);
  padding-top: 1em;
  padding-bottom: 1em;
}

.post__footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--divider);
}

.post__signature {
  background: var(--cream-soft);
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  margin-bottom: var(--space-md);
}

.post__signature-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.post__signature-credentials {
  font-size: 0.92rem;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.6;
}

.post__cta {
  background: var(--navy);
  color: var(--cream);
  padding: 2.2rem;
  border-radius: 4px;
  text-align: center;
  margin-bottom: var(--space-md);
}

.post__cta p {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
}

.post__legal {
  font-size: 0.82rem;
  color: var(--gray-mute);
  font-style: italic;
  text-align: center;
}

/* ============================================================
   PAGE (páginas estáticas)
   ============================================================ */

.page {
  padding: 0 0 var(--space-lg);
}

.page__header {
  background: var(--cream-soft);
  padding: var(--space-lg) 1.5rem;
  border-bottom: 1px solid var(--divider);
  margin-bottom: var(--space-md);
}

.page__container {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page__title {
  margin: 0 0 0.6rem;
}

.page__subtitle {
  font-size: 1.15rem;
  color: var(--gray-mute);
  margin: 0;
}

.page__body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.page__body h2 {
  margin-top: 2.4rem;
  font-size: 1.8rem;
}

/* ============================================================
   ÂNCORA INSTITUCIONAL BAROS (final da home)
   ============================================================ */

.institutional {
  background: var(--cream-soft);
  padding: var(--space-lg) 1.5rem;
  text-align: center;
  border-top: 1px solid var(--divider);
}

.institutional__container {
  max-width: 720px;
  margin: 0 auto;
}

.institutional__kicker {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-mute);
  margin: 0 0 1.4rem;
  font-weight: 500;
}

.institutional__logo {
  max-width: 320px;
  height: auto;
  margin: 0 auto 1.6rem;
  display: block;
}

.institutional__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: var(--navy);
  margin: 0 0 1.2rem;
  line-height: 1.4;
}

.institutional__address {
  font-size: 0.9rem;
  color: var(--gray-mute);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .institutional__logo {
    max-width: 240px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 245, 240, 0.7);
  padding: var(--space-lg) 1.5rem var(--space-md);
}

.site-footer__container {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(245, 245, 240, 0.1);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.site-footer__heading {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.site-footer__text {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}

.site-footer__text a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer__text a:hover { color: var(--gold); }

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li { margin-bottom: 0.4rem; }

.site-footer__links a {
  color: rgba(245, 245, 240, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer__links a:hover { color: var(--gold); }

.site-footer__legal {
  max-width: var(--container-wide);
  margin: var(--space-md) auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245, 245, 240, 0.4);
  line-height: 1.6;
}

.site-footer__legal p { margin: 0 0 0.4rem; }
