/* FDF BRAND COLORS */
:root {
  --fdf-navy: #053a5f;
  --fdf-navy-light: #1c4a6b;
  --fdf-slate: #507089;
  --fdf-gray: #9ca4ab;
  --fdf-bg: #f4f5f7;
  --fdf-text: #1f2933;
  --fdf-accent: #1aa3c8; /* subtle accent */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--fdf-text);
}

a {
  color: var(--fdf-navy-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem;
}

/* NAVBAR */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-brand img {
  width: 40px;
  height: auto;
}

.nav-brand span {
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--fdf-navy);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--fdf-text);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--fdf-navy);
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* HERO SECTION (centered with background graphics) */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

/* Background image + overlay – professional free-stock style */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5, 58, 95, 0.92), rgba(80, 112, 137, 0.94)),
    url("https://images.unsplash.com/photo-1542744173-05336fcc7ad4?auto=format&fit=crop&w=1400&q=80")
      center/cover no-repeat;
  z-index: -2;
}

/* Static overlay for all heroes */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(12, 74, 110, 0.45), transparent 55%);
  z-index: -1;
}

/* Subtle extra motion only on main hero */
.hero-main::after {
  animation: heroGlowDrift 26s ease-in-out infinite alternate;
}

@keyframes heroGlowDrift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  50% {
    transform: translate3d(-12px, 8px, 0);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(8px, -10px, 0);
    opacity: 1;
  }
}

.hero-main {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-secondary {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* HERO LOGO (base size for secondary pages) */
.hero-logo {
  width: 160px;
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.5rem 0.9rem;
}

/* 2x BIGGER LOGO ON HOME PAGE */
.hero-main .hero-logo {
  width: 320px;
}

.hero-text {
  max-width: 720px;
}

/* WHITE HEADLINE + LARGER TEXT */
.hero-text h1 {
  margin: 0 0 0.9rem 0;
  font-size: clamp(2.3rem, 3.4vw, 2.9rem);
  color: #ffffff;
}

/* Larger supporting text */
.hero-text p {
  margin: 0.35rem 0 0.9rem 0;
  font-size: 1.2rem;
}

/* Larger tagline */
.tagline {
  font-size: 1rem;
  color: #d1e2f3;
}

/* PAGE SECTION BASE (used by non-home pages) */
.page-section {
  background:
    radial-gradient(circle at top left, #f9fafb 0%, #edf2f7 40%, #f7fafc 100%);
  padding: 2.5rem 0 3rem;
}

.page-section + .page-section {
  border-top: 1px solid #e5e7eb;
}

/* HOME SECTION BANDS (Option C) */
.home-section-band {
  position: relative;
  padding: 2.75rem 0 3.25rem;
}

.home-section-band-1 {
  background:
    radial-gradient(circle at top left, #f5f7fb 0%, #e4edf8 45%, #f9fafc 100%);
}

.home-section-band-2 {
  background:
    linear-gradient(135deg, #eef3fa 0%, #f9fafc 60%, #ecf3fb 100%);
}

.home-section-band-3 {
  background:
    radial-gradient(circle at bottom right, #e6f2f7 0%, #f8fbfd 55%, #edf5fb 100%);
}

/* optional subtle diagonal separator for band 2 and 3 */
.home-section-band-2::before,
.home-section-band-3::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to right, rgba(5, 58, 95, 0.05), transparent);
  opacity: 0.7;
}

/* GRID LAYOUTS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media(max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* CARDS */
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

/* Slightly softer card variation (used on home) */
.card-soft {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
}

h1, h2 {
  color: var(--fdf-navy);
}

/* BUTTONS */
button,
.btn {
  background: var(--fdf-navy);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: var(--fdf-navy-light);
}

/* FORMS */
form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #d0d7df;
  border-radius: 6px;
}

textarea {
  resize: vertical;
}

/* TESTIMONIALS */
.testimonial-featured {
  border-left: 4px solid var(--fdf-navy);
  padding: 1.5rem;
  background: var(--fdf-bg);
  border-radius: 12px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

/* HOME / SERVICES SECTIONS */
.home-section-title,
.services-section-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* old icon bullet (still used in some spots) */

/* NEW: section kicker label */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fdf-slate);
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fdf-accent);
}

.kicker-text {
  font-weight: 600;
}

/* NEW: service / bullet icons */

/* COMPLIANCE BADGES / LOGOS */
.compliance-strip {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.compliance-label {
  font-size: 0.85rem;
  color: var(--fdf-gray);
}

/* Old badge style kept in case we use it elsewhere */
.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compliance-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d0d7df;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fdf-navy);
  background: #f9fafb;
}

/* NEW: logo-based strip for OSHA / EM385 / ANSI */
.compliance-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.compliance-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(10%);
  opacity: 0.95;
}

/* INDIVIDUAL LOGO SIZING – OVERRIDES */
.logo-osha {
  height: 32px !important;
}

.logo-usace {
  height: 45px !important;
}

.logo-ansi {
  height: 105px !important;
}

/* CONTACT: enhanced direct contact card */
.contact-direct-card {
  border-left: 4px solid var(--fdf-navy);
  background: linear-gradient(135deg, #ffffff, #f4f7fb);
}

/* CARD HOVER LIFT (site-wide, including testimonials) */
.card,
.testimonial-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

/* ===== Scroll-in Animations for Home & Other Pages ===== */

/* Base state: slightly lowered + transparent */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* When it becomes visible */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional small stagger delays */
.animate-delay-1 {
  transition-delay: 0.1s;
}

.animate-delay-2 {
  transition-delay: 0.2s;
}

.animate-delay-3 {
  transition-delay: 0.3s;
}

/* Hero text intro animation (on page load) */
.hero-main .hero-text,
.hero-secondary .hero-text {
  animation: heroFadeUp 0.8s ease-out 0.15s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Featured testimonial entrance (0.5s version) */
.animate-on-scroll .testimonial-featured {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.is-visible .testimonial-featured {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial cards staggered (0.5s version) */
.animate-on-scroll .testimonial-grid .testimonial-card {
  opacity: 0;
  transform: translateY(18px);
}

.animate-on-scroll.is-visible .testimonial-grid .testimonial-card {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.is-visible .testimonial-grid .testimonial-card:nth-child(1) {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.05s;
}

.animate-on-scroll.is-visible .testimonial-grid .testimonial-card:nth-child(2) {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.15s;
}

.animate-on-scroll.is-visible .testimonial-grid .testimonial-card:nth-child(3) {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.25s;
}

.animate-on-scroll.is-visible .testimonial-grid .testimonial-card:nth-child(4) {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.35s;
}

/* FOOTER */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--fdf-gray);
}


/* FOOTER DISCLAIMER */
.footer-disclaimer {
  max-width: 900px;
  margin: 0.75rem auto 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}
