/* ============================================================
   Letsos Public — site-wide styles
   Shared rules used across every page (loaded in _Layout.cshtml).
   Page-specific styles stay embedded in their own .cshtml.
   ============================================================ */

:root { --ls-blue: #10527f; }

body {
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    color: #434343;
}

/* ---------- Content typography ---------- */
h1, h2, h3 { color: var(--ls-blue); font-weight: bold; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
h4, h5 { color: #333; font-weight: bold; }
h4 { font-size: 14px; }
h5 { font-size: 13px; }
p { text-align: justify; }

/* ---------- Navbar / main menu ---------- */
.navbar { background-color: #efefef; }
.navbar-brand img { height: 55px; }
.navbar .nav-link { color: #000 !important; font-weight: bold; font-size: 12px; letter-spacing: .5px; }
.navbar .nav-link.active, .navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--ls-blue) !important; }
.navbar-toggler {
    border: none;
    padding: .35rem .55rem;
    border-radius: 6px;
    line-height: 1;
    transition: background-color .15s ease;
}
.navbar-toggler:hover { background-color: rgba(16,82,127,.10); }
.navbar-toggler:focus { box-shadow: none; outline: none; }
.navbar-toggler:active { background-color: rgba(16,82,127,.18); }
/* Clean navy "bars" icon (replaces Bootstrap's faint default) */
.navbar-toggler-icon {
    width: 1.4em;
    height: 1.4em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2310527f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7.5h22M4 15h22M4 22.5h22'/%3e%3c/svg%3e");
}

/* Pill tabs (e.g. Projects categories) — brand the active pill navy with white text */
.nav-pills .nav-link { color: var(--ls-blue); font-weight: bold; }
.nav-pills .nav-link.active { background-color: var(--ls-blue); color: #fff; }

/* Dropdown submenus — bold items, separator lines, navy hover (matches original superfish) */
.dropdown-menu { border-radius: 0; padding: 0; font-size: 12px; }
.dropdown-item { font-weight: bold; padding: .5rem 1rem; border-top: 1px solid #e6e9f0; white-space: normal; }
.dropdown-item:first-child { border-top: 0; }
.dropdown-item:hover, .dropdown-item:focus { background-color: #0055a5; color: #fff; }

/* Desktop only: open submenu on hover + underline the hovered top item.
   Below 992px the navbar collapses to a hamburger, so keep tap-to-toggle. */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
    .navbar-nav > .nav-item > .nav-link:hover { text-decoration: underline; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb { font-size: 12px; margin-bottom: 1rem; }
.breadcrumb a { color: var(--ls-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: #777; }

/* ---------- Image-wrap utilities (text flows around a sized image/slider) ---------- */
.img-wrap-right { float: right; max-width: 260px; width: 34%; margin: .25rem 0 1rem 1.5rem; }
.img-wrap-left  { float: left;  max-width: 260px; width: 34%; margin: .25rem 1.5rem 1rem 0; }
.img-wrap-right, .img-wrap-left { border-radius: 5px; overflow: hidden; }
.img-wrap-right img, .img-wrap-left img { border-radius: 5px; }
@media (max-width: 575px) {
    .img-wrap-right, .img-wrap-left { float: none; width: 100%; max-width: 100%; margin: 0 0 1rem; }
}

/* ---------- Article layout: one text block, photos floated around it ----------
   Desktop: photos float (left/right) and .surround-text wraps around them.
   Phone (<576px): flex order shows the text first, photos stacked below. */
.surround { overflow: hidden; }                 /* contain the floats */
@media (max-width: 575px) {
    .surround { display: flex; flex-direction: column; }
    .surround > .surround-text { order: 1; }
    .surround > img, .surround > .carousel { order: 2; }
}

/* Additional photos pile below the text when a page has more than one photo. */
.ls-gallery { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.ls-gallery img { width: 280px; max-width: 100%; border-radius: 5px; }

/* ---------- Carousel controls — dark translucent circle so the white chevron stands out ---------- */
.carousel-control-prev, .carousel-control-next { opacity: .9; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0,0,0,.55);
    border-radius: 50%;
    background-size: 55% 55%;
    width: 2.4rem;
    height: 2.4rem;
}

/* ---------- Back-to-top button ---------- */
.btn-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: var(--ls-blue);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: none;
    z-index: 1030;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    transition: background-color .2s;
}
.btn-top:hover { background-color: #0055a5; }

/* ---------- Hero carousel (home page) ---------- */
#heroCarousel .carousel-item img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.slide-logo { max-height: 60px; object-fit: contain; }

/* ---------- Footer ---------- */
footer { background-color: #efefef; font-size: 12px; }
footer h6 { color: #666; font-size: 13px; font-weight: bold; }
footer a { color: #363636; text-decoration: none; }
footer a:hover { color: var(--ls-blue); }
footer p { color: #363636; line-height: 1.7; }

/* ---------- Error toast ---------- */
#ls-error-toast { display: none; max-width: 420px; }

/* ---------- Logo sizing helpers (logos recur across many pages) ---------- */
.logo-md { max-height: 50px; }   /* association / partner logo rows */
.logo-lg { max-height: 60px; }   /* award badges, division logos */

/* ---------- Theme toggle button ---------- */
#themeToggle { font-size: 1.05rem; line-height: 1; padding: .25rem .5rem; cursor: pointer; }
#themeToggle:focus { box-shadow: none; outline: none; }

/* ============================================================
   Dark theme (Bootstrap 5.3 color mode). Activated by
   data-bs-theme="dark" on <html>. Bootstrap components adapt
   automatically; below we override the site's hard-coded colors.
   ============================================================ */
[data-bs-theme="dark"] body { background-color: #121212; color: #e0e0e0; }
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3 { color: #6ea8d8; }
[data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5 { color: #e6e6e6; }
[data-bs-theme="dark"] .svc-card-title { color: #6ea8d8; }   /* home service-card titles */

/* Navbar */
[data-bs-theme="dark"] .navbar { background-color: #1e1e1e; }
/* The logo PNG is dark-colored; give it a light chip so it stays visible */
[data-bs-theme="dark"] .navbar-brand img { background: #fff; border-radius: 5px; padding: 3px 6px; }
[data-bs-theme="dark"] .navbar .nav-link { color: #e0e0e0 !important; }
[data-bs-theme="dark"] .navbar .nav-link.active,
[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link:focus { color: #6ea8d8 !important; }
[data-bs-theme="dark"] .navbar-toggler:hover { background-color: rgba(110,168,216,.15); }
[data-bs-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236ea8d8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7.5h22M4 15h22M4 22.5h22'/%3e%3c/svg%3e");
}

/* Dropdown submenus */
[data-bs-theme="dark"] .dropdown-item { color: #e0e0e0; border-top-color: #333; }
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus { background-color: #0d6efd; color: #fff; }

/* Pill tabs (Projects) */
[data-bs-theme="dark"] .nav-pills .nav-link { color: #6ea8d8; }
[data-bs-theme="dark"] .nav-pills .nav-link.active { background-color: #0d6efd; color: #fff; }

/* Breadcrumb */
[data-bs-theme="dark"] .breadcrumb a { color: #6ea8d8; }
[data-bs-theme="dark"] .breadcrumb-item.active { color: #9a9a9a; }

/* Footer */
[data-bs-theme="dark"] footer { background-color: #1e1e1e; }
[data-bs-theme="dark"] footer h6 { color: #bdbdbd; }
[data-bs-theme="dark"] footer a, [data-bs-theme="dark"] footer p { color: #cfcfcf; }
[data-bs-theme="dark"] footer a:hover { color: #6ea8d8; }

/* Logos: give a light chip so colored/black logos stay visible on dark surfaces */
[data-bs-theme="dark"] footer .d-flex img,
[data-bs-theme="dark"] main .d-flex.flex-wrap img { background: #fff; border-radius: 4px; padding: 3px; }

/* Apply-form toolbar (uses .bg-light) */
[data-bs-theme="dark"] .btn-toolbar.bg-light { background-color: #2a2a2a !important; }

/* Infographic pages: keep the artwork on a light panel; only the page around it goes dark */
[data-bs-theme="dark"] .infographic-wrap { background: #fff; border-radius: 6px; padding: 8px; color: #434343; }
