/* ── Base ── */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #222;
}

/* ── YGG-style topnav (dark theme to match humicase brand) ── */
#topnav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background-color: #1a1a1a;
  z-index: 200;
  color: #fff;
  flex-direction: column;
  position: relative;
  border: none;
  outline: none;
}
#topnav-container a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  display: flex;
  align-items: center;
}
#topnav-container a:hover {
  color: #ccc;
}
#topnav-container .logo img {
  max-height: 50px;
  width: auto;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
#topnav-container .logo-container {
  width: fit-content;
  margin-left: 20px;
  display: flex;
  align-items: center;
}
#topnav-container .nav-container-new {
  width: 100%;
  display: flex;
  min-height: 80px;
  align-items: center;
}
#global-topnav {
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
  margin-right: 20px;
}
#global-topnav ul {
  display: inline-flex;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}
#global-topnav ul li {
  padding-left: 30px;
  padding-top: 10px;
  position: relative;
}
#global-topnav #category-links {
  margin: 0;
  padding: 0;
  font-size: 15px;
  letter-spacing: 0.05em;
}
#global-topnav #category-links li a.active {
  border-bottom: 2px solid #fff;
}
#global-topnav #nav-links {
  padding: 10px 0;
  margin: 0;
}
#global-topnav #nav-links li {
  padding-left: 15px;
  position: relative;
}
#global-topnav #nav-links .icon > a {
  font-size: 1.4em;
}

/* desktop subnavs */
.desktop-subnav {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: #2a2a2a;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
  z-index: 150;
  padding: 20px 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.desktop-subnav .subnav-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  color: #aaa;
  border-bottom: 1px solid #444;
  padding-bottom: 6px;
}
.desktop-subnav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.desktop-subnav ul li { padding: 4px 0; }
.desktop-subnav ul li a {
  color: #ddd;
  font-size: 0.9rem;
  text-transform: none;
}
.desktop-subnav ul li a:hover { color: #fff; }

/* search subnav */
#search-subnav-container {
  display: none;
  position: absolute;
  z-index: 1000;
  background: #2a2a2a;
  padding: 15px 20px;
  right: 0;
  top: 45px;
  border: 1px solid #444;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#search-subnav-container.open { display: block; }
#nav_search_desktop { display: flex; align-items: center; }
.search-desktop-form-field { margin-right: 10px; }
.search-desktop-form-field input {
  background: #333;
  border: 1px solid #555;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.9rem;
  width: 200px;
}
.search-desktop-form-field input::placeholder { color: #999; }
.search-desktop-form-button span {
  cursor: pointer;
  font-size: 1.1rem;
  color: #ccc;
}

/* mobile hamburger */
.mobile-topnav-buttons {
  display: none;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
}
@media (max-width: 767px) {
  .mobile-topnav-buttons.visible-xs { display: flex !important; }
}
.hamburger {
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger-box {
  display: inline-block;
  width: 26px;
  height: 22px;
  position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  position: absolute;
  transition: transform 0.2s ease;
}
.hamburger-inner { top: 50%; margin-top: -1px; }
.hamburger-inner::before { content: ''; top: -8px; }
.hamburger-inner::after  { content: ''; bottom: -8px; }
.hamburger.is-active .hamburger-inner { background: transparent; }
.hamburger.is-active .hamburger-inner::before { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.is-active .hamburger-inner::after  { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
}

/* mobile nav */
#nav-mobile-wrapper {
  display: none;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  z-index: 190;
  position: relative;
}
#nav-mobile-container { padding: 10px 0; }
.nav-mobile-items ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile-main-item > a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: #ddd;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-mobile-main-item > a:hover { color: #fff; }
.nav-mobile-second-level { display: none; background: #111; }
.nav-mobile-sub-item a {
  display: block;
  padding: 9px 36px;
  font-size: 0.85rem;
  color: #bbb;
  text-decoration: none;
  border-bottom: 1px solid #222;
  text-transform: none;
}
.nav-mobile-sub-item a:hover { color: #fff; }

/* ── Page content ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; }
img {
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin-left: 1.5rem; }

/* ── Hero slider ── */
.home-hero {
  background: #000;
}
.home-hero img {
  width: 100%;
  display: block;
  margin: 0;
}
.home-hero-tagline {
  background: #fff;
  padding: 2rem 3rem 0;
  text-align: center !important;
}
.home-hero-tagline h2 {
  margin: 0;
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #000;
}
.home-banner img {
  width: 100%;
  display: block;
  margin: 0;
}

/* ── Product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.product-card {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  text-decoration: none;
}
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.product-card-body {
  padding: 1rem 1.25rem;
}
.product-card-body h3 { margin: 0 0 0.4rem 0; font-size: 1.1rem; }
.product-card-body p { margin: 0; font-size: 0.9rem; color: #555; }

/* ── CTA buttons ── */
.btn-primary {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.btn-primary:hover { background: #333; color: #fff; text-decoration: none; }

/* ── YGG-style footer ── */
footer {
  background-color: #000;
  color: #c7c7c7;
  margin-top: 3rem;
}
footer a, footer a:hover { color: #fff; text-decoration: none; }
footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 10px 0;
}
footer .social-media {
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 20px 40px;
}
footer .social-media section { display: flex; }
footer .social-media a.bi {
  padding-right: 20px;
  font-size: 1.5em;
  color: #fff;
}
footer .links {
  padding: 30px 0 10px;
  border-top: 1px solid #555;
}
footer .links section {
  padding: 0 40px;
  display: flex;
  justify-content: flex-start;
  gap: 60px;
}
footer .links ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
  gap: 6px;
}
footer .links ul li a { font-size: 0.9rem; }

subfooter {
  background-color: #000;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  font-size: 0.85rem;
  border-top: 1px solid #555;
}
subfooter a, subfooter a:hover { color: #999; text-decoration: none; }
subfooter ul.legal {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}
subfooter .copyright { margin: 0; }

/* ── Responsive ── */
@media (max-width: 767px) {
  footer .links section { flex-direction: column; gap: 30px; }
  subfooter { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 20px; }
  .home-hero-overlay { padding: 1rem 1.5rem; }
  .home-hero-overlay h2 { font-size: 1.4rem; }
}
