/* IT-Forum Troms — modern static site
   Theme: Nordic / aurora (deep navy + teal-green accent) */

:root {
  --navy-900: #0a1733;
  --navy-800: #0f2147;
  --navy-700: #15315f;
  --teal-500: #1bb89a;
  --teal-400: #2ad0b0;
  --aurora: #3ad6a8;
  --ink: #1a2332;
  --muted: #5b6677;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 23, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 23, 51, 0.14);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy-900); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 38px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.96rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--teal-500); background: rgba(27, 184, 154, 0.1); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 9px;
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--navy-900);
  position: relative; transition: 0.2s;
}
.nav-toggle span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle span::after { content: ""; position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(58, 214, 168, 0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 120%, rgba(42, 208, 176, 0.18), transparent 55%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #eaf1fb;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, black, transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 18px;
}
.hero h1 { color: #ffffff; max-width: 18ch; }
.hero p { font-size: 1.2rem; max-width: 60ch; color: #cdd9ec; }
.hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* page header (interior pages) */
.page-head {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #eaf1fb;
}
.page-head .container { padding-top: 64px; padding-bottom: 64px; }
.page-head h1 { color: #fff; }
.page-head p { color: #cdd9ec; max-width: 65ch; margin: 0; font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal-500); color: #042b22; box-shadow: 0 8px 20px rgba(27, 184, 154, 0.35); }
.btn-primary:hover { background: var(--teal-400); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 70ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* prose blocks */
.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 16px 24px;
  border-left: 4px solid var(--teal-500);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy-800);
}

/* ---------- Cards / pillars ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(27, 184, 154, 0.12);
  color: var(--teal-500);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* board / people */
.people {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.person .name { font-weight: 800; color: var(--navy-900); font-size: 1.1rem; }
.person .role { color: var(--teal-500); font-weight: 600; font-size: 0.95rem; }
.person.lead-person { border-top: 4px solid var(--teal-500); }

/* members list */
.members {
  columns: 3;
  column-gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.members li {
  break-inside: avoid;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.members li::before { content: "›"; color: var(--teal-500); font-weight: 700; margin-right: 10px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 480px;
}
table.pricing th, table.pricing td { padding: 15px 20px; text-align: left; }
table.pricing thead th {
  background: var(--navy-900); color: #fff; font-size: 0.95rem;
}
table.pricing tbody tr { border-top: 1px solid var(--line); }
table.pricing tbody tr:nth-child(even) { background: var(--bg-soft); }
table.pricing td:last-child { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.table-note { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }

/* feature list with checks */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(27, 184, 154, 0.15); color: var(--teal-500);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
}

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--teal-500), #0f9d83);
  color: #042b22;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #042b22; }
.cta p { color: #073d31; max-width: 55ch; margin: 0 auto 24px; font-size: 1.1rem; }

/* contact form */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 640px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy-800); font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal-500); border-color: transparent; background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c6dd;
  padding: 60px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cdd9ec; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.9rem; color: #8696b3;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .members { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; border-radius: 10px; }
  .cta { padding: 32px 22px; }
}
@media (max-width: 520px) {
  .members { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
