
/*
Theme Name: Farled Platform v3
Theme URI: https://farledutvikling.no
Author: Farled utvikling
Description: Mørk, eksklusiv Farled-side med utzoomet kartfølelse, ny logo, tydelig kurs og egne sider for Tjenester, ModulKompass, Om oss, Grunnlaget, Loggbok og Kontakt.
Version: 3.0
Text Domain: farled-platform
*/

:root {
  --navy: #061A2C;
  --navy-2: #0B2742;
  --blue: #123B63;
  --blue-soft: #2F6EA5;
  --gold: #C89B3C;
  --gold-soft: #E1B35B;
  --paper: #FFFFFF;
  --mist: #F8F9FB;
  --graphite: #20252B;
  --muted: #687789;
  --line: rgba(225,179,91,.32);
  --max: 1180px;
  --wide: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--graphite);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  margin: 0;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.wide-container {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 86px;
  background: rgba(3, 17, 31, .88);
  border-bottom: 1px solid rgba(225,179,91,.12);
  backdrop-filter: blur(18px);
}
.admin-bar .site-header { top: 32px; }

.header-inner {
  max-width: var(--wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-soft);
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(225,179,91,.13);
}
.brand span {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: .015em;
  font-size: 20px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.main-nav a { transition: color .18s ease, opacity .18s ease; }
.main-nav a:hover,
.main-nav .current { color: var(--gold-soft); }
.nav-cta {
  min-height: 46px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225,179,91,.72);
  border-radius: 5px;
  color: var(--gold-soft) !important;
  background: rgba(225,179,91,.035);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .03em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.gold {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-soft), #A96F25);
  box-shadow: 0 18px 48px rgba(200,155,60,.22);
}
.btn.dark {
  color: #fff;
  background: var(--navy);
}
.btn.outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.50);
  background: rgba(255,255,255,.035);
}

/* HERO */
.hero-stage {
  min-height: 960px;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-top: 136px;
  background:
    radial-gradient(circle at 50% 24%, rgba(225,179,91,.12), transparent 18%),
    radial-gradient(circle at 78% 48%, rgba(47,110,165,.12), transparent 22%),
    linear-gradient(180deg, #03111F 0%, #061A2C 55%, #03111F 100%);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  opacity: .18;
  background-image:
    linear-gradient(rgba(225,179,91,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,179,91,.06) 1px, transparent 1px);
  background-size: 180px 180px;
  transform: rotate(-7deg) scale(1.25);
  mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 72%);
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 22%;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  opacity: .13;
  border: 1px solid rgba(225,179,91,.48);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(225,179,91,.42) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(225,179,91,.34) 50%, transparent 50.3%);
  box-shadow:
    inset 0 0 0 1px rgba(225,179,91,.20),
    inset 0 0 0 70px rgba(255,255,255,.01);
}

.coast-map {
  position: absolute;
  inset: 0;
  opacity: .20;
  pointer-events: none;
}
.coast-map svg {
  width: 100%;
  height: 100%;
  display: block;
}
.coast-map path,
.coast-map polyline {
  fill: none;
  stroke: rgba(225,179,91,.36);
  stroke-width: 1;
}
.coast-map .soft { stroke: rgba(255,255,255,.12); }
.coast-map .course {
  stroke: rgba(225,179,91,.64);
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(225,179,91,.38));
}
.coast-map circle {
  fill: rgba(255,255,255,.86);
  stroke: var(--gold);
  stroke-width: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  min-height: 675px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 36px;
}

.hero-logo {
  width: min(560px, 76vw);
  margin: 0 auto 26px;
  border-radius: 4px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 44px 90px rgba(0,0,0,.46));
}
.hero-lead {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,.84);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.home-cards {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-bottom: 70px;
}
.home-card {
  min-height: 228px;
  background: rgba(7, 26, 43, .62);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  padding: 32px 30px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
}
.home-card .icon {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(225,179,91,.68);
  border-radius: 50%;
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-size: 27px;
  margin-bottom: 24px;
}
.home-card h3 {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}
.home-card p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
}
.home-card a {
  display: inline-block;
  margin-top: 22px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 850;
}

/* GENERAL SECTIONS */
.section {
  background: #fff;
  padding: 96px 0;
}
.section.alt { background: var(--mist); }
.section.dark {
  color: #fff;
  background:
    radial-gradient(circle at 76% 45%, rgba(225,179,91,.10), transparent 18%),
    linear-gradient(110deg, #03111F, #061A2C);
}
.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 18px;
}
.section.dark .kicker { color: var(--gold-soft); }

.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 72px;
  align-items: start;
}
.section h2,
.page-hero h1 {
  font-size: clamp(40px, 5vw, 70px);
  color: var(--navy);
}
.section.dark h2 { color: #fff; }
.section p {
  color: var(--muted);
  font-size: 17px;
}
.section.dark p {
  color: rgba(255,255,255,.76);
}

.principles {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.principle {
  border-top: 1px solid rgba(18,59,99,.16);
  padding-top: 26px;
}
.principle h3 {
  font-size: 23px;
  color: var(--navy);
  font-weight: 650;
  margin-bottom: 10px;
}
.principle p {
  font-size: 15px;
}

/* PRODUCT */
.product-wrap {
  background: linear-gradient(180deg, var(--mist), #fff);
  padding: 100px 0;
}
.product-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(18,59,99,.08);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(6,26,44,.14);
  padding: clamp(36px, 5vw, 72px);
}
.product-card::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 17%;
  height: 120px;
  border-top: 2px solid rgba(200,155,60,.35);
  border-radius: 50%;
  transform: rotate(-4deg);
}
.product-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 68px;
  align-items: center;
}
.product-card h2 {
  font-size: clamp(42px, 5.5vw, 76px);
  color: var(--navy);
}
.product-card p {
  color: var(--muted);
  font-size: 17px;
  margin: 22px 0 30px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  columns: 2;
  column-gap: 34px;
}
.check-list li {
  margin: 10px 0;
  break-inside: avoid;
}
.check-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 900;
  margin-right: 12px;
}
.product-image {
  background: #061A2C;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 38px 90px rgba(6,26,44,.28);
  border: 1px solid rgba(225,179,91,.20);
}
.product-image img {
  width: 100%;
  border-radius: 12px;
}

/* PAGE HERO */
.page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 76% 34%, rgba(225,179,91,.11), transparent 20%),
    linear-gradient(110deg, #03111F, #123B63);
  padding: 196px 0 122px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: .18;
  background-image:
    linear-gradient(rgba(225,179,91,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,179,91,.06) 1px, transparent 1px);
  background-size: 180px 180px;
  transform: rotate(-7deg) scale(1.25);
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 { color: #fff; }
.page-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.77);
  margin-top: 24px;
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
}
.info-box {
  background: #fff;
  border: 1px solid rgba(18,59,99,.08);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 22px 60px rgba(6,26,44,.06);
}
.info-box h3 {
  color: var(--navy);
  font-size: 24px;
  font-weight: 650;
  margin-bottom: 14px;
}
.info-box p { color: var(--muted); }

.page-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.page-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(18,59,99,.10);
}
.page-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 14px;
}

.log-entry {
  border-left: 2px solid rgba(200,155,60,.58);
  padding: 0 0 34px 28px;
  margin-bottom: 34px;
}
.log-entry small {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
}
.log-entry h3 {
  font-size: 34px;
  font-weight: 550;
  margin: 10px 0 12px;
}

/* FOOTER */
.site-footer {
  background: #03111F;
  color: rgba(255,255,255,.72);
  padding: 58px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 42px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
}
.footer-brand strong {
  color: var(--gold-soft);
  font-size: 19px;
  letter-spacing: .03em;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 15px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}
.site-footer a,
.site-footer p {
  display: block;
  margin: 6px 0;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1120px) {
  .main-nav { gap: 16px; }
  .brand span { display: none; }
  .home-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-header { height: 76px; }
  .main-nav a:not(.nav-cta) { display: none; }
  .hero-stage { min-height: auto; padding-top: 110px; }
  .hero-content { min-height: 560px; }
  .home-cards,
  .split,
  .principles,
  .product-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .check-list { columns: 1; }
  .section,
  .product-wrap { padding: 68px 0; }
}
