/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  display: block;
  max-width: 100%;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.col-half {
  flex: 1;
  min-width: 300px;
}

.col-third {
  flex: 1;
  min-width: 250px;
}

/* Header */
header {
  background-color: black;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #333;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px; 
  width: auto;
}

nav ul {
  display: flex;
}

nav li {
  margin-left: 25px;
}

nav a {
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #ccc;
}

nav a:hover,
nav a.active {
  color: white;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  height: 85vh;
  background-color: #111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Note: ../images because css file is in a subfolder */
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/lenz.webp');
  background-size: cover;
  background-position: center;
}

.hero-content h1 {
  font-size: 4rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-family: "Courier New", Courier, monospace;
}

.sub-hero {
  background-color: #111;
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 50px;
}

.sub-hero h1 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sub-hero p {
  color: #ccc;
  font-family: "Courier New", Courier, monospace;
}

/* General Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 40px;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid white;
  color: white;
  background: transparent;
  cursor: pointer;
}

.btn:hover {
  background: white;
  color: black;
}

.btn-primary {
  background: white;
  color: black;
  border-color: white;
}

.btn-primary:hover {
  background: #ccc;
  border-color: #ccc;
}

/* Cards */
.categories {
  background-color: #e5e5e5;
}

.cat-card, 
.product-card {
  background: white;
  padding: 20px;
  border: 1px solid #ccc;
  transition: transform 0.2s;
}

.cat-card {
  padding: 40px;
  text-align: center;
}

.cat-card:hover, 
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
  margin-bottom: 15px;
}

.product-card:hover img {
  filter: grayscale(0%);
}

/* Lists and Tables */
.specs-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", monospace;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-bottom: 40px;
}

.data-table th {
  background-color: black;
  color: white;
  text-align: left;
  padding: 15px;
  text-transform: uppercase;
}

.data-table td {
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: 2px solid black;
}

/* Footer */
footer {
  background-color: #111;
  color: white;
  padding: 60px 0 20px 0;
  border-top: 5px solid #333;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: white;
  text-transform: uppercase;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #aaa;
}

.footer-col a:hover {
  color: white;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #666;
  font-size: 0.8rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  header .container {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    padding-top: 20px;
  }

  nav li {
    margin: 0;
    margin-bottom: 15px;
  }
  
  .col-half, .col-third {
    min-width: 100%;
  }
}

#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: black;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%; /* Makes it a circle */
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

#backToTopBtn:hover {
  background-color: #333;
}