/* ==========================================================================
   Fiber Solution OÜ — custom styles (complements Tailwind CDN utilities)
   ========================================================================== */

:root {
  --fs-navy: #0a1e3a;
  --fs-navy-dark: #061530;
  --fs-blue: #0e7fd6;
  --fs-blue-light: #3fb6ff;
  --fs-cyan: #16d1c9;
  --fs-orange: #ff7a1a;
  --fs-gray-50: #f7f9fc;
  --fs-gray-100: #eef2f7;
  --fs-gray-600: #5b6b82;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #16233a;
  background-color: #ffffff;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Manrope', 'Inter', sans-serif;
}

/* ---- Hero gradient / fiber glow background ---- */
.fs-hero {
  position: relative;
  background: linear-gradient(120deg, var(--fs-navy) 0%, var(--fs-navy-dark) 55%, #041025 100%);
  overflow: hidden;
}

.fs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(63, 182, 255, 0.25), transparent 40%),
                     radial-gradient(circle at 85% 75%, rgba(22, 209, 201, 0.22), transparent 45%);
  pointer-events: none;
}

.fs-glow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fs-blue-light), transparent);
  opacity: 0.5;
  width: 100%;
}

/* ---- Logo mark ---- */
.fs-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fs-blue), var(--fs-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- Nav link underline ---- */
.fs-nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.fs-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--fs-cyan);
  transition: width 0.25s ease;
}
.fs-nav-link:hover::after,
.fs-nav-link.active::after {
  width: 100%;
}
.fs-nav-link.active {
  color: var(--fs-cyan) !important;
}

/* ---- Cards ---- */
.fs-card {
  background: #fff;
  border: 1px solid var(--fs-gray-100);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -12px rgba(10, 30, 58, 0.18);
  border-color: transparent;
}

.fs-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14,127,214,0.12), rgba(22,209,201,0.14));
  color: var(--fs-blue);
  font-size: 1.4rem;
}

/* ---- Buttons ---- */
.fs-btn-primary {
  background: linear-gradient(135deg, var(--fs-blue), var(--fs-cyan));
  color: #fff;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.fs-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.fs-btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.fs-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ---- Section labels ---- */
.fs-eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--fs-blue);
}

/* ---- Stats ---- */
.fs-stat-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  background: linear-gradient(135deg, var(--fs-blue), var(--fs-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Footer ---- */
.fs-footer {
  background: var(--fs-navy-dark);
}
.fs-footer a {
  color: #b9c6d9;
  transition: color 0.2s ease;
}
.fs-footer a:hover {
  color: var(--fs-cyan);
}

/* ---- Cookie banner ---- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--fs-navy-dark);
  color: #dbe6f5;
  transform: translateY(120%);
  transition: transform 0.4s ease;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
}
#cookie-banner.show {
  transform: translateY(0);
}

/* ---- Mobile nav ---- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open {
  max-height: 480px;
}

/* ---- Utility ---- */
.fs-divider {
  height: 3px;
  width: 56px;
  background: linear-gradient(90deg, var(--fs-blue), var(--fs-cyan));
  border-radius: 999px;
}

.fs-bg-image {
  background-size: cover;
  background-position: center;
}

.fs-overlay-navy {
  background: linear-gradient(180deg, rgba(6,21,48,0.85), rgba(6,21,48,0.92));
}

/* Legal pages */
.fs-legal h2 {
  color: var(--fs-navy);
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.fs-legal h3 {
  color: var(--fs-navy);
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.fs-legal p, .fs-legal li {
  color: #3a4a63;
  line-height: 1.75;
}
.fs-legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

/* ---- Scroll reveal ---- */
.fs-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fs-reveal.fs-revealed {
  opacity: 1;
  transform: translateY(0);
}
