/* ================================
   Global Variables & Reset
================================= */
:root {
  --color-primary: #111;
  --color-secondary: #444;
  --color-bg-light: #ffffff;
  --color-border: #ccc;
  --color-muted: #aaa;
  --font-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  line-height: 1.8;
}

/* ================================
   Header
================================= */
header {
  padding: 2rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative; /* for mobile menu toggle */
}

/* ================================
   Navigation
================================= */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

nav a {
  text-decoration: none;
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.6;
}

/* ================================
   Hero / Sections
================================= */
section {
  max-width: 1000px;
  margin: auto;
  padding: 4rem 2rem;
  text-align: center;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

p {
  font-size: 1.05rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

/* ================================
   Call-to-Action Buttons
================================= */
button,
.cta-button {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
.cta-button:hover {
  background-color: var(--color-secondary);
}

/* ================================
   Forms
================================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

input,
textarea,
select {
  padding: 0.9rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  background-color: #f9f9f9;
  border-radius: 4px;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ================================
   Product Grid
================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.product:hover {
  transform: translateY(-5px);
}

.product img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.product h3 {
  margin: 1rem 0 0.5rem;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.product p {
  font-size: 0.9rem;
  color: #666;
}

/* ================================
   Tables
================================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

th,
td {
  border: 1px solid var(--color-border);
  padding: 1rem;
  text-align: center;
}

th {
  background-color: #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================
   Audio
================================= */
audio {
  margin-top: 1rem;
  width: 100%;
  max-width: 400px;
}

/* ================================
   Footer
================================= */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 4rem;
}

/* ================================
   Responsive Design
================================= */
@media (max-width: 768px) {
  header {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
  Mobile Nav Toggle
================================= */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: center;
  }

  nav.active {
    display: flex;
  }
}

/* ================================
  Fade-in Animation
================================= */
.fade-in {
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Page – Image Gallery */

.product-grid figure {
  margin: 0;
  text-align: center;
}

.product-grid img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.product-grid img:hover {
  transform: scale(1.02);
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

/* Video styling */
video {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive for media section */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  video {
    max-width: 100%;
  }
}

/* Gallery layout spacing fix */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}

.product-grid img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-grid img:hover {
  transform: scale(1.02);
}

figcaption {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid figure {
    padding: 1rem 0.5rem;
  }
}

/* Logo in Header */
.site-logo {
  height: 60px;
  width: auto;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

