/* Reset & Base */
:root {
  --primary: #0f2c59;
  /* Deep Blue - Trust & Corporate */
  --primary-light: #1d4ed8;
  --secondary: #10b981;
  /* Emerald Green - Eco/Sustainability */
  --accent: #f59e0b;
  /* Amber - Highlights */
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: 800px;
}

section {
  padding: 5rem 0;
}

section.bg-white {
  background-color: var(--white);
}

section.bg-light {
  background-color: var(--bg);
}

section.bg-primary {
  background-color: var(--primary);
  color: var(--white);
}

section.bg-primary h2,
section.bg-primary p {
  color: var(--white);
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-light);
}

.site-nav .cta {
  background: var(--primary-light);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: background 0.2s;
}

.site-nav .cta:hover {
  background: var(--primary);
  color: var(--white);
}

.hamburger {
  display: none;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(15, 44, 89, 0.9), rgba(15, 44, 89, 0.8)), url('../img/hero-bg.jpg');
  /* Placeholder for hero bg */
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--white);
}

.btn.secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* Layout Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
    /* Increased gap for better mobile separation */
  }
}

.contact-sidebar {
  padding-left: 0;
}

@media (min-width: 769px) {
  .contact-sidebar {
    padding-left: 2rem;
    border-left: 1px solid var(--border);
  }
}

/* Features Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: none;
  transition: all 0.2s;
}

.product-card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.product-img {
  height: 200px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.product-content {
  padding: 1.5rem;
}

.product-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.product-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.product-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 4rem 0 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: #9ca3af;
}

.site-footer a:hover {
  color: var(--white);
}

.badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  filter: grayscale(100%) brightness(200%);
  opacity: 0.7;
}

.legal {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Force 4 columns for a compact row */
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  /* Slightly tighter radius */
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 180px;
  /* Much smaller height for desktop */
  background: #f3f4f6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures images fill the box without distortion */
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
  transform: scale(1.05);
  /* Slight zoom */
}

/* Hover Overlay with Icon */
.gallery-item::after {
  content: "🔍";
  /* Simple magnifying glass icon */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 2rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  /* Flexbox for centering text content of pseudo element */
  align-items: center;
  justify-content: center;
  /* Ensures the icon is centered */
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  margin-top: 5vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s;
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9)
  }

  to {
    transform: scale(1)
  }
}

/* Polish & Consistency */
h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

/* Mobile Polish */
@media (max-width: 768px) {
  .nav-row {
    height: 60px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .site-nav[data-collapsed="false"] {
    display: flex;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lightbox-content {
    width: 100%;
    max-height: 70vh;
    margin-top: 15vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on tablet/mobile */
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    /* 1 column on very small screens */
  }
}