/* FreeLaw.ca — Main Stylesheet
   Design: Clean, professional, light background, trust-focused
   Palette: White background, deep navy accents, green CTA
*/

/* Native hidden attribute */
[hidden] { display: none !important; }

:root {
  --navy: #1b3a2d;
  --navy-mid: #245c42;
  --navy-light: #2e7d52;
  --accent: #c47f17;
  --accent-hover: #a86b10;
  --green: #2e7d52;
  --green-hover: #245c42;
  --amber: #92400e;
  --amber-bg: #fffbeb;
  --amber-border: #fcd34d;
  --text: #1c2b22;
  --text-mid: #3d5247;
  --text-muted: #6b7c72;
  --border: #d8e4dc;
  --border-mid: #c2d4c9;
  --bg: #f9faf7;
  --bg-soft: #f0f4f0;
  --bg-card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --container: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy);
  padding: 10px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-align: center;
}
.topbar a {
  color: #f5c65d;
  font-weight: 600;
}
.topbar a:hover { color: #fff; }

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1b3a2d 0%, #2e7d52 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.logo-text span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-size: 14px;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--green-hover) !important;
  text-decoration: none !important;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1b3a2d 0%, #245c42 50%, #2e7d52 100%);
  padding: 72px 0 60px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196,127,23,0.18), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(196,127,23,0.20);
  border: 1px solid rgba(196,127,23,0.45);
  color: #f5c65d;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero h1 span { color: #f5c65d; }

.hero-sub {
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

.hero-search {
  max-width: 560px;
  margin: 0 auto 24px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
}

.hero-search input::placeholder { color: rgba(255,255,255,0.55); }

.hero-search input:focus {
  border-color: rgba(245,198,93,0.7);
  background: rgba(255,255,255,0.14);
}

.hero-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.55);
  pointer-events: none;
  font-size: 18px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.hero-stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}

.trust-item .icon {
  font-size: 18px;
}

/* ===== CATEGORY FILTER ===== */
.filters-section {
  padding: 28px 0 0;
}

.filters-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  appearance: none;
  border: 1.5px solid var(--border-mid);
  background: var(--bg);
  color: var(--text-mid);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(46,125,82,0.06);
  text-decoration: none;
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ===== DOCUMENT GRID ===== */
.docs-section {
  padding: 24px 0 72px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.section-count {
  font-size: 14px;
  color: var(--text-muted);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1000px) {
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.doc-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.doc-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.doc-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.icon-affidavit { background: #eff6ff; }
.icon-family { background: #fdf4ff; }
.icon-immigration { background: #f0fdf4; }
.icon-estates { background: #fff7ed; }
.icon-business { background: #f0f9ff; }
.icon-realestate { background: #fefce8; }
.icon-default { background: #f8fafc; }

.doc-card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.doc-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.doc-card-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0 0 16px;
  flex-grow: 1;
  line-height: 1.5;
}

.doc-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.doc-card-action::after {
  content: '→';
  transition: transform 0.15s;
}

.doc-card:hover .doc-card-action::after {
  transform: translateX(3px);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 48px;
  color: #fff;
  flex-wrap: wrap;
}

.cta-banner-text h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.cta-banner-text p {
  margin: 0;
  color: rgba(255,255,255,0.80);
  font-size: 15px;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--green-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: all 0.15s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ===== DOCUMENT PAGE ===== */
.doc-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep { color: var(--border-mid); }

.doc-page-header {
  margin-bottom: 28px;
}

.doc-page-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 10px;
}

.doc-page-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.2;
}

.doc-page-desc {
  font-size: 17px;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}

/* Estates CTA box */
.estates-cta {
  background: var(--amber-bg);
  border: 2px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.estates-cta-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.estates-cta-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--amber);
}

.estates-cta-content p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #78350f;
  line-height: 1.5;
}

.btn-estates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-estates:hover {
  background: #92400e;
  text-decoration: none;
}

.doc-meta-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.doc-meta-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.doc-meta-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.doc-disclaimer {
  background: #f0f9ff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.doc-disclaimer strong { color: var(--text); }

.doc-open-box {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  text-align: center;
}

.doc-open-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.doc-open-box p {
  margin: 0 0 20px;
  color: var(--text-mid);
  font-size: 14px;
}

.doc-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 20px;
  cursor: pointer;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.doc-ack input { margin-top: 3px; flex-shrink: 0; }



/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.70);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand .logo-text { color: #fff; font-size: 18px; margin-bottom: 10px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin: 0 0 16px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.90);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  max-width: 640px;
  line-height: 1.5;
  margin-top: 12px;
}

/* ===== UTILITY ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state p { font-size: 16px; margin: 0; }

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 700px) {
  .site-nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .cta-banner { padding: 24px; text-align: center; justify-content: center; }
  .doc-page { padding: 24px 0 60px; }
}

/* ── Document Page Layout ─────────────────────────────────────────── */
.breadcrumb { background: #f5f5f5; padding: 0.5rem 0; font-size: 0.875rem; color: #666; }
.breadcrumb a { color: #2e7d52; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.doc-page { padding: 2rem 1rem 4rem; }

.doc-page-hero {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 2px solid #e8e8e8;
}
.doc-page-icon { font-size: 2.5rem; line-height: 1; }
.doc-page-hero h1 { margin: 0 0 0.25rem; font-size: 1.75rem; color: #1b3a2d; }
.doc-page-category { margin: 0; font-size: 0.875rem; color: #666; text-transform: uppercase; letter-spacing: 0.05em; }

.doc-page-body { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .doc-page-body { grid-template-columns: 1fr; } }

.doc-page-content h2 { color: #1b3a2d; margin: 1.75rem 0 0.75rem; font-size: 1.2rem; }
.doc-page-content h2:first-child { margin-top: 0; }
.doc-page-content p { color: #444; line-height: 1.7; margin: 0 0 1rem; }
.doc-page-content ul { padding-left: 1.5rem; margin: 0 0 1rem; color: #444; line-height: 1.7; }
.doc-page-content li { margin-bottom: 0.4rem; }

.doc-cta { background: #f0f7f2; border: 1px solid #b8d9c4; border-radius: 8px; padding: 1.5rem; margin: 2rem 0 1rem; text-align: center; }
.btn-large { font-size: 1rem; padding: 0.85rem 2rem; }
.doc-cta-note { margin: 0.75rem 0 0; font-size: 0.8rem; color: #666; }

.doc-disclaimer { background: #fff8e1; border-left: 4px solid #f5a623; padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; font-size: 0.875rem; color: #555; margin-top: 1.5rem; }
.doc-disclaimer a { color: #0066cc; }

/* Sidebar */
.doc-page-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.25rem; }
.sidebar-card h3 { margin: 0 0 1rem; font-size: 1rem; color: #1b3a2d; }
.sidebar-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.875rem; }
.sidebar-card dt { color: #888; font-weight: 600; }
.sidebar-card dd { margin: 0; color: #333; }
.sidebar-card p { font-size: 0.875rem; color: #555; margin: 0 0 1rem; }
.sidebar-cta { background: #1b3a2d; border-color: #1b3a2d; }
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { color: #bbb; }

/* ── Modal ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  width: min(540px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.modal-inner {
  padding: 2rem;
}

.modal-inner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: #1b3a2d;
}

.modal-inner p {
  color: #555;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0.25rem 0.5rem;
}
.modal-close:hover { color: #333; }

.doc-ack {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.doc-ack input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.btn-open {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-open:hover { background: var(--green-hover); color: #fff; }
.btn-open.is-disabled,
.btn-open[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-open.enabled {
  opacity: 1;
  pointer-events: auto;
}

body.modal-open {
  overflow: hidden;
}


/* ── Sidebar CTA Button ───────────────────────────────────────────── */
.sidebar-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #c47f17;
  color: #fff !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(196,127,23,0.25);
}
.sidebar-btn:hover {
  background: #a86b10;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ===== DOCUMENT PAGE LAYOUT ===== */
.doc-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

@media (max-width: 860px) {
  .doc-page-layout {
    grid-template-columns: 1fr;
  }
  .doc-sidebar { order: -1; }
}

.doc-page-main { min-width: 0; }

/* ===== SIDEBAR ===== */
.doc-sidebar { position: sticky; top: 1.5rem; }

.sidebar-card {
  background: #1b3a2d;
  color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
}

.sidebar-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.sidebar-card h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.sidebar-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}

.btn-sidebar {
  display: block;
  background: #c47f17;
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-sidebar:hover { background: #a86b10; color: #fff; }

/* ===== EXTENDED SEO CONTENT ===== */
.doc-extended-intro {
  margin: 1.75rem 0 0.5rem;
  color: #3d5247;
  line-height: 1.7;
  font-size: 0.97rem;
}

.doc-extended-sections {
  margin-top: 1rem;
}

.doc-extended-sections h3 {
  font-size: 1rem;
  color: #1b3a2d;
  margin: 1.5rem 0 0.4rem;
  border-left: 3px solid #2e7d52;
  padding-left: 0.75rem;
}

.doc-extended-sections p {
  color: #3d5247;
  line-height: 1.7;
  font-size: 0.93rem;
  margin: 0 0 0.5rem;
}
