/* ============================================================
   UI Kit — website-specific styles
   Loaded after colors_and_type.css
   ============================================================ */

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
section { padding: clamp(64px, 8vw, 128px) 0; }
section.tight { padding: clamp(48px, 6vw, 96px) 0; }

/* ---- Header ---- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); background: rgba(20, 16, 12, 0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 300ms var(--ease-out); }
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo img { height: 44px; display: block; }
.header-nav { display: flex; gap: 28px; align-items: center; }
.header-nav a { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink-900); text-decoration: none; padding: 8px 0; position: relative; opacity: 0.85; }
.header-nav a:hover { color: var(--terra-300); opacity: 1; }
.header-nav a.active { color: var(--terra-400); opacity: 1; }
.header-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--terra-500); border-radius: 2px; }

/* ---- Buttons ---- */
.btn { font-family: var(--font-sans); font-size: 16px; font-weight: 600; border-radius: 999px; padding: 12px 22px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 200ms var(--ease-out); text-decoration: none; line-height: 1; }
.btn--primary { background: var(--terra-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terra-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--bone); color: var(--ink-900); border-color: var(--line); }
.btn--secondary:hover { background: var(--bone-2); color: var(--terra-300); border-color: var(--terra-700); }
.btn--ghost { background: transparent; color: var(--terra-400); }
.btn--ghost:hover { background: var(--bone); color: var(--terra-300); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }
.btn--lg { font-size: 18px; padding: 16px 28px; }
.btn--sm { font-size: 14px; padding: 8px 16px; }

/* ---- Hero ---- */
.hero { padding-top: calc(var(--header-h) + 48px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero-photo { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--terra-800); border-radius: 24px; z-index: -1; opacity: 0.5; }

/* ---- Stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat .n { font-family: var(--font-serif); font-size: 44px; line-height: 1; font-weight: 600; color: var(--terra-700); margin-bottom: 4px; letter-spacing: -0.02em; }
.stat .l { font-family: var(--font-sans); font-size: 14px; color: var(--ink-500); line-height: 1.3; }

/* ---- Especialidades cards ---- */
.especialidades-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.esp-card { background: var(--bone); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-sm); transition: all 250ms var(--ease-out); }
.esp-card:hover { box-shadow: var(--shadow-md); border-color: var(--terra-700); }
.esp-card .kicker { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--terra-400); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.esp-card h3 { font-family: var(--font-serif); font-size: 32px; margin: 0 0 14px 0; font-weight: 600; color: var(--ink-900); letter-spacing: -0.02em; }
.esp-card .desc { color: var(--ink-500); font-size: 17px; margin-bottom: 20px; line-height: 1.5; }
.esp-card ul { list-style: none; padding: 0; margin: 0 0 24px 0; }
.esp-card ul li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; display: flex; align-items: center; gap: 10px; color: var(--ink-900); }
.esp-card ul li::before { content: ""; width: 6px; height: 6px; background: var(--terra-500); border-radius: 999px; flex: none; }

/* ---- Patologias grid ---- */
.patologias-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pat-card { background: var(--bone); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); transition: all 250ms var(--ease-out); cursor: pointer; text-decoration: none; color: inherit; display: block; }
.pat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--terra-700); }
.pat-card .ic { width: 44px; height: 44px; border-radius: 999px; background: var(--terra-100); color: var(--terra-700); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.pat-card h4 { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--ink-900); margin: 0 0 6px 0; letter-spacing: -0.01em; line-height: 1.2; }
.pat-card p { font-size: 14px; color: var(--ink-500); margin: 0; line-height: 1.5; }

/* ---- Sobre ---- */
.sobre-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.sobre-photo { aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; }
.sobre-photo img { width: 100%; height: 100%; object-fit: cover; }
.valores-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.valor { padding: 18px 20px; background: var(--bone); border: 1px solid var(--line); border-radius: 12px; }
.valor h5 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--terra-400); margin: 0 0 4px 0; text-transform: uppercase; letter-spacing: 0.08em; }
.valor p { font-size: 15px; color: var(--ink-900); margin: 0; line-height: 1.4; }

/* ---- Depoimentos ---- */
.depoimentos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dep-card { background: var(--bone); border-radius: 20px; padding: 28px; border: 1px solid var(--line); }
.stars { color: var(--terra-500); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.dep-card blockquote { font-family: var(--font-serif); font-size: 19px; line-height: 1.4; color: var(--ink-900); margin: 0 0 18px 0; font-style: italic; letter-spacing: -0.005em; }
.dep-card .who { font-family: var(--font-sans); font-size: 14px; color: var(--ink-500); font-weight: 500; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--bone); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: all 250ms var(--ease-out); cursor: pointer; }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-thumb { aspect-ratio: 16/10; background: var(--terra-900); position: relative; overflow: hidden; }
.blog-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--terra-800), var(--terra-500)); opacity: 0.7; }
.blog-card .body { padding: 20px 22px 24px; }
.blog-card .cat { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--terra-700); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.blog-card h4 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--ink-900); margin: 0 0 10px 0; letter-spacing: -0.01em; }
.blog-card p { font-size: 15px; color: var(--ink-500); margin: 0; line-height: 1.5; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 22px 0; cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 18px; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-serif); font-size: 24px; color: var(--terra-400); transition: transform 200ms var(--ease-out); flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 0 22px 0; font-size: 17px; color: var(--ink-500); line-height: 1.6; }

/* ---- Contact form ---- */
.form-card { background: var(--bone); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; gap: 20px; margin-bottom: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field label { display: block; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--font-sans); font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); color: var(--ink-900); box-sizing: border-box; transition: border-color 200ms; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--terra-500); outline-offset: 1px; border-color: var(--terra-500); background: var(--bone); }
.field textarea { min-height: 100px; resize: vertical; font-family: var(--font-sans); }

/* ---- Footer ---- */
.footer { background: #0a0805; color: var(--ink-900); padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 48px; }
.footer h5 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--terra-400); margin: 0 0 16px 0; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 5px 0; }
.footer ul li a { color: var(--ink-900); opacity: 0.75; font-size: 15px; text-decoration: none; }
.footer ul li a:hover { opacity: 1; color: var(--terra-300); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14px; opacity: 0.55; display: flex; justify-content: space-between; gap: 20px; }
.footer-desc { color: var(--ink-900); opacity: 0.7; font-size: 15px; line-height: 1.6; margin-top: 14px; max-width: 320px; }

/* ---- WhatsApp Float ---- */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 999px; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.4); cursor: pointer; transition: transform 200ms var(--ease-out); }
.wa-float:hover { transform: scale(1.08); }
.wa-float img { width: 36px; height: 36px; }

/* ---- Backgrounds for sections ---- */
.bg-cream { background: var(--cream); }
.bg-bone { background: var(--bone); }
.bg-terra-50 { background: linear-gradient(180deg, var(--bone) 0%, var(--cream) 100%); }

/* ---- CTA Banner ---- */
.cta-banner { background: var(--terra-500); color: #fff; border-radius: 28px; padding: 56px clamp(32px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-banner h2 { color: #fff; font-family: var(--font-serif); margin: 0 0 8px 0; }
.cta-banner h2 em { color: var(--terra-100); font-style: italic; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; font-size: 18px; }
.cta-banner .btn--primary { background: var(--cream); color: var(--terra-700); }
.cta-banner .btn--primary:hover { background: var(--ink-900); color: var(--terra-800); }

/* ---- Breadcrumb (patologia detail) ---- */
.breadcrumb { font-size: 14px; color: var(--ink-500); margin-bottom: 24px; }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--terra-700); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ---- Simulator wizard ---- */
.wizard { max-width: 720px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 32px; }
.wizard-step { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.wizard-step.active { background: var(--terra-500); }
.wizard-step.done { background: var(--terra-300); }

/* ---- Section heading block ---- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin: 0 0 14px 0; }
.section-head p { color: var(--ink-500); font-size: 18px; line-height: 1.55; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .especialidades-grid, .depoimentos-grid, .blog-grid { grid-template-columns: 1fr; }
  .patologias-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .header-nav { display: none; }
  /* Patologia detail: stack aside below content */
  .patologia-detail-grid { grid-template-columns: 1fr !important; }
  .patologia-detail-grid aside { position: static !important; }
}
