/* ==========================================================================
   NSPB static site - responsive layer
   --------------------------------------------------------------------------
   The base design is a fixed 1170px design. From 1200px upwards
   nothing in this file applies, so desktop is identical to the original.
   Below 1200px the same components, colours and fonts are re-flowed so the
   site fits tablets and phones without horizontal scrolling, and the main
   menu moves into a panel that slides in from the right.
   ========================================================================== */

/* Mobile menu button + panel: hidden on desktop */
.mobile-menu-btn { display: none; }
/* the theme gives every <button> an orange gradient; reset it for the menu controls */
.mobile-menu-btn,
.mobile-nav-close,
.mobile-nav .sub_toggle,
.mobile-search button {
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	border-radius: 0;
	min-height: 0;
}

.mobile-nav-panel.offcanvas-end {
	--bs-offcanvas-width: 320px;
	max-width: 86vw;
	background-color: #2a283d;
	color: #fff;
	border-left: 0;
}
.mobile-nav-panel .offcanvas-header {
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-nav-title {
	font-family: 'proxima_novablack';
	font-size: 22px;
	color: #fedd00;
	text-transform: uppercase;
}
.mobile-nav-close {
	background: none;
	width: auto;
	height: auto;
	border: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus { color: #fedd00; }
.mobile-nav-panel .offcanvas-body {
	padding: 16px 20px 30px;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.mobile-search {
	display: flex;
	margin-bottom: 14px;
	background: #fff;
	border-radius: 5px;
	overflow: hidden;
}
.mobile-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 10px 12px;
	font-size: 15px;
	font-family: 'ProximaNova-Regular';
	color: #141412;
	outline: 0;
}
.mobile-search button {
	border: 0;
	background: #fedd00 url(../images/theme/search-icon.png) no-repeat center;
	background-size: 20px 20px;
	width: 44px;
	text-indent: -9999px;
	overflow: hidden;
	cursor: pointer;
}
.mobile-nav,
.mobile-nav .sub_list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mobile-nav li {
	position: relative;
	margin: 0 0 6px;
}
.mobile-nav li a {
	display: block;
	background-color: #d9d8e0;
	border-radius: 5px;
	color: #141412;
	font-family: 'MyriadProSemibold';
	font-size: 14px;
	line-height: 1;
	padding: 13px 14px;
	text-transform: uppercase;
	text-decoration: none;
}
.mobile-nav li.entry_has_sub > a { padding-right: 52px; }
.mobile-nav li a:hover,
.mobile-nav li a:focus,
.mobile-nav .entry_current > a { background-color: #fedd00; color: #000; }
.mobile-nav .entry_current > a,
.mobile-nav .entry_ancestor > a { color: #bc360a; }
.mobile-nav .sub_list {
	display: none;
	padding: 6px 0 0 14px;
}
.mobile-nav .sub_opened > .sub_list { display: block; }
.mobile-nav .sub_list a { color: #555; }
.mobile-nav .sub_toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 40px;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	background: transparent;
	cursor: pointer;
}
.mobile-nav .sub_toggle::before {
	content: '';
	position: absolute;
	top: 14px;
	left: 17px;
	width: 9px;
	height: 9px;
	border-right: 2px solid #141412;
	border-bottom: 2px solid #141412;
	transform: rotate(45deg);
	transition: transform 0.25s ease, top 0.25s ease;
}
.mobile-nav .sub_opened > .sub_toggle::before { transform: rotate(-135deg); top: 18px; }
.offcanvas-backdrop.show { opacity: 0.6; }

/* --------------------------------------------------------------------------
   Tablet and below (< 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
	html, body { overflow-x: hidden; }

	.header_outer,
	.top_main_wrapper,
	.footer_main,
	.main_inner_include_sidebar {
		width: auto;
		max-width: 1170px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.page_head,
	.page_content,
	.page_foot { width: auto; }

	/* Header: logo, title, search, menu button */
	.header_outer { position: relative; }
	.logo { width: 110px; }
	.company_name { width: calc(100% - 110px); padding-left: 15px; padding-right: 120px; }
	.txt_name { font-size: 28px; margin-top: 26px; }
	.site_top_box .quick_search { right: 70px; top: 30px; }
	#top_nav_wrap { display: none; }
	.mobile-menu-btn {
		display: block;
		position: absolute;
		top: 32px;
		right: 15px;
		width: 44px;
		height: 43px;
		padding: 10px;
		border: 0;
		border-radius: 0;
		background: #fedd00;
		border-radius: 3px;
		cursor: pointer;
	}
	.mobile-menu-btn:hover,
	.mobile-menu-btn:focus { background: #fff; outline: 0; }
	.mobile-menu-btn span {
		display: block;
		height: 3px;
		margin: 0 0 5px;
		background-color: #2a283d;
		border-radius: 2px;
	}
	.mobile-menu-btn span:last-child { margin-bottom: 0; }
	.site_top_box { padding-bottom: 15px; }
	.site_top_box::after { content: ''; display: table; clear: both; }

	/* Home page tiles keep their size and re-flow */
	.front_page .page_content { max-width: none; }
	.top_main_wrapper {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.top_main_wrapper > p { display: contents; }
	.top_main_wrapper .section_first,
	.top_main_wrapper .section_second,
	.top_main_wrapper .section_third,
	.top_main_wrapper .section_for,
	.top_main_wrapper .section_third_sec {
		margin-left: 12px;
		margin-right: 12px;
	}
	.page_main_box { margin-top: 0; padding-top: 7px; }
	.tpl_left_side .page_main_box { padding-top: 0; }

	/* Inner pages: sidebar + content */
	.left_content_sidebar { width: 300px; }
	.page_content_right { width: calc(100% - 300px); padding-left: 16px; }

	/* Content written for a fixed 825px column */
	.page_content_right img,
	.page_content_right table,
	.page_content_right iframe,
	.page_content_right textarea,
	.page_content_right [class*="u-"] { max-width: 100%; }
	.page_content_right img { height: auto; }
	.gallery_images img { height: 116px; }
	.image_with_shadow { box-sizing: border-box; }
	.branchlist, .branchlistone_nm { max-width: 100%; }
	span.form_field_wrap.address,
	textarea.form_field.field_textarea { width: 100%; max-width: 730px; }

	/* Footer columns */
	.footer_main { display: flex; flex-wrap: wrap; }
	.foot_section_one,
	.foot_section_two { width: 31%; margin-right: 2%; margin-bottom: 18px; }
	.foot_section_three { width: 100%; clear: both; text-align: left; }
	.foote_social_head { margin-top: 10px; }

	/* Read More popup: centred instead of a fixed left offset */
	#readmore_box_1 {
		left: 50% !important;
		top: 20px !important;
		transform: translateX(-50%);
		width: 600px !important;
		max-width: calc(100vw - 20px);
		height: auto !important;
		max-height: calc(100vh - 40px);
	}
	#readmore_body_1 { height: auto !important; max-height: calc(100vh - 80px); overflow: auto; }
}

/* --------------------------------------------------------------------------
   Small tablets (< 992px): sidebar above the content
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
	.left_content_sidebar,
	.page_content_right { width: 100%; float: none; padding-left: 0; }
	.left_content_sidebar::after { content: ''; display: table; clear: both; }
	.common_sidebar { width: 100%; margin-bottom: 30px; }
	.right_side_bar_sprit { float: left; width: auto; }
	.tpl_left_side .main_col_box { margin-top: 25px; }
	.page_content_right::after { content: ''; display: table; clear: both; }
	.inner_top_about { width: 100%; }
}

/* --------------------------------------------------------------------------
   Phones (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
	.logo { width: 80px; }
	.logo img { width: 80px; height: auto; }
	.company_name { width: calc(100% - 80px); padding-left: 10px; padding-right: 60px; }
	.txt_name { font-size: 17px; line-height: 1.25; margin-top: 18px; }
	.site_top_box .quick_search { display: none; }
	.mobile-menu-btn { top: 16px; }

	.inner_page_heading,
	.inner_page_heading span { font-size: 24px; }
	.page_content_right p { float: none; }
	.inner_page_text,
	.image_right_about { width: 100%; float: none; }
	.image_right_about { margin-top: 20px; }
	.left_color_blind,
	.right_color_blind { width: 100%; }
	.form_main p input,
	.reach_us_form .form_main p,
	.join_us_form .form_main p,
	.reach_us_form .form_main p input,
	.join_us_form .form_main p input { width: 100%; }
	.form_main p input[type="submit"],
	.reach_us_form .form_main p input[type="submit"],
	.join_us_form .form_main p input[type="submit"] { width: auto; min-width: 120px; float: none; }
	p.submit_last, .form_sub { width: 100% !important; }
	p.message_reach_us textarea.form_field.field_textarea { width: 100% !important; }
	.gallery_images img { margin-right: 15px; }
	.page_content_right table { display: block; overflow-x: auto; }
	.page_content_right { overflow-wrap: anywhere; }

	.foot_section_one,
	.foot_section_two { width: 48%; }
}

/* --------------------------------------------------------------------------
   Narrow phones (< 600px): home tiles one per row
   -------------------------------------------------------------------------- */
@media (max-width: 599.98px) {
	.top_main_wrapper .section_third_sec {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding: 20px 110px 20px 15px;
		background-size: auto 100%;
	}
	.section_third_sec p { width: auto; padding-left: 0; }
	.top_main_wrapper .red_more { width: auto; float: none; text-align: center; margin-top: 10px; }
	.gallery_images img { width: calc(50% - 10px); height: auto; margin-right: 6px; }
}

@media (max-width: 400px) {
	.foot_section_one,
	.foot_section_two { width: 100%; margin-right: 0; }
	.txt_name { font-size: 15px; }
}
