/*
Theme Name: Lergal
Theme URI: https://lergal.com
Author: Lergal
Description: Custom theme for Lergal, AI-powered legal intelligence for African jurisdictions. Converted from the static ink/paper marketing site.
Version: 1.0
Text Domain: lergal
*/

/* ============================================================
   Lergal — shared site stylesheet
   Ink/paper monochrome, matching the pitch deck brand system.
   ============================================================ */

@font-face {
  font-family: 'Sigma Serif Engraving';
  src: url('assets/fonts/SigmaSerif-Engraving8pt.woff2') format('woff2'),
       url('assets/fonts/SigmaSerif-Engraving8pt.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #F2F1F0;
  --paper-dim: #E6E4E1;
  --ink: #1F1D1A;
  --ink-soft: #4A463E;
  --ink-faint: #86816F;
  --line: #DAD7D1;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.serif { font-family: 'Sigma Serif Engraving', Georgia, serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.announce { background: var(--ink); color: var(--paper); text-align: center; padding: 10px 16px; font-size: 13px; }
.announce a { border-bottom: 1px solid rgba(244,240,230,0.4); }
.announce a:hover { border-color: var(--paper); }

header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; max-width: 1180px; margin: 0 auto; position: relative; }
.logo { height: 22px; display: block; }
.logo img { height: 100%; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links > a { font-size: 14.5px; color: var(--ink-soft); transition: color 0.15s; }
.nav-links > a:hover, .nav-links > a.active { color: var(--ink); }
.nav-right { display: flex; gap: 24px; align-items: center; }
.nav-right .signin { font-size: 14.5px; color: var(--ink-soft); }
.nav-right .signin:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; font-size: 14.5px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Dropdown mega-menu */
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; margin-top: 0; padding-top: 20px; display: none; }
.dropdown-panel { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,0.08); min-width: 560px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 12px 14px; border-radius: 4px; }
.dropdown a:hover { background: var(--paper-dim); }
.dropdown-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.dropdown-sub { font-size: 12.5px; color: var(--ink-faint); }

/* Page hero (interior pages) */
.page-hero { padding: 72px calc(max(0px, (100vw - 1180px) / 2) + 32px) 56px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.roadmap-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-dim); border: 1px solid var(--line); padding: 5px 12px; border-radius: 100px; margin-bottom: 16px; }
.roadmap-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.content-row.is-roadmap .content-visual { background: var(--paper-dim); }
.content-row.is-roadmap h3 .roadmap-tag { margin-bottom: 8px; margin-left: 0; display: inline-flex; }
.page-hero h1 { font-size: 46px; font-weight: 500; line-height: 1.1; letter-spacing: -0.8px; max-width: 760px; margin-bottom: 20px; }
.page-hero p { font-size: 17px; color: var(--ink-soft); max-width: 620px; }
.page-hero .hero-actions { display: flex; gap: 14px; margin-top: 28px; }

/* Generic section */
.section { padding: 88px 32px; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 34px; font-weight: 500; letter-spacing: -0.6px; margin-bottom: 14px; }
.section-head p { font-size: 15.5px; color: var(--ink-soft); }

/* Card grid (feature/solution listing) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 1180px; margin: 0 auto; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card { background: var(--paper); padding: 36px; }
.feature-card:hover { background: #FBF9F1; }
.feature-card .icon-circle { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-dim); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.feature-card a { font-size: 13.5px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

/* Two-column content row (image + text) */
.content-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 72px 32px; border-bottom: 1px solid var(--line); }
.content-row.reverse .content-visual { order: -1; }
.content-row h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.4px; margin-bottom: 16px; }
.content-row p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 18px; }
.content-visual { border: 1px solid var(--line); aspect-ratio: 4/3; overflow: hidden; background: #FBF9F1; }
.content-list { list-style: none; }
.content-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; }
.content-list li svg { flex-shrink: 0; margin-top: 3px; }

/* Compliance / security badges */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.badge { border: 1px solid var(--line); padding: 24px 18px; text-align: center; background: #FBF9F1; }
.badge-name { font-size: 14.5px; font-weight: 600; }
.badge-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; }

/* Team / people cards */
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1180px; margin: 0 auto; }
.person-card { border: 1px solid var(--line); padding: 32px; background: var(--paper); }
.person-card .icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--paper-dim); border: 1px solid var(--line); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.person-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.person-card .role { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
.person-card p { font-size: 14px; color: var(--ink-soft); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.price-card { border: 1px solid var(--line); padding: 36px; position: relative; }
.price-card.featured { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.price-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 16px; }
.price-value { font-size: 38px; font-weight: 700; letter-spacing: -1px; margin-bottom: 24px; }
.price-value span { font-size: 15px; color: var(--ink-faint); font-weight: 400; }
.price-card.featured .price-value span { color: #C9C4B6; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }

/* Simple list (legal / careers) */
.simple-list { max-width: 760px; margin: 0 auto; }
.simple-list h2 { font-size: 22px; font-weight: 600; margin: 40px 0 14px; }
.simple-list h2:first-child { margin-top: 0; }
.simple-list p, .simple-list li { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.simple-list ul { padding-left: 22px; }

.job-list { max-width: 900px; margin: 0 auto; }
.job-row { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.job-row:last-child { border-bottom: none; }
.job-title { font-size: 17px; font-weight: 600; }
.job-meta { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }

/* CTA band */
.cta { padding: 96px 32px; text-align: center; background: var(--ink); color: var(--paper); }
.cta h2 { font-family: 'Sigma Serif Engraving', Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -0.6px; margin-bottom: 32px; }
.cta .btn-primary { background: var(--paper); color: var(--ink); }
.cta .btn-primary:hover { background: #DAD7D1; }
.cta .btn-outline { border-color: #3A3733; color: var(--paper); }
.cta .btn-outline:hover { background: #3A3733; }

/* Footer */
footer { padding: 64px 32px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; max-width: 1180px; margin: 0 auto 48px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: var(--ink-soft); max-width: 220px; }
.footer-col h5 { font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 11px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); }
.footer-socials { display: flex; gap: 20px; }

@media (max-width: 900px) {
  .nav-links, .nav-right .signin { display: none; }
  .page-hero h1 { font-size: 32px; }
  .card-grid, .card-grid.cols-2, .pricing-grid, .badge-grid, .people-grid, .content-row { grid-template-columns: 1fr; }
  .content-row.reverse .content-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Elementor brand override — Elementor's default global colors
   (blue headings, green buttons) replaced with the ink/paper system.
   ============================================================ */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-heading .elementor-heading-title a {
  color: var(--ink) !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.4px;
}

.elementor-widget-button .elementor-button,
a.elementor-button-link {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
  padding: 11px 22px !important;
  transition: all 0.15s;
}
.elementor-widget-button .elementor-button:hover,
a.elementor-button-link:hover {
  background: var(--ink-soft) !important;
  color: var(--paper) !important;
}

.elementor-widget-text-editor {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}
.elementor-widget-text-editor p { margin: 0 0 12px; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor ul { padding-left: 20px; }
.elementor-widget-text-editor ul li { margin-bottom: 10px; color: var(--ink-soft); font-size: 14.5px; }

.elementor-widget-image img { border: 1px solid var(--line); }

.elementor-section { max-width: none; }

/* ============================================================
   Dark CTA band fix — regenerated to match the latest content IDs.
   ============================================================ */
.elementor-element-11fbec5 .elementor-heading-title, .elementor-element-22f3cdd .elementor-heading-title, .elementor-element-39fac80 .elementor-heading-title, .elementor-element-3e489be .elementor-heading-title, .elementor-element-4118605 .elementor-heading-title, .elementor-element-4c0ba1d .elementor-heading-title, .elementor-element-6e13908 .elementor-heading-title, .elementor-element-75ab38f .elementor-heading-title, .elementor-element-7a6c947 .elementor-heading-title, .elementor-element-83af700 .elementor-heading-title, .elementor-element-9540975 .elementor-heading-title, .elementor-element-9fdeb71 .elementor-heading-title, .elementor-element-a3a8978 .elementor-heading-title, .elementor-element-af00a82 .elementor-heading-title, .elementor-element-b78d5be .elementor-heading-title, .elementor-element-ba19372 .elementor-heading-title, .elementor-element-c2786a4 .elementor-heading-title, .elementor-element-d44662c .elementor-heading-title, .elementor-element-d732846 .elementor-heading-title, .elementor-element-de29b5b .elementor-heading-title, .elementor-element-fc49d96 .elementor-heading-title {
  color: var(--paper) !important;
}
.elementor-element-11fbec5 .elementor-button-link, .elementor-element-11fbec5 a.elementor-button, .elementor-element-22f3cdd .elementor-button-link, .elementor-element-22f3cdd a.elementor-button, .elementor-element-39fac80 .elementor-button-link, .elementor-element-39fac80 a.elementor-button, .elementor-element-3e489be .elementor-button-link, .elementor-element-3e489be a.elementor-button, .elementor-element-4118605 .elementor-button-link, .elementor-element-4118605 a.elementor-button, .elementor-element-4c0ba1d .elementor-button-link, .elementor-element-4c0ba1d a.elementor-button, .elementor-element-6e13908 .elementor-button-link, .elementor-element-6e13908 a.elementor-button, .elementor-element-75ab38f .elementor-button-link, .elementor-element-75ab38f a.elementor-button, .elementor-element-7a6c947 .elementor-button-link, .elementor-element-7a6c947 a.elementor-button, .elementor-element-83af700 .elementor-button-link, .elementor-element-83af700 a.elementor-button, .elementor-element-9540975 .elementor-button-link, .elementor-element-9540975 a.elementor-button, .elementor-element-9fdeb71 .elementor-button-link, .elementor-element-9fdeb71 a.elementor-button, .elementor-element-a3a8978 .elementor-button-link, .elementor-element-a3a8978 a.elementor-button, .elementor-element-af00a82 .elementor-button-link, .elementor-element-af00a82 a.elementor-button, .elementor-element-b78d5be .elementor-button-link, .elementor-element-b78d5be a.elementor-button, .elementor-element-ba19372 .elementor-button-link, .elementor-element-ba19372 a.elementor-button, .elementor-element-c2786a4 .elementor-button-link, .elementor-element-c2786a4 a.elementor-button, .elementor-element-d44662c .elementor-button-link, .elementor-element-d44662c a.elementor-button, .elementor-element-d732846 .elementor-button-link, .elementor-element-d732846 a.elementor-button, .elementor-element-de29b5b .elementor-button-link, .elementor-element-de29b5b a.elementor-button, .elementor-element-fc49d96 .elementor-button-link, .elementor-element-fc49d96 a.elementor-button {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-color: var(--paper) !important;
}
.elementor-element-11fbec5 .elementor-button-link:hover, .elementor-element-11fbec5 a.elementor-button:hover, .elementor-element-22f3cdd .elementor-button-link:hover, .elementor-element-22f3cdd a.elementor-button:hover, .elementor-element-39fac80 .elementor-button-link:hover, .elementor-element-39fac80 a.elementor-button:hover, .elementor-element-3e489be .elementor-button-link:hover, .elementor-element-3e489be a.elementor-button:hover, .elementor-element-4118605 .elementor-button-link:hover, .elementor-element-4118605 a.elementor-button:hover, .elementor-element-4c0ba1d .elementor-button-link:hover, .elementor-element-4c0ba1d a.elementor-button:hover, .elementor-element-6e13908 .elementor-button-link:hover, .elementor-element-6e13908 a.elementor-button:hover, .elementor-element-75ab38f .elementor-button-link:hover, .elementor-element-75ab38f a.elementor-button:hover, .elementor-element-7a6c947 .elementor-button-link:hover, .elementor-element-7a6c947 a.elementor-button:hover, .elementor-element-83af700 .elementor-button-link:hover, .elementor-element-83af700 a.elementor-button:hover, .elementor-element-9540975 .elementor-button-link:hover, .elementor-element-9540975 a.elementor-button:hover, .elementor-element-9fdeb71 .elementor-button-link:hover, .elementor-element-9fdeb71 a.elementor-button:hover, .elementor-element-a3a8978 .elementor-button-link:hover, .elementor-element-a3a8978 a.elementor-button:hover, .elementor-element-af00a82 .elementor-button-link:hover, .elementor-element-af00a82 a.elementor-button:hover, .elementor-element-b78d5be .elementor-button-link:hover, .elementor-element-b78d5be a.elementor-button:hover, .elementor-element-ba19372 .elementor-button-link:hover, .elementor-element-ba19372 a.elementor-button:hover, .elementor-element-c2786a4 .elementor-button-link:hover, .elementor-element-c2786a4 a.elementor-button:hover, .elementor-element-d44662c .elementor-button-link:hover, .elementor-element-d44662c a.elementor-button:hover, .elementor-element-d732846 .elementor-button-link:hover, .elementor-element-d732846 a.elementor-button:hover, .elementor-element-de29b5b .elementor-button-link:hover, .elementor-element-de29b5b a.elementor-button:hover, .elementor-element-fc49d96 .elementor-button-link:hover, .elementor-element-fc49d96 a.elementor-button:hover {
  background: #DAD7D1 !important;
  color: var(--ink) !important;
}

/* ============================================================
   Full-width image bands — constrain to a slim decorative strip
   (matching the original static design) instead of full natural
   image height.
   ============================================================ */
.elementor-element-11b79eb, .elementor-element-12de289, .elementor-element-1610662, .elementor-element-1d380f7, .elementor-element-1fc9361, .elementor-element-20d4783, .elementor-element-22ee76d, .elementor-element-2717cd0, .elementor-element-2dc7d89, .elementor-element-32768d5, .elementor-element-3706958, .elementor-element-48c7704, .elementor-element-4a9c50c, .elementor-element-5f09873, .elementor-element-6b30e0f, .elementor-element-6ce06db, .elementor-element-802315c, .elementor-element-93c6043, .elementor-element-93debc3, .elementor-element-96ec897, .elementor-element-9de7df3, .elementor-element-a8236ca, .elementor-element-b3aab47, .elementor-element-b9afff8, .elementor-element-c124043, .elementor-element-c780376, .elementor-element-d94cf88, .elementor-element-daa8e9e, .elementor-element-e8c5d7d, .elementor-element-edfc0fc, .elementor-element-f005fcd, .elementor-element-f0e7aa7 {
  max-height: 260px;
  overflow: hidden;
}
.elementor-element-11b79eb img, .elementor-element-12de289 img, .elementor-element-1610662 img, .elementor-element-1d380f7 img, .elementor-element-1fc9361 img, .elementor-element-20d4783 img, .elementor-element-22ee76d img, .elementor-element-2717cd0 img, .elementor-element-2dc7d89 img, .elementor-element-32768d5 img, .elementor-element-3706958 img, .elementor-element-48c7704 img, .elementor-element-4a9c50c img, .elementor-element-5f09873 img, .elementor-element-6b30e0f img, .elementor-element-6ce06db img, .elementor-element-802315c img, .elementor-element-93c6043 img, .elementor-element-93debc3 img, .elementor-element-96ec897 img, .elementor-element-9de7df3 img, .elementor-element-a8236ca img, .elementor-element-b3aab47 img, .elementor-element-b9afff8 img, .elementor-element-c124043 img, .elementor-element-c780376 img, .elementor-element-d94cf88 img, .elementor-element-daa8e9e img, .elementor-element-e8c5d7d img, .elementor-element-edfc0fc img, .elementor-element-f005fcd img, .elementor-element-f0e7aa7 img {
  height: 260px !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block;
}
