/* ==========================================================
   Legacy Partners — Brand Book v1.4 theme layer (legacypartners.ae)
   Loaded after css/style.css. Colours + type only; no layout changes.
   LP Grey #6B6B6D · LP Yellow #FFCE1A · White · LP Black #1F1F21
   Mist #F4F4F2 · Silver #DCDCDA · Navy #1D3A72 (hyperlinks only)
   Montserrat = headings/design · IBM Plex Sans = reading text
   ========================================================== */
:root {
  --lp-grey: #6B6B6D; --lp-yellow: #FFCE1A; --lp-black: #1F1F21; --lp-white: #FFFFFF;
  --lp-mist: #F4F4F2; --lp-silver: #DCDCDA; --lp-navy: #1D3A72;
  --primary-yellow: #FFCE1A; --text-dark: #1F1F21; --light-gray: #F4F4F2;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --bs-body-font-family: 'IBM Plex Sans', Arial, sans-serif;
  --bs-body-color: #6B6B6D; --bs-heading-color: #1F1F21;
  --bs-link-color: #1D3A72; --bs-link-hover-color: #1D3A72; --bs-link-color-rgb: 29,58,114;
  --bs-warning: #FFCE1A; --bs-warning-rgb: 255,206,26;
  --bs-border-color: #DCDCDA; --bs-light: #F4F4F2; --bs-light-rgb: 244,244,242;
  --bs-dark: #1F1F21; --bs-dark-rgb: 31,31,33;
}

/* ---------- Typography ---------- */
body { font-family: 'IBM Plex Sans', Arial, sans-serif !important; color: var(--lp-grey); }
p, li, td, th, dd, dt, input, textarea, select, .form-control, .form-select, .lead, small { font-family: 'IBM Plex Sans', Arial, sans-serif; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.navbar, .navbar .nav-link, .dropdown-item, .mega-menu-list li a, .btn, button,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.section-title, .stats-eyebrow, .stat-number, .badge, .breadcrumb, label,
.accordion-button, .nav-tabs .nav-link, .nav-pills .nav-link, blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 600; color: var(--lp-black); letter-spacing: -0.01em; }
h1 strong, h2 strong, h3 strong { font-weight: 700; }
p, li { line-height: 1.6; }
.article-content p, .article-content li, .inner-page-section p, .inner-page-section li { line-height: 1.7; }

/* ---------- Text colours (grey first, black allowed) ---------- */
.text-dark { color: var(--lp-black) !important; }
.text-muted, .text-secondary { color: var(--lp-grey) !important; }

/* Yellow is never a text colour on white: highlight instead */
.text-warning, .highlight, .text-yellow {
  color: inherit !important;
  background-image: linear-gradient(transparent 84%, var(--lp-yellow) 84%);
  background-repeat: no-repeat; padding: 0 .08em;
}
.mega-menu-list li a:hover, .office-link:hover, .blog-author a:hover span { color: var(--lp-black) !important; }
.stat-item h2, .stat-circle h2 { color: var(--lp-black); }

i.text-warning, .fa.text-warning, .fas.text-warning, .far.text-warning, .fab.text-warning, .bi.text-warning, svg.text-warning, i.highlight { color: var(--lp-yellow) !important; background-image: none !important; padding: 0 !important; }

/* Hyperlinks in reading text: Navy */
.article-content a:not(.btn), .inner-page-section p a:not(.btn), .inner-page-section li a:not(.btn),
.blog-content a:not(.btn), .policy-content a:not(.btn) { color: var(--lp-navy); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Surfaces ---------- */
.bg-light, .light-bg, .section-light, .bg-gray, .bg-grey { background-color: var(--lp-mist) !important; }
hr, .border, .border-top, .border-bottom, .border-start, .border-end, .card, .list-group-item, .table > :not(caption) > * > * { border-color: var(--lp-silver) !important; }
.bg-warning { background-color: var(--lp-yellow) !important; color: var(--lp-black) !important; }
.bg-dark { background-color: var(--lp-grey) !important; color: #fff; }

/* Dark sections become LP Grey with white text */
footer, .stats-section, .bridge-container, .article-header, .icon-text-box-wrapper {
  background: var(--lp-grey) !important; color: #fff;
}
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.stats-section h1, .stats-section h2, .stats-section h3, .stats-section h4, .stats-section h5, .stats-section h6,
.bridge-container h1, .bridge-container h2, .bridge-container h3, .bridge-container h4,
.article-header h1, .article-header h2, .article-header h3, .article-header p,
.icon-text-box-wrapper h3, .icon-text-box-wrapper h4, .icon-text-box-wrapper p { color: #fff; }
footer p, footer li, footer a, footer span, footer address, footer small, footer .footer-links a, footer ul li a, .stats-section p, .bridge-container p { color: rgba(255,255,255,.9) !important; }
footer i { color: inherit; }
footer a:hover, .footer-links a:hover { color: #fff !important; text-decoration: underline; text-decoration-color: var(--lp-yellow); text-underline-offset: 3px; }
.stats-section .stat-number, .stats-section .stat-item h2, .stats-section .stats-eyebrow, .icon-text-box-wrapper { color: #fff !important; }
.social-links a { background: rgba(255,255,255,.14) !important; color: #fff !important; }
.social-links a:hover { background: var(--lp-yellow) !important; color: var(--lp-black) !important; }
footer hr, footer .border-top { border-color: rgba(255,255,255,.22) !important; }

/* ---------- Buttons ---------- */
.btn-main, .btn-dark, .gw-btn-dark { background: var(--lp-grey) !important; border-color: var(--lp-grey) !important; color: #fff !important; font-weight: 600; }
.btn-main:hover, .btn-dark:hover, .gw-btn-dark:hover { background: var(--lp-black) !important; border-color: var(--lp-black) !important; color: #fff !important; }
.btn-warning, .btn-yellow, .btn-primary-yellow { background: var(--lp-yellow) !important; border-color: var(--lp-yellow) !important; color: var(--lp-black) !important; font-weight: 600; }
.btn-warning:hover, .btn-yellow:hover { background: #F2C000 !important; border-color: #F2C000 !important; color: var(--lp-black) !important; }
.btn-outline-warning { color: var(--lp-black) !important; border-color: var(--lp-yellow) !important; }
.btn-outline-warning:hover { background: var(--lp-yellow) !important; color: var(--lp-black) !important; }
.btn-primary { background: var(--lp-grey); border-color: var(--lp-grey); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--lp-black); border-color: var(--lp-black); color: #fff; }
.btn-outline-dark { color: var(--lp-black); border-color: var(--lp-grey); }
.btn-outline-dark:hover { background: var(--lp-grey); border-color: var(--lp-grey); color: #fff; }

/* Accordion & forms */
.accordion-button:not(.collapsed) { background: var(--lp-mist) !important; color: var(--lp-black) !important; box-shadow: inset 3px 0 0 var(--lp-yellow) !important; }
.accordion-button:focus, .form-control:focus, .form-select:focus { border-color: var(--lp-grey) !important; box-shadow: 0 0 0 .2rem rgba(255,206,26,.35) !important; }
.form-control, .form-select { border-color: var(--lp-silver); color: var(--lp-black); }

/* Article tables: LP Grey header row, Mist zebra */
.article-content table th, .inner-page-section table th { background: var(--lp-grey) !important; color: #fff !important; font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; }
.article-content table tr:hover th { color: #fff !important; }
.article-content table tr:nth-child(even) td, .inner-page-section table tr:nth-child(even) td { background: var(--lp-mist); }

/* Selection & focus */
::selection { background: rgba(255,206,26,.55); color: var(--lp-black); }

/* ==========================================================
   Audit implementation (premium layer) — Nov 2026
   ========================================================== */
/* Brand label: SemiBold caps with yellow dots between words */
.lp-label { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lp-grey); margin-bottom: 1.4rem; display: flex; align-items: center; flex-wrap: wrap; gap: .7em; }
.lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-yellow); display: inline-block; }

/* Static hero */
.lp-hero { padding: 96px 0 80px; background: #fff; border-bottom: 1px solid var(--lp-silver); }
.lp-hero-title { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; color: var(--lp-black); font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.4rem; max-width: 15em; }
.lp-hero-lead { font-size: 1.15rem; line-height: 1.7; color: var(--lp-grey); max-width: 36em; margin-bottom: 2.2rem; }
.lp-hero-actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.lp-btn-lg { padding: 15px 34px !important; font-size: 1rem; border-radius: 4px !important; letter-spacing: .01em; }
.lp-link-arrow { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; color: var(--lp-black) !important; text-decoration: none; border-bottom: 2px solid var(--lp-yellow); padding-bottom: 3px; }
.lp-link-arrow i { font-size: .8em; margin-left: .4em; transition: transform .2s; }
.lp-link-arrow:hover i { transform: translateX(4px); }
.lp-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-size: .92rem; color: var(--lp-grey); }
.lp-proof i { color: var(--lp-yellow); margin-right: .35em; }

.lp-practice { background: var(--lp-mist); border-radius: 6px; padding: 30px 28px 22px; }
.lp-practice-head { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-grey); margin-bottom: 10px; }
.lp-practice-item { display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--lp-silver); text-decoration: none !important; color: var(--lp-black) !important; transition: padding .2s; }
.lp-practice-item:hover { padding-left: 12px; }
.lp-practice-num { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: .85rem; color: var(--lp-grey); min-width: 24px; }
.lp-practice-body { flex: 1; }
.lp-practice-body strong { display: block; font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: 1.12rem; margin-bottom: 3px; }
.lp-practice-body small { display: block; color: var(--lp-grey); font-size: .9rem; line-height: 1.45; }
.lp-practice-item > i { color: var(--lp-grey); transition: color .2s, transform .2s; }
.lp-practice-item:hover > i { color: var(--lp-black); transform: translateX(4px); }
.lp-practice-cta { display: block; margin-top: 18px; font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: .92rem; color: var(--lp-black) !important; text-decoration: none !important; }
.lp-practice-cta i { margin-left: .4em; font-size: .8em; }
@media (max-width: 991px) { .lp-hero { padding: 72px 0 56px; } }

/* Credentials band (replaces animated counters) */
.stats-section .stat-box { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.16) !important; box-shadow: none !important; }
.stats-section .stat-box:hover { transform: none; }
.stat-value { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; color: #fff; margin-top: .4rem; }
.stats-section .stat-label { color: #fff !important; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.stats-section .stat-desc { color: rgba(255,255,255,.78) !important; }
.stats-section .stat-icon { background: transparent !important; color: var(--lp-yellow) !important; }

/* Header: keep on one line at laptop widths */
@media (min-width: 992px) and (max-width: 1280px) {
  .navbar .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; font-size: .9rem; white-space: nowrap; }
  .navbar .btn, .navbar a.btn { white-space: nowrap; padding-left: 14px !important; padding-right: 14px !important; }
}
.navbar .nav-link { white-space: nowrap; }

/* Calmer motion: premium feel */
[data-aos] { transition-duration: 500ms !important; }
.btn:hover { transform: none !important; }

/* Mobile action bar */
.lp-mobile-bar { display: none; }
@media (max-width: 767px) {
  .lp-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--lp-silver); box-shadow: 0 -4px 16px rgba(31,31,33,.08); }
  .lp-mobile-bar a { flex: 1; text-align: center; padding: 11px 4px 10px; font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: .78rem; color: var(--lp-black) !important; text-decoration: none !important; }
  .lp-mobile-bar a i { display: block; font-size: 1.05rem; margin-bottom: 3px; color: var(--lp-grey); }
  .lp-mobile-bar a.lp-mb-primary { background: var(--lp-yellow); }
  .lp-mobile-bar a.lp-mb-primary i { color: var(--lp-black); }
  body { padding-bottom: 62px; }
  .whatsapp-round, .wa-popup { display: none !important; }
}

.navbar .btn-lz { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1200px) { .navbar .btn-lz { padding: 10px 16px !important; font-size: .88rem; } .navbar-brand img { max-height: 46px; } }

/* Registered-agent authorities (wordmarks set in brand type) */
.lp-authorities { margin: 48px auto 0; max-width: 980px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.18); }
.lp-authorities-head { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85) !important; margin-bottom: 18px; }
.lp-authorities-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.lp-authorities-list li { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: .95rem; letter-spacing: .02em; color: #fff; padding: 10px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; background: rgba(255,255,255,.06); }
.lp-authorities-note { font-size: .88rem; color: rgba(255,255,255,.75) !important; margin: 0; }
