/* ==========================================================
   Restoration fixes (post-archive recovery)
   Shared overrides for the Unify template + legacy content
   ========================================================== */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Header / nav */
.header { border-bottom: 3px solid #E4D288; }
.header .navbar-brand { padding-top: 10px; padding-bottom: 10px; height: auto; }
.header .navbar-brand img { max-height: 110px; width: auto; }
@media (min-width: 992px) {
  .header .navbar-collapse { margin-top: 75px; }
  .header .navbar-default .navbar-nav > li > a { padding-bottom: 14px; }
}
@media (max-width: 991px) {
  .header .navbar-collapse { margin-top: 0 !important; background: #8e8b86; }
  .header .navbar-brand img { max-height: 80px; }
  .header .navbar-toggle { margin-top: 30px; }
  .header .navbar-toggle .fa { color: #fff; }
  .header .navbar-default .navbar-nav .dropdown-menu li a { color: #fff; }
}

/* Clients/affiliations strip: static responsive grid (slider plugin unreliable) */
#clients-flexslider .slides { width: auto !important; transform: none !important; -webkit-transform: none !important;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
#clients-flexslider .slides li { width: auto !important; float: none !important; display: block !important; margin: 0; }
#clients-flexslider .slides li.clone { display: none !important; }
#clients-flexslider .slides li img { max-height: 70px; width: auto; }
#clients-flexslider .flex-viewport { overflow: visible !important; height: auto !important; }

/* Footer */
.footer-v1 .footer-logo-col { padding-top: 20px; }
.footer-v1 .footer-logo { max-width: 260px; }

/* Breadcrumb title bar */
.breadcrumbs { background-color: #f7f5f0; }
.breadcrumbs h1 { color: #352613; }

/* Sidebar */
.tf-sidebar .list-group-item { border-radius: 0; color: #555; }
.tf-sidebar .list-group-item:hover { background: #352613; color: #fff; }
.tf-sidebar .list-group-item.active, .tf-sidebar .list-group-item.active:hover { background: #9d9a95; border-color: #9d9a95; color: #fff; }
.tf-sidebar h3 { font-size: 18px; margin-top: 0; border-bottom: 2px solid #E4D288; padding-bottom: 6px; }
.tf-sidebar .contact-box { background: #f7f5f0; padding: 15px; margin-top: 20px; border-left: 3px solid #E4D288; }

/* Legacy (archived) page content rendered inside the new template */
.legacy-content { line-height: 1.7; color: #555; }
.legacy-content h1, .legacy-content h2, .legacy-content h3 { color: #352613 !important; margin: 25px 0 12px; }
.legacy-content h1 { font-size: 24px; }
.legacy-content h2 { font-size: 20px; }
.legacy-content h3, .legacy-content h4 { font-size: 17px; }
.legacy-content p { margin-bottom: 14px; }
.legacy-content ul { padding-left: 22px; margin-bottom: 15px; }
.legacy-content a { color: #8a6d2f; }
.legacy-content a:hover { color: #352613; }
.legacy-content table { max-width: 100%; }
.legacy-content .legacy-block { margin-bottom: 10px; }
.legacy-content img { margin: 5px 10px 10px 0; border: 1px solid #eee; }
.legacy-content .case-study, .legacy-content .news-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.legacy-content .case-study strong, .legacy-content .news-item strong { color: #352613; font-size: 16px; }
.legacy-content a.link, .legacy-content a.read-more { display: inline-block; background: #352613; color: #fff; padding: 4px 12px; font-size: 13px; }
.legacy-content a.link:hover, .legacy-content a.read-more:hover { background: #9d9a95; color: #fff; text-decoration: none; }
.legacy-content .content-image, .legacy-content .content-image2 { display: none; }

/* Contact page */
.tf-contact-form .form-control { border-radius: 0; margin-bottom: 12px; }
.tf-contact-info p { margin-bottom: 8px; }
.tf-contact-info i { color: #9d9a95; width: 20px; }

/* Case studies built from archived material */
.case-gallery img { margin-bottom: 15px; }
.legacy-content img { width: auto; max-height: 380px; }
.legacy-content .case-gallery img { max-height: 220px; width: 100%; object-fit: cover; }
.legacy-content a.read-more { margin: 6px 0 14px; }
.legacy-content article > ul, .legacy-content article ul > li { list-style: none; padding-left: 0; }
@media (max-width: 767px) {
  .da-slider { height: 260px; }
  .da-slide h2 { font-size: 22px !important; line-height: 1.3 !important; top: 40px !important; width: 90% !important; }
  .da-slide h2 i { padding: 2px 6px !important; }
  .breadcrumbs h1 { font-size: 18px; }
}
.header .dropdown-menu li a:hover, .header .dropdown-menu li a:focus,
.header .dropdown-submenu:hover > a { color: #fff !important; }
@media (min-width: 992px) {
  .header .navbar-nav > li:nth-last-child(-n+2) .dropdown-submenu > .dropdown-menu { left: auto; right: 100%; }
}
@media (max-width: 991px) {
  .header .navbar-default .navbar-nav .open .dropdown-menu > li > a,
  .header .navbar-default .navbar-nav .dropdown-menu > li > a { color: #fff !important; }
  .header .navbar-default .navbar-nav .dropdown-menu { background: #7f7c77 !important; }
}
@media (max-width: 767px) {
  .da-slide h2, .da-slide h2 i { font-size: 20px !important; line-height: 1.4 !important; }
}
