/* Concrete CMS integration layer for the Law Firm template.
   Template styles stay untouched in style.css; everything CMS-specific lives here. */

/* Show content even if the scroll-reveal JS is slow/disabled,
   and never let a preloader overlay linger. */
.ftco-animate { opacity: 1 !important; visibility: visible !important; }
#ftco-loader { display: none !important; }

/* Keep the sticky navbar below the editing toolbar when logged in. */
html.ccm-toolbar-visible .ftco_navbar.scrolled { top: 48px; }

/* Logo in the navbar. It is a white-on-dark mark, so the sticky navbar stays
   dark too instead of switching to the template's white bar. */
.lf-brand { padding-top: 0; padding-bottom: 0; line-height: 1; }
.lf-brand img { display: block; height: 50px; width: auto; }
@media (max-width: 991.98px) {
    .lf-brand img { height: 40px; }
}
.ftco-navbar-light.scrolled { background: #1d2227 !important; }
.ftco-navbar-light.scrolled .nav-item > .nav-link { color: #fff !important; }
.ftco-navbar-light.scrolled .nav-item > .nav-link:hover,
.ftco-navbar-light.scrolled .nav-item.active > a { color: #cbb88c !important; }
.ftco-navbar-light.scrolled .navbar-toggler { color: rgba(255, 255, 255, 0.8) !important; border-color: transparent !important; }

/* Font Awesome 5 hamburger in place of the template's Open Iconic one. */
.navbar-toggler .fa-bars { margin-right: 4px; }

/* ---- Home: intro strip (one area, one feature block per column) ---- */
.lf-intro-row > .intro { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
    .lf-intro-row > .intro { flex: 0 0 25%; max-width: 25%; }
}
.ftco-intro .lf-intro-row > .intro:nth-child(4n+1) { background: #1d2227; }
.ftco-intro .lf-intro-row > .intro:nth-child(4n+2) { background: #161a1e; }
.ftco-intro .lf-intro-row > .intro:nth-child(4n+3) { background: #121518; }
.ftco-intro .lf-intro-row > .intro:nth-child(4n+4) { background: #0e1013; }

/* ---- Home: services grid and counters (one area, one block per cell) ---- */
.lf-services-row > .services { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.lf-services-row > .services .text p { margin-bottom: 0; }
@media (min-width: 992px) {
    .lf-services-row > .services { flex: 0 0 50%; max-width: 50%; }
}
.lf-counter-row > .counter-wrap { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
@media (min-width: 768px) {
    .lf-counter-row > .counter-wrap { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
    .lf-counter-row > .counter-wrap { flex: 0 0 25%; max-width: 25%; }
}

/* Cover image block fills its column like the template's background panel. */
.lf-cover { width: 100%; min-height: 320px; height: 100%; background-size: cover; background-position: center; }
.lf-cover-col > .lf-cover { flex: 1 1 auto; }

/* ---- Contact page ---- */
.lf-dbox-row > .dbox { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
@media (min-width: 576px) {
    .lf-dbox-row > .dbox { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
    .lf-dbox-row > .dbox { flex: 1 1 0; max-width: none; }
}
.lf-dbox-row .dbox .text { overflow-wrap: anywhere; }
.lf-dbox-row > .dbox { padding: 0 8px; }
.lf-dbox-row .dbox .text a { font-size: 14px; }
.lf-map-col > .lf-map { flex: 1 1 auto; }
.lf-map { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.contact-wrap h2 { font-size: 28px; }
.contact-wrap h3 { font-size: 20px; margin-top: 1.5rem; }
.ccm-edit-mode .lf-dbox-row > .ccm-area,
.ccm-edit-mode .lf-map-col > .ccm-area { flex: 0 0 100%; max-width: 100%; }
.ccm-edit-mode .lf-dbox-row > .ccm-area { padding: 0 15px; }

/* ---- Footer / utility bar menus coming from blocks ---- */
.ftco-footer .ftco-footer-widget .logo img { display: block; height: 60px; width: auto; max-width: 100%; }
.ftco-footer .ftco-footer-widget ul.lf-footer-nav { margin-bottom: 0; }
.wrap .lf-header-contact p { margin-bottom: 0; }
.ftco-footer .lf-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ftco-footer .lf-badge { width: 100%; max-width: 200px; }
.ftco-footer .lf-badge img { display: block; width: 100%; height: auto; }
.ftco-footer .lf-badge-card { background: #fff; border-radius: 4px; padding: 8px; }

/* ---- Inner pages with a sidebar ---- */
.lf-sidebar { margin-bottom: 30px; }
.lf-sidebar ul.nav { flex-direction: column; }
.lf-sidebar ul.nav ul { list-style: none; padding-left: 15px; }
.lf-sidebar ul.nav a { display: block; padding: 6px 0; }
.lf-sidebar ul.nav .nav-selected > a { font-weight: 500; }

/* ---- Edit mode ----
   Concrete wraps every block and adds drop zones between them, so the
   multi-column areas simply stack their blocks full width while editing. */
.ccm-edit-mode .lf-intro-row > .ccm-area,
.ccm-edit-mode .lf-services-row > .ccm-area,
.ccm-edit-mode .lf-counter-row > .ccm-area,
.ccm-edit-mode .lf-cover-col > .ccm-area { flex: 0 0 100%; max-width: 100%; }
.ccm-edit-mode .lf-services-row > .ccm-area,
.ccm-edit-mode .lf-counter-row > .ccm-area { padding: 0 15px; }
.ccm-edit-mode .lf-counter-row .counter-wrap { margin-bottom: 10px; }
.ccm-edit-mode .lf-cover { min-height: 420px; }
.ccm-edit-mode .ftco-intro .intro { margin-top: 0; }
.ccm-edit-mode .hero-wrap .overlay { pointer-events: none; }

/* Inner page title band: per-page crop point ("Header Image Position" page attribute).
   style.css forces "top center" with !important, so this has to be !important too. */
.hero-wrap.hero-wrap-2 { background-position: var(--lf-header-position, top center) !important; }

/* Counter suffix, e.g. the "+" in "3+" (see blocks/feature/templates/law_firm_counter.php) */
.ftco-counter .text strong.number-suffix {
    font-weight: 500;
    font-size: 30px;
    color: #fff;
}
