
/*
Theme Name: Farled Code Theme v0.3
Author: Farled utvikling
Description: Fler-siders kodebasert WordPress-tema for Farled utvikling. Apple møter Kartverket.
Version: 0.3
Text Domain: farled
*/

:root {
  --navy: #123B63;
  --deep: #061A2C;
  --deeper: #03111F;
  --ocean: #2F6EA5;
  --gold: #C89B3C;
  --gold-soft: #E1B35B;
  --mist: #F8F9FB;
  --ice: #EEF4F8;
  --graphite: #20252B;
  --muted: #637184;
  --line: rgba(18,59,99,.11);
  --max: 1180px;
}

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

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

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

/* Header */
.site-header {
  position: absolute;
  z-index: 20;
  left: 0; right: 0; top: 0;
  padding: 26px clamp(24px, 5vw, 64px);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display:flex;
  align-items:center;
  gap: 13px;
  min-width: 220px;
}
.brand-symbol {
  width: 78px;
  height: 48px;
  object-fit: contain;
}
.brand-text {
  line-height: .95;
  letter-spacing: .21em;
  color:#fff;
  font-weight: 700;
  font-size: 25px;
}
.brand-text span {
  display:block;
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing:.32em;
  margin-top: 8px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--gold-soft); }
.main-nav .current { color: var(--gold-soft); position: relative; }
.main-nav .current:after {
  content:"";
  position:absolute;
  height:2px;
  left:0; right:0; bottom:-14px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  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), #B77D2B);
  box-shadow: 0 18px 42px rgba(200,155,60,.18);
}
.btn.outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.035);
}
.btn.outline.dark {
  color: var(--deep);
  border-color: rgba(18,59,99,.26);
}

/* Hero */
.hero {
  position: relative;
  min-height: 780px;
  color: #fff;
  background:
    radial-gradient(circle at 74% 33%, rgba(200,155,60,.13), transparent 19%),
    linear-gradient(110deg, rgba(3,17,31,.995) 0%, rgba(6,26,44,.98) 45%, rgba(18,59,99,.88) 100%),
    var(--deep);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 128px;
}
.hero:before,
.page-hero:before {
  content:"";
  position:absolute;
  inset:0;
  opacity:.16;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at 68% 43%, #000 0, transparent 66%);
}
.course-line {
  position:absolute;
  inset:0;
  pointer-events:none;
}
.course-line svg { width:100%; height:100%; display:block; }
.course-line path {
  fill:none;
  stroke:url(#goldgrad);
  stroke-width:3.25;
  stroke-linecap:round;
  filter: drop-shadow(0 0 12px rgba(225,179,91,.50));
}
.course-line .shadow {
  stroke: rgba(225,179,91,.25);
  stroke-width: 1.1;
  stroke-dasharray: 8 10;
}
.course-dot {
  fill: rgba(255,255,255,.96);
  stroke: var(--gold);
  stroke-width: 4;
  filter: drop-shadow(0 0 14px rgba(225,179,91,.62));
}
.hero-copy { position:relative; z-index:3; max-width: 790px; }
.hero h1 {
  font-size: clamp(58px, 8vw, 112px);
}
.hero h1 .gold { color: var(--gold-soft); }
.hero p {
  margin-top: 28px;
  color: rgba(255,255,255,.84);
  max-width: 630px;
  font-size: 18px;
}
.hero-actions { display:flex; gap:18px; margin-top: 42px; flex-wrap:wrap; }

/* Shared sections */
.section-kicker {
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.home-intro, .page-section {
  background:#fff;
  padding: 88px 0;
}
.page-section.alt { background: var(--mist); }
.intro-grid,
.two-col {
  display:grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 70px;
  align-items:start;
}
.home-intro h2,
.page-section h2 {
  color: var(--deeper);
  font-size: clamp(38px, 5vw, 64px);
}
.home-intro p,
.page-section p {
  color: var(--muted);
  font-size: 17px;
}
.teaser-grid {
  margin-top: 56px;
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.teaser-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(18,59,99,.08);
  box-shadow: 0 26px 70px rgba(6,26,44,.07);
  padding: 38px 34px;
  border-radius: 5px;
}
.icon-circle {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(200,155,60,.56);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--gold);
  margin-bottom: 28px;
  font-size: 26px;
}
.teaser-card h3 { font-size: 24px; font-weight: 500; margin-bottom: 14px; }
.teaser-card p { font-size: 15px; margin-bottom: 22px; }
.read-more {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.farled-foundation {
  background:
    linear-gradient(90deg, var(--deep) 0 43%, rgba(6,26,44,.32) 43%),
    radial-gradient(circle at 73% 42%, rgba(255,255,255,.20), transparent 18%),
    linear-gradient(135deg, #d7e1e6, #516b7a 45%, #071c2f);
  color:#fff;
  min-height: 520px;
  display:grid;
  grid-template-columns: .92fr 1.08fr;
}
.foundation-copy {
  padding: 82px clamp(24px, 7vw, 110px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.foundation-copy h2 {
  font-size: clamp(34px, 4.8vw, 58px);
}
.foundation-copy p {
  color: rgba(255,255,255,.78);
  margin-top: 26px;
  max-width: 560px;
}
.foundation-copy .gold { color: var(--gold-soft); }
.foundation-art {
  position:relative;
  min-height: 360px;
}
.foundation-art:before {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 62% 38%, rgba(225,179,91,.40), transparent 5%),
    radial-gradient(circle at 48% 62%, rgba(225,179,91,.26), transparent 4%);
}
.foundation-art svg { position:absolute; inset:0; width:100%; height:100%; }

/* ModulKompass */
.product-teaser,
.mk-section {
  position:relative;
  background:#fff;
  padding: 92px 0;
  overflow:hidden;
}
.product-teaser:after,
.mk-section:after {
  content:"";
  position:absolute;
  left:-10%; right:-10%; bottom:23%;
  border-top: 2px solid rgba(200,155,60,.42);
  height:120px;
  border-radius:50%;
  transform: rotate(-4deg);
}
.product-grid {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:70px;
  align-items:center;
}
.product-grid h2 { font-size: clamp(38px, 5vw, 64px); }
.check-list { list-style:none; padding:0; margin:28px 0 34px; }
.check-list li { margin: 10px 0; }
.check-list li:before { content:"✓"; color: var(--gold); font-weight:900; margin-right:12px; }

.device-card {
  min-height: 340px;
  border-radius: 18px;
  background: linear-gradient(180deg,#fff,#eef3f6);
  box-shadow: 0 44px 90px rgba(6,26,44,.16);
  border:1px solid rgba(18,59,99,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}
.device {
  width:min(430px,90%);
  aspect-ratio: 16/9;
  border-radius: 14px;
  background:#10141a;
  padding:14px;
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
}
.screen {
  height:100%;
  border-radius: 8px;
  background:
    linear-gradient(90deg,#edf2f6 0 28%, #fff 28%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(18,59,99,.08) 25px 26px);
  position:relative;
}
.screen:after {
  content:"";
  position:absolute;
  right:44px; bottom:36px;
  width:82px; height:82px;
  border-radius:50%;
  background: conic-gradient(var(--gold) 0 80deg, var(--ocean) 80deg 210deg, #d7e1ea 210deg 360deg);
  box-shadow: inset 0 0 0 18px #fff;
}
.mk-logo-card {
  background: #061A2C;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 44px 90px rgba(6,26,44,.24);
  border: 1px solid rgba(225,179,91,.20);
}
.mk-logo-card img {
  width: 100%;
  border-radius: 12px;
}

/* Pages */
.page-hero {
  position: relative;
  background:
    linear-gradient(110deg, rgba(3,17,31,.99), rgba(18,59,99,.90)),
    var(--deep);
  color:#fff;
  padding: 190px 0 115px;
  overflow:hidden;
}
.page-hero h1 {
  font-size: clamp(52px,7vw,94px);
  max-width: 980px;
}
.page-hero p {
  margin-top: 26px;
  color:rgba(255,255,255,.78);
  max-width:720px;
  font-size:18px;
}
.info-grid {
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 46px;
}
.info-box {
  border: 1px solid rgba(18,59,99,.08);
  background:#fff;
  padding: 34px;
  border-radius: 5px;
  box-shadow: 0 22px 60px rgba(6,26,44,.06);
}
.info-box h3 { font-size: 24px; font-weight:500; margin-bottom: 14px; }
.page-list { margin: 30px 0 0; padding:0; list-style:none; }
.page-list li { padding: 16px 0; border-bottom:1px solid rgba(18,59,99,.10); }
.page-list li:before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--gold); margin-right:14px; }

.quote-band {
  background: var(--deep);
  color:#fff;
  padding: 84px 0;
}
.quote-band h2 {
  font-size: clamp(36px,5vw,70px);
  max-width: 960px;
}
.quote-band .gold { color: var(--gold-soft); }

.contact-panel {
  background:#fff;
  border:1px solid rgba(18,59,99,.08);
  box-shadow: 0 30px 80px rgba(6,26,44,.08);
  padding: 44px;
  border-radius:6px;
}
.contact-panel a { color: var(--navy); font-weight:700; }

.site-footer {
  background: #03111F;
  color: rgba(255,255,255,.70);
  padding: 58px 0;
}
.footer-grid {
  display:grid;
  grid-template-columns: 1.4fr repeat(3,.8fr);
  gap:44px;
}
.footer-brand { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.footer-brand img { width:66px; }
.footer-brand strong { color:#fff; letter-spacing:.18em; font-size:20px; display:block; line-height:1; }
.footer-brand span { color:var(--gold-soft); letter-spacing:.28em; font-size:12px; display:block; margin-top:6px; }
.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;
}
.wp-admin-bar .site-header { top: 32px; }

@media (max-width: 980px) {
  .main-nav a:not(.btn) { display:none; }
  .brand-symbol { width:60px; }
  .brand-text { font-size:20px; }
  .brand-text span { font-size:11px; }
  .hero { min-height: 720px; }
  .intro-grid, .teaser-grid, .farled-foundation, .product-grid, .two-col, .info-grid, .footer-grid {
    grid-template-columns:1fr;
  }
  .product-teaser, .home-intro, .page-section, .mk-section { padding: 64px 0; }
}
