/* ======================================================
   IFIBRE — Consolidated, Professional Stylesheet
   - Fixed nav alignment + mobile toggle
====================================================== */

/* ---------- Variables & Reset ---------- */
:root {
  --primary: #121313;
  --accent: #009fe3;
  --text: #ffffff;
  --bg: #f5f7fb;
  --footer-bg: #222;
  --footer-text: #ddd;
  --maxw: 1200px;

  --header-h: 50px;
  --nav-h: 56px;
  --space: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #0a0a0a;
}

/* ---------- Header ---------- */
header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  background: #0a0a0a;
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 1000;
}
.header-content {
  max-width: var(--maxw);
  margin: auto;
  height: 100%;
  padding: 0 var(--space);
  display: flex; align-items: center; justify-content: space-between;
}
.logo-container img { height: 36px; width: auto; display: block; }
.welcome-message { color: var(--primary); font-weight: 600; }

/* ---------- Navigation ---------- */
.nav-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  height: var(--nav-h);
  background: var(--primary);+
  z-index: 999;
  display: flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.navbar {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space);
}
.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
  flex-wrap: nowrap;
}
.nav-left,
.nav-right {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.nav-right { margin-left: auto; }
.nav-left li, .nav-right li { white-space: nowrap; }
.nav-left a, .nav-right a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 4px;
  transition: opacity .2s ease;
}
.nav-left a:hover, .nav-right a:hover { opacity: .8; }
.nav-left a.active, .nav-right a.active {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  width: 28px; height: 22px;
  gap: 5px; flex-direction: column;
  justify-content: center; cursor: pointer;
}
.hamburger span {
  height: 3px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* ---------- Mobile Navigation ---------- */
@media (max-width: 768px) {
  .nav-menu { height: auto; padding: 8px 0; }
  .nav-container { flex-direction: column; align-items: flex-start; }

  .nav-container ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    gap: 0;
    padding-left: 0;
  }
  .nav-container ul li { width: 100%; }
  .nav-container ul a {
    width: 100%;
    padding: 12px 0;
    display: block;
  }
  .nav-menu.active .nav-container ul { max-height: 500px; }

  .hamburger { display: flex; }
  .nav-right { margin-top: 10px; margin-left: 0; }
}

/* ---------- Page Offset ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--space);
  margin-top: calc(var(--header-h) + var(--nav-h) + 16px);
}
.fold { margin-top: calc(var(--header-h) + var(--nav-h) + 16px); }

/* ---------- Hero ---------- */
#hero-section {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: #FFF;
  background: linear-gradient(135deg, rgba(91,25,95,0.25), rgba(0,87,184,.25));
  border-radius: 16px;
  padding: 48px 24px;
}
#hero-section2 {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: #FFF;
  background: linear-gradient(135deg, rgba(91,25,95,0), rgba(0,87,184,0));
  border-radius: 16px;
  padding: 48px 24px;
}

/* ---------- Services, Forms, Address Search, Typography ---------- */
/* (unchanged from your version — keep your styles here) */

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 20px 24px;
  margin-top: 48px;
}
.footer-container {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 28px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.footer-column h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { color: var(--footer-text); text-decoration: none; }
.footer-column a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  max-width: var(--maxw); margin: 28px auto 0; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: .95rem;
}
.footer-links { list-style: none; display: flex; gap: 18px; }
.footer-links a { color: var(--footer-text); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .footer-container { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Utility ---------- */
img { max-width: 100%; height: auto; }
.social-icons img {
  width: 25px; height: 25px; object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}
.social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}
/* ---------- Ensure Header & Nav Always Stay on Top ---------- */
header {
  position: fixed;
  z-index: 2000; /* higher than any other element */
}

.nav-menu {
  position: fixed;
  z-index: 1999; /* just below header if they overlap */
}

main, #hero-section, .product-cards, .container {
  position: relative;
  z-index: 1;
}


