/* Infinitix Fiber — shared stylesheet
   Design language kept from the live infinitix.no: Roboto Flex, dark hero,
   steel-blue accents, Kohtla ownership. */

:root {
  --navy:      #0a1a2b;
  --navy-2:    #10273d;
  --steel:     #2f628f;
  --steel-dk:  #234c70;
  --accent:    #4a90d9;
  --accent-2:  #6fb0e8;
  --ink:       #16212c;
  --muted:     #5a6b7b;
  --line:      #e2e8ef;
  --bg:        #f5f8fb;
  --card:      #ffffff;
  --radius:    14px;
  --maxw:      1160px;
  --shadow:    0 10px 30px rgba(16,39,61,.08);
  --shadow-lg: 0 24px 60px rgba(16,39,61,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Roboto Flex", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 600; color: var(--accent); margin-bottom: .8rem;
}
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,26,43,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand-fallback { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #d7e2ee; font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 6px; align-items: center; font-size: .85rem; }
.lang a { color: #90a4b8; font-weight: 600; }
.lang a.on { color: #fff; }
.lang span { color: #45586b; }
.btn {
  display: inline-block; border-radius: 999px; padding: 11px 22px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(74,144,217,.35); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(7,18,31,.94) 0%, rgba(7,18,31,.78) 42%, rgba(10,26,43,.45) 100%);
}
.hero-inner { position: relative; padding: clamp(80px, 12vw, 150px) 0; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { color: #cddae7; font-size: 1.2rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Page banner (inner pages) */
.page-hero { position: relative; color:#fff; background: var(--navy); overflow: hidden; }
.page-hero .hero-bg::after {
  background: linear-gradient(120deg, rgba(7,18,31,.95), rgba(10,26,43,.6));
}
.page-hero-inner { position: relative; padding: clamp(70px, 9vw, 120px) 0 clamp(50px,7vw,80px); max-width: 780px; }
.page-hero h1 { color:#fff; }
.page-hero p { color:#cddae7; font-size: 1.15rem; }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 8vw, 96px) 0; }
.block.tint { background: #eef3f8; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,64px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.figure-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow);
}
.stat .num { font-size: 2.5rem; font-weight: 700; color: var(--steel); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: .98rem; }

/* Cards / services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16/10; background: #dfe7ef center/cover no-repeat; }
.card-body { padding: 24px 24px 26px; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Feature list */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--steel), var(--accent)); color: #fff;
  font-size: 1.3rem; margin-bottom: 16px;
}
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Two-column prose blocks */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.panel h3 { color: var(--steel-dk); }
.panel p { color: var(--muted); margin-bottom: 0; }

/* Steel CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--steel-dk), var(--steel));
  color: #fff; border-radius: 20px; padding: clamp(38px,6vw,60px);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5e5f3; max-width: 560px; margin: 0 auto 26px; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); text-align: left;
}
.contact-card h3 { color: var(--steel-dk); font-size: 1.05rem; }
.contact-card p { color: var(--muted); font-size: .96rem; }
.contact-card a { font-weight: 600; }

/* Report box */
.report-box {
  border: 1px solid var(--line); border-left: 5px solid var(--accent);
  background: var(--card); border-radius: var(--radius); padding: 30px 32px;
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c8d7; padding: 56px 0 34px; margin-top: 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand .brand-fallback { color:#fff; }
.footer-brand p { max-width: 320px; font-size: .95rem; color: #9fb2c4; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: #a9bccd; font-size: .95rem; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: #7f94a8;
}
.footer-bottom a { color: #a9bccd; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .stats, .cards, .feature-grid, .duo, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-top { flex-direction: column; }
}
