/* =====================================================================
   Autocoat Engineering — Redesign CSS
   Shared styles for all pages (header, footer, topbar, inner pages)
   ===================================================================== */

/* ===== NEW SIDEBAR STYLES ===== */
.new-sidebar-wrap { font-family: 'Poppins', sans-serif; }

/* Quote Card */
.nsb-quote-card {
  background: #cc1e1e;
  color: white;
  border-radius: 10px;
  padding: 22px 20px;
  margin-bottom: 18px;
  text-align: center;
}
.nsb-quote-head {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
}
.nsb-quote-card p,
.nsb-quote-card p * {
  color: #ffffff !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  -webkit-text-fill-color: #ffffff !important;
}
.nsb-quote-desc {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}
.nsb-quote-line {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
}
.nsb-quote-line a { color: white; text-decoration: none; }
.nsb-quote-line a:hover { opacity: 0.85; }
.nsb-enquiry-btn {
  display: block;
  background: white;
  color: #cc1e1e !important;
  padding: 12px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-top: 16px;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}
.nsb-enquiry-btn:hover {
  background: #0d1b2a !important;
  color: white !important;
  text-decoration: none;
}

/* Links Groups */
.nsb-links-group {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e6ea;
  margin-bottom: 12px;
}
.nsb-links-head {
  background: #0d1b2a;
  color: white;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
}
.nsb-links-list {
  margin: 0 !important;
  padding: 5px 0 !important;
  list-style: none !important;
}
.nsb-links-list li { margin: 0 !important; }
.nsb-links-list li a {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  color: #6b7685 !important;
  text-decoration: none !important;
  transition: color 0.2s, background 0.2s, border-color 0.2s !important;
  border-left: 3px solid transparent !important;
  border-bottom: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400 !important;
}
.nsb-links-list li a::before {
  content: '›';
  font-size: 18px;
  color: #cc1e1e;
  flex-shrink: 0;
  line-height: 1;
}
.nsb-links-list li a:hover,
.nsb-links-list li a.nsb-active {
  color: #cc1e1e !important;
  background: rgba(204,30,30,0.05) !important;
  border-left-color: #cc1e1e !important;
  padding-left: 20px !important;
}

/* Override old sidebar when new sidebar is injected */
.sidebar-left.nsb-replaced,
.sidebar.nsb-replaced {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ===== CSS VARIABLES ===== */
:root {
  --red: #cc1e1e;
  --red-dark: #a81818;
  --navy: #0d1b2a;
  --navy-light: #162436;
  --white: #ffffff;
  --light-bg: #f5f6f8;
  --text-main: #1a1a2e;
  --text-gray: #6b7685;
  --border: #e2e6ea;
}

/* ===== GLOBAL OVERRIDES ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif !important;
  color: var(--text-main);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
}

a { transition: color 0.2s; }

/* Hide old preloader and popup */
#preloader { display: none !important; }
.side-widget { display: none !important; }
#popup-container { display: none !important; }
#wrapper { padding: 0 !important; margin: 0 !important; border: none !important; }

/* ===== TOPBAR ===== */
.topbar-new {
  background: var(--navy);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-family: 'Poppins', sans-serif;
}
.topbar-new .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.topbar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-left a {
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  text-decoration: none;
  font-size: 13px;
}
.topbar-left a:hover { color: var(--red); }
.topbar-right { display: flex; gap: 10px; }
.topbar-right a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.2s;
  font-size: 13px;
  text-decoration: none;
}
.topbar-right a:hover { background: var(--red); }

/* ===== HEADER ===== */
#header-new {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  border-bottom: 3px solid var(--red);
  font-family: 'Poppins', sans-serif;
}

/* HIDE the OLD header */
header#header { display: none !important; }

.header-inner-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.logo-new img { height: 52px; width: auto; display: block; }

/* Nav */
.main-nav-new { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav-new > li { position: relative; }
.main-nav-new > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.main-nav-new > li > a:hover,
.main-nav-new > li.active > a { color: var(--red); background: rgba(204,30,30,0.06); }
.main-nav-new > li > a.has-arrow::after {
  content: '▾';
  margin-left: 4px;
  font-size: 11px;
}

/* Dropdown */
.main-nav-new .dropdown-new {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-top: 3px solid var(--red);
  z-index: 9999;
  padding: 8px 0;
  list-style: none;
  margin: 0;
}
.main-nav-new li:hover > .dropdown-new { display: block; }
.main-nav-new .dropdown-new li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-main);
  transition: color 0.2s, padding-left 0.2s;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.main-nav-new .dropdown-new li a:hover { color: var(--red); padding-left: 24px; }

.nav-enquiry-new {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 5px !important;
}
.nav-enquiry-new:hover { background: var(--red-dark) !important; color: var(--white) !important; }

/* Hamburger */
.hamburger-new {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.hamburger-new span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Mobile nav */
.mobile-nav-new {
  display: none;
  background: var(--navy);
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-new.open { display: block; }
.mobile-nav-new a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.mobile-nav-new a:hover { color: var(--red); }
.mobile-nav-new .sub-link { padding-left: 35px; font-size: 13px; background: rgba(0,0,0,0.2); }

/* ===== PAGE HEADER / BREADCRUMB ===== */
.inner-header,
section.inner-header {
  background: var(--navy) !important;
  padding: 40px 0 30px !important;
  border-bottom: 3px solid var(--red) !important;
  position: relative;
}
.inner-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/slide/1.jpg') center/cover no-repeat;
  opacity: 0.06;
}
.inner-header .container { position: relative; z-index: 1; }
.inner-header h1 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
}
.inner-header .breadcrumb {
  background: transparent !important;
  padding: 6px 0 0 !important;
  margin: 0 !important;
  justify-content: center;
  border-radius: 0;
}
.inner-header .breadcrumb li { font-size: 13px !important; }
.inner-header .breadcrumb li a {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none;
}
.inner-header .breadcrumb li a:hover { color: var(--red) !important; }
.inner-header .breadcrumb > li + li::before { color: rgba(255,255,255,0.4) !important; }
.inner-header .breadcrumb .active { color: rgba(255,255,255,0.5) !important; }

/* ===== CONTENT AREA STYLES ===== */
.main-content {
  font-family: 'Poppins', sans-serif !important;
}
.main-content section,
.main-content .section {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}
.main-content p {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  color: var(--text-gray) !important;
}
.main-content b,
.main-content strong { color: var(--navy) !important; }
.main-content h4.line-bottom {
  font-family: 'Poppins', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  border-bottom: 2px solid var(--red) !important;
  padding-bottom: 10px !important;
}

/* Sidebar */
.sidebar { font-family: 'Poppins', sans-serif !important; }
.sidebar .widget {
  background: var(--light-bg) !important;
  border-radius: 10px !important;
  padding: 20px !important;
  margin-bottom: 22px !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.sidebar .widget-title,
.sidebar h4.widget-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--red) !important;
}
.sidebar .list { padding: 0; margin: 0; list-style: none; }
.sidebar .list li { margin-bottom: 6px !important; }
.sidebar .list li a {
  color: var(--text-gray) !important;
  font-size: 13px !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  font-family: 'Poppins', sans-serif !important;
}
.sidebar .list li a:hover { color: var(--red) !important; }
.sidebar .services-list ul { padding: 0; margin: 0; list-style: none; }
.sidebar .services-list a {
  color: var(--text-gray) !important;
  font-size: 13px !important;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  font-family: 'Poppins', sans-serif !important;
}
.sidebar .services-list a:hover { color: var(--red) !important; }
.sidebar .brochured ul { padding: 0; margin: 0; list-style: none; }
.sidebar .brochured a {
  color: var(--text-gray) !important;
  font-size: 13px !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.sidebar .brochured a:hover { color: var(--red) !important; }

/* Override old theme buttons */
.btn-theme-colored {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: white !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
  transition: background 0.25s !important;
}
.btn-theme-colored:hover {
  background: var(--red-dark) !important;
  border-color: var(--red-dark) !important;
  color: white !important;
}
.btn-dark.btn-theme-colored {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
}
.btn-dark.btn-theme-colored:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
}

/* Image thumbnails */
.thumbnail {
  border: 3px solid var(--border) !important;
  border-radius: 8px !important;
  margin-bottom: 15px !important;
}

/* ===== ENQUIRY SIDEBAR CARD ===== */
.sidebar-enquiry-card {
  background: var(--red);
  border-radius: 10px;
  padding: 20px;
  color: white;
  font-family: 'Poppins', sans-serif;
}
.sidebar-enquiry-card h4 { color: white; font-size: 15px; margin-bottom: 14px; font-weight: 700; }
.sidebar-enquiry-card .form-group { margin-bottom: 12px; }
.sidebar-enquiry-card input,
.sidebar-enquiry-card textarea,
.sidebar-enquiry-card select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  outline: none;
}
.sidebar-enquiry-card input::placeholder { color: rgba(255,255,255,0.7); }
.sidebar-enquiry-card input:focus { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.2); }
.sidebar-enquiry-card button {
  width: 100%;
  padding: 11px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-enquiry-card button:hover { background: #000; }

/* ===== FOOTER ===== */
/* Hide old footer */
footer#footer { display: none !important; }

#footer-new {
  background: #080f18;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
  font-family: 'Poppins', sans-serif;
}
.footer-grid-new {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 40px;
}
.footer-brand-new img { height: 48px; margin-bottom: 16px; display: block; }
.footer-brand-new p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.footer-social-new { display: flex; gap: 10px; }
.footer-social-new a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.footer-social-new a:hover { background: var(--red); color: var(--white); }
.footer-col-new h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}
.footer-col-new h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--red);
}
.footer-col-new ul { padding: 0; margin: 0; list-style: none; }
.footer-col-new ul li { margin-bottom: 9px; }
.footer-col-new ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.footer-col-new ul li a:hover { color: var(--red); padding-left: 5px; }
.footer-contact-new {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-family: 'Poppins', sans-serif;
}
.footer-contact-new svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.footer-contact-new a { color: rgba(255,255,255,0.6); transition: color 0.2s; text-decoration: none; }
.footer-contact-new a:hover { color: var(--red); }
.footer-bottom-new {
  text-align: center;
  padding: 18px 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom-new a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom-new a:hover { color: var(--red); }

/* ===== FLOATING BUTTONS ===== */
.floating-btns-new {
  position: fixed;
  bottom: 28px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.float-btn-new {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.float-btn-new:hover { transform: scale(1.12); box-shadow: 0 6px 25px rgba(0,0,0,0.3); }
.float-whatsapp-new { background: #25D366; color: white; }
.float-call-new { background: var(--red); color: white; }

/* ===== CONTENT IMAGES — spacing + border fix ===== */
.main-content img,
.main-content .thumbnail,
.main-content figure img {
  margin: 10px 12px 10px 0 !important;
  border: 0px solid #dde1e7 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
  max-width: 100% !important;
}
.main-content .thumbnail {
  padding: 4px !important;
  background: #fff !important;
}
/* Float images: add space on right when floated left */
.main-content img[style*="float:left"],
.main-content img[style*="float: left"] {
  margin: 6px 18px 10px 0 !important;
}
.main-content img[style*="float:right"],
.main-content img[style*="float: right"] {
  margin: 6px 0 10px 18px !important;
}

/* ===== PRODUCT LISTING PAGE ===== */
.prod-col { margin-bottom: 28px; }
.prod-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}
.prod-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e8eaed;
}
.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.prod-card:hover .prod-card-img img { transform: scale(1.05); }
.prod-card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prod-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
}
.prod-card-body p {
  font-size: 13px;
  color: #6b7685;
  margin: 0 0 14px;
  line-height: 1.55;
  flex: 1;
  font-family: 'Poppins', sans-serif;
}
.prod-card-btn {
  display: inline-block;
  color: #cc1e1e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: gap 0.2s;
}
.prod-card-btn:hover { color: #a01616; text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .main-nav-new, .topbar-right { display: none !important; }
  .hamburger-new { display: flex !important; }
  .footer-grid-new { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .footer-grid-new { grid-template-columns: 1fr; }
  .inner-header h1 { font-size: 22px !important; }
  .topbar-left span { display: none; }
}
@media (max-width: 480px) {
  .topbar-left { gap: 10px; }
  .topbar-left a:not(:first-child) { display: none; }
}
