/* =============================================
   Shipbuilding Company — Custom CSS
   Companion to Tailwind CDN config in header.php
   ============================================= */

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a2342; }
::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 3px; }

/* ---------- Font weights via Tailwind naming ---------- */
.font-800 { font-weight: 800; }
.font-700 { font-weight: 700; }
.font-600 { font-weight: 600; }

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---------- Logo strip ticker ---------- */
.logo-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: ticker 28s linear infinite;
  will-change: transform;
}
.logo-track:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Hero overlay ---------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,22,41,0.55) 0%, rgba(6,22,41,0.75) 100%);
}

/* ---------- Gold bar accent ---------- */
.gold-bar {
  width: 48px;
  height: 3px;
  background: #FFD700;
}

/* ---------- Section label ---------- */
.section-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4a017;
}

/* ---------- Card hover lift ---------- */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,35,66,0.12);
}

/* ---------- Service card image overlay ---------- */
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,35,66,0.85) 0%, rgba(10,35,66,0.1) 60%, transparent 100%);
}

/* ---------- Gallery grid item ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-label {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,22,41,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-label { opacity: 1; }

/* ---------- Lightbox ---------- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,22,41,0.95);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Contact form ---------- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #e8d5a3;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  color: #2d3a4a;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #0a2342;
  box-shadow: 0 0 0 3px rgba(10,35,66,0.08);
}
.form-input::placeholder { color: #a0a0a0; }

/* ---------- Stat counter card ---------- */
.stat-card {
  background: white;
  border: 1px solid #e8d5a3;
  border-top: 3px solid #FFD700;
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
}

/* ---------- Nav active underline ---------- */
.nav-active {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
}

/* ---------- Mobile menu transition ---------- */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ---------- Smooth page transitions ---------- */
main { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive typography helpers ---------- */
@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
}
