/* ================================
   Global Layout Fixes
   ================================ */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
/* --- MODERNIZED TOP BAR --- */
.top-bar,
.header-banner,
nav {
  width: 100vw;
  min-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  left: 0;
  right: 0;
  position: relative;
  box-sizing: border-box;
}

.top-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  background: #f7fafd;
  color: #23272f;
  font-size: 0.97rem;
  padding: 12px 2rem;
  grid-row-gap: 8px;
  grid-column-gap: 24px;
  border-bottom: 1.5px solid #e3e6eb;
  font-family: 'Roboto', Arial, sans-serif;
  width: 100vw;
  min-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  box-sizing: border-box;
}

.top-bar .logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 16px;
}

.top-bar .contact-info {
  grid-column: 2;
  grid-row: 2;
  font-weight: 500;
  justify-self: center;
  text-align: center;
  padding-top: 4px;
}

.top-bar .welcome-message {
  grid-column: 2;
  grid-row: 1;
  color: #38d5ff;
  font-size: 20px;
  font-weight: 700;
  justify-self: center;
  text-align: center;
}

.top-bar .header-icons {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  padding-left: 16px;
}

.header-banner {
  width: 100vw;
  min-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  left: 0;
  right: 0;
  position: relative;
  box-sizing: border-box;
}
.top-bar .logo img {
  max-height: 36px;
  margin: 0;
}
.top-bar .contact-info a {
  color: #023240;
  font-weight: bold;
  text-decoration: none;
}
.top-bar .contact-info a:hover {
  text-decoration: underline;
}

.top-bar .header-icons button {
  background: #38d5ff;
  color: #fff;
  border: none;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 7px;
  transition: background 0.16s;
}
.top-bar .header-icons .account-btn,
.top-bar .header-icons .quote-btn {
  background: #273045;
  font-weight: bold;
  color: #ffffff;
}
.top-bar .header-icons button:hover,
.top-bar .header-icons button:focus {
  background: #38d5ff;
  font-weight: bold;
  color: #fff;
}

/* --- MODERN HERO BANNER --- */
.hero {
  background: #f2f7fd;
  min-height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 61, 130, 0.13);
  color: #222b3a;
  text-align: center;
  width: 100%;
  height: 100%;
}
.hero-overlay h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: -1px;
  color: #222b3a;
  text-shadow: 0 2px 16px rgba(255,255,255,0.13);
}
.hero-img {
  opacity: 0.93;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}
#scroll-down-btn {
  margin-top: 20px;
  background: #38d5ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: background 0.15s;
}
#scroll-down-btn:hover {
  background: #005bb5;
}

/* --- MODERN MAIN HEADER / NAVIGATION --- */
nav {
  padding: 0 2rem;
  box-sizing: border-box;
  background: #23272f;
  height: 56px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 10px rgba(20,30,60,0.06);
  width: 100%;
  z-index: 10;
  overflow: visible !important;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  overflow: visible !important;
}
.catalog-search-header {
  flex: 1;
  display: flex;
  align-items: center;
  margin-right: 1rem;
  min-width: 160px;
  max-width: 600px;
  height: 38px;
}
.catalog-search-header input {
  flex: 1;
  height: 38px;
  border: none;
  background: #f4f6fa;
  border-radius: 22px 0 0 22px;
  padding: 0 1.1em;
  font-size: 1.04rem;
  color: #23272f;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,115,230,0.06);
}
.catalog-search-header .btn-search {
  width: 48px;
  height: 38px;
  background: #38d5ff;
  color: #fff;
  border: none;
  border-radius: 0 22px 22px 0;
  font-size: 1.24em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.catalog-search-header .btn-search:hover {
  background: #005bb5;
}
.nav-menu {
  display: flex;
  flex: 1;
  list-style: none;
  gap: 4rem;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-menu li {
  position: relative;
}
.nav-menu a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0 4px;
  text-decoration: none;
  transition: color 0.13s;
}
.nav-menu a:hover {
  color: #38d5ff;
}
.nav-menu .caret {
  margin-left: 0.17em;
  font-size: 0.75em;
  color: #38d5ff;
}
/* Submenu styling */
.nav-menu .submenu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #23272f;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(10,25,60,0.10);
  min-width: 140px;
  width: auto;
  z-index: 1000;
  pointer-events: auto;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 0;
}
.nav-menu li:hover > .submenu,
.nav-menu li:focus-within > .submenu {
  display: flex;
  flex-direction: column;
}
.nav-menu .submenu li {
  width: 100%;
  list-style: none;
}
.nav-menu .submenu li a {
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 10px 0;
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.14s, color 0.13s;
}
.nav-menu .submenu li:last-child a {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}
.nav-menu .submenu li:first-child a {
  border-radius: 6px 6px 0 0;
}
.nav-menu .submenu li a:hover,
.nav-menu .submenu li a:focus {
  background: #38d5ff;
  color: #38d5ff;
  z-index: 1;
}
.nav-controls .toggle-buttons {
  display: flex;
  gap: 6px;
}
.nav-controls .toggle-button {
  background: #38d5ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.nav-controls .toggle-button:hover,
.nav-controls .toggle-button.active {
  background: #005bb5;
}

/* --- Responsive Improvements --- */
@media (max-width: 900px) {
  .top-bar, .nav-container { padding: 0 1rem; }
  .hero-overlay h1 { font-size: 1.3rem; }
}
@media (max-width: 700px) {
  .top-bar, .nav-container { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 0.5rem; }
  .top-bar .logo img { margin-bottom: 8px; }
  nav { height: auto; }
  .nav-container { flex-direction: column; gap: 8px; }
  .catalog-search-header { max-width: 100%; margin: 0 0 12px 0; }
  .nav-menu { flex-direction: column; gap: 0.8rem; }
}

/* --- WhatsApp Contact Link --- */
.top-bar .contact-info .whatsapp-link {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  color: #25d366;
  background: #fff;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 3px 9px;
  margin-left: 16px;
  text-decoration: none;
  box-shadow: 0 1px 8px rgba(34,34,34,0.08);
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
}
.top-bar .contact-info .whatsapp-link:hover {
  background: #25d366;
  color: #fff;
  box-shadow: 0 2px 16px #25d36644;
  text-decoration: underline;
}

/* --- Emphasized Welcome Message --- */
.top-bar .welcome-message {
  text-shadow: 0 1px 6px #e6f7ff;
  letter-spacing: 0.03em;
}

/* ================================
   Dropdown Menu Hover Behavior
   ================================ */
.nav-menu li {
  position: relative; /* Establish positioning context */
}

.nav-menu .submenu {
  display: none;      /* Hide submenu by default */
  position: absolute;
  top: 100%;          /* Position submenu directly below parent */
  left: 50%;
  transform: translateX(-50%);
  background: #23272f;
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: 160px;   /* Ensure a minimum width */
  z-index: 999;       /* Sit above other content */
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 0;
}

/* Make each submenu link fill the width */
.nav-menu .submenu li a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75em 0.75em;
  color: #f9fafb;     /* Light text for visibility */
  white-space: nowrap;
}

.nav-menu .submenu li a:hover {
  background-color: #374151; /* Slightly lighter on hover */
  color: #38d5ff;
}

/* Show submenu when hovering over the parent li */
.nav-menu li:hover > .submenu {
  display: block;
}

/* Prevent the submenu from closing when hovering over it */
.nav-menu .submenu:hover {
  display: block;
}
/* ================================
   Footer Styling
   ================================ */
.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: #11131a;
  color: #f1f5f9;
  font-family: 'Roboto', Arial, sans-serif;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-container .footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-container .footer-company {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #e0e6ee;
}

.footer-container .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-container .contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-container .contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.footer-container .contact-list .icon {
  font-size: 1.5rem;
  margin-right: 12px;
  line-height: 1;
  color: #38d5ff;
}
.footer-container .contact-list .text {
  flex: 1;
}
.footer-container .contact-list .text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #ffffff;
}
.footer-container .contact-list .text p {
  margin: 0;
  line-height: 1.5;
  color: #e0e6ee;
}

.footer-container .subscribe-form {
  display: flex;
  max-width: 100%;
  gap: 8px;
  margin-bottom: 20px;
}
.footer-container .subscribe-form input[type="email"] {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #444c5b;
  border-radius: 4px 0 0 4px;
  background-color: #11131a;
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.2s;
}
.footer-container .subscribe-form input[type="email"]:focus {
  border-color: #38d5ff;
}
.footer-container .subscribe-form button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  background-color: #38d5ff;
  color: #ffffff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.footer-container .subscribe-form button:hover {
  background-color: #1e90ff;
}
.footer-container .social-icons {
  display: flex;
  gap: 12px;
}
.footer-container .social-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: #1f2937;
  color: #f1f5f9;
  text-align: center;
  line-height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  font-size: 1.1rem;
}
.footer-container .social-icons a:hover {
  background-color: #38d5ff;
  color: #23272f;
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  background-color: #23272f;
  color: #8b94a5;
  font-size: 0.9rem;
  border-top: 1px solid #2c303b;
}
#autocomplete-dropdown {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #fff;
}
.autocomplete-item:hover,
.autocomplete-item.selected {
  background: #f2f7fc;
}
.autocomplete-item mark {
  background: #ffe066;
  padding: 0;
}

/* ================================
   Footer Full Width Styling
   ================================ */
footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: #11131a;
}