/* Fortis Protection Systems — site styles */

:root {
  --fortis-navy:       #0D2A38;
  --fortis-navy-deep:  #061821;
  --fortis-navy-soft:  #14384A;
  --fortis-slate:      #4A5568;
  --fortis-steel:      #5C84B5;
  --fortis-steel-soft: #7AA0CC;
  --fortis-mist:       #D2D9E8;
  --fortis-cream:      #F2F4F8;
  --fortis-white:      #FFFFFF;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  /* Account for fixed header (56px mobile, 64px desktop) when scrolling to anchor links */
  scroll-padding-top: 80px;
}

/* Sections with anchor IDs get extra clearance under the fixed header */
section[id] { scroll-margin-top: 80px; }

body {
  font-family: 'Mulish', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--fortis-navy);
  background: var(--fortis-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Mulish', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

h1 { font-weight: 900; line-height: 1.05; }
h2 { font-weight: 800; line-height: 1.1; }
h3 { font-weight: 700; line-height: 1.2; }

.font-display { font-weight: 900; letter-spacing: -0.02em; }
.font-bold-condensed { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* Hero overlays */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(13, 42, 56, 0.55) 0%,
    rgba(6, 24, 33, 0.85) 100%
  );
}

.hero-overlay-strong {
  background: linear-gradient(
    180deg,
    rgba(6, 24, 33, 0.7) 0%,
    rgba(6, 24, 33, 0.95) 100%
  );
}

.section-overlay {
  background: linear-gradient(
    180deg,
    rgba(13, 42, 56, 0.92) 0%,
    rgba(13, 42, 56, 0.85) 100%
  );
}

/* Subtle accent line under section badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fortis-steel);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* Card hover lift */
.card-lift {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(13, 42, 56, 0.4);
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th,
.spec-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(210, 217, 232, 0.4);
}
.spec-table th {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--fortis-slate);
  background: var(--fortis-cream);
}
.spec-table tbody tr:hover { background: rgba(210, 217, 232, 0.18); }
.spec-table .highlight {
  background: rgba(92, 132, 181, 0.08);
  font-weight: 700;
  color: var(--fortis-navy);
}

/* On dark backgrounds */
.spec-table.on-dark th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fortis-mist);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.spec-table.on-dark td {
  color: var(--fortis-cream);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.spec-table.on-dark tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.spec-table.on-dark .highlight {
  background: rgba(92, 132, 181, 0.18);
  color: var(--fortis-white);
}

/* Numeric stats */
.stat-num {
  font-family: 'Mulish', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fortis-steel);
}

/* Diagonal pattern background — subtle */
.bg-diagonal {
  background-color: var(--fortis-navy);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.02) 25%, transparent 25%);
  background-position: 14px 0, 14px 0, 0 0, 0 0;
  background-size: 28px 28px;
  background-repeat: repeat;
}

/* Mobile menu transition */
.mobile-nav {
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }

/* Nav underline animation */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fortis-steel);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  background: var(--fortis-steel);
  color: var(--fortis-white);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover { background: var(--fortis-steel-soft); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  background: transparent;
  color: var(--fortis-white);
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  background: var(--fortis-navy);
  color: var(--fortis-white);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-light:hover { background: var(--fortis-navy-soft); transform: translateY(-1px); }

/* Image presets */
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* Reveal on scroll (progressive enhancement) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Subtle dark sections divider */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 132, 181, 0.4), transparent);
}
