/* =============================================================================
   Medical Clinic — Ghost theme
   Hand-authored CSS (no build step). Design tokens via custom properties.
   Aesthetic: editorial, premium, minimal. Soft neutral palette, large type,
   generous whitespace.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — clean clinical: white surfaces, cool neutrals, one trustworthy
     medical-blue accent (overridable via the theme's accent_color setting). */
  --accent: #2d7d84;
  --accent-ink: #1d565b;
  --accent-tint: #e5f1f2;
  --whatsapp: #25d366;
  --whatsapp-ink: #1da851;

  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --surface: #ffffff;
  --ink: #16202b;
  --ink-soft: #47545f;
  --ink-faint: #78858f;
  --line: #e3e9ef;
  --line-strong: #cfd8e0;

  /* Typography — a single clean sans (Inter) for a professional, legible,
     clinical feel. Falls back through Ghost's custom-font settings. */
  --font-display: var(--gh-font-heading, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  --font-body: var(--gh-font-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);

  /* Fluid type scale — restrained / "zoomed out" so it reads as a clinic,
     not a magazine. */
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.12vw, 1.02rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.3rem, 1.18rem + 0.5vw, 1.6rem);
  --step-3: clamp(1.55rem, 1.35rem + 0.9vw, 2.1rem);
  --step-4: clamp(1.85rem, 1.55rem + 1.4vw, 2.7rem);
  --step-5: clamp(2.1rem, 1.7rem + 2vw, 3.3rem);

  /* Spacing & layout — tighter, more structured. */
  --space-section: clamp(3rem, 2.4rem + 3vw, 5.25rem);
  --container: 1180px;
  --container-narrow: 740px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 43, 0.05), 0 1px 3px rgba(22, 32, 43, 0.05);
  --shadow-md: 0 6px 20px rgba(22, 32, 43, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 32, 43, 0.10);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }
a { color: var(--accent-ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--bg-alt); padding: 0.1em 0.4em; border-radius: 5px; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* -----------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 0.6rem + 2.5vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section--alt { background: var(--bg-alt); }
.section--accent { background: var(--accent-tint); }

.section__header { max-width: 640px; margin: 0 auto clamp(2.5rem, 4vw, 4rem); text-align: center; }
.section__header--left { margin-inline: 0; text-align: left; }
.section__title { font-size: var(--step-3); }
.section__title--sm { font-size: var(--step-2); }
.section__lead { font-size: var(--step-1); color: var(--ink-soft); margin: 0; }
.section__empty { color: var(--ink-faint); text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.eyebrow a { color: inherit; }

/* -----------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.85em 1.5em;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--lg { padding: 1.05em 2em; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* -----------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 95%, transparent); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }

.site-brand { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
.site-brand:hover { color: var(--ink); }
.site-brand__logo { max-height: 40px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.primary-nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.primary-nav__link { color: var(--ink-soft); font-weight: 500; font-size: var(--step-0); }
.primary-nav__link:hover { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.1rem, 0.6rem + 2.5vw, 2.5rem) 1.75rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .is-nav-open .primary-nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__item { border-bottom: 1px solid var(--line); }
  .primary-nav__link { display: block; padding: 0.9rem 0; font-size: var(--step-1); }
  .primary-nav__cta { margin-top: 1.25rem; width: 100%; }
  .is-nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .is-nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* -----------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(440px, 62vh, 640px); overflow: hidden; background: var(--accent-ink); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-image { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(15,52,55,0.9) 0%, rgba(15,52,55,0.62) 48%, rgba(15,52,55,0.22) 100%); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 5vw, 4.5rem); width: 100%; }
.hero__content { max-width: 650px; color: #fff; }
.hero__headline { font-size: var(--step-5); font-weight: 700; color: #fff; max-width: 18ch; letter-spacing: -0.025em; line-height: 1.1; }
.hero__subtitle { font-size: var(--step-1); color: rgba(255,255,255,0.92); max-width: 52ch; margin: 1rem 0 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero__inner { padding-block: 3rem; }
}

/* -----------------------------------------------------------------------------
   7. Corpo clínico (team grid — all doctors)
   -------------------------------------------------------------------------- */
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.doctor-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: var(--ink); }
.doctor-card__media { aspect-ratio: 1 / 1; background: var(--bg-alt); overflow: hidden; }
.doctor-card__image { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__image--placeholder { object-fit: contain; padding: 0; opacity: 0.9; }
.doctor-card__body { padding: 0.9rem 1rem 1.1rem; }
.doctor-card__name { font-size: var(--step-1); margin: 0 0 0.2rem; line-height: 1.25; }
.doctor-card__specialty { font-size: var(--step--1); color: var(--accent); font-weight: 600; margin: 0; }

/* -----------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }

.service-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.service-card__media { aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.service-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.service-card:hover .service-card__image { transform: scale(1.04); }
.service-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-tint), var(--bg-alt)); }
.service-card__body { padding: clamp(1.25rem, 2vw, 1.75rem); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.service-card__title { font-size: var(--step-1); margin: 0; }
.service-card__excerpt { color: var(--ink-soft); font-size: var(--step--1); margin: 0; flex: 1; }
.service-card__link { font-weight: 600; color: var(--accent); font-size: var(--step--1); margin-top: 0.5rem; }

/* -----------------------------------------------------------------------------
   9. Why choose us
   -------------------------------------------------------------------------- */
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.why__item { text-align: left; }
.why__icon { width: 48px; height: 48px; margin-bottom: 1rem; object-fit: contain; }
.why__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.why__text { color: var(--ink-soft); font-size: var(--step-0); margin: 0; }

/* -----------------------------------------------------------------------------
   10. Testimonials
   -------------------------------------------------------------------------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.testimonial__quote { font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; color: var(--ink-soft); margin: 0; font-weight: 400; }
.testimonial::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 2.5rem; line-height: 0.6; color: var(--accent); opacity: 0.35; margin-bottom: 0.25rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial__name { font-weight: 600; font-size: var(--step--1); color: var(--ink-soft); }

/* -----------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq__inner { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item:first-child { border-top: 1px solid var(--line-strong); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform var(--transition); }
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__answer { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 60ch; }
.faq__answer p:last-child { margin-bottom: 0; }

@media (max-width: 760px) { .faq__inner { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.contact__list { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 1.1rem; }
.contact__item { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: baseline; padding-bottom: 1.1rem; border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.contact__item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.contact__value { font-size: var(--step-1); color: var(--ink); }
a.contact__value:hover { color: var(--accent-ink); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--surface); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cfd3d0; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(3rem, 5vw, 4.5rem); }
.site-footer .site-brand, .site-footer .site-brand__text { color: #fff; }
.site-footer__tagline { color: #9aa09c; margin-top: 0.75rem; max-width: 32ch; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer__nav a { color: #cfd3d0; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__contact { display: grid; gap: 0.5rem; align-content: start; }
.site-footer__contact a, .site-footer__contact span { color: #cfd3d0; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__social { display: flex; gap: 1rem; margin-top: 0.75rem; }
.site-footer__social a { color: #fff; font-weight: 600; font-size: var(--step--1); }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem; }
.site-footer__legal p { margin: 0; font-size: var(--step--1); color: #8b918d; }
.site-footer__disclaimer { max-width: 52ch; }

@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   14. Interior pages (About, Services single, Contact, Privacy, etc.)
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(1.5rem, 3vw, 3rem); text-align: center; }
.page-hero--service, .page-hero--blog { text-align: center; }
.page-hero__title { font-size: var(--step-4); max-width: 18ch; margin-inline: auto; }
.page-hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 56ch; margin: 1rem auto 0; }

.page__feature-image { width: 100%; max-width: 1100px; margin: 2rem auto 0; border-radius: var(--radius-lg); aspect-ratio: 2 / 1; object-fit: cover; box-shadow: var(--shadow-md); background: var(--bg-alt); }
.page__body { padding-block: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.page__body .prose { max-width: var(--container-narrow); margin-inline: auto; width: 100%; }

.page__cta { max-width: var(--container-narrow); margin-inline: auto; width: 100%; background: var(--accent-tint); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); text-align: center; }
.page__cta h2 { font-size: var(--step-2); }
.page__cta p { color: var(--ink-soft); }

/* -----------------------------------------------------------------------------
   15. Prose (page + post content rendered by Ghost)
   -------------------------------------------------------------------------- */
.prose { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.75; }
.prose > * { margin-bottom: 1.4rem; }
.prose h2 { font-size: var(--step-2); color: var(--ink); margin-top: 2.5rem; }
.prose h3 { font-size: var(--step-1); color: var(--ink); margin-top: 2rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose img, .prose iframe, .prose video { border-radius: var(--radius); }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: var(--step--1); color: var(--ink-faint); text-align: center; margin-top: 0.6rem; }
.prose blockquote { margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--accent); font-family: var(--font-body); font-size: var(--step-1); color: var(--ink); font-style: normal; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
/* Ghost (Koenig) content card widths. The post body is constrained to a narrow
   measure; "wide" and "full" cards break out of it for emphasis. */
.gh-content .kg-width-wide,
.prose .kg-width-wide {
  position: relative;
  width: min(1040px, 92vw);
  margin-inline: calc(50% - min(520px, 46vw));
}
.gh-content .kg-width-full,
.prose .kg-width-full {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
  border-radius: 0;
}
.gh-content .kg-width-full img,
.prose .kg-width-full img { width: 100%; border-radius: 0; }
.gh-content .kg-card,
.prose .kg-card { margin-block: 2rem; }

/* -----------------------------------------------------------------------------
   16. Blog
   -------------------------------------------------------------------------- */
.page-hero--blog { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.post-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: var(--space-section); }

.post-card { display: flex; }
.post-card__link { display: flex; flex-direction: column; width: 100%; color: var(--ink); }
.post-card__link:hover { color: var(--ink); }
.post-card__media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.post-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.post-card__link:hover .post-card__image { transform: scale(1.04); }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-tint), var(--bg-alt)); }
.post-card__body { padding-top: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card__tag { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.post-card__title { font-size: var(--step-1); margin: 0; }
.post-card__excerpt { color: var(--ink-soft); font-size: var(--step-0); margin: 0; }
.post-card__meta { display: flex; gap: 1rem; font-size: var(--step--1); color: var(--ink-faint); margin-top: 0.4rem; }

/* Single post */
.post-hero { text-align: center; padding-block: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.post-hero__tag { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.post-hero__title { font-size: var(--step-4); margin: 0.75rem 0; }
.post-hero__excerpt { font-size: var(--step-1); color: var(--ink-soft); max-width: 54ch; margin: 0 auto 1.25rem; }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; font-size: var(--step--1); color: var(--ink-faint); }
.post-hero__author { font-weight: 600; color: var(--ink-soft); }
.post__feature-image { margin-block: clamp(1.5rem, 3vw, 2.5rem); }
.post__feature-image img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 2 / 1; object-fit: cover; background: var(--bg-alt); }
.post__feature-image figcaption { text-align: center; font-size: var(--step--1); color: var(--ink-faint); margin-top: 0.6rem; }
.post__body { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.post__footer { padding-block: 2rem 3rem; border-top: 1px solid var(--line); margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.post__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post__tag { font-size: var(--step--1); background: var(--bg-alt); padding: 0.35rem 0.85rem; border-radius: 100px; color: var(--ink-soft); }
.post__back { font-weight: 600; }

/* Pagination (Ghost default markup) */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding-bottom: var(--space-section); font-size: var(--step-0); }
.pagination .page-number { color: var(--ink-faint); }
.pagination a { font-weight: 600; }

/* -----------------------------------------------------------------------------
   17. Error page
   -------------------------------------------------------------------------- */
.error { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error__code { font-family: var(--font-display); font-size: var(--step-5); color: var(--accent); margin: 0; line-height: 1; }
.error__title { font-size: var(--step-3); }
.error__lead { color: var(--ink-soft); font-size: var(--step-1); max-width: 46ch; margin-inline: auto; }
.error__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.5rem; }

/* -----------------------------------------------------------------------------
   19. Top utility bar
   -------------------------------------------------------------------------- */
.topbar { background: var(--accent-ink); color: rgba(255,255,255,0.92); font-size: var(--step--1); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar__hours { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 3px rgba(37,211,102,0.25); }
.topbar__links { display: flex; align-items: center; gap: 1.25rem; }
.topbar__link { color: #fff; font-weight: 500; }
.topbar__link:hover { color: #fff; text-decoration: underline; }
@media (max-width: 600px) { .topbar__hours { display: none; } .topbar__inner { justify-content: center; } }

/* -----------------------------------------------------------------------------
   20. Button variants (WhatsApp + hero ghost)
   -------------------------------------------------------------------------- */
.btn__icon { flex: none; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--whatsapp-ink); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--hero-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--hero-ghost:hover { background: #fff; color: var(--accent-ink); border-color: #fff; transform: translateY(-2px); }

/* -----------------------------------------------------------------------------
   21. Quem somos + stats band
   -------------------------------------------------------------------------- */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.about__image { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.about__placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent-tint), var(--bg-alt)); }
.about__body { color: var(--ink-soft); font-size: var(--step-0); margin-bottom: 1.5rem; }
.about__body p:last-child { margin-bottom: 1.25rem; }
@media (max-width: 860px) { .about__inner { grid-template-columns: 1fr; } .about__media { max-width: 540px; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--accent); border-radius: var(--radius-lg); }
.stats__item { text-align: center; color: #fff; padding: 0.5rem; }
.stats__value { display: block; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stats__label { display: block; font-size: var(--step--1); color: rgba(255,255,255,0.88); margin-top: 0.4rem; }

/* -----------------------------------------------------------------------------
   22. Service category cards (photo)
   -------------------------------------------------------------------------- */
.section--accent-bg { background: var(--accent-ink); }
.section__header--light .section__title { color: #fff; }
.section__header--light .section__lead { color: rgba(255,255,255,0.85); }
.eyebrow--light { color: #9ec9f0; }
.categories__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.category-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; min-height: 330px; color: #fff; background: var(--accent); box-shadow: var(--shadow-md); }
.category-card:hover { color: #fff; }
.category-card__media { position: absolute; inset: 0; }
.category-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.category-card:hover .category-card__image { transform: scale(1.05); }
.category-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent), var(--accent-ink)); }
.category-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,48,51,0.93) 8%, rgba(13,48,51,0.42) 58%, rgba(13,48,51,0.12) 100%); }
.category-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 330px; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.category-card__title { color: #fff; font-size: var(--step-2); margin: 0 0 0.4rem; }
.category-card__excerpt { color: rgba(255,255,255,0.88); font-size: var(--step--1); margin: 0 0 0.75rem; }
.category-card__link { font-weight: 600; color: #fff; font-size: var(--step--1); }

/* -----------------------------------------------------------------------------
   23. Convênios (insurance logos)
   -------------------------------------------------------------------------- */
.convenios__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.convenio { display: flex; align-items: center; justify-content: center; min-height: 90px; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.convenio__logo { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter var(--transition), opacity var(--transition); }
.convenio:hover .convenio__logo { filter: grayscale(0); opacity: 1; }
.convenio__name { font-weight: 600; color: var(--ink-soft); font-size: var(--step--1); }

/* -----------------------------------------------------------------------------
   24. Floating WhatsApp button
   -------------------------------------------------------------------------- */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,0.45); transition: transform var(--transition), box-shadow var(--transition); }
.wa-float:hover { transform: translateY(-3px) scale(1.05); color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,0.55); }
