/*
  Theme Name: ScalePro Shop USA Theme 1
  Theme URI: https://scaleproshopusa.com
  Author: Custom
  Description: Custom theme for ScalePro Shop USA (clean, consolidated)
  Version: 1.1
  License: GNU GPL v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
  Text Domain: scaleproshopusatheme1
*/

/* ===================================
   VARIABLES
=================================== */
:root {
  --header-h: 245px;   /* desktop default */
}

/* ===================================
   GLOBAL BASE
=================================== */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
}

/* ===================================
   HEADER
=================================== */
.site-header {
  background: linear-gradient(to right, #be0000 0%, #111 50%, #be0000 100%);
  height: var(--header-h);
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  padding: 10px 10%;
  gap: 15px;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: #222; z-index: 900;
}

/* ===================================
   LOGO
=================================== */
.site-branding { text-align: center; width: 100%; }
#logo-image {
  width: auto; height: auto; max-height: 140px; /* desktop size */
  margin-top: -10px;
  border-radius: 15px;
  object-fit: contain;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
#logo-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* ===================================
   MAIN NAVIGATION
=================================== */
.main-navigation { width: 100%; background: transparent; }
#primary-menu {
  list-style: none; margin: 0 auto; padding: 0;
  width: 80%;
  display: flex; justify-content: center; align-items: center;
}
#primary-menu > li { flex: 0 0 auto; }
#primary-menu > li > a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 160px; height: 40px; padding: 0 15px; margin: 0 16px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #0055e6, #002699);
  color: #fff; text-decoration: none; letter-spacing: 0.5px;
  border: 1px solid rgba(0,0,0,0.3);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 4px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
#primary-menu > li > a:hover {
  background: linear-gradient(to bottom, #003fb3, #001a66);
  transform: translateY(-3px);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.15),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    0 6px 12px rgba(0,0,0,0.5),
    0 0 10px rgba(0,64,255,0.6);
}

/* ===================================
   DROPDOWN MENUS (DESKTOP/TABLET)
=================================== */
.primary-menu li { position: relative; overflow: visible; }
.primary-menu .sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #000; border: 2px solid #444; border-radius: 12px;
  padding: 10px; min-width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  z-index: 2000;

  /* Scroll within viewport; keep consistent across browsers */
  max-height: calc(100vh - 140px);
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  /* Scrollbar styling */
  scrollbar-width: thin; scrollbar-color: #444 #111;
}
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu::-webkit-scrollbar { width: 8px; }
.primary-menu .sub-menu::-webkit-scrollbar-track { background: #111; }
.primary-menu .sub-menu::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.primary-menu .sub-menu::-webkit-scrollbar-thumb:hover { background: #666; }

.primary-menu .sub-menu a {
  display: block; padding: 8px 12px;
  color: #fff; text-decoration: none; border-radius: 6px;
  transition: background 0.2s, text-shadow 0.2s;
}
.primary-menu .sub-menu a:hover {
  background: #0040ff;
  text-shadow: 0 0 6px rgba(0,64,255,0.6);
}

/* Two-column dropdowns — Brands & Products */
#menu-item-936 > .sub-menu,  /* Brands */
#menu-item-934 > .sub-menu { /* Products */
  width: 520px;
  column-count: 2;
  column-gap: 24px;
}
#menu-item-936 > .sub-menu > li,
#menu-item-934 > .sub-menu > li {
  break-inside: avoid; page-break-inside: avoid;
}

/* ===================================
   SEARCH & CTA ROW
=================================== */
.header-search-row {
  display: flex; justify-content: center; align-items: center;
  gap: 30px; margin-top: 10px;
}
.header-search form { display: flex; align-items: stretch; }
.header-search input[type="search"] {
  width: 400px; height: 36px; padding: 0 12px;
  border: 1px solid #ccc; border-radius: 8px 0 0 8px;
  background: #fff; color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.header-search input[type="submit"] {
  height: 36px; padding: 0 18px;
  border: none; border-radius: 0 8px 8px 0; cursor: pointer;
  font-size: 15px; font-weight: bold; color: #fff;
  background: linear-gradient(145deg, #0040ff, #0026b9);
  box-shadow: 0 2px 5px rgba(0,0,0,0.25), 0 0 8px rgba(0,64,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.header-search input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.35), 0 0 12px rgba(0,0,0,0.6);
  background: linear-gradient(145deg, #0030c0, #001c80);
}
.header-cta { font-size: 24px; color: #fff; }
.header-cta a { color: #fff; font-weight: bold; text-decoration: none; }
.header-cta a:hover { text-decoration: underline; }

/* ===================================
   HERO
=================================== */
.hero { position: relative; width: 100%; overflow: hidden; }
.hero img { width: 100%; height: auto; object-fit: cover; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 10px; padding: 40px 20px;
}
.hero-overlay h1 { color: #fff; font-size: 42px; margin: 0 0 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.hero-overlay p  { color: #eee; font-size: 18px; margin: 0; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }

/* ===================================
   CONTENT WRAPPER
=================================== */
.site-content {
  background-color: #111;
  border-radius: 12px;
  max-width: 1200px;
  margin: var(--header-h) auto 40px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

/* WP Admin Bar adjustments */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
body.admin-bar .site-content { margin-top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) { body.admin-bar .site-content { margin-top: calc(var(--header-h) + 46px); } }

/* ===================================
   INDUSTRIES GRID
=================================== */
.industries-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin: 30px 0;
}
.industries-grid .industry-item {
  background: #111; border: 1px solid #333; border-radius: 12px;
  padding: 20px; text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.industries-grid .industry-item:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.5); }
.industries-grid .industry-item img { max-width: 100%; border-radius: 8px; margin-bottom: 15px; }
.industries-grid .industry-item h3 { font-size: 20px; color: #fff; margin: 10px 0; }
.industries-grid .industry-item p  { font-size: 14px; color: #ccc; }

/* ===================================
   PRODUCTS GRID
=================================== */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px; margin: 30px 0;
}
.product-card {
  background: #111; border: 1px solid #333; border-radius: 12px;
  padding: 20px; text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.5); }
.product-card img { max-width: 100%; border-radius: 8px; margin-bottom: 15px; }
.product-card h3 { font-size: 18px; color: #fff; margin: 10px 0; }
.product-card p  { font-size: 14px; color: #ccc; margin-bottom: 10px; }
.product-card a.button {
  display: inline-block; margin-top: 10px; padding: 8px 16px;
  border-radius: 6px; background: linear-gradient(145deg, #0040ff, #0026b9);
  color: #fff; text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.product-card a.button:hover { background: linear-gradient(145deg, #0030c0, #001c80); transform: translateY(-2px); }

/* ===================================
   PARTS LIST
=================================== */
.parts-list { width: 100%; border-collapse: collapse; margin: 30px 0; }
.parts-list th, .parts-list td { border: 1px solid #333; padding: 10px; color: #ccc; text-align: left; }
.parts-list th { background: #222; color: #fff; }
.parts-list tr:nth-child(even) { background: #1a1a1a; }

/* ===================================
   CONTACT / CTA
=================================== */
.contact-section { padding: 40px 20px; text-align: center; color: #fff; }
.contact-section h2 { font-size: 28px; margin-bottom: 20px; }
.contact-section p  { font-size: 16px; color: #ccc; }
.cta-banner {
  background: linear-gradient(145deg, #0040ff, #0026b9);
  padding: 30px; border-radius: 8px; text-align: center; color: #fff; margin: 40px 0;
}
.cta-banner p { font-size: 22px; font-weight: bold; margin-bottom: 15px; }
.cta-banner a.button {
  display: inline-block; padding: 10px 20px; border-radius: 6px;
  background: #fff; color: #0026b9; font-weight: bold; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cta-banner a.button:hover { background: #0026b9; color: #fff; }

/* ===================================
   FOOTER
=================================== */
.site-footer {
  background: #111; color: #ddd;
  padding: 30px 10%;
  border-top: 4px solid #be0000;
  margin-top: 40px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-branding .footer-logo { font-size: 20px; font-weight: bold; color: #fff; text-decoration: none; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.footer-nav a { color: #ccc; text-decoration: none; transition: color 0.2s, text-shadow 0.2s; }
.footer-nav a:hover { color: #fff; text-shadow: 0 0 6px rgba(0,64,255,0.6); }
.footer-social { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(145deg, #0040ff, #0026b9);
  color: #fff; font-size: 18px; text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25), 0 0 8px rgba(0,64,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.35), 0 0 12px rgba(0,0,0,0.6);
  background: linear-gradient(145deg, #0030c0, #001c80);
}
.footer-bottom { text-align: center; font-size: 14px; color: #888; margin-top: 20px; border-top: 1px solid #222; padding-top: 15px; }

/* ===================================
   MOBILE DRAWER (MOBILE NAV)
=================================== */
.mobile-nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  position: absolute; right: 20px; top: 20px;
  z-index: 2002; padding: 8px;
}
.mobile-nav-toggle .hamburger {
  display: block; width: 24px; height: 3px; background: #fff; border-radius: 2px; position: relative;
}
.mobile-nav-toggle .hamburger::before,
.mobile-nav-toggle .hamburger::after {
  content: ""; position: absolute; left: 0;
  width: 24px; height: 3px; background: #fff; border-radius: 2px;
}
.mobile-nav-toggle .hamburger::before { top: -8px; }
.mobile-nav-toggle .hamburger::after  { top:  8px; }

.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; transition: opacity 0.25s ease;
  z-index: 1999;
}
.mobile-overlay.is-visible { opacity: 1; }

.mobile-drawer {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 340px; height: 100%;
  background: #000; color: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.6);
  transition: right 0.3s ease;
  z-index: 2001;
  display: flex; flex-direction: column; outline: none;
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-inner {
  flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 16px;
  overflow-y: auto;
}

.drawer-header { display: flex; justify-content: space-between; align-items: center; }
.drawer-title { font-weight: 600; font-size: 1rem; }
.drawer-close { background: none; border: none; cursor: pointer; padding: 8px; }
.drawer-close .close-x,
.drawer-close .close-x::before,
.drawer-close .close-x::after {
  display: block; width: 20px; height: 2px; background: #fff; position: relative;
}
.drawer-close .close-x { transform: rotate(45deg); }
.drawer-close .close-x::after { content: ""; position: absolute; left: 0; top: 0; transform: rotate(90deg); }

.drawer-search form { display: flex; gap: 10px; }
.drawer-search .search-field { flex: 1; padding: 10px; border-radius: 6px; border: none; }
.drawer-search .search-submit { padding: 10px 12px; background: #be0000; color: #fff; border-radius: 6px; border: none; cursor: pointer; }

.drawer-navigation ul { list-style: none; padding: 0; margin: 0; }
.drawer-navigation li { border-bottom: 1px solid #222; }
.drawer-navigation a { display: block; padding: 12px; color: #fff; text-decoration: none; }
.drawer-navigation a:hover { background: #111; }

/* Accordion arrows */
.drawer-navigation li.menu-item-has-children > a::after {
  content: "▸"; float: right; transition: transform 0.3s ease;
}
.drawer-navigation li.open > a::after { transform: rotate(90deg); }

/* Accordion: closed by default; open uses max-height for smooth reveal */
.drawer-navigation ul.sub-menu {
  max-height: 0; overflow: hidden; padding: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.drawer-navigation li.open > ul.sub-menu {
  max-height: 999px; padding: 6px 0;
}

/* Drawer CTA */
.drawer-cta { margin-top: auto; text-align: center; font-size: 0.95rem; }
.drawer-cta a { color: #fff; font-weight: 600; }

/* Lock body scroll while drawer open */
body.drawer-open { overflow: hidden; }

/* ===================================
   RESPONSIVE
=================================== */

/* Large desktops (>=1200px) */
@media (min-width: 1200px) {
  .site-content { max-width: 1200px; margin: var(--header-h) auto 40px; }
  #primary-menu > li > a { max-width: 220px; }
}

/* Laptops (992px–1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .site-content { max-width: 1000px; margin: var(--header-h) auto 30px; }
  #primary-menu { flex-wrap: wrap; }
  #primary-menu > li > a { min-width: 110px; max-width: 180px; padding: 0 16px; margin: 6px; }
  .hero-overlay h1 { font-size: 36px; }
  .hero-overlay p  { font-size: 16px; }
}

/* Tablets (768px–991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .site-content { max-width: 90%; margin: var(--header-h) auto 20px; }
  #primary-menu { flex-wrap: wrap; justify-content: center; }
  #primary-menu > li > a { flex: 1 1 45%; margin: 6px; min-width: unset; }
  #logo-image { max-height: 110px; } /* tablet logo */
  .hero-overlay h1 { font-size: 30px; }
  .hero-overlay p  { font-size: 15px; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  :root { --header-h: 150px; } /* you asked for ~25% reduction */
  .site-header { gap: 10px; padding: 8px; }

  /* Logo size on mobile */
  #logo-image { max-height: 75px; }

  /* Hide desktop nav + search row, show hamburger */
  .mobile-nav-toggle { display: block; top: 10px; right: 15px; }
  .main-navigation, .header-search-row { display: none; }

  /* Primary menu (if ever visible in mobile context) */
  #primary-menu { flex-direction: column; width: 100%; gap: 8px; }
  #primary-menu > li > a { width: 100%; max-width: 100%; margin: 0; border-radius: 6px; }

  /* Hero text scale */
  .hero-overlay h1 { font-size: 24px; }
  .hero-overlay p  { font-size: 14px; }

  /* Footer layout */
  .footer-inner { flex-direction: column; text-align: center; gap: 15px; }
}
/* ===================================
   PAGE & POST TITLES (BRANDED COLORS)
=================================== */
.entry-title,
h1.entry-title,
h1.page-title {
  font-size: 36px;
  font-weight: bold;
  color: #be0000; /* brand red */
  text-align: center;
  margin: 30px 0 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  position: relative;
}

.entry-title::after,
h1.entry-title::after,
h1.page-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 10px auto 0;
  background: linear-gradient(to right, #be0000, #0040ff);
  border-radius: 2px;
}

h2, h3, h4 {
  color: #0040ff; /* brand blue */
  margin: 20px 0 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
/* ===================================
   WOO COMMERCE BASELINE THEME STYLING
=================================== */

/* Product Grid */
.woocommerce ul.products li.product {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #fff;
  font-size: 18px;
  margin: 10px 0;
}
.woocommerce ul.products li.product .price {
  color: #be0000;
  font-weight: bold;
  margin-bottom: 10px;
}
.woocommerce ul.products li.product a.button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 6px;
  background: linear-gradient(145deg, #0040ff, #0026b9);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.woocommerce ul.products li.product a.button:hover {
  background: linear-gradient(145deg, #0030c0, #001c80);
  transform: translateY(-2px);
}

/* Single Product */
.woocommerce div.product {
  color: #fff;
}
.woocommerce div.product .product_title {
  color: #be0000;
  font-size: 28px;
  margin-bottom: 10px;
}
.woocommerce div.product .price {
  color: #0040ff;
  font-size: 22px;
  font-weight: bold;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: #fff;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #be0000;
}

/* Cart / Checkout Buttons */
.woocommerce button.button, 
.woocommerce a.button, 
.woocommerce input.button {
  background: linear-gradient(145deg, #0040ff, #0026b9);
  color: #fff;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
  background: linear-gradient(145deg, #0030c0, #001c80);
  transform: translateY(-2px);
}
/* ===================================
   FAQ PAGE STYLING
=================================== */

.faq-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.faq-page h1 {
  color: #fff;
  font-size: 42px;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.faq-page h2 {
  color: #be0000; /* brand red */
  font-size: 26px;
  margin: 30px 0 15px;
  border-bottom: 2px solid #0040ff;
  padding-bottom: 5px;
}

.faq-page details {
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  margin: 10px 0;
  padding: 12px 16px;
  transition: background 0.3s, border 0.3s;
}

.faq-page details:hover {
  border-color: #0040ff;
}

.faq-page summary {
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  list-style: none;
  position: relative;
  padding-right: 20px;
}

.faq-page summary::marker {
  display: none; /* remove default marker */
}

.faq-page summary::after {
  content: "▸";
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
  color: #be0000;
}

.faq-page details[open] summary::after {
  transform: rotate(90deg);
  color: #0040ff;
}

.faq-page p {
  margin: 10px 0 0;
  color: #ccc;
  line-height: 1.5;
}

.faq-page strong {
  color: #fff;
}
/* ===========================
   INDUSTRY PAGE LAYOUT
=========================== */

.industry-page {
  background: #111;
  color: #ccc;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

/* HERO */
.industry-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 40px;
}
.industry-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}
.industry-hero .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
.industry-hero h1 {
  font-size: 48px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.industry-hero p {
  font-size: 20px;
  color: #eee;
  margin-top: 10px;
}

/* INTRO */
.industry-intro {
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
}
.industry-intro p {
  font-size: 18px;
  color: #ddd;
  margin-bottom: 20px;
}
.industry-intro .button {
  background: linear-gradient(145deg, #0040ff, #0026b9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s, background 0.2s;
}
.industry-intro .button:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #0030c0, #001c80);
}

/* ===========================
   INDUSTRY GRID & CARDS
   =========================== */

/* Flexbox grid for centered last row */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* centers the last row */
  gap: 20px;
  margin: 40px 0;
}

/* Card layout */
.industry-card {
  flex: 1 1 280px;   /* minimum card width */
  max-width: 320px;  /* prevent stretching too wide */
  background: #000;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(190,0,0,0.7); /* 🔴 red glow only */
}

.industry-card img {
  width: 100%;
  height: 180px;        /* consistent card height */
  object-fit: cover;    /* crops neatly */
  border-radius: 8px;
  margin-bottom: 15px;
  background: #000;
}

.industry-card h3 {
  color: #fff;
  margin: 10px 0;
}

.industry-card .button.small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Responsive behavior */
@media (max-width: 991px) {
  .industry-card {
    flex: 1 1 45%;   /* 2 per row on tablets */
  }
}

@media (max-width: 600px) {
  .industry-card {
    flex: 1 1 100%;  /* stack on mobile */
  }
}


/* FEATURES */
.industry-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
  text-align: center;
}
.feature span {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}
.feature h4 {
  color: #be0000;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14px;
  color: #ccc;
}

/* CTA BANNER */
.industry-cta {
  background: linear-gradient(145deg, #be0000, #660000);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 40px;
}
.industry-cta h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.industry-cta p {
  font-size: 18px;
  margin-bottom: 20px;
}
.industry-cta a.button {
  background: linear-gradient(145deg, #0040ff, #0026b9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s, background 0.2s;
}
.industry-cta a.button:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #0030c0, #001c80);
}
.header-search-row {
  margin-top: -4px; /* move it up a bit */
}
/* ================================
   UNIVERSAL BRAND PAGE STYLES
   ================================ */
.brand-page {
  background: #000;
  color: #fff;
  padding: 0;
}

/* Hero */
.brand-hero {
  position: relative;
  overflow: hidden;
  height: 300px;
}
.brand-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* darkened so text pops */
}
.brand-hero .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
  padding: 20px;
}
.brand-hero .overlay h1 {
  font-size: 42px;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.brand-hero .overlay p {
  font-size: 18px;
  max-width: 800px;
}

/* Intro */
.brand-intro {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}
.brand-intro h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.brand-intro p {
  color: #ccc;
  font-size: 16px;
}

/* Grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
}
/* ================================
   BRAND CARDS – IMAGE → BLUE FADE
   ================================ */

/* Global variable for overlay color (easy to swap later) */
:root {
  --brand-overlay-color: rgba(190, 0, 0, 0.45);  /* e.g. red tinted */
  --brand-overlay-hover: rgba(190, 0, 0, 1);     /* solid red */
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;               /* airy spacing */
  margin: 40px auto;
  max-width: 1100px;
}

.brand-card {
  position: relative;
  border-radius: 12px;     /* rounded corners */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  background: transparent !important;
}

.brand-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: filter 0.4s ease;
}

/* Overlay (semi-transparent by default) */
.brand-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--brand-overlay-color);
  z-index: 1;
  transition: background 0.4s ease; /* medium speed */
  pointer-events: none;
}

/* On hover/tap → solid blue, image fully gone */
.brand-card:hover::after,
.brand-card:active::after {
  background: var(--brand-overlay-hover);
}

/* Text centered, modern readable */
.brand-card h3 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4); /* subtle modern shadow */
  z-index: 2;
}

/* Hover glow synced with overlay
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(190, 0, 0, 0.8);*/
}

/* Mobile: tapping triggers effect */
@media (max-width: 767px) {
  .brand-card::after {
    background: rgba(0, 64, 255, 0.25); /* lighter default tint */
  }
  .brand-card:active::after {
    background: var(--brand-overlay-hover); /* solid blue on tap */
  }
}



/* CTA */
.brand-cta {
  background: linear-gradient(145deg, #be0000, #7a0000);
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  border-radius: 8px;
  margin: 60px auto;
  max-width: 1000px;
}
.brand-cta p {
  font-size: 20px;
  margin-bottom: 20px;
}
.brand-cta .button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  background: #fff;
  color: #be0000;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.brand-cta .button:hover {
  background: #000;
  color: #fff;
}

