/* ===== Global Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header & Navigation ===== */
header {
  background: #111;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 { font-size: 1.5rem; }
nav a {
  color: #fff;
  margin: 0 10px;
  font-weight: 500;
}
nav a:hover { text-decoration: underline; }

/* ===== Logo Responsiveness ===== */
.logo img {
  max-height: 60px;
  width: auto;
}
.logo-horizontal { display: block; }
.logo-stacked { display: none; }
@media (max-width: 768px) {
  .logo-horizontal { display: none; }
  .logo-stacked { display: block; max-height: 80px; }
}

/* ===== Hero Slider ===== */
.hero, .slider {
  position: relative;
  overflow: hidden;
}
.hero img, .slider img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
  display: none;
}
.hero img.active, .slider img.active { display: block; }
.nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.nav button {
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 15px;
}

/* ===== Section Styles ===== */
h2 { text-align: center; margin: 30px 0; }
.why {
  padding: 50px;
  text-align: center;
}
.why h2 { font-size: 2rem; margin-bottom: 20px; }
.cta {
  text-align: center;
  margin: 30px;
}
.cta a {
  background: #004aad;
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
  margin: 0 10px;
}
.cta a:hover { background: #00307a; }

/* ===== Gallery (Applications page) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px;
}
.gallery figure { margin: 0; text-align: center; }
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}
.gallery figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #333;
}

/* ===== Content Sections ===== */
.content {
  padding: 40px;
  max-width: 900px;
  margin: auto;
}
.banner {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.banner h1 {
  font-size: 2.5rem;
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 4px;
}

/* ===== Team Section ===== */
.team {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.member {
  width: 220px;
  text-align: center;
  position: relative;
}
.member img { width: 100%; border-radius: 6px; }
.caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 10px;
  font-size: 0.9rem;
}
.member:hover .caption { opacity: 1; }

/* ===== Contact Form ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
input, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}
button {
  background: #004aad;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
button:hover { background: #00307a; }

/* ===== Footer ===== */
footer {
  background: #111;
  color: #fff;
  padding: 20px 30px;
  text-align: center;
}
footer .downloads { margin-top: 10px; font-size: 0.9rem; }
footer a { color: #fff; }
footer a:hover { text-decoration: underline; }

/* ===== 404 Page ===== */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
h1 { margin-bottom: 20px; }
a.btn {
  background: #004aad;
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
}
a.btn:hover { background: #00307a; }
/* ====== Footer & Contact Info Grids ====== */
.info-grid {
  max-width: 1000px;
  margin: auto;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.info-grid h3,
.info-grid h4 {
  margin-bottom: 10px;
  color: #333;
}

.info-grid p {
  margin: 6px 0;
  line-height: 1.5;
}
/* ===== Products Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 30px;
}

.product-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.product-item img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}
.product-item figcaption {
  font-weight: bold;
  margin: 12px 0 8px;
  color: #333;
}
.spec-btn {
  display: inline-block;
  background: #004aad;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.spec-btn:hover {
  background: #00307a;
}
/* ===== Products Grid with Overlay ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px;
  max-width: 1400px;
  margin: auto;
}

.product-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.product-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-item:hover img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.3s ease;
  text-align: center;
  padding: 10px;
}

.product-item:hover .product-overlay {
  background: rgba(0,0,0,0.55);
}

.product-overlay h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Button hidden by default */
.spec-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #004aad;
  color: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.product-item:hover .spec-btn {
  opacity: 1;
  transform: translateY(0);
}

.spec-btn:hover {
  background: #00307a;
}

/* ===== Lightbox ===== */
#lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  text-align: center;
}

.lightbox-content img {
  max-width: 90%;
  max-height: 75vh;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  margin-bottom: 12px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
  display: inline-block;
  margin-top: 5px;
  margin-right: 10px;
  color: #00aaff;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lightbox-caption:hover {
  color: #66d1ff;
  text-decoration: underline;
}

/* Download icon */
.lightbox-download {
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.2s ease;
}

.lightbox-download:hover {
  color: #00aaff;
}

/* Navigation Arrows */
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%;
  font-size: 2.5rem; font-weight: bold;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  color: #00aaff;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
/* ===== Team Grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 15px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

/* Optional: hover lift effect */
.team-card:hover {
  transform: translateY(-6px);
}
/* ===== Progressive Timeline ===== */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 30px;
  position: relative;
  flex-wrap: wrap;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 4px;
  background: #004aad;
  z-index: 0;
}

.milestone {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 0 15px;
  z-index: 1;
}

.milestone .year {
  display: inline-block;
  background: #004aad;
  color: #fff;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 1rem;
  margin-bottom: 10px;
}

.milestone p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

/* Mobile: vertical timeline */
@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline::before {
    top: 0;
    left: 20px;
    width: 4px;
    height: 100%;
  }
  .milestone {
    text-align: left;
    margin-bottom: 30px;
    padding-left: 50px;
  }
  .milestone .year {
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* ===== Highlights Grid (reused) ===== */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.highlight-grid div {
  background: #004aad;
  color: #fff;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  background: #004aad;
  color: #fff;
  padding: 50px 20px;
  margin-top: 40px;
}
.cta-section h2 {
  margin-bottom: 15px;
}
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #004aad;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}
.cta-btn:hover {
  background: #eaeaea;
}
/* ===== Gallery Grid for Factory Page ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 20px;
  text-align: center;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.gallery-grid h3 {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #004aad;
}

.gallery-grid p {
  font-size: 0.9rem;
  color: #555;
}
/* ===== Header / Navbar ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #eee;
}
.site-header.scrolled { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px;
}

.brand img { height: 42px; width: auto; display: block; }
.brand-text { font-weight: 800; letter-spacing: 1px; color: #111; }

.nav-toggle {
  display: none; background: none; border: none;
  font-size: 26px; cursor: pointer; line-height: 1;
}

.nav { display: block; }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; color: #222; font-weight: 600;
  padding: 8px 4px; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: #004aad; }
.nav a.active { color: #004aad; border-color: #004aad; }

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    background: #fff; border-top: 1px solid #eee;
    display: none;
  }
  .nav.open { display: block; }
  .nav-links { flex-direction: column; }
  .nav-links li { border-bottom: 1px solid #f2f2f2; }
  .nav a { display: block; padding: 14px 20px; }
}
/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}
.hero-slider .slide {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slider .slide.active { opacity: 1; }

.hero-slider .overlay {
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.45);
}

.hero-text {
  position: absolute; bottom: 20%; left: 10%;
  color: #fff; max-width: 550px;
}
.hero-text h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero-text p { font-size: 1.2rem; margin-bottom: 20px; }

.hero-text .btn {
  display:inline-block; margin:5px; padding:10px 20px;
  background:#004aad; color:#fff; text-decoration:none;
  border-radius:4px; font-weight:600;
}
.hero-text .btn-alt { background:#fff; color:#004aad; }

/* Slider controls */
.slider-controls {
  position: absolute; top:50%; width:100%;
  display:flex; justify-content:space-between;
  padding:0 20px; z-index: 10;
}
.slider-controls span {
  font-size: 2rem; color: #fff; cursor: pointer;
  user-select: none;
}

.slider-dots {
  position: absolute; bottom: 15px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.slider-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}
.slider-dots span.active { background: #004aad; }
/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 70vh; /* shorter for phones */
  overflow: hidden;
}
.hero-slider .slide {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider .overlay {
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.45);
}
.hero-text {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 10px;
  color: #fff;
  max-width: 95%;
}
.hero-text h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  line-height: 1.2;
}
.hero-text p { font-size: 1rem; margin-bottom: 15px; }
.hero-text .btn {
  display:inline-block; margin:5px; padding:10px 16px;
  font-size: 0.9rem;
  background:#004aad; color:#fff;
  text-decoration:none; border-radius:4px; font-weight:600;
}
.hero-text .btn-alt { background:#fff; color:#004aad; }

/* Slider controls (smaller for mobile) */
.slider-controls { position: absolute; top:50%; width:100%;
  display:flex; justify-content:space-between; padding:0 10px; z-index:10; }
.slider-controls span {
  font-size: 1.5rem; color: #fff; cursor: pointer; user-select: none;
}
.slider-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.slider-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.6); cursor: pointer;
}
.slider-dots span.active { background: #004aad; }

/* ===== Highlights Grid ===== */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 20px;
}
.highlight-grid div {
  background: #004aad;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  background: #004aad;
  color: #fff;
  padding: 40px 20px;
}
.cta-section h2 { font-size: 1.4rem; margin-bottom: 12px; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #004aad;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 6px;
}
.cta-btn.btn-alt { background: #eaeaea; }

/* ===== About / Applications Teasers ===== */
.content {
  padding: 30px 15px;
  max-width: 1000px;
  margin: auto;
}
.content h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-align: center;
}
.content p {
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
}

/* ===== MEDIA QUERIES (larger screens) ===== */
@media (min-width: 768px) {
  .hero-slider { height: 90vh; }
  .hero-text { bottom: 20%; left: 10%; transform: none; text-align: left; max-width: 550px; }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-text p { font-size: 1.2rem; }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .highlight-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-text h1 { font-size: 2.8rem; }
  .hero-text p { font-size: 1.3rem; }
}
/* Optional: nicer gradient fallback if background image missing */
.hero-slider .slide {
  background-color: #0d1b2a; /* base color before image loads */
}
.site-footer {
  background:#111;
  color:#eee;
  padding:30px 20px;
}

.footer-center {
  text-align:center;
  margin-bottom:20px;
  color:#ddd;
  font-size:14px;
}

.footer-center a {
  color:#f5c542;
  text-decoration:none;
}

.footer-center a:hover {
  text-decoration:underline;
}

.info-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:30px;
}

.info-grid h4 {
  color:#fff;
}

.footer-logo {
  margin-top:15px;
}

.footer-logo img {
  max-height:60px;
}
.footer-center {
  text-align:center;
  margin:20px 0;
  color:#ddd;
  font-size:14px;
}

.footer-separator {
  border:0;
  border-top:1px solid #f5c542;  /* gold accent line */
  width:60%;
  margin:0 auto 15px auto;       /* centered line */
}
/* Header Styling */
.site-header {
  background: #111;               /* dark premium background */
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand img {
  max-height: 60px;               /* keeps logo under control */
  width: auto;
  display: inline-block;
}

.nav {
  flex: 1;
  text-align: right;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f5c542;                  /* gold accent */
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: #111;
    padding: 15px;
  }
  .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-block;
  }
}
.mm-nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mm-nav-links a:hover {
  color: #f5c542;
}

/* Active state for current page */
.mm-nav-links a.active {
  color: #f5c542;
  border-color: #f5c542;
}

@media (max-width: 900px) {
  .mm-nav-links a.active {
    background: #333;
    color: #f5c542;
  }
}
/* Mobile nav hidden by default */
.mm-nav {
  display: none;
}

/* When open */
.mm-nav.mm-open {
  display: block;
}

/* Toggle button (hamburger) */
.mm-nav-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

/* Show toggle only on small screens */
@media (max-width: 768px) {
  .mm-nav-toggle {
    display: block;
  }
  .mm-nav {
    display: none;
    background: #222;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  .mm-nav.mm-open {
    display: block;
  }
  .mm-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mm-nav-links a {
    color: white;
  }
}