/*
 * Porto → ProsoThème hand fixes (measured against live https://dettessecours.ca).
 * Each rule names the live behaviour it reproduces.
 */

/* Live root font size is the browser default (16px); ProsoThème sets 10px. Every rem of Porto,
   WPBakery, Ultimate Addons and Contact Form 7 is computed from it. */
html { font-size: 16px; line-height: normal; }
/* Live body (Porto): Lato 14px/22px #777 — the footer's .9em and every inherited size depend on it. */
body { font-family: Lato, sans-serif; font-size: 14px; line-height: 22px; color: #777; }

/* ProsoThème wrappers around the Porto #main: no extra background/padding/min-height */
.content-outer > .content { min-height: 0 !important; padding: 0; background: transparent; }
.content-outer > .content > .content-inner { padding: 0; margin: 0; max-width: none; width: auto; }

/* ==========================================================================
   Header — Porto header-11 as measured on live at 1280 (findings/live-chrome-1280.json,
   findings/live-header-details.json). ProsoThème "regular" header, not sticky (live scrolls away).
   ========================================================================== */
.main-header { border-top: 5px solid #ededed; font-family: Lato, sans-serif; font-size: 14px; line-height: 22px; color: #999; }
.main-header .header-bottom { background-color: #000; padding: 0; }
.main-header .header-bottom > .container { box-sizing: border-box; width: auto; max-width: 1140px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; }
.main-header .header-bottom > .container::after { content: none; }
.main-header .header-bottom-left,
.main-header .header-bottom-right { float: none; }
.main-header .header-bottom-right { display: flex; align-items: center; padding-left: 30px; }
.main-header .logo-wrapper { height: auto; line-height: 0; }
.main-header .logo-wrapper img { display: inline-block; width: auto; max-width: 200px; height: auto; }
@media (max-width: 1169px) { .main-header .logo-wrapper img { max-width: 170px; } }

/* main menu */
.main-header .main-menu-container { height: 40px; }
.main-header .main-menu > li { float: left; margin: -5px 0 0 2px; }
.main-header .main-menu > li > a {
	display: inline-block; padding: 11px 13px 9px; border-top: 5px solid transparent;
	font-family: "Poppins-regular", sans-serif; font-size: 14px; font-weight: 700; line-height: 20px;
	text-transform: uppercase; color: #fff; text-decoration: none;
}
.main-header .main-menu > li.menu-item-has-children > a::after {
	content: "\f0d7"; font-family: FontAwesome; font-weight: 400; font-size: 14px; line-height: 14px;
	display: inline-block; margin-left: 5px; width: 8px;
}
.main-header .main-menu > li:hover > a,
.main-header .main-menu > li.current-menu-item > a,
.main-header .main-menu > li.current-menu-ancestor > a,
.main-header .main-menu > li.current-menu-parent > a { color: #71bf43; border-top-color: #71bf43; }

/* dropdowns (Porto "narrow" popup) */
.main-header .main-menu > li > ul {
	top: 45px; left: 0; width: auto; min-width: 180px; margin: 0; white-space: nowrap;
	background: #fff; padding: 5px; border-top: 3px solid #71bf43; box-shadow: 0 5px 8px 0 rgba(0, 0, 0, .15);
	z-index: 111; text-align: left; line-height: 24px;
}
.main-header .main-menu li > ul > li > a {
	display: block; padding: 8px; border-bottom: 1px solid #f2f2f2;
	font-family: "Poppins-regular", sans-serif; font-size: 14px; font-weight: 400; line-height: 24px;
	color: #777; text-transform: none; text-decoration: none;
}
.main-header .main-menu li > ul > li:last-child > a { border-bottom: 0; }

/* Facebook link (Porto .share-links) */
.main-header .widget-header-bottom-right { height: auto; line-height: 14px; }
.main-header .share-links { display: inline-block; margin: 1px 0 0 5px; line-height: 14px; }
.main-header .share-links a {
	position: relative; display: inline-block; width: 30px; height: 30px; margin: 0 2px; vertical-align: middle;
	border-radius: 30px; background: #fff; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .3);
	color: #333; font-size: 14px; line-height: 14px; text-align: center; text-decoration: none;
}
.main-header .share-links a::before {
	content: "\f09a"; font-family: FontAwesome; font-weight: 400; position: absolute; left: 0; top: 0;
	width: 30px; height: 22px; margin: 4px 0; line-height: 23px;
}

/* ==========================================================================
   Footer — Porto footer rules are mapped onto ProsoThème's .main-footer by css/porto-scoped.css;
   only the ProsoThème wrappers are adjusted here.
   ========================================================================== */
.main-footer { background-color: #0e0e0e; }
.main-footer .footer-top { padding: 0; }
.main-footer .footer-top > .container { display: flex; flex-wrap: wrap; box-sizing: border-box; padding: 40px 15px 10px; }
.main-footer .footer-top .footer-col { box-sizing: border-box; float: none; flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.main-footer .footer-top .footer-col-1 { padding-left: 0; }
.main-footer .footer-top .footer-col-2 { padding-right: 0; }
.main-footer .footer-bottom { background-color: #060606; padding: 15px 0; }
.main-footer .footer-bottom-center,
.main-footer .footer-bottom-inner,
.main-footer .footer-bottom .widget { float: none; width: auto; text-align: left; margin: 0; padding: 0; }

/* logo heading (h1 on the front page, as on live): no heading spacing/size of its own */
.main-header .logo-wrapper .logo { margin: 0; padding: 0; font-size: 0; line-height: 0; }
/* live: menu and share links are inline-blocks, the space between them adds ~3px */
.main-header .widget-header-bottom-right { margin-left: 3px; }

/* ==========================================================================
   Mobile header (< 992 px) — box layout of live's Porto header-11, measured at 390 and 768.
   Porto's own toggle / panel / accordion rules are in css/porto-mobile.css.
   ========================================================================== */
.header-mobile.ds-porto-mobile { padding: 0; margin: 0; height: auto; position: relative; background: none; }
.ds-porto-mobile #header { border-top: 5px solid #ededed; font-family: Lato, sans-serif; font-size: 14px; line-height: 22px; color: #999; }
.ds-porto-mobile .container { box-sizing: border-box; width: 100%; max-width: none; margin: 0 auto; padding: 0 15px; }
@media (min-width: 576px) { .ds-porto-mobile .container { max-width: 540px; } }
@media (min-width: 768px) { .ds-porto-mobile .container { max-width: 720px; } }
.ds-porto-mobile .header-main { background-color: #000; }
.ds-porto-mobile .header-main > .container { display: flex; align-items: center; justify-content: space-between; height: 90px; }
.ds-porto-mobile .logo { margin: 0; line-height: 0; }
.ds-porto-mobile .logo img { display: inline-block; width: 110px; max-width: 110px; height: auto; }
.ds-porto-mobile .header-right { text-align: right; line-height: 0; }
.ds-porto-mobile #header .mobile-toggle { box-sizing: border-box; width: 38px; height: 34px; text-decoration: none; }
.ds-porto-mobile .ds-fa-reorder::before { content: "\f0c9"; font-family: FontAwesome; font-style: normal; font-weight: 400; display: inline-block; width: 12px; }
.ds-porto-mobile #header { background-color: #000; }
.ds-porto-mobile #nav-panel ul { margin: 0; padding: 0; list-style: none; }
.ds-porto-mobile #nav-panel .mobile-menu .sub-menu { margin-left: 20px; }
.ds-porto-mobile #nav-panel a:hover { text-decoration: none; }
@media (max-width: 575px) { .ds-porto-mobile #header { font-size: 13px; line-height: 20px; } }
/* ProsoThème's "left header" type also uses .header-left / .header-right: neutralise it inside Porto's markup */
.ds-porto-mobile .header-left,
.ds-porto-mobile .header-right { float: none; position: static; top: auto; left: auto; width: auto; height: auto; margin: 0; padding: 0; background: none; overflow: visible; z-index: auto; transform: none; box-shadow: none; }
/* ProsoThème's .container clearfix pseudo-elements would become flex items */
.ds-porto-mobile .container::before,
.ds-porto-mobile .container::after { content: none; display: none; }
/* below 992 px the 5px #ededed top border comes from Porto's #header inside .header-mobile */
@media (max-width: 991px) { .main-header { border-top: 0; } }
/* footer below 992 px: Porto's col-lg-6 columns stack full width; Bootstrap 4 container widths */
@media (max-width: 991px) {
	.main-footer .footer-top .footer-col,
	.main-footer .footer-top .footer-col-1,
	.main-footer .footer-top .footer-col-2 { flex: 0 0 100%; max-width: 100%; padding: 0; }
	.main-footer .container { box-sizing: border-box; width: 100%; max-width: 720px; }
}
@media (max-width: 767px) { .main-footer .container { max-width: 540px; } }
@media (max-width: 575px) { .main-footer .container { max-width: none; } }
/* live's footer-bottom logo + copyright is not a widget: no widget top margin below 992 px */
.main-footer:not(#ds-porto-footer) .footer-bottom .footer-bottom-widget { margin: 0; }
/* Porto body text below 576 px */
@media (max-width: 575px) { body { font-size: 13px; line-height: 20px; } }
