/* ============================================
   faceliftturkey.us — Design System
   Mobile-first, minimal, speed-optimized
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --c-primary: #1B3A5C;
  --c-primary-light: #2A5080;
  --c-primary-dark: #0F2440;
  --c-accent: #8C6428;
  --c-accent-light: #C4924A;
  --c-teal: #1A7A6D;
  --c-teal-light: #E8F5F2;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F6F8;
  --c-bg-warm: #FAFAF7;
  --c-text: #1A1A2E;
  --c-text-light: #4A4A5A;
  --c-text-muted: #5B6470;
  --c-border: #E2E4E8;
  --c-border-light: #F0F1F3;
  --c-success: #16A34A;
  --c-warning: #D97706;
  --c-danger: #DC2626;

  /* Typography */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;

  /* Spacing scale */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Sizes */
  --max-w: 1200px;
  --max-w-content: 780px;
  --max-w-wide: 1000px;
  --header-h: 72px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-nav: 0 2px 8px rgba(0,0,0,0.06);
}

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

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-accent); }

/* Inline prose links: underline so they don't rely on color alone (WCAG 1.4.1) */
main p a,
main li a,
.ai-summary a,
.takeaways a,
.key-facts a,
.sources a,
.answer-summary a,
.article-body a,
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
/* Exclude UI elements that already have visual affordance */
.btn,
.btn:hover,
main p a.btn,
main li a.btn,
.card a,
.toc-widget a,
.sidebar-related a,
.sidebar-consult a,
.footer-col a,
.main-nav a,
.mobile-nav a,
.logo {
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--c-primary-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.65rem); margin-bottom: var(--sp-lg); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: var(--sp-2xl); margin-bottom: var(--sp-md); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin-top: var(--sp-xl); margin-bottom: var(--sp-sm); }
h4 { font-size: 1.05rem; margin-top: var(--sp-lg); margin-bottom: var(--sp-sm); font-family: var(--font-sans); }

p { margin-bottom: var(--sp-md); max-width: 70ch; }
ul, ol { margin-bottom: var(--sp-md); padding-left: var(--sp-xl); }
li { margin-bottom: var(--sp-xs); }
strong { font-weight: 600; }
hr { border: none; border-top: 1px solid var(--c-border); margin: var(--sp-2xl) 0; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-lg); }
.container--narrow { max-width: var(--max-w-content); }
.container--wide { max-width: var(--max-w-wide); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--c-accent); }

/* Desktop nav */
.main-nav { display: none; }

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    list-style: none;
    padding: 0;
    margin: 0;
  }
}

.main-nav > li { position: relative; }

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li > a[aria-expanded="true"] {
  background: var(--c-bg-alt);
  color: var(--c-primary);
}

.nav-arrow {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s;
}
li:hover .nav-arrow,
li:focus-within .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-sm) 0;
  z-index: 200;
  list-style: none;
}

.main-nav > li:hover > .dropdown,
.main-nav > li:focus-within > .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: var(--sp-sm) var(--sp-lg);
  font-size: 0.875rem;
  color: var(--c-text);
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover {
  background: var(--c-bg-alt);
  color: var(--c-primary);
}

/* Header CTA */
.header-cta {
  display: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--c-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--c-accent-light); color: #fff; }

@media (min-width: 1024px) {
  .header-cta { display: inline-block; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--c-text);
}
.menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 99;
  background: var(--c-bg);
  overflow-y: auto;
  padding: var(--sp-lg);
}
.mobile-nav.is-open { display: block; }

.mobile-nav-list {
  list-style: none;
  padding: 0;
}
.mobile-nav-list > li { border-bottom: 1px solid var(--c-border-light); }
.mobile-nav-list > li > a,
.mobile-nav-list > li > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--sp-md) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
}
.mobile-nav-list > li > button .nav-arrow { width: 14px; height: 14px; }
.mobile-nav-list > li > button[aria-expanded="true"] .nav-arrow { transform: rotate(180deg); }

.mobile-dropdown {
  display: none;
  list-style: none;
  padding: 0 0 var(--sp-sm) var(--sp-md);
}
.mobile-dropdown.is-open { display: block; }
.mobile-dropdown a {
  display: block;
  padding: var(--sp-sm) 0;
  font-size: 0.9rem;
  color: var(--c-text-light);
}

.mobile-nav .header-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: var(--sp-lg);
  padding: var(--sp-md);
  font-size: 1rem;
}

/* --- Hero Section --- */
.hero {
  padding: var(--sp-3xl) 0 var(--sp-4xl);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 700px;
  margin: 0 auto var(--sp-lg);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--c-text-light);
  max-width: 600px;
  margin: 0 auto var(--sp-xl);
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--c-teal-light);
  color: var(--c-teal);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: var(--sp-xl);
}

/* --- Pillar Cards Grid --- */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin: var(--sp-xl) 0;
}

@media (min-width: 640px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .pillar-grid--3col { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-xl);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pillar-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
}

.pillar-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  margin-bottom: var(--sp-md);
  color: var(--c-primary);
  font-size: 1.3rem;
}

.pillar-card h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  margin: 0 0 var(--sp-sm);
}
.pillar-card h3 a { color: var(--c-primary-dark); }
.pillar-card h3 a:hover { color: var(--c-accent); }

.pillar-card p {
  font-size: 0.9rem;
  color: var(--c-text-light);
  margin: 0;
  flex: 1;
}

.pillar-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary);
}
.pillar-card-link:hover { color: var(--c-accent); }
.pillar-card-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* --- Section --- */
.section { padding: var(--sp-3xl) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--warm { background: var(--c-bg-warm); }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}
.section-header h2 { margin-top: 0; }
.section-header p {
  color: var(--c-text-light);
  max-width: 600px;
  margin: var(--sp-sm) auto 0;
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-xl);
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--c-teal);
  flex-shrink: 0;
}

/* --- Content Article Layout --- */
.article-header {
  padding: var(--sp-2xl) 0 var(--sp-lg);
}

/* Mobile: reorder article header children so TOC appears right after title+meta */
@media (max-width: 1059px) {
  .article-header {
    display: flex;
    flex-direction: column;
  }
  .article-header h1          { order: 1; }
  .article-header .article-meta { order: 2; }
  .article-header .toc-mobile { order: 3; }
  .article-header .ai-summary { order: 4; }
  .article-header .answer-summary { order: 5; }
  .article-header .placeholder-img { order: 6; }
  .article-header .key-facts  { order: 7; }
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  align-items: center;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-lg);
}

.article-meta .reviewer {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--c-teal);
  font-weight: 500;
}

.article-body h2 { border-bottom: 1px solid var(--c-border-light); padding-bottom: var(--sp-sm); }

.article-body blockquote {
  border-left: 3px solid var(--c-accent);
  padding: var(--sp-md) var(--sp-lg);
  margin: var(--sp-lg) 0;
  background: var(--c-bg-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-text-light);
  font-style: italic;
}

/* Key Facts Box */
.key-facts {
  background: var(--c-teal-light);
  border: 1px solid #C5DED8;
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-lg) 0;
}
.key-facts h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--sp-sm);
}
.key-facts ul { margin: 0; padding-left: var(--sp-lg); }
.key-facts li { font-size: 0.9rem; color: var(--c-text); margin-bottom: var(--sp-xs); }

/* Answer-first summary */
.answer-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-text);
  border-left: 3px solid var(--c-primary);
  padding-left: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

/* FAQ Section */
.faq-list { list-style: none; padding: 0; }
.faq-item { border-bottom: 1px solid var(--c-border-light); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--sp-md) 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  line-height: 1.4;
}
.faq-question:hover { color: var(--c-primary); }
.faq-question svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s;
  margin-left: var(--sp-md);
}
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 0 var(--sp-md);
  font-size: 0.95rem;
  color: var(--c-text-light);
  line-height: 1.7;
}
.faq-item.is-open .faq-answer { display: block; }

/* Comparison Table */
.table-wrap { overflow-x: auto; margin: var(--sp-lg) 0; -webkit-overflow-scrolling: touch; }
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 500px;
}
.table-wrap th {
  background: var(--c-primary-dark);
  color: #fff;
  font-weight: 600;
  padding: var(--sp-md);
  text-align: left;
  white-space: nowrap;
}
.table-wrap td {
  padding: var(--sp-md);
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: top;
}
.table-wrap tr:hover td { background: var(--c-bg-alt); }

/* Sources */
.sources {
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: 8px;
  padding: var(--sp-lg) var(--sp-xl);
}
.sources h3 {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sources h3::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}
.sources ol {
  font-size: 0.84rem;
  color: var(--c-text-light);
  line-height: 1.7;
  padding-left: 0;
  list-style: none;
  counter-reset: src;
}
.sources ol li {
  counter-increment: src;
  margin-bottom: var(--sp-sm);
  display: flex;
  gap: 0.4em;
  scroll-margin-top: 100px;
}
.sources ol li::before {
  content: counter(src) ".";
  flex-shrink: 0;
  min-width: 1.4em;
  font-weight: 600;
  color: var(--c-accent);
}
.sources li:target {
  background: rgba(212, 175, 55, 0.12);
  border-radius: 6px;
  padding: 4px 8px;
  margin-left: -8px;
}
.sources a {
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.sources a:hover { border-bottom-color: var(--c-primary); }

/* Inline citation marker — academic superscript style */
.cite {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  font-weight: 600;
}
.cite a {
  color: var(--c-teal);
  text-decoration: none;
  padding: 0 2px;
}
.cite a:hover { text-decoration: underline; }

/* Key Takeaways */
.takeaways {
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-2xl) 0;
}
.takeaways h3 { font-size: 0.95rem; font-family: var(--font-sans); margin-bottom: var(--sp-md); }
.takeaways ul { margin: 0; }
.takeaways li { margin-bottom: var(--sp-sm); font-size: 0.95rem; }

/* --- Read More Link --- */
.read-more {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--c-teal-light);
  border-left: 3px solid var(--c-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-sm) var(--sp-lg);
  margin: var(--sp-xl) 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-teal);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.read-more::before {
  content: "→";
  font-size: 1rem;
  flex-shrink: 0;
}
.read-more:hover {
  background: #d4eeea;
  color: var(--c-primary-dark);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  list-style: none;
  padding: var(--sp-md) 0;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.breadcrumb li::after { content: "/"; margin-left: var(--sp-xs); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }

/* --- Guides Category Page --- */
.guides-category { margin-bottom: var(--sp-3xl); }
.guides-category__header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-md);
  border-bottom: 2px solid var(--c-primary);
}
.guides-category__title {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin: 0;
}
.guides-category__count {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  background: var(--c-bg-alt);
  padding: 2px 8px;
  border-radius: 20px;
}

.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}
@media (min-width: 560px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .guides-grid { grid-template-columns: repeat(3, 1fr); }
}

.guide-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: 0 4px 20px rgba(27,58,92,0.1);
  transform: translateY(-2px);
}

/* Card thumbnail image area */
.guide-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.guide-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.guide-card__thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  text-align: center;
  padding: 1rem;
}
.guide-card__thumb-placeholder svg { opacity: 0.4; }

/* Tag badge overlaid on thumb */
.guide-card__tag-wrap {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
}

.guide-card__body {
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.guide-card__title {
  font-size: 0.975rem;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 var(--sp-sm);
  color: var(--c-text);
}
.guide-card__title a {
  color: inherit;
  text-decoration: none;
}
.guide-card__title a:hover { color: var(--c-primary); }
.guide-card__desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.guide-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: var(--sp-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
}
.guide-card__read:hover { color: var(--c-primary-light); }
.guide-card__read svg { transition: transform 0.15s; }
.guide-card__read:hover svg { transform: translateX(3px); }

/* tag colours */
.guide-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  background: var(--c-bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: var(--sp-sm);
}
.guide-card h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  margin: 0 0 var(--sp-sm);
}
.guide-card p { font-size: 0.85rem; color: var(--c-text-light); margin: 0; }

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  background: var(--c-primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: var(--sp-2xl) 0;
}
.cta-banner h2 { color: #fff; margin-top: 0; }
.cta-banner p { color: rgba(255,255,255,0.8); margin: 0 auto var(--sp-lg); }
.cta-banner .btn { background: var(--c-accent); color: #fff; }
.cta-banner .btn:hover { background: var(--c-accent-light); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-light); color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

/* --- Footer --- */
.site-footer {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--sp-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-md);
  font-family: var(--font-sans);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--sp-sm); }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--sp-lg) var(--sp-lg);
}

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: none;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.footer-legal-links {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* --- Table of Contents (Sticky, for pillar pages) --- */
.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-lg));
  max-height: calc(100vh - var(--header-h) - var(--sp-2xl));
  overflow-y: auto;
  padding: var(--sp-lg);
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
}
.toc h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-md);
  font-family: var(--font-sans);
}
.toc ul { list-style: none; padding: 0; }
.toc li { margin-bottom: var(--sp-sm); }
.toc a { color: var(--c-text-light); transition: color 0.15s; }
.toc a:hover { color: var(--c-primary); }

.content-with-toc {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
}
@media (min-width: 960px) {
  .content-with-toc { grid-template-columns: 1fr 240px; }
}

/* --- Placeholder images --- */
.placeholder-img {
  background: var(--c-bg-alt);
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 0.85rem;
  min-height: 200px;
  gap: var(--sp-sm);
  padding: var(--sp-lg);
  text-align: center;
}
.placeholder-img svg { opacity: 0.35; }
.placeholder-img span { opacity: 0.6; font-size: 0.8rem; }

.placeholder-img--hero {
  min-height: 340px;
  border-radius: var(--radius-lg);
  margin: var(--sp-xl) 0;
}
@media (min-width: 640px) { .placeholder-img--hero { min-height: 420px; } }

.placeholder-img--banner {
  min-height: 220px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin: 0;
}

.placeholder-img--card {
  min-height: 160px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
  margin: 0;
}

.placeholder-img--inline {
  min-height: 260px;
  margin: var(--sp-lg) 0;
}

.placeholder-img--small {
  min-height: 140px;
  margin: var(--sp-md) 0;
}

.placeholder-img--square {
  aspect-ratio: 1;
  min-height: unset;
  width: 100%;
}

/* Full-width image band between sections */
.img-band {
  width: 100%;
  overflow: hidden;
}
.img-band .placeholder-img {
  border-radius: 0;
  border-left: none;
  border-right: none;
  min-height: 240px;
}
@media (min-width: 640px) { .img-band .placeholder-img { min-height: 320px; } }

/* Two-column image + text layout */
.img-text-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: center;
  margin: var(--sp-2xl) 0;
}
@media (min-width: 768px) {
  .img-text-row { grid-template-columns: 1fr 1fr; }
  .img-text-row--reverse .img-text-row__img { order: 2; }
  .img-text-row--reverse .img-text-row__text { order: 1; }
}
.img-text-row__img .placeholder-img { min-height: 280px; margin: 0; }
.img-text-row__text h2 { margin-top: 0; }

/* Pillar card with image */
.pillar-card--has-img { padding: 0; overflow: hidden; }
.pillar-card--has-img .pillar-card__body { padding: var(--sp-lg) var(--sp-xl) var(--sp-xl); }
.pillar-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.pillar-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pillar-card:hover .pillar-card__thumb img { transform: scale(1.04); }
.pillar-card__cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.img-text-row__img img,
.img-band img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}
.img-band img { border-radius: 0; max-height: 400px; object-fit: cover; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Article with Sidebar Layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  padding-top: 0;
  align-items: start;
}
@media (min-width: 1060px) {
  .article-layout {
    grid-template-columns: minmax(0, 700px) 300px;
  }
}

.article-main { min-width: 0; }

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-2xl);
}
@media (min-width: 1060px) {
  .article-sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-lg));
    align-self: start;
  }
}

/* TOC in sidebar */
.toc-widget {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
}
.toc-widget__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-md);
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}
.toc-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.toc-widget li {
  margin-bottom: 2px;
}
.toc-widget a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--c-text-light);
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.toc-widget a:hover {
  background: var(--c-bg);
  color: var(--c-primary);
}
.toc-widget a.toc-active {
  background: var(--c-bg);
  color: var(--c-primary);
  font-weight: 600;
  border-left: 2px solid var(--c-primary);
  padding-left: 6px;
}
.toc-widget a .toc-num {
  font-size: 0.7rem;
  color: var(--c-text-muted);
  min-width: 16px;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

/* Mobile TOC accordion */
.toc-mobile {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-lg);
  overflow: hidden;
}
.toc-mobile__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--c-bg-alt);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  gap: var(--sp-md);
}
.toc-mobile__toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.toc-mobile.is-open .toc-mobile__toggle svg { transform: rotate(180deg); }
.toc-mobile__body {
  display: none;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--c-bg);
}
.toc-mobile.is-open .toc-mobile__body { display: block; }
.toc-mobile__body ol { margin: 0; padding-left: var(--sp-lg); }
.toc-mobile__body li { margin-bottom: var(--sp-xs); }
.toc-mobile__body a { font-size: 0.875rem; color: var(--c-primary); }
/* toc-mobile__list variant (used in newer pages) */
.toc-mobile__list {
  display: none;
  margin: 0;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--c-bg);
  list-style: decimal;
}
.toc-mobile.is-open .toc-mobile__list { display: block; }
.toc-mobile__list li { margin-bottom: var(--sp-xs); }
.toc-mobile__list a { font-size: 0.875rem; color: var(--c-primary); }
@media (min-width: 1060px) {
  .toc-mobile { display: none; }
}

/* AI Summary Box */
.ai-summary {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-xl) 0;
}
.ai-summary__header {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4F46E5;
  margin-bottom: var(--sp-md);
  font-family: var(--font-sans);
}
.ai-summary__header svg {
  width: 16px; height: 16px;
  color: #4F46E5;
  flex-shrink: 0;
}
.ai-summary ul {
  margin: 0;
  padding-left: var(--sp-xl);
}
.ai-summary li {
  font-size: 0.9rem;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.5;
}
.ai-summary li:last-child { margin-bottom: 0; }

/* Sidebar consultation widget */
.sidebar-consult {
  background: var(--c-primary-dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  color: rgba(255,255,255,0.9);
  text-align: center;
}
.sidebar-consult__icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
}
.sidebar-consult__icon svg {
  width: 22px; height: 22px;
  stroke: white; fill: none; stroke-width: 1.5;
}
.sidebar-consult h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 var(--sp-sm);
  font-family: var(--font-sans);
}
.sidebar-consult p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 var(--sp-md);
  max-width: 100%;
  line-height: 1.5;
}
.sidebar-consult ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-lg);
  text-align: left;
}
.sidebar-consult li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.sidebar-consult li svg {
  width: 14px; height: 14px;
  stroke: var(--c-accent-light); fill: none; stroke-width: 2.5;
  flex-shrink: 0;
  margin-top: 2px;
}
.sidebar-consult .btn--consult {
  display: block;
  width: 100%;
  padding: 0.7rem;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.sidebar-consult .btn--consult:hover {
  background: var(--c-accent-light);
  color: #fff;
}
.sidebar-consult .btn--outline-white {
  display: block;
  width: 100%;
  padding: 0.55rem;
  margin-top: var(--sp-sm);
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  text-align: center;
  font-family: var(--font-sans);
  transition: border-color 0.2s, color 0.2s;
}
.sidebar-consult .btn--outline-white:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* Sidebar related widget */
.sidebar-related {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-related__title,
.sidebar-related h4 {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-sm) var(--sp-lg);
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-muted);
  font-family: var(--font-sans);
}
.sidebar-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-related li {
  border-bottom: 1px solid var(--c-border-light);
  margin: 0;
}
.sidebar-related li:last-child { border-bottom: none; }
.sidebar-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--sp-lg);
  font-size: 0.82rem;
  color: var(--c-text);
  gap: var(--sp-sm);
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.sidebar-related a:hover {
  background: var(--c-bg-alt);
  color: var(--c-primary);
}
/* Arrow added via CSS — no need for inline SVGs */
.sidebar-related a::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--c-text-muted);
  border-top: 1.5px solid var(--c-text-muted);
  transform: rotate(45deg);
  margin-left: auto;
  transition: border-color 0.15s;
}
.sidebar-related a:hover::after {
  border-color: var(--c-primary);
}
.sidebar-related a svg { display: none; }

/* --- Print --- */
@media print {
  .site-header, .site-footer, .menu-toggle, .header-cta, .toc, .article-sidebar { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================
   About Page
   ============================================ */

/* Hero */
.about-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 60%, var(--c-primary-light) 100%);
  color: #fff;
  padding: var(--sp-3xl) 0;
  position: relative;
  overflow: hidden;
}
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.about-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}
@media (min-width: 860px) {
  .about-hero__inner { grid-template-columns: 1fr 1fr; }
}
.about-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: var(--sp-md);
}
.about-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: var(--sp-lg);
  line-height: 1.2;
}
.about-hero__lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
}
.about-hero__badges { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.about-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}
.about-hero__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  text-align: center;
  flex-direction: column;
  gap: 0.5rem;
}

/* Stats row */
.about-stats {
  background: var(--c-bg-alt);
  padding: var(--sp-2xl) 0;
  border-bottom: 1px solid var(--c-border);
}
.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}
@media (min-width: 640px) { .about-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.about-stat {
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
}
.about-stat__num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  font-family: var(--font-sans);
  margin-bottom: 0.4rem;
}
.about-stat__label { font-size: 0.8rem; color: var(--c-text-muted); }

/* Mission section */
.about-mission { padding: var(--sp-3xl) 0; }
.about-mission__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}
@media (min-width: 860px) {
  .about-mission__grid { grid-template-columns: 1fr 1fr; }
}
.about-mission__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-teal-light) 0%, #e8f0f8 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  text-align: center;
  flex-direction: column;
  gap: 0.5rem;
}
.about-mission__text h2 { margin-bottom: var(--sp-lg); }
.about-mission__text p { color: var(--c-text-light); line-height: 1.8; margin-bottom: var(--sp-md); }

/* Principles */
.about-principles {
  background: var(--c-bg-alt);
  padding: var(--sp-3xl) 0;
}
.about-principles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
}
@media (min-width: 560px) { .about-principles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .about-principles__grid { grid-template-columns: repeat(3, 1fr); } }
.about-principle {
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  border: 1px solid var(--c-border);
}
.about-principle__icon {
  width: 44px; height: 44px;
  background: var(--c-teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--c-teal);
}
.about-principle h3 { font-size: 0.95rem; margin-bottom: var(--sp-sm); }
.about-principle p { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.6; margin: 0; }

/* Team / Reviewer cards */
.about-team { padding: var(--sp-3xl) 0; }
.about-team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
}
@media (min-width: 560px) { .about-team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .about-team__grid { grid-template-columns: repeat(3, 1fr); } }
.about-person {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg);
  transition: box-shadow 0.2s;
}
.about-person:hover { box-shadow: var(--shadow-sm); }
.about-person__photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e8f0f8 0%, var(--c-teal-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted);
  font-size: 0.7rem; text-align: center;
  flex-direction: column; gap: 0.5rem;
}
.about-person__body { padding: var(--sp-lg); }
.about-person__name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.about-person__title { font-size: 0.8rem; color: var(--c-teal); font-weight: 600; margin-bottom: var(--sp-sm); }
.about-person__bio { font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.6; margin: 0; }
.about-person__certs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: var(--sp-md);
}
.about-person__cert {
  font-size: 0.7rem; font-weight: 600;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Transparency / How we make money */
.about-transparency {
  background: var(--c-primary-dark);
  color: #fff;
  padding: var(--sp-3xl) 0;
}
.about-transparency h2 { color: #fff; margin-bottom: var(--sp-lg); }
.about-transparency p { color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: var(--sp-md); }
.about-transparency a { color: var(--c-accent-light); }
.about-transparency__links {
  display: flex; flex-wrap: wrap; gap: var(--sp-md);
  margin-top: var(--sp-xl);
}
.about-transparency__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.about-transparency__link:hover { background: rgba(255,255,255,0.18); }

/* ============================================
   Floating WhatsApp / CTA Buttons
   Desktop: floating pill on right
   Mobile: fixed bar at bottom
   ============================================ */

/* Desktop — only WhatsApp pill, right side */
.float-wa {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.float-wa__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}
.float-wa__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
.float-wa__whatsapp {
  background: #0F7A35;
  color: #fff;
}
.float-wa__whatsapp svg { flex-shrink: 0; }

/* Hide call button on desktop */
.float-wa__call { display: none; }

/* Mobile — full-width bar at bottom */
@media (max-width: 767px) {
  .float-wa {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: #0F1C30;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }
  .float-wa__btn {
    flex: 1;
    justify-content: center;
    border-radius: 10px;
    padding: 0.85rem 0.5rem;
    font-size: 0.95rem;
    box-shadow: none;
  }
  .float-wa__btn:hover { transform: none; box-shadow: none; }
  .float-wa__call {
    display: inline-flex;
    background: #1e2d4a;
    color: #fff;
    margin-right: 0.5rem;
  }
  /* Add bottom padding to body so content isn't hidden behind bar */
  body { padding-bottom: 72px; }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 1.5rem;
  bottom: 2rem;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-primary);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(15, 36, 64, 0.15);
  padding: 1.15rem 1.25rem 1.1rem;
  z-index: 999;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--c-text-light);
  animation: cookieSlideUp 0.4s ease-out;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner__title {
  display: block;
  color: var(--c-primary);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.cookie-banner__text p {
  margin: 0;
  color: var(--c-text-light);
}
.cookie-banner__text a {
  color: var(--c-primary);
  text-decoration: underline;
  font-weight: 600;
}
.cookie-banner__text a:hover { color: var(--c-accent); }
.cookie-banner__actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.95rem;
  justify-content: flex-end;
}
.cookie-banner__btn {
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.cookie-banner__btn:active { transform: translateY(1px); }
.cookie-banner__btn--reject {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-text-light);
}
.cookie-banner__btn--reject:hover {
  background: var(--c-bg-alt);
  color: var(--c-text);
}
.cookie-banner__btn--accept {
  background: var(--c-primary);
  color: #fff;
}
.cookie-banner__btn--accept:hover {
  background: var(--c-primary-dark);
}

@media (max-width: 767px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(80px + env(safe-area-inset-bottom));
    max-width: none;
    padding: 1rem 1rem 0.95rem;
  }
  .cookie-banner__actions {
    margin-top: 0.8rem;
    gap: 0.5rem;
  }
  .cookie-banner__btn { flex: 1; }
}

/* ============================================
   Lead Capture — scroll modal + left tab
   ============================================ */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lead-modal[hidden] { display: none; }

.lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 48, 0.62);
  backdrop-filter: blur(3px);
}

.lead-modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 36, 64, 0.28);
  animation: leadModalIn 0.35s ease-out;
}
@keyframes leadModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: background 0.15s;
}
.lead-modal__close:hover { background: rgba(255,255,255,0.25); }

.lead-modal__header {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  padding: 1.75rem 1.5rem 1.35rem;
  border-radius: 14px 14px 0 0;
}
.lead-modal__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(196, 146, 74, 0.25);
  color: var(--c-accent-light);
  border: 1px solid rgba(196, 146, 74, 0.45);
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.65rem;
}
.lead-modal__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}
.lead-modal__subtitle {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.lead-modal__subtitle--short { display: none; }

.lead-modal__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.lead-form__field {
  margin-bottom: 0.85rem;
}
.lead-form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.35rem;
}
.lead-form__optional {
  font-weight: 400;
  color: var(--c-text-muted);
}
.lead-form__field input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-form__field input:focus {
  outline: none;
  border-color: var(--c-primary-light);
  box-shadow: 0 0 0 3px rgba(42, 80, 128, 0.12);
}
.lead-form__field input.is-invalid {
  border-color: var(--c-danger);
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.lead-form__error {
  font-size: 0.8rem;
  color: var(--c-danger);
  margin: -0.25rem 0 0.65rem;
}

.lead-form__submit {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.lead-form__submit:hover { background: var(--c-accent-light); }
.lead-form__submit:active { transform: translateY(1px); }

.lead-form__privacy {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--c-text-muted);
  text-align: center;
}
.lead-form__privacy a {
  color: var(--c-primary);
  text-decoration: underline;
}

.lead-modal__trust {
  list-style: none;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border-light);
}
.lead-modal__trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-bottom: 0.4rem;
}
.lead-modal__trust li:last-child { margin-bottom: 0; }
.lead-modal__trust li svg {
  width: 14px;
  height: 14px;
  stroke: var(--c-teal);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.lead-modal__success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.lead-modal__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--c-teal-light);
  color: var(--c-teal);
  margin-bottom: 0.85rem;
}
.lead-modal__success h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--c-primary);
  margin-bottom: 0.45rem;
}
.lead-modal__success p {
  font-size: 0.875rem;
  color: var(--c-text-light);
  line-height: 1.55;
  margin-bottom: 1rem;
}

body.lead-modal-open { overflow: hidden; }

/* Left-edge tab — opens modal; avoids right-side WhatsApp conflict */
.lead-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.55rem;
  border: none;
  border-radius: 0 10px 10px 0;
  background: var(--c-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 4px 0 18px rgba(15, 36, 64, 0.22);
  transition: background 0.15s, transform 0.15s, padding-left 0.15s;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.lead-tab[hidden] { display: none; }
.lead-tab:hover {
  background: var(--c-primary-dark);
  padding-left: 0.7rem;
}
.lead-tab__icon {
  writing-mode: horizontal-tb;
  transform: rotate(-90deg);
  flex-shrink: 0;
}
.lead-tab__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .lead-modal {
    padding: 0.85rem;
    align-items: center;
  }
  .lead-modal__panel {
    max-width: 340px;
    max-height: calc(100dvh - 7rem);
    border-radius: 12px;
    animation-name: leadModalIn;
    box-shadow: 0 16px 48px rgba(15, 36, 64, 0.24);
  }
  .lead-modal__close {
    top: 0.65rem;
    right: 0.65rem;
    width: 1.75rem;
    height: 1.75rem;
  }
  .lead-modal__header {
    padding: 1.1rem 1rem 0.85rem;
  }
  .lead-modal__badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.45rem;
  }
  .lead-modal__title {
    font-size: 1.1rem;
    padding-right: 1.25rem;
    margin-bottom: 0.35rem;
  }
  .lead-modal__subtitle--full { display: none; }
  .lead-modal__subtitle--short {
    display: block;
    font-size: 0.76rem;
    line-height: 1.45;
  }
  .lead-modal__subtitle {
    font-size: 0.76rem;
    line-height: 1.45;
  }
  .lead-modal__body {
    padding: 0.9rem 1rem 1rem;
  }
  .lead-form__field {
    margin-bottom: 0.6rem;
  }
  .lead-form__field label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  .lead-form__field input {
    padding: 0.58rem 0.7rem;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .lead-form__submit {
    padding: 0.72rem 0.85rem;
    font-size: 0.875rem;
  }
  .lead-form__privacy {
    margin-top: 0.55rem;
    font-size: 0.65rem;
  }
  /* Trust bullets hidden on mobile — keeps card compact */
  .lead-modal__trust {
    display: none;
  }
  .lead-modal__success {
    padding: 0.25rem 0 0;
  }
  .lead-modal__success h3 {
    font-size: 1.05rem;
  }
  .lead-modal__success p {
    font-size: 0.8rem;
  }
  .lead-tab {
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom));
    transform: none;
    writing-mode: horizontal-tb;
    flex-direction: row;
    border-radius: 0 10px 10px 0;
    padding: 0.55rem 0.75rem;
  }
  .lead-tab__icon { transform: none; }
  .lead-tab__label { font-size: 0.75rem; }
}

@media (min-width: 768px) {
  .lead-modal { padding: 2rem; }
}

