/* ===========================
   Header
=========================== */
.main-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  background: #222;
  color: #fff;
}
.header-brand a {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
}

.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.main-nav a:hover {
  color: #ddd;
}

/* ===========================
   Nav Toggle (Mobile)
=========================== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: #fff;
}
.nav-toggle .hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after  { top: 7px; }

/* ===========================
   CTA Button
=========================== */
.cta-button,
.lighting-card .cta {
  display: inline-block;
  padding: 8px 12px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.cta-button:hover,
.lighting-card .cta:hover {
  background: #005fa3;
  transform: translateY(-1px);
}

/* ===========================
   Grid Wrapper
=========================== */
.category-grid,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 40px 20px;
  background: transparent;
}

/* ===========================
   Product Card
=========================== */
.product-card,
.lighting-card {
  background-color: #ffffff;
  flex: 1 1 200px;
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lighting-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* ===========================
   Product Image
=========================== */
.product-image,
.lighting-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fafafa;
}

/* ===========================
   Product Text
=========================== */
.product-card h4,
.lighting-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 8px 0 4px;
}
.product-card p,
.lighting-card p {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* ===========================
   Contact Form
=========================== */
.contact-wrapper {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}
.contact-wrapper h2,
.contact-wrapper p {
  margin-bottom: 24px;
}
.contact-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-wrapper input[type="text"],
.contact-wrapper input[type="email"],
.contact-wrapper textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.contact-wrapper textarea {
  resize: vertical;
}
.contact-wrapper .cta-button {
  margin: 0 auto;
}

/* ===========================
   Responsive Tweaks
=========================== */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  .category-grid,
  .card-grid {
    padding: 28px 16px;
    gap: 18px;
  }

  .lighting-card,
  .product-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ===========================
   Accessibility Focus
=========================== */
a:focus,
button:focus {
  outline: 3px solid rgba(0,119,204,0.25);
  outline-offset: 2px;
}