/* ==========================================================================
   Legal Consultancy — common frontend styles (shared by every theme)
   Themes set the variables below in public/themes/{theme}/style.css
   ========================================================================== */
:root {
    --lc-primary: #0f1f3d;
    --lc-accent: #c9a24a;
    --lc-bg: #ffffff;
    --lc-surface: #ffffff;
    --lc-surface-alt: #f6f7f9;
    --lc-text: #2a2f3a;
    --lc-heading: #0f1f3d;
    --lc-muted: #6b7280;
    --lc-border: #e5e7eb;
    --lc-font-head: Georgia, serif;
    --lc-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --lc-radius: 6px;
    --lc-radius-lg: 12px;
    --lc-shadow: 0 10px 30px rgba(15, 31, 61, .08);
    --lc-shadow-hover: 0 18px 40px rgba(15, 31, 61, .14);
    --lc-section-y: 96px;
    --lc-on-primary: #ffffff;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--lc-font-body);
    color: var(--lc-text);
    background: var(--lc-bg);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .lc-title { font-family: var(--lc-font-head); color: var(--lc-heading); line-height: 1.25; }
a { color: var(--lc-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lc-accent); }
img { max-width: 100%; }
.text-accent { color: var(--lc-accent) !important; }
.lc-muted { color: var(--lc-muted); }
::selection { background: var(--lc-accent); color: #fff; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; letter-spacing: .02em; border-radius: var(--lc-radius); padding: .7rem 1.5rem; transition: all .25s ease; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-lc { background: var(--lc-accent); border: 1px solid var(--lc-accent); color: #fff; }
.btn-lc:hover, .btn-lc:focus { background: var(--lc-primary); border-color: var(--lc-primary); color: var(--lc-on-primary); transform: translateY(-2px); }
.btn-lc-outline { background: transparent; border: 1px solid var(--lc-primary); color: var(--lc-primary); }
.btn-lc-outline:hover { background: var(--lc-primary); color: var(--lc-on-primary); }
.btn-lc-ghost { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-lc-ghost:hover { background: #fff; color: var(--lc-primary); }
.btn-lc-light { background: #fff; color: var(--lc-primary); border: 1px solid #fff; }
.btn-lc-light:hover { background: var(--lc-accent); border-color: var(--lc-accent); color: #fff; }

/* ---------- Brand ---------- */
.lc-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.lc-brand img { max-height: 52px; width: auto; }
.lc-brand-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lc-primary); color: var(--lc-accent); font-size: 1.15rem; flex-shrink: 0; }
.lc-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.lc-brand-name { font-family: var(--lc-font-head); font-weight: 700; font-size: 1.25rem; color: var(--lc-heading); }
.lc-brand-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lc-muted); }

/* ---------- Header / nav ---------- */
.lc-header { transition: all .3s ease; z-index: 1030; }
.lc-header .navbar { padding: 1rem 0; transition: padding .3s; }
.lc-header.is-scrolled .navbar { padding: .55rem 0; }
.lc-header .nav-link { font-weight: 500; padding: .5rem .9rem !important; color: var(--lc-heading); position: relative; }
.lc-header .nav-link.active, .lc-header .nav-link:hover { color: var(--lc-accent); }
.navbar-toggler { border: 0; font-size: 1.4rem; color: var(--lc-heading); box-shadow: none !important; }
.lc-mega-menu { min-width: 520px; padding: .75rem; border: 0; border-radius: var(--lc-radius-lg); box-shadow: var(--lc-shadow-hover); background: var(--lc-surface); }
.lc-mega-menu .dropdown-item { border-radius: var(--lc-radius); padding: .55rem .75rem; font-size: .92rem; white-space: normal; color: var(--lc-text); }
.lc-mega-menu .dropdown-item i { color: var(--lc-accent); width: 18px; text-align: center; }
.lc-mega-menu .dropdown-item:hover { background: var(--lc-surface-alt); color: var(--lc-primary); }
@media (min-width: 992px) {
    .lc-mega:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 991.98px) {
    .lc-mega-menu { min-width: 0; box-shadow: none; padding: 0 0 0 .5rem; }
    .navbar-collapse { padding: 1rem 0; }
}

/* ---------- Sections ---------- */
.lc-section { padding: var(--lc-section-y) 0; position: relative; }
.lc-section-alt { background: var(--lc-surface-alt); }
.lc-heading { max-width: 760px; margin-bottom: 3.5rem; }
.lc-eyebrow { display: inline-block; font-family: var(--lc-font-body); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lc-accent); margin-bottom: .75rem; }
.lc-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; }
.lc-title-lg { font-size: clamp(2rem, 3.6vw, 3rem); }
.lc-lead { font-size: 1.1rem; color: var(--lc-muted); margin-bottom: 0; }
.lc-subhead { font-family: var(--lc-font-body); font-weight: 700; font-size: 1.05rem; color: var(--lc-heading); margin-bottom: 1rem; }
.lc-subhead-lg { font-size: 1.6rem; margin-bottom: 1.25rem; }

/* ---------- Cards ---------- */
.lc-card { display: block; background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius-lg); padding: 2rem; color: var(--lc-text); transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
a.lc-card:hover, .lc-card.lc-challenge:hover, .lc-card.lc-audience:hover, .lc-card.lc-engage:hover { transform: translateY(-6px); box-shadow: var(--lc-shadow-hover); border-color: transparent; color: var(--lc-text); }
.lc-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; color: var(--lc-heading); }
.lc-icon { width: 58px; height: 58px; border-radius: var(--lc-radius-lg); display: grid; place-items: center; font-size: 1.4rem; color: var(--lc-accent); background: color-mix(in srgb, var(--lc-accent) 12%, transparent); margin-bottom: 1.25rem; transition: all .3s; }
.lc-icon-sm { width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 1rem; }
a.lc-card:hover .lc-icon { background: var(--lc-accent); color: #fff; }
.lc-num { font-family: var(--lc-font-head); font-size: 1.1rem; font-weight: 700; color: color-mix(in srgb, var(--lc-accent) 70%, transparent); }
.lc-link { font-weight: 600; color: var(--lc-primary); font-size: .92rem; }
a.lc-card:hover .lc-link { color: var(--lc-accent); }
.lc-chip { display: inline-block; padding: .35rem .8rem; border-radius: 50rem; font-size: .82rem; font-weight: 500; background: color-mix(in srgb, var(--lc-primary) 7%, transparent); color: var(--lc-heading); border: 1px solid color-mix(in srgb, var(--lc-primary) 12%, transparent); }

/* ---------- Opening ---------- */
.lc-opening-mark { font-size: 4rem; color: color-mix(in srgb, var(--lc-accent) 35%, transparent); line-height: 1; margin-top: 1rem; }
.lc-rich h4, .lc-rich h5 { font-family: var(--lc-font-head); margin: 1.5rem 0 .6rem; color: var(--lc-heading); }
.lc-rich p:last-child { margin-bottom: 0; }
.lc-rich ul { padding-left: 1.2rem; }
.lc-rich li { margin-bottom: .4rem; }

/* ---------- Steps ---------- */
.lc-step { display: flex; gap: 1.25rem; padding: 2rem; border-radius: var(--lc-radius-lg); background: var(--lc-surface); border: 1px solid var(--lc-border); transition: all .3s; }
.lc-step:hover { box-shadow: var(--lc-shadow); }
.lc-step-num { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--lc-font-head); font-size: 1.35rem; font-weight: 700; background: var(--lc-primary); color: var(--lc-accent); }

/* ---------- Lists ---------- */
.lc-list-check, .lc-list-arrow, .lc-side-links { list-style: none; padding: 0; margin: 0; }
.lc-list-check li { position: relative; padding-left: 2rem; margin-bottom: .85rem; }
.lc-list-check li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .15rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; background: color-mix(in srgb, var(--lc-accent) 15%, transparent); color: var(--lc-accent); }
.lc-list-lg li { font-size: 1.05rem; padding: 1rem 1rem 1rem 3rem; background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius-lg); }
.lc-list-lg li::before { left: 1rem; top: 1.25rem; }
.lc-list-arrow li { position: relative; padding-left: 1.6rem; margin-bottom: .75rem; }
.lc-list-arrow li::before { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--lc-accent); font-size: .8rem; top: .3rem; }
.lc-side-links li { border-bottom: 1px solid var(--lc-border); }
.lc-side-links li:last-child { border-bottom: 0; }
.lc-side-links a { display: block; padding: .65rem 0; font-size: .92rem; color: var(--lc-text); }
.lc-side-links a i { color: var(--lc-accent); width: 18px; }
.lc-side-links a:hover { color: var(--lc-accent); padding-left: .25rem; }

/* ---------- Glance table ---------- */
.lc-glance { border-radius: var(--lc-radius-lg); border: 1px solid var(--lc-border); background: var(--lc-surface); }
.lc-glance table { --bs-table-bg: transparent; font-size: .93rem; }
.lc-glance thead th { background: var(--lc-primary); color: #fff; font-weight: 600; padding: 1rem; border: 0; white-space: nowrap; }
.lc-glance td { padding: 1rem; border-color: var(--lc-border); color: var(--lc-text); }
.lc-glance tbody tr:hover td { background: color-mix(in srgb, var(--lc-accent) 6%, transparent); }

/* ---------- Accordion ---------- */
.lc-accordion .accordion-item { border: 1px solid var(--lc-border); border-radius: var(--lc-radius-lg) !important; margin-bottom: 1rem; overflow: hidden; background: var(--lc-surface); }
.lc-accordion .accordion-button { font-weight: 600; font-size: 1.05rem; padding: 1.25rem 1.5rem; background: var(--lc-surface); color: var(--lc-heading); box-shadow: none; }
.lc-accordion .accordion-button:not(.collapsed) { color: var(--lc-accent); background: var(--lc-surface); }
.lc-accordion .accordion-button:focus { box-shadow: none; }
.lc-accordion .accordion-body { padding: 0 1.5rem 1.5rem; color: var(--lc-muted); }

/* ---------- CTA ---------- */
.lc-cta { padding: 0 0 var(--lc-section-y); }
.lc-section-alt + .lc-cta, .lc-cta:first-child { padding-top: var(--lc-section-y); }
.lc-cta-box { border-radius: calc(var(--lc-radius-lg) * 1.5); padding: 3.5rem; background: var(--lc-primary); color: #fff; position: relative; overflow: hidden; }
.lc-cta-box::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid color-mix(in srgb, var(--lc-accent) 25%, transparent); }
.lc-cta-title { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: .75rem; }
.lc-cta-text { color: rgba(255,255,255,.8); max-width: 640px; }
.lc-cta-phone { color: rgba(255,255,255,.75); }
.lc-cta .row { position: relative; z-index: 1; }

/* ---------- Page hero ---------- */
.page-hero { padding: 150px 0 80px; background: var(--lc-primary); color: #fff; position: relative; overflow: hidden; }
.page-hero-title { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; margin-bottom: 1rem; max-width: 900px; }
.page-hero-sub { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 760px; margin-bottom: 0; }
.lc-breadcrumb { margin-bottom: 1.25rem; font-size: .88rem; }
.lc-breadcrumb .breadcrumb-item, .lc-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.7); }
.lc-breadcrumb .breadcrumb-item a:hover { color: var(--lc-accent); }
.lc-breadcrumb .breadcrumb-item.active { color: var(--lc-accent); }
.lc-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ---------- Service detail ---------- */
.lc-block-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lc-accent); margin-bottom: .75rem; }
.lc-block { border-top: 3px solid var(--lc-accent); }
.lc-example { padding: 2rem; border-radius: var(--lc-radius-lg); background: color-mix(in srgb, var(--lc-accent) 9%, var(--lc-surface)); border-left: 4px solid var(--lc-accent); }
.lc-quote { font-family: var(--lc-font-head); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-style: italic; color: var(--lc-heading); padding: 1.5rem 0 1.5rem 2rem; border-left: 3px solid var(--lc-accent); margin: 0; }
.lc-service-img { border-radius: var(--lc-radius-lg); width: 100%; max-height: 420px; object-fit: cover; }
.lc-sticky { position: sticky; top: 110px; }
.lc-side-cta { background: var(--lc-primary); color: rgba(255,255,255,.85); border: 0; }
.lc-side-cta h5 { color: #fff; }
.lc-engage-box { border-top: 3px solid var(--lc-primary); }

/* ---------- Profile ---------- */
.lc-profile-visual { position: relative; padding: 0 0 2rem 2rem; }
.lc-profile-visual img, .lc-profile-placeholder { border-radius: var(--lc-radius-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; position: relative; z-index: 1; }
.lc-profile-visual::before { content: ""; position: absolute; left: 0; bottom: 0; width: 75%; height: 75%; border: 2px solid var(--lc-accent); border-radius: var(--lc-radius-lg); }
.lc-profile-placeholder { display: grid; place-items: center; background: linear-gradient(160deg, var(--lc-primary), color-mix(in srgb, var(--lc-primary) 70%, #000)); color: color-mix(in srgb, var(--lc-accent) 70%, transparent); font-size: 7rem; }
.lc-exp-badge { position: absolute; right: -1rem; bottom: 3.5rem; z-index: 2; background: var(--lc-accent); color: #fff; padding: 1.25rem 1.5rem; border-radius: var(--lc-radius-lg); display: flex; align-items: center; gap: .9rem; box-shadow: var(--lc-shadow-hover); }
.lc-exp-num { font-family: var(--lc-font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.lc-exp-label { font-size: .82rem; line-height: 1.3; }

/* ---------- Contact ---------- */
.lc-contact-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.lc-contact-row .lc-icon { margin-bottom: 0; flex-shrink: 0; }
.lc-note { font-size: .85rem; padding: 1rem; border-radius: var(--lc-radius); background: var(--lc-surface-alt); color: var(--lc-muted); }
.lc-form-card .form-control, .lc-form-card .form-select { padding: .8rem 1rem; border-radius: var(--lc-radius); border-color: var(--lc-border); background-color: var(--lc-surface); color: var(--lc-text); }
.lc-form-card .form-control:focus, .lc-form-card .form-select:focus { border-color: var(--lc-accent); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--lc-accent) 20%, transparent); }
.lc-form-card .form-label { font-weight: 600; font-size: .88rem; color: var(--lc-heading); }
.lc-form-card .form-check-input:checked { background-color: var(--lc-accent); border-color: var(--lc-accent); }
.lc-map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.3); }
.lc-alert { border-radius: var(--lc-radius); }
.lc-page-content { padding: 3rem; }

/* ---------- Footer ---------- */
.lc-footer { padding: 80px 0 0; background: var(--lc-primary); color: rgba(255,255,255,.72); font-size: .95rem; }
.lc-footer .lc-brand-name { color: #fff; }
.lc-footer .lc-brand-tag { color: rgba(255,255,255,.55); }
.lc-footer .lc-brand-mark { background: var(--lc-accent); color: var(--lc-primary); }
.lc-footer-title { color: #fff; font-family: var(--lc-font-body); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.lc-footer-links, .lc-footer-contact { list-style: none; padding: 0; margin: 0; }
.lc-footer-links li { margin-bottom: .6rem; }
.lc-footer a { color: rgba(255,255,255,.72); }
.lc-footer a:hover { color: var(--lc-accent); }
.lc-footer-contact li { display: flex; gap: .75rem; margin-bottom: .9rem; }
.lc-footer-contact i { color: var(--lc-accent); margin-top: .3rem; width: 16px; }
.lc-social { display: flex; gap: .5rem; }
.lc-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); font-size: .9rem; }
.lc-social a:hover { background: var(--lc-accent); border-color: var(--lc-accent); color: #fff; }
.lc-footer-disclaimer { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; line-height: 1.6; color: rgba(255,255,255,.55); }
.lc-footer-bottom { padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.lc-footer-pages a { margin-left: 1.25rem; }
.lc-footer-pages a:first-child { margin-left: 0; }

/* ---------- Floating ---------- */
.lc-wa-float { position: fixed; left: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37,211,102,.4); z-index: 1040; animation: lcPulse 2.5s infinite; }
.lc-wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes lcPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }
.lc-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: var(--lc-radius); background: var(--lc-accent); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; z-index: 1040; }
.lc-to-top.show { opacity: 1; visibility: visible; transform: none; }
.lc-to-top:hover { background: var(--lc-primary); color: #fff; }
.lc-preview-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2000; background: #111; color: #fff; padding: .6rem 1rem; border-radius: 50rem; font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); white-space: nowrap; }
.lc-modal { border: 0; border-radius: var(--lc-radius-lg); padding: 1rem; background: var(--lc-surface); }
.lc-modal .modal-body { color: var(--lc-text); }

@media (max-width: 991.98px) {
    :root { --lc-section-y: 70px; }
    .lc-cta-box { padding: 2.5rem 1.75rem; }
    .lc-sticky { position: static; }
    .page-hero { padding: 130px 0 60px; }
    .lc-page-content { padding: 1.75rem; }
    .lc-preview-bar { white-space: normal; width: 92%; border-radius: 12px; text-align: center; }
}
@media (max-width: 575.98px) {
    .lc-brand-tag { display: none; }
    .lc-brand-name { font-size: 1.1rem; }
    .lc-brand img { max-height: 42px; }
    .lc-header .navbar > .container { flex-wrap: nowrap; }
    .lc-header .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: var(--lc-surface); padding: 1rem 1.25rem 1.5rem; box-shadow: 0 20px 30px rgba(0,0,0,.12); max-height: 80vh; overflow-y: auto; }
    .lc-wa-float { width: 50px; height: 50px; font-size: 1.5rem; left: 14px; bottom: 14px; }
}

/* ---------- Social icon styles (Admin > Social Media) ---------- */
.lc-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.lc-social a { transition: all .25s ease; }
.lc-social-rounded a { border-radius: 8px !important; }
.lc-social-plain a { width: auto !important; height: auto !important; background: none !important; border: 0 !important; padding: 0 .35rem; font-size: 1.05rem; }
.lc-social a:hover { transform: translateY(-3px); }

/* ---------- Map (Admin > Map & Location) ---------- */
.lc-map { position: relative; line-height: 0; }
.lc-map iframe { width: 100%; border: 0; display: block; filter: none; }
.lc-map.is-gray iframe { filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.lc-map.is-gray:hover iframe { filter: none; }
.lc-map-card { position: absolute; left: max(1rem, calc((100vw - 1296px) / 2 + 12px)); top: 50%; transform: translateY(-50%); background: var(--lc-surface); color: var(--lc-text); line-height: 1.6; border-radius: var(--lc-radius-lg); padding: 1.25rem 1.5rem; box-shadow: var(--lc-shadow-hover); display: flex; gap: 1rem; max-width: 340px; border-top: 3px solid var(--lc-accent); }
.lc-map-card strong { font-family: var(--lc-font-head); color: var(--lc-heading); font-size: 1.05rem; }
.lc-map-card-icon { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--lc-accent); color: #fff; }
.lc-map-dir { display: inline-block; margin-top: .5rem; font-weight: 600; font-size: .9rem; color: var(--lc-accent); }
@media (max-width: 767.98px) { .lc-map-card { position: static; transform: none; max-width: none; border-radius: 0; box-shadow: none; } }

/* ---------- reCAPTCHA ---------- */
.lc-recaptcha-note { color: var(--lc-muted); }
.grecaptcha-badge { visibility: hidden; }
