/*
Theme Name: LesoBase
Author: LesoBase
Version: 1.4.7
*/
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  --fc-primary: #2563EB;
  --fc-primary-dark: #1D4ED8;
  --fc-primary-light: #3B82F6;
  --fc-accent: #0EA5E9;
  --fc-bg: #EFF6FF;
  --fc-bg-alt: #DBEAFE;
  --fc-surface: #FFFFFF;
  --fc-text: #1E293B;
  --fc-text-secondary: #475569;
  --fc-text-muted: #94A3B8;
  --fc-border: #CBD5E1;
  --fc-border-light: #E2E8F0;
  --fc-success: #16A34A;
  --fc-error: #DC2626;
  --fc-white: #FFFFFF;
  --fc-font-main: 'Work Sans', sans-serif;
  --fc-radius-sm: 6px;
  --fc-radius-md: 10px;
  --fc-radius-lg: 16px;
  --fc-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --fc-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --fc-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --fc-type-xs: 0.75rem;
  --fc-type-sm: 0.875rem;
  --fc-type-base: 1rem;
  --fc-type-lg: 1.125rem;
  --fc-type-xl: 1.35rem;
  --fc-type-2xl: 1.75rem;
  --fc-type-3xl: 2.25rem;
  --fc-type-4xl: 3rem;
  --fc-section-py: 3.5rem;
}

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

body {
  font-family: var(--fc-font-main);
  background: var(--fc-bg);
  color: var(--fc-text);
  line-height: 1.7;
  font-size: var(--fc-type-base);
  -webkit-font-smoothing: antialiased;
}

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

/* ===== HEADER ===== */
.wp-header {
  background: var(--fc-surface);
  border-bottom: 2px solid var(--fc-primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--fc-shadow-sm);
}
.wp-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.wp-logo {
  font-size: var(--fc-type-2xl); font-weight: 800;
  color: var(--fc-primary); letter-spacing: -0.5px;
  text-transform: uppercase;
  position: relative;
}
.wp-logo::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 3px; background: var(--fc-accent);
  border-radius: 2px;
}
.wp-nav { display: flex; align-items: center; gap: 1.5rem; }
.wp-nav a {
  font-size: var(--fc-type-sm); font-weight: 500;
  color: var(--fc-text-secondary); transition: color 0.2s;
  position: relative;
}
.wp-nav a:hover { color: var(--fc-primary); }
.wp-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--fc-primary);
  transition: width 0.3s;
}
.wp-nav a:hover::after { width: 100%; }
.wp-nav-cta {
  background: var(--fc-primary) !important; color: var(--fc-white) !important;
  padding: 0.5rem 1.25rem !important; border-radius: var(--fc-radius-sm) !important;
  font-weight: 600 !important; font-size: var(--fc-type-sm) !important;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background 0.2s !important;
}
.wp-nav-cta:hover { background: var(--fc-primary-dark) !important; }
.wp-nav-cta::after { display: none !important; }
.wp-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.wp-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--fc-text); transition: 0.3s;
}

/* ===== PROGRESS BAR ===== */
.wp-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--fc-primary), var(--fc-accent));
  width: 0%; transition: width 0.1s;
}

/* ===== BREADCRUMBS ===== */
.wp-breadcrumbs {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: var(--fc-type-xs); color: var(--fc-text-muted);
}
.wp-breadcrumbs a { color: var(--fc-text-muted); }
.wp-breadcrumbs a:hover { color: var(--fc-primary); }
.wp-breadcrumbs span { margin: 0 0.35rem; }

/* ===== LAYOUT ===== */
.wp-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.wp-grid-main {
  display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem;
  padding: var(--fc-section-py) 0;
}
.wp-content-area { min-width: 0; }

/* ===== HERO ===== */
.wp-hero-img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--fc-radius-lg);
  margin-bottom: 2rem;
}
.wp-kicker {
  display: inline-block; background: var(--fc-primary);
  color: var(--fc-white); font-size: var(--fc-type-xs);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 0.25rem 0.75rem;
  border-radius: var(--fc-radius-sm); margin-bottom: 1rem;
}
.wp-article-title {
  font-size: var(--fc-type-4xl); font-weight: 800;
  line-height: 1.15; margin-bottom: 1rem;
  color: var(--fc-text); letter-spacing: -1px;
}
.wp-byline {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--fc-type-sm); color: var(--fc-text-muted);
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.wp-byline-author { font-weight: 600; color: var(--fc-text-secondary); }
.wp-byline-sep { color: var(--fc-border); }
.wp-standfirst {
  font-size: var(--fc-type-xl); font-style: italic;
  color: var(--fc-text-secondary); line-height: 1.6;
  border-left: 4px solid var(--fc-primary);
  padding-left: 1.25rem; margin-bottom: 2rem;
}

/* ===== ARTICLE BODY ===== */
.wp-article-body h2 {
  font-size: var(--fc-type-2xl); font-weight: 700;
  margin: 2.5rem 0 1rem; color: var(--fc-text);
  position: relative; padding-bottom: 0.5rem;
}
.wp-article-body h2::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 50px; height: 3px; background: var(--fc-accent);
  border-radius: 2px; pointer-events: none;
}
.wp-article-body h3 {
  font-size: var(--fc-type-xl); font-weight: 600;
  margin: 2rem 0 0.75rem; color: var(--fc-text);
}
.wp-article-body p {
  margin-bottom: 1.25rem; color: var(--fc-text);
  font-size: var(--fc-type-base); line-height: 1.8;
}
.wp-article-body blockquote {
  background: var(--fc-bg-alt);
  border-left: 4px solid var(--fc-primary);
  padding: 1.5rem 2rem; margin: 2rem 0;
  border-radius: 0 var(--fc-radius-md) var(--fc-radius-md) 0;
  font-style: italic; font-size: var(--fc-type-lg);
  color: var(--fc-text-secondary); position: relative;
}
.wp-article-body blockquote::before {
  content: '\201C'; position: absolute; top: -10px; left: 12px;
  font-size: 4rem; color: var(--fc-primary); opacity: 0.3;
  font-family: Georgia, serif; pointer-events: none;
}
.wp-pull-quote {
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-accent));
  color: var(--fc-white); padding: 2rem 2.5rem;
  border-radius: var(--fc-radius-lg); margin: 2.5rem 0;
  font-size: var(--fc-type-xl); font-weight: 500;
  line-height: 1.5; text-align: center;
  position: relative;
}
.wp-pull-quote cite {
  display: block; margin-top: 1rem;
  font-size: var(--fc-type-sm); opacity: 0.85;
  font-style: normal; font-weight: 400;
}
.wp-data-box {
  background: var(--fc-surface);
  border: 2px solid var(--fc-border-light);
  border-radius: var(--fc-radius-lg);
  padding: 2rem; margin: 2rem 0;
}
.wp-data-box-title {
  font-weight: 700; font-size: var(--fc-type-lg);
  margin-bottom: 1rem; color: var(--fc-primary);
}
.wp-data-box dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; }
.wp-data-box dt { font-weight: 600; color: var(--fc-text); font-size: var(--fc-type-sm); }
.wp-data-box dd { color: var(--fc-text-secondary); font-size: var(--fc-type-sm); }
.wp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.wp-tags a {
  background: var(--fc-bg-alt); color: var(--fc-primary);
  padding: 0.35rem 0.85rem; border-radius: 100px;
  font-size: var(--fc-type-xs); font-weight: 500;
  transition: background 0.2s;
}
.wp-tags a:hover { background: var(--fc-primary); color: var(--fc-white); }

/* ===== SIDEBAR ===== */
.wp-sidebar {
  position: sticky; top: 80px; align-self: start;
}
.wp-sidebar-block {
  background: var(--fc-surface); border-radius: var(--fc-radius-lg);
  padding: 1.5rem; margin-bottom: 1.25rem;
  box-shadow: var(--fc-shadow-sm);
  border: 1px solid var(--fc-border-light);
}
.wp-sidebar-title {
  font-size: var(--fc-type-base); font-weight: 700;
  margin-bottom: 1rem; color: var(--fc-text);
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--fc-primary);
}
.wp-sidebar-item {
  display: block; padding: 0.65rem 0;
  border-bottom: 1px solid var(--fc-border-light);
  transition: padding-left 0.2s, background 0.2s;
}
.wp-sidebar-item:last-child { border-bottom: none; }
.wp-sidebar-item:hover { padding-left: 0.5rem; }
.wp-sidebar-item-title {
  font-size: var(--fc-type-sm); font-weight: 600;
  color: var(--fc-text); display: block;
}
.wp-sidebar-item-desc {
  font-size: var(--fc-type-xs); color: var(--fc-text-muted);
  margin-top: 0.2rem; display: block;
}

/* ===== CARDS ===== */
.wp-section-label {
  font-size: var(--fc-type-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--fc-primary); margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--fc-border-light);
}
.wp-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.wp-card {
  background: var(--fc-surface); border-radius: var(--fc-radius-lg);
  overflow: hidden; box-shadow: var(--fc-shadow-sm);
  border: 1px solid var(--fc-border-light);
  transition: transform 0.25s, box-shadow 0.25s;
}
.wp-card:hover {
  transform: translateY(-3px); box-shadow: var(--fc-shadow-md);
}
.wp-card-body { padding: 1.25rem; }
.wp-card-kicker {
  font-size: var(--fc-type-xs); font-weight: 700;
  color: var(--fc-primary); text-transform: uppercase;
  letter-spacing: 1px;
}
.wp-card-title {
  font-size: var(--fc-type-lg); font-weight: 700;
  margin: 0.35rem 0 0.5rem; color: var(--fc-text);
  line-height: 1.3;
}
.wp-card-excerpt {
  font-size: var(--fc-type-sm); color: var(--fc-text-secondary);
  line-height: 1.5; margin-bottom: 0.75rem;
}
.wp-card-meta {
  font-size: var(--fc-type-xs); color: var(--fc-text-muted);
}

/* ===== RELATED ===== */
.wp-related { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--fc-border-light); }
.wp-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.wp-related-card {
  background: var(--fc-surface); border-radius: var(--fc-radius-md);
  padding: 1.25rem; border: 1px solid var(--fc-border-light);
  transition: box-shadow 0.2s;
}
.wp-related-card:hover { box-shadow: var(--fc-shadow-md); }

/* ===== CTA ===== */
.wp-cta-section {
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-dark));
  color: var(--fc-white); border-radius: var(--fc-radius-lg);
  padding: 3rem; margin: 3rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.wp-cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.wp-cta-title {
  font-size: var(--fc-type-2xl); font-weight: 700;
  margin-bottom: 0.75rem; position: relative;
}
.wp-cta-desc {
  font-size: var(--fc-type-base); opacity: 0.9;
  margin-bottom: 1.5rem; max-width: 500px;
  margin-left: auto; margin-right: auto; position: relative;
}

/* ===== FORMS ===== */
.wp-form { display: flex; flex-direction: column; gap: 1rem; }
.wp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wp-form input, .wp-form textarea, .wp-form select {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-sm);
  font-family: var(--fc-font-main);
  font-size: var(--fc-type-sm);
  background: var(--fc-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wp-form input:focus, .wp-form textarea:focus {
  outline: none; border-color: var(--fc-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.wp-form textarea { min-height: 120px; resize: vertical; }
.wp-form label {
  font-size: var(--fc-type-sm); font-weight: 500;
  color: var(--fc-text); margin-bottom: 0.25rem;
  display: block;
}

/* ===== BUTTONS ===== */
.wp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fc-primary); color: var(--fc-white);
  padding: 0.85rem 2rem; border: none;
  border-radius: var(--fc-radius-sm);
  font-family: var(--fc-font-main);
  font-size: var(--fc-type-base); font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  box-sizing: border-box; white-space: nowrap;
  flex-shrink: 0; min-height: 44px; line-height: 1.2;
}
.wp-btn:hover { background: var(--fc-primary-dark); color: var(--fc-white); transform: translateY(-1px); }
.wp-btn-outline {
  background: transparent; color: var(--fc-primary);
  border: 2px solid var(--fc-primary);
}
.wp-btn-outline:hover { background: var(--fc-primary); color: var(--fc-white); }
.wp-btn-white {
  background: var(--fc-white); color: var(--fc-primary);
}
.wp-btn-white:hover { background: var(--fc-bg); color: var(--fc-primary-dark); }

/* ===== FOOTER ===== */
.wp-footer {
  background: var(--fc-text); color: var(--fc-white);
  padding: 3.5rem 0 1.5rem; margin-top: var(--fc-section-py);
}
.wp-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.wp-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.wp-footer-brand {
  font-size: var(--fc-type-xl); font-weight: 800;
  color: var(--fc-white); margin-bottom: 0.75rem;
}
.wp-footer p, .wp-footer a {
  font-size: var(--fc-type-sm); color: rgba(255,255,255,0.7);
}
.wp-footer a:hover { color: var(--fc-white); }
.wp-footer-heading {
  font-size: var(--fc-type-sm); font-weight: 700;
  color: var(--fc-white); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 1rem;
}
.wp-footer-links { list-style: none; }
.wp-footer-links li { margin-bottom: 0.5rem; }
.wp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.wp-footer-disclaimer {
  font-size: var(--fc-type-xs); color: rgba(255,255,255,0.5);
  max-width: 600px; line-height: 1.5;
}

/* ===== COOKIE BANNER ===== */
.wp-cc-banner {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--fc-surface); padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 9999; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.wp-cc-banner p { font-size: var(--fc-type-sm); color: var(--fc-text); flex: 1; }
.wp-cc-banner a { color: var(--fc-primary); text-decoration: underline; }
.wp-cc-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.wp-cc-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 10000;
  align-items: center; justify-content: center;
}
.wp-cc-modal-inner {
  background: var(--fc-surface); border-radius: var(--fc-radius-lg);
  padding: 2.5rem; max-width: 550px; width: 90%;
  max-height: 80vh; overflow-y: auto;
  box-shadow: var(--fc-shadow-lg);
}
.wp-cc-modal h3 {
  font-size: var(--fc-type-xl); margin-bottom: 1rem;
}
.wp-cc-modal p { font-size: var(--fc-type-sm); margin-bottom: 1rem; color: var(--fc-text-secondary); }

/* ===== PAGE SPECIFIC ===== */
.wp-page-hero {
  text-align: center; padding: var(--fc-section-py) 0;
}
.wp-page-hero h1 {
  font-size: var(--fc-type-3xl); font-weight: 800;
  margin-bottom: 1rem; color: var(--fc-text);
}
.wp-page-content {
  max-width: 800px; margin: 0 auto;
}
.wp-about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  align-items: start;
}
.wp-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.wp-contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.wp-contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.wp-contact-icon {
  width: 44px; height: 44px; background: var(--fc-bg-alt);
  border-radius: var(--fc-radius-sm); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--fc-primary);
}
.wp-map-frame {
  border-radius: var(--fc-radius-lg); overflow: hidden;
  margin-top: 2rem; border: 1px solid var(--fc-border-light);
}
.wp-success-box {
  text-align: center; padding: 4rem 2rem;
  max-width: 600px; margin: 0 auto;
}
.wp-success-icon {
  width: 80px; height: 80px; background: var(--fc-success);
  border-radius: 50%; margin: 0 auto 2rem;
  display: flex; align-items: center; justify-content: center;
}
.wp-error-box {
  text-align: center; padding: 4rem 2rem;
  max-width: 600px; margin: 0 auto;
}
.wp-error-code {
  font-size: 8rem; font-weight: 800;
  color: var(--fc-primary); line-height: 1;
  opacity: 0.2; margin-bottom: 1rem;
}

/* ===== LEGAL ===== */
.wp-legal-body { max-width: 800px; margin: 0 auto; padding: var(--fc-section-py) 0; }
.wp-legal-body h1 { font-size: var(--fc-type-3xl); font-weight: 800; margin-bottom: 0.5rem; }
.wp-legal-body .wp-legal-updated { font-size: var(--fc-type-sm); color: var(--fc-text-muted); margin-bottom: 2rem; }
.wp-legal-body h2 { font-size: var(--fc-type-xl); font-weight: 700; margin: 2rem 0 0.75rem; color: var(--fc-text); }
.wp-legal-body h3 { font-size: var(--fc-type-lg); font-weight: 600; margin: 1.5rem 0 0.5rem; }
.wp-legal-body p { margin-bottom: 1rem; color: var(--fc-text-secondary); font-size: var(--fc-type-sm); line-height: 1.8; }
.wp-legal-body ul, .wp-legal-body ol { margin: 0.75rem 0 1rem 1.5rem; color: var(--fc-text-secondary); font-size: var(--fc-type-sm); }
.wp-legal-body li { margin-bottom: 0.35rem; }
.wp-legal-toc { background: var(--fc-bg-alt); border-radius: var(--fc-radius-md); padding: 1.5rem; margin-bottom: 2.5rem; }
.wp-legal-toc ol { list-style: decimal; margin: 0.5rem 0 0 1.5rem; }
.wp-legal-toc li { margin-bottom: 0.35rem; }
.wp-legal-toc a { font-size: var(--fc-type-sm); }

/* ===== DIVIDER ===== */
.wp-divider {
  height: 3px; border: none; margin: 2rem 0;
  background: linear-gradient(90deg, var(--fc-primary), var(--fc-accent), transparent);
  border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .wp-grid-main { grid-template-columns: 1fr; }
  .wp-sidebar { position: static; }
  .wp-footer-grid { grid-template-columns: 1fr 1fr; }
  .wp-related-grid { grid-template-columns: 1fr; }
  .wp-about-grid { grid-template-columns: 1fr; }
  .wp-contact-grid { grid-template-columns: 1fr; }
  .wp-form-row { grid-template-columns: 1fr; }
  .wp-article-title { font-size: var(--fc-type-3xl); }
}
@media (max-width: 640px) {
  .wp-nav { display: none; }
  .wp-burger { display: flex; }
  .wp-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--fc-surface); padding: 1rem 1.5rem;
    box-shadow: var(--fc-shadow-md);
    border-top: 1px solid var(--fc-border-light);
  }
  .wp-footer-grid { grid-template-columns: 1fr; }
  .wp-cards-grid { grid-template-columns: 1fr; }
  .wp-data-box dl { grid-template-columns: 1fr; }
  .wp-cc-banner { flex-direction: column; text-align: center; }
}
