/*
Theme Name: PH+ Corretora
Theme URI: https://phmais.com.br
Description: Tema personalizado PH+ Corretora — Planos de saúde Campinas/SP
Version: 1.0
Author: PH+ Corretora
Text Domain: phmais
*/

/* PH+ Corretora — Design System */
:root {
  --bg: #F6F3EE;
  --bg-alt: #EEEAE2;
  --ink: #0E1A1F;
  --ink-2: #2A3640;
  --ink-3: #5C6670;
  --ink-4: #8B939B;
  --line: #D9D3C7;
  --line-2: #C7BFAE;
  --accent: #14524A;
  --accent-2: #1E6B60;
  --accent-soft: #DCE8E2;
  --warm: #C46A3D;
  --white: #FFFFFF;
  --shadow: 0 1px 2px rgba(14,26,31,.04), 0 8px 32px rgba(14,26,31,.06);
  --radius: 4px;
  --radius-lg: 12px;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* Typography */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}
.eyebrow.no-line::before { display: none; }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.h-display em { font-style: italic; color: var(--accent); }
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h1 em { font-style: italic; color: var(--accent); }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.h2 em { font-style: italic; color: var(--accent); }
.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}
.body-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav-logo svg { height: 26px; width: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--ink); }
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 49;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 80px 32px 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding: 8px 0;
  transition: color .2s;
  font-style: italic;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .mobile-nav-cta {
  margin-top: 32px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #0b7a5d; color: white; }
.btn-whatsapp:hover { background: #0a6a51; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 500;
}
.field input, .field select {
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px;
  border: 1px solid var(--line-2);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20,82,74,.12);
}

/* Sections */
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
}
.footer a { color: #B5BCC4; transition: color .2s; }
.footer a:hover { color: var(--bg); }
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8B939B;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2A3640;
}
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: #8B939B;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Blog ────────────────────────────────────────────────────── */
.blog-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 72px 0;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid var(--accent);
  padding-top: 24px;
}
.post-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  display: flex;
  gap: 16px;
}
.post-card-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .2s;
}
.post-card:hover .post-card-title { color: var(--accent); }
.post-card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
}
.post-card-link {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

/* Single post */
.post-hero { padding: 72px 0 48px; }
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 96px;
}
.post-body h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 48px 0 16px; letter-spacing: -0.01em; }
.post-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 36px 0 12px; }
.post-body p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 24px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 24px; }
.post-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 8px; }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body img { border-radius: var(--radius); margin: 32px 0; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body blockquote p { color: var(--ink); font-family: var(--serif); font-size: 20px; font-style: italic; margin: 0; }

.post-nav {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.post-nav a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 96px;
  font-family: var(--mono);
  font-size: 13px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink-2);
  transition: all .2s;
}
.pagination a:hover, .pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Page content */
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.page-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 32px 96px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.page-body h2 { font-family: var(--serif); font-size: 36px; font-weight: 400; margin: 48px 0 16px; color: var(--ink); letter-spacing: -0.01em; }
.page-body h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 32px 0 12px; color: var(--ink); }
.page-body p { margin-bottom: 20px; }
.page-body a { color: var(--accent); text-decoration: underline; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 20px; }
.page-body li { margin-bottom: 8px; }
