/* =========================================================
   Reset & base
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #333;
  --color-dark-hover: #555;
  --color-border-dark: dimgrey;
  --color-white: #fff;
  --color-accent: red;
  --color-disabled-bg: #ccc;
  --header-height-mobile: 44px;
}

html,
body {
  height: 100%;
  font-family: sans-serif;
  font-size: 0.9rem;
  color: var(--color-white);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   Page shell (header / main / footer)
   ========================================================= */
.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

header,
footer {
  background: var(--color-dark);
}

header,
main,
footer {
  width: 100%;
  align-items: center;
  padding: 0.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  position: fixed;
  z-index: 20;
}

main {
  z-index: 10;
  background: var(--color-white);
  color: #000;
  flex: 1;
  overflow-y: auto;
}

footer {
  position: fixed;
  bottom: 0;
  z-index: 20;
  text-align: center;
}

.header-contact {
  text-align: right;
  color: var(--color-accent);
}

.footer-address {
  color: var(--color-accent);
}

/* =========================================================
   Navigation
   ========================================================= */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-bar {
  display: flex;
}

.menu-bar li {
  position: relative;
}

.menu-bar > li > a,
.dropdown-btn {
  display: block;
  padding: 5px;
  color: var(--color-white);
  background-color: var(--color-dark);
  border: none;
  border-right: 1px solid var(--color-border-dark);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}

.menu-bar a:hover,
.menu-bar button:hover,
.menu-bar a:focus,
.menu-bar button:focus {
  background-color: var(--color-dark-hover);
}

/* Submenus */
.submenu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-dark);
  min-width: 140px;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submenu .submenu {
  top: 0;
  left: 100%;
}

/* Show submenu on hover for mouse users (desktop) */
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  display: block;
}

.submenu li a {
  width: 100%;
  height: 100%;
  display: block;
  padding: 5px;
}

.submenu li:hover {
  background-color: var(--color-dark-hover);
}

/* Ensure JS-toggled menus always display correctly */
.submenu.is-open {
  display: block !important;
}

/* Responsive nav */
@media (max-width: 768px) {
  #menu-toggle {
    display: block; /* Show hamburger on mobile */
  }

  .menu-bar {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: var(--header-height-mobile);
    left: 0;
    background-color: var(--color-dark);
    max-height: calc(100vh - 125px); /* Fill the rest of the screen */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-bar.is-open {
    display: flex; /* Show when toggled open */
  }

  .menu-bar li {
    border-bottom: 1px solid #444;
    width: 100%;
  }

  /* Prevent hover effects from triggering on mobile */
  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    display: none;
  }

  .submenu,
  .submenu .submenu {
    position: relative; /* Stack submenus vertically on mobile */
    top: auto;
    left: auto;
    background-color: var(--color-dark);
    box-shadow: none;
    padding-left: 20px;
  }

  footer {
    font-size: 0.7rem;
  }
}

/* =========================================================
   Shared page fragments (logo, quote CTA, certification badge)
   ========================================================= */
.logo-wrap {
  display: flex;
  justify-content: center;
  padding-top: 8rem;
}

.logo-wrap--compact {
  padding-top: 3.5rem;
}

.logo-img {
  height: 5rem;
}

.quote-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: fixed;
  top: 3.5rem;
  right: 0.5rem;
}

.quote-cta-badge {
  backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 0.5rem;
}

.quote-cta-badge--light {
  background-color: rgba(255, 255, 255, 0.5);
}

.quote-cta-badge--dark {
  background-color: rgba(0, 0, 0, 0.1);
}

.quote-cta-icon {
  height: 5rem;
  padding: 0.5rem;
  border-radius: 50%;
}

.certification-badge {
  text-align: center;
}

.certification-logo {
  height: 5rem;
  max-width: 100%;
}

.not-found {
  padding: 3rem;
  text-align: center;
}

/* =========================================================
   Home page hero
   ========================================================= */
.hero {
  background-image: url('img/cover.jpeg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

.hero-content {
  width: 100%;
  align-content: center;
  padding: 40px;
  border-radius: 8px;
  text-shadow: 0 0 20px #000, 0 0 20px #000, 0 0 20px #000, 0 0 20px #000;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #333;
}

.hero-content .certification-badge {
  padding-bottom: 2rem;
  color: var(--color-white);
}

.hero-content h1 {
  font-size: 2.8rem;
  color: var(--color-white);
  margin-bottom: 15px;
}

.hero-content .subheading {
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 30px;
  line-height: 1.4;
}

.hero-content h2 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  display: inline-block;
}

.value-props-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-shadow: none;
  gap: 20px;
  padding-bottom: 2rem;
}

.value-props-list li {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  flex: 1 1 200px; /* Allows list items to grow and wrap nicely */
  text-align: left;
  border-left: 4px solid #0056b3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

.value-props-list li strong {
  display: block;
  margin-bottom: 5px;
  color: #000;
  font-size: 1.1rem;
}

/* =========================================================
   Product detail page
   ========================================================= */
.product-hero {
  display: flex;
  width: 100%;
  justify-content: center;
}

.product-hero__content {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 3rem;
}

.product-info {
  padding-top: 2rem;
}

.product-quantity {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

#image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 1rem;
  padding-bottom: 5rem;
  place-items: center;
}

.product-image {
  height: 25rem;
  width: auto;
}

/* =========================================================
   Quotation form
   ========================================================= */
.quotation-form__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.info-row {
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.info-label {
  padding-right: 1rem;
}

.field-input {
  width: 15rem;
  height: 1.5rem;
}

.field-input--code {
  width: 2rem;
  height: 1.5rem;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
}

.field-input--phone {
  width: 9rem;
  height: 1.5rem;
  margin-left: 0.2rem;
}

.field-textarea {
  width: 14rem;
}

#itemList {
  padding-bottom: 0.5rem;
}

.product-column {
  text-align: right;
}

.product-input {
  height: 1.5rem;
  width: 4.5rem;
  padding: 0.5rem;
}

.product-label {
  padding: 1rem;
  font-size: 0.8rem;
}

.product-box {
  padding-left: 0.2rem;
  font-size: 0.8rem;
}

#submitBtn {
  background: var(--color-dark);
  color: var(--color-white);
  border: 1px solid var(--color-disabled-bg);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin: 8px 0;
  padding: 10px;
}

#submitBtn:disabled {
  background: var(--color-disabled-bg);
  cursor: not-allowed;
}
