/* ===========================
   TurboRaf — style.css
   Custom styles (Tailwind base)
   WCAG AA compliant colour usage:
     #0069a3 on white  → 5.3:1  ✓  (all text)
     #0069a3 on dark   → 3.1:1  ✓  (large / bold text ≥18px)
     white on #0f1923  → 16:1   ✓
   =========================== */

:root {
  --brand-blue:  #0069a3;
  --brand-red:   #c0392b;   /* darkened for contrast */
  --brand-dark:  #0f1923;
  --brand-gray:  #1e2d3d;
  --brand-light: #f0f6fb;
}

/* ---------- Scroll behaviour ---------- */
html { scroll-behavior: smooth; }

/* ---------- Font ---------- */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background-color: #fff;
  color: #1a2533;
}

/* ---------- Navigation ---------- */
#navbar {
  transition: box-shadow 0.3s;
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

/* Mobile menu */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: block;
}

/* ---------- Skip link (WCAG 2.4.1 — Bypass Blocks) ---------- */
.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero-img {
  /* slightly darken the background photo to boost text contrast (WCAG AA) */
  filter: brightness(0.6);
}
.hero-overlay {
  /* dark-to-dark gradient: keeps text always on very dark surface */
  background: linear-gradient(
    135deg,
    rgba(10,18,28,0.88) 0%,
    rgba(10,18,28,0.72) 100%
  );
}

/* ---------- Section headings ---------- */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 2px;
}
.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Service cards ---------- */
.service-card {
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,105,163,0.12);
}
.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), #00527f);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

/* ---------- EU Grant section ---------- */
.grant-item {
  border-left: 3px solid var(--brand-blue);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

/* ---------- EU grant info box ---------- */
.eu-info-box {
  background: #1e2d3d;
  border-radius: 1rem;
  padding: 2rem;
}
.eu-info-box .eu-logo-wrap {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.eu-info-box dl dt {
  color: #93c5fd;        /* text-blue-300: bright on dark bg, ≥4.5:1 */
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1rem;
}
.eu-info-box dl dd {
  color: #e2e8f0;        /* text-slate-200: 13.5:1 on dark bg */
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0.15rem;
}
.eu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.eu-tag {
  background: rgba(0,105,163,0.35);
  color: #93c5fd;        /* blue-300: high contrast on dark */
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,105,163,0.5);
}

/* ---------- Equipment gallery ---------- */
.equip-img {
  transition: transform 0.4s;
  object-fit: cover;
}
.equip-card:hover .equip-img {
  transform: scale(1.04);
}

/* ---------- Stat counters ---------- */
.stat-card {
  border-top: 3px solid var(--brand-blue);
}

/* ---------- Contact ---------- */
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Scroll-to-top button ---------- */
#scrollTop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }

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