/* Shared styles for the /guides content cluster.
   Self-contained, brand-faithful subset of the main site's design tokens
   (landing/src/styles.css) so guide pages match the landing page without
   depending on the hashed Vite bundle. */

:root {
  --bg: #f7f3ec;
  --bg-2: #efe8db;
  --surface: #ffffff;
  --ink: #1a1d24;
  --ink-soft: #5b6373;
  --ink-faint: #8a93a3;
  --accent: #b88a3e;
  --accent-strong: #8e6824;
  --accent-soft: #e8d9bf;
  --whatsapp: #25d366;
  --whatsapp-strong: #1eb558;
  --rule: #e3dccf;
  --shadow-sm: 0 1px 2px rgba(26, 29, 36, 0.04), 0 2px 6px rgba(26, 29, 36, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 29, 36, 0.06), 0 12px 32px rgba(26, 29, 36, 0.08);
  --shadow-lg: 0 10px 30px rgba(26, 29, 36, 0.10), 0 30px 80px rgba(26, 29, 36, 0.12);
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: "Rubik", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3 {
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: clamp(20px, 4vw, 40px);
  margin-inline: auto;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; opacity: 0.9; }
.wordmark img { height: 44px; width: auto; margin-inline-start: -6px; }
.wordmark-text { display: inline-flex; flex-direction: column; gap: 2px; }
.wordmark-brand {
  font-weight: 700; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.wordmark-tagline { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-strong); box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }
.btn-ghost { border-color: var(--rule); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- breadcrumb ---------- */
.crumbs {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-top: 28px;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-strong); }
.crumbs span { color: var(--ink-faint); margin-inline: 6px; }

/* ---------- article ---------- */
.article { padding-block: 20px 40px; }
.article-header { max-width: 760px; margin-bottom: 8px; }
.eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-strong);
  display: block; margin-bottom: 14px;
}
.article h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.article .lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: 8px;
}
.prose { max-width: 720px; margin-top: 12px; }
.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: 84px;
}
.prose h3 {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
}
.prose p { margin: 0 0 18px; color: #33383f; }
.prose ul, .prose ol { margin: 0 0 22px; padding-inline-start: 22px; color: #33383f; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { font-weight: 600; }

/* callout */
.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.callout p { margin: 0; color: var(--ink-soft); }
.callout strong { color: var(--ink); }

/* before/after comparison */
.ba-compare {
  margin: 32px 0;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ba-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #1a1d24;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  background: rgba(26, 29, 36, 0.78);
  color: #fff;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.ba-tag-after { background: rgba(184, 138, 62, 0.92); }
.ba-caption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 48px;
}
.cta-inner {
  padding-block: clamp(40px, 6vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 20ch; }
.cta p { color: var(--ink-soft); max-width: 52ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.cta-note { font-size: 13.5px; color: var(--ink-faint); margin-top: 4px; }

/* ---------- guides hub ---------- */
.hub-hero { padding-block: 40px 8px; max-width: 760px; }
.hub-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 18px; }
.hub-hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); }
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-block: 36px 20px;
}
@media (min-width: 720px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); text-decoration: none; }
.hub-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: #e6d4b3; }
.hub-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hub-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.hub-card h2 { font-size: 20px; letter-spacing: -0.01em; }
.hub-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.hub-card-more { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent-strong); }

/* related links */
.related { margin: 40px 0 0; }
.related h2 { font-size: 22px; margin-bottom: 16px; }
.related-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-list { grid-template-columns: 1fr 1fr; } }
.related-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.related-item:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.related-item span { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #d8dbe2; padding-block: 48px 32px; margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer .wordmark { color: #fff; }
.footer .wordmark-tagline { color: #fff; }
.footer-tag { font-size: 13.5px; color: #a4abba; max-width: 40ch; line-height: 1.6; margin-top: 12px; }
.footer-site { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent-soft); }
.footer-site:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: #c8cdd6; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: #8a93a3; }

@media (max-width: 719px) {
  .ba-pair { grid-template-columns: 1fr; }
  .wordmark-brand { display: none; }
}
