/* Reset */
* { box-sizing: border-box; margin:0; padding:0; }
html,body { height:100%; width:100%; overflow-x:hidden; font-family:"Poppins",sans-serif; background:#f5f5f5; color:#ffffff; }

/* Header Base (keeps your original styling) */
/* ----- HEADER HIDE / SHOW ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #710000c8;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;      /* prevent clicking while hidden */
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-header.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Hide state */
.site-header.hide {
  top: -150px;  /* slightly more than header height */
}

/* Inner structure stays same */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}

.fade-container,
.fade-slide {
  z-index: 1 !important;
}
/* Prevent header from hiding while dropdown is open */
.site-header.hover-lock {
  top: 0 !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Logo */
.logo-area { display:flex; align-items:center; gap:12px; }
.logo-box { width:56px; height:56px; border-radius:50%; overflow:hidden; border:2px solid #000000; background:#fff; display:flex; align-items:center; justify-content:center; }
.logo-img { width:100%; height:100%; object-fit:cover; }
.brand-name { color:#fff; font-size:40px; font-weight:600; letter-spacing:0.6px; }

/* Nav */
.nav-container { flex:1; display:flex; justify-content:flex-end; }
.nav { display:flex; list-style:none; gap:28px; align-items:center; margin:0; padding:0; }
.nav > li { position:relative; }
nav ul li a {
    color: rgba(230, 230, 230, 0.796);      
    text-decoration: none;
    transition: 0.3s ease; 
}

nav ul li a:hover {
    color: #2de743;   
}

.nav-label { color:#fff; font-size:17px; font-weight:500; cursor:pointer; padding:8px; display:inline-block; }
.no-dropdown:hover { opacity:0.85; }

/* Dropdown (hover) */
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;         /* instead of calc(100% + 8px) */
  left: 0;
  margin-top: 4px;   /* tiny gap but still hoverable */
  background: #d6fdc4d6;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  z-index: 9999;
}
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 32px;        /* hover buffer */
  background: transparent;
}

.dropdown:hover > .dropdown-content { display:flex; }
.dropdown-content.small-menu { width:340px; }

/* columns */
.menu-column { min-width:160px; }
.menu-column h3 { margin:0 0 8px; color:#d32f2f; font-weight:600; font-size:15px; }
.menu-column a { display:block; color:#222; text-decoration:none; padding:6px 0; font-size:14px; }
.menu-column a:hover { color:#d32f2f; transform:translateX(4px); }

/* Main content area - full width but center internal content using max-width */
.main-content { width:100%; }
.animation-section { width:100%; max-width:1200px; margin:0 auto; padding:22px 16px; 
.main-nav a.nav-button {
  color: #fff;
  text-decoration: none;
}

.main-nav a.nav-button:hover {
  color: #ffe0e0;  /* same hover effect as your other buttons */
}
}
/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-auto-rows: 1fr;                   /* ensures equal height rows */
  gap: 25px;                             /* space between boxes */
  max-width: 700px;                      /* limits total width */
  margin: 0 auto;                        /* centers the grid */
  padding: 0 20px;
  justify-items: center;                 /* centers each box horizontally */
}

.product-box {
  width: 100%;            /* fills column width */
  aspect-ratio: 1 / 1;    /* ensures square boxes */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.product-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ====Images inside box==== */
.product-img {
  width: 100%;
  height: auto;
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 10px;
}
/* Center the grid container */
.centered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;       /* keeps content from stretching too wide */
  margin: 0 auto;          /* centers the grid horizontally */
  padding: 0 20px;         /* optional spacing on sides */
  justify-items: center;    /* centers grid items inside each column */
  box-sizing: border-box;
}

/* Ensure product boxes are centered and don’t stretch */
.centered-grid .product-box {
  width: 100%;              /* allows the box to fill its column */
  max-width: 300px;         /* optional max width for consistent sizing */
  display: flex;
  flex-direction: column;
  align-items: center;      /* centers content inside the box */
  text-align: center;
}


/* ===== CATEGORY IMAGES ===== */
/* Replace these images with your images folder paths */

.lighting-img { 
  background-image: url('../Images/Light.png');
}

.fans-img { 
  background-image: url("../Images/Fans.png");
}

.heaters-img { 
  background-image: url('../Images/RH.png');
}

.accessories-img { 
  background-image: url("../Images/UNDER\ DEVELOPMENT.png");
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* ----------------------------- Link not Appearing blue-------------------- */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #d32f2f;
}

/* ----------------------------- Footer --------------------------------- */
.footer {
  width: 100%;
  background: #2f2b1b;
  color: #fff;
  padding: 28px 0 36px;
  margin-top: 40px;
}
.footer-container {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-col { min-width: 220px; }
.footer-col h3 { margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.footer-col p { margin: 6px 0; font-size: 15px; opacity: 0.95; }
.footer-nav { width: 100%; display: flex; justify-content: center; gap: 10px; margin-top: 12px; font-size: 14px; opacity: 0.95; }

/* ----------------------------- Utilities ------------------------------- */
.brand-link { color: inherit; text-decoration: none; }
.text-center { text-align: center; }

/* ----------------------------- Responsive -------------------------------- */
@media (max-width: 1200px) {
  .header-inner { width: 95%; }
  .dropdown-content { max-width: calc(100vw - 32px); left: auto; right: 0; }
}

@media (max-width: 880px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px 14px; }
  .nav { flex-wrap: wrap; gap: 8px; }
  .slide-title { font-size: 22px; bottom: 5%; padding: 8px 16px; }
  .slide-wrapper { min-height: 320px; }
  .anim-row { flex-direction: column; gap: 18px; padding: 0 12px; }
  .dealer-form-container { width: 95%; padding: 18px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 15px; }
  .logo-box { width: 48px; height: 48px; }
  .slide-title { font-size: 18px; left: 50%; transform: translateX(-50%); bottom: 6%; padding: 6px 12px; }
  .slide-wrapper { min-height: 220px; }
}

/* ----------------------------- Accessibility / Focus -------------------- */
/* Show focus outlines for keyboard users */
a:focus, button:focus, input:focus, .nav-label:focus {
  outline: 3px solid rgba(211,47,47,0.18);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Responsive: 1 column on mobile */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}
