* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1e2a3a;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Color Scheme: White, Blue (#0b3b5f), Red (#c72a2f) */
:root {
  --primary-blue: #0b3b5f;
  --primary-red: #c72a2f;
  --blue-light: #eef3fc;
  --blue-dark: #07283f;
  --gray-light: #f8fafc;
  --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo-area {
  position: relative;
  height: 70px; /* navbar height */
}

.logo-wrapper {
  position: absolute;
  top: 5px; /* shift down slightly */
  left: 0;
  transform: translateY(0); /* remove negative translate to stop top clipping */
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-wrapper.hide {
  opacity: 0;
  transform: translateY(-100%); /* push out of view when scrolling */
  pointer-events: none;
}

.logo-img {
  height: 160px; /* reduced height to fit better */
  width: auto;
  display: block;
  transition: transform 0.35s ease;
}
.logo-placeholder {
  border: 2px dashed var(--primary-red);
  border-radius: 40px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-blue);
  background: white;
  transition: 0.2s;
}
.logo-placeholder i {
  color: var(--primary-red);
  margin-right: 6px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #1f3a4b;
  transition: 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-red);
}
.mobile-menu-btn {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  scroll-margin-top: 100px; /* Fixes titles being cut off by sticky navbar */
}
#contact {
  scroll-margin-top: 0; /* Exclude contact as requested */
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  color: var(--primary-blue);
}
.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 4px;
}
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, #ffffff 100%);
  border-radius: 0 0 3rem 3rem;
  padding: 4rem 2rem;
  margin-top: 100px; /* to account for logo overlap */
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.hero-text {
  flex: 1;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(125deg, var(--primary-blue), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.tagline {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 1rem;
}
.btn-red {
  display: inline-block;
  background: var(--primary-red);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}
.btn-red:hover {
  background: #a81e22;
  transform: translateY(-2px);
}
.hero-stock {
  flex: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.stock-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  border: 3px solid white;
}

/* Cards */
.grid-2, .services-grid, .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.card {
  background: var(--blue-light);
  border-radius: 2rem;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 1px solid #eef2f6;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
  border-color: var(--primary-red);
}
.card-icon {
  font-size: 2.2rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.badge {
  background: var(--blue-light);
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-blue);
  border: 1px solid #eef2f6;
}

/* About extra */
.leader-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--blue-light);
  border-radius: 2rem;
  padding: 1.8rem;
  margin-top: 2rem;
}
.leader-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-red);
}
/* Contact */
.contact-block {
  background: var(--primary-blue);
  border-radius: 2rem;
  padding: 2rem;
  color: white;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  
}
.contact-line i {
  width: 28px;
  color: var(--primary-red);
}
.contact-line a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}
footer {
  text-align: center;
  padding: 2rem;
  background: var(--blue-dark);
  color: #cddfe7;
  font-size: 0.8rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11, 59, 95, 0.9));
  padding: 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.gallery-overlay p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Mobile */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  .nav-links.show {
    display: flex;
    padding-top: 60px; /* Push items down to clear the overhanging logo */
  }
  .mobile-menu-btn {
    display: block;
  }
  .navbar {
    padding: 0.8rem 1.2rem;
  }
  .logo-img {
    height: 120px; /* Smaller logo on mobile to save space */
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero {
    margin-top: 40px; /* Reduced from 100px */
    padding: 2rem 1.2rem; /* Tighter vertical padding */
  }
  section {
    padding: 3rem 1.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}