/* =========================================================
   WIF replica styles - matches westernindiaforgings.com (Avada)
   Loaded by the child theme functions.php after Themify styles.
   ========================================================= */

/* ---------- Layout: Avada 4% column gap ---------- */
/* Site width: Themify default (not overridden) */
html body .row_inner { --gutter: 4%; }
html body #content .module_column { margin-bottom: 20px; }
html body.page #content { padding-top: 0; padding-bottom: 20px; }
html body.page #layout { padding-top: 0; }

/* ---------- Typography (Avada values) ---------- */
html body { line-height: 1.69; }
html body .module-text p { margin: 0 0 20px; }
html body .module-text h1 { font-size: 40px; line-height: 1.13; margin: .67em 0; font-weight: 400; color: #333; }
html body .module-text h2 { font-size: 30px; line-height: 1.17; margin: 0 0 20px; font-weight: 700; color: #333; }
html body .module-text h3 { font-size: 22px; line-height: 1.27; margin: 1em 0; font-weight: 400; color: #333; }
html body .module-text h4 { font-size: 20px; line-height: 1.3; margin: 1.33em 0; font-weight: 400; color: #333; }
html body .module-text ul,
html body .module-text ol { margin: 15px 0; padding-left: 40px; }
html body .module-text li { line-height: 1.69; margin: 0; }
html body .module-text table { border-collapse: collapse; margin: 0; }
html body .module-text td { line-height: 1.69; padding: 5px; border-color: #e0dede; }
html body .module-text a { color: #333; }

/* ---------- Titles (Avada Title element) ---------- */
html body .wif-title { margin: 0 0 30px; }
html body .wif-title.wif-mb10 { margin-bottom: 10px; }
html body .wif-title h1,
html body .wif-title h2,
html body .wif-title h3,
html body .wif-title h4 { margin: 0; }
html body .wif-title h2 { font-size: 30px; line-height: 1.17; font-weight: 700; }
html body .wif-title h3 { font-size: 22px; line-height: 1.27; }
html body .wif-title.wif-fs30 h3 { font-size: 30px; line-height: 1.17; }

/* Title separator lines */
html body .wif-sep-left h2, html body .wif-sep-left h3,
html body .wif-sep-center h2, html body .wif-sep-center h3 { display: flex; align-items: center; }
html body .wif-sep-left h2::after, html body .wif-sep-left h3::after,
html body .wif-sep-center h2::after, html body .wif-sep-center h3::after,
html body .wif-sep-center h2::before, html body .wif-sep-center h3::before {
	content: ""; flex: 1 1 auto; border-top: 1px solid #000; height: 0;
}
html body .wif-sep-left h2::after, html body .wif-sep-left h3::after { margin-left: 8px; }
html body .wif-sep-center h2::before, html body .wif-sep-center h3::before { margin-right: 8px; }
html body .wif-sep-center h2::after, html body .wif-sep-center h3::after { margin-left: 8px; }
html body .wif-sep-double h2::after, html body .wif-sep-double h3::after,
html body .wif-sep-double h2::before, html body .wif-sep-double h3::before { border-bottom: 1px solid #000; height: 4px; }
html body .wif-sep-white h2::after, html body .wif-sep-white h3::after,
html body .wif-sep-white h2::before, html body .wif-sep-white h3::before { border-color: #fff; }

/* ---------- Header (92px bar, logo left, menu right) ---------- */
html body #headerwrap { padding: 0; }
html body #header {
	height: 92px; padding: 0;
	display: flex; align-items: flex-start; justify-content: space-between;
}
html body #header .header-bar { padding: 0; margin: 0; float: none; }
html body #site-logo { margin: 5px 0 0; padding: 0; line-height: 0; }
html body #site-logo img { width: 186px; height: 82px; }
html body #header #mobile-menu { position: static; float: none; margin: 0; padding: 0; width: auto; }
html body #header .navbar-wrapper { padding: 0; margin: 0; }
html body #headerwrap #main-nav { margin: 0; padding: 0; float: none; }
html body #headerwrap #main-nav > li { margin: 0; padding: 0 40px 0 0; }
html body #headerwrap #main-nav > li:last-child { padding-right: 0; }
html body #headerwrap #main-nav > li > a {
	padding: 0; margin: 0; height: 86px; line-height: 86px;
	font-size: 16px; font-weight: 700; color: #fff; background: none; border: 0;
}
html body #headerwrap #main-nav > li > a:hover { color: #fff; background: none; }
html body #headerwrap #main-nav > li.current_page_item > a,
html body #headerwrap #main-nav > li.current-menu-item > a,
html body #headerwrap #main-nav > li.current-menu-ancestor > a,
html body #headerwrap #main-nav > li.current_page_parent > a { color: #000; background: none; }
html body #headerwrap #main-nav > li > a .child-arrow,
html body #headerwrap #main-nav > li > a .tf_fa { color: inherit; }

/* Drop-downs */
html body #headerwrap #main-nav .sub-menu {
	top: 86px; width: 215px; padding: 0; margin: 0;
	background: #197c9b; border: 0; border-radius: 0;
	box-shadow: 1px 1px 30px rgba(0, 0, 0, .06);
}
html body #headerwrap #main-nav .sub-menu li { margin: 0; padding: 0; }
html body #headerwrap #main-nav .sub-menu a {
	padding: 9px 20px; line-height: 27px; font-size: 16px; font-weight: 400; color: #fff;
	border-bottom: 1px solid #e3e2e3; background: none;
}
html body #headerwrap #main-nav .sub-menu li:last-child > a { border-bottom: 0; }
html body #headerwrap #main-nav .sub-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Footer (dark band + copyright bar) ---------- */
html body #footerwrap {
	background: #282a2b; padding: 0;
	border-top: 128px solid #363839;
}
html body #footer { padding: 20px 0; border-top: 1px solid #4b4c4d; }
html body #footer .footer-text,
html body #footer .footer-text-outer { width: 100%; text-align: center; float: none; }
html body #footer .footer-text .one,
html body #footer .footer-text .two { width: 100%; float: none; text-align: center; font-size: 12px; color: #747474; }
html body #footer .footer-text a { color: #bfbfbf; }
html body #footer .back-top,
html body #footer .footer-logo-wrapper,
html body #footer .footer-nav-wrap { display: none; }

/* ---------- Contact boxes ---------- */
html body .module-box .module-box-content { padding: 30px 20px !important; }
html body .module-box .module-box-content h4 { margin: 0 0 20px; font-size: 18px; font-weight: 700; color: #fff; }
html body .module-box .module-box-content p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	html body #header { height: auto; padding: 5px 15px; }
	html body #headerwrap #main-nav > li { padding-right: 0; }
	html body #headerwrap #main-nav > li > a { height: auto; line-height: 1.5; padding: 10px 0; }
	html body #content .module_column { margin-bottom: 20px; }
}

/* Column without Avada's default 20px bottom margin */
html body #content .module_column.wif-mb0 { margin-bottom: 0; }

/* ---------- Page title bar (Policy pages) ---------- */
html body.page #content h1.page-title {
	position: relative; margin: 0 0 55px; padding: 0;
	height: 85px; line-height: 85px;
	font-size: 18px; font-weight: 400; color: #333;
	background: #f6f6f6;
	box-shadow: 0 0 0 100vmax #f6f6f6;
	clip-path: inset(-1px -100vmax);
	border-top: 1px solid #d2d3d4; border-bottom: 1px solid #d2d3d4;
}

/* ---------- Products slideshow (was a 640px photo album) ---------- */
html body .module-slider.wif-album-slider { max-width: 640px; margin: 0 0 20px; }
