/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:  #0d2137;
  --green: #2d6a4f;
  --green2:#3a8a65;
  --text:  #1a2435;
  --muted: #5a6878;
  --bg:    #ffffff;
  --bg2:   #f5f7f5;
  --bdr:   #e0e8e2;
  --font:  'Instrument Sans', system-ui, sans-serif;
  --head:  'Golos Text', 'Instrument Sans', sans-serif;
  --r: 8px;
  --max: 1180px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  box-shadow: 0 1px 10px rgba(0,0,0,.2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--head); font-size: .98rem; font-weight: 700; color: #fff;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--green); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800;
}
.nav-links { display: flex; align-items: center; }
.nav-links > li > a {
  display: flex; align-items: center; gap: .22rem;
  color: rgba(255,255,255,.78); font-size: .85rem; font-weight: 500;
  padding: .42rem .78rem; border-radius: 6px; white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links > li > a svg { width: 11px; height: 11px; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.12);
  min-width: 290px; padding: .5rem; z-index: 300;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open   .dropdown { display: block; }
.dropdown li a {
  display: block; padding: .58rem .85rem;
  font-size: .85rem; color: var(--text); border-radius: 6px;
  transition: background .15s, color .15s;
}
.dropdown li a:hover { background: var(--bg2); color: var(--green); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .22s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== KNAPPER ===== */
.btn {
  display: inline-block; padding: .75rem 1.75rem;
  background: var(--green); color: #fff; border-radius: var(--r);
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--green2); transform: translateY(-1px); }
.btn--full { width: 100%; text-align: center; }
.btn--sm   { padding: .5rem 1.2rem; font-size: .84rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(145deg, #0d2137 0%, #163554 55%, #0f2e1e 100%);
  padding: 5rem 0 4rem;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr .72fr;
  gap: 3.5rem; align-items: center;
}
.hero-text h1 {
  font-family: var(--head); font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 800; color: #fff; line-height: 1.15;
  letter-spacing: -.025em; margin-bottom: 1.25rem;
}
.hero-text p { color: rgba(255,255,255,.66); font-size: .97rem; line-height: 1.8; margin-bottom: .8rem; }
.hero-text .btn { margin-top: 1.1rem; }
.hero-img {
  border-radius: 14px; height: 300px;
  background: linear-gradient(135deg, #0f3d28 0%, #1a5c40 55%, #163554 100%);
  position: relative; overflow: hidden;
}
.hero-img::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 55% 65%, transparent 0, transparent 34px, rgba(82,183,136,.09) 34px, rgba(82,183,136,.09) 35px);
}
.hero-img::after {
  content: 'Autoriserte geoteknikere';
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(13,33,55,.75); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85); font-size: .79rem; font-weight: 600;
  padding: .65rem .9rem; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.1);
}

/* ===== INFO ===== */
.info-band { background: var(--bg2); border-bottom: 1px solid var(--bdr); padding: 3.5rem 0; }
.info-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; }
.info-col h3 { font-family: var(--head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .55rem; }
.info-col > p { font-size: .86rem; color: var(--muted); margin-bottom: .8rem; }
.info-col ul { display: flex; flex-direction: column; gap: .42rem; }
.info-col ul li {
  font-size: .85rem; color: var(--text);
  padding-left: 1.3rem; position: relative;
}
.info-col ul li::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 14px; height: 14px; background: var(--green);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E") center/cover;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E") center/cover;
}

/* ===== SEKSJONER ===== */
.section       { padding: 4.5rem 0; }
.section--alt  { background: var(--bg2); }
.section-title {
  font-family: var(--head); font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; color: var(--navy); margin-bottom: 2rem;
  letter-spacing: -.015em;
}

/* ===== TJENESTER ===== */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.service-card {
  display: block; background: var(--bg); border: 1px solid var(--bdr);
  border-radius: 12px; padding: 1.65rem; cursor: pointer;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  color: var(--text);
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(13,33,55,.11);
  transform: translateY(-3px); border-color: rgba(45,106,79,.28);
}
.service-card--wide {
  grid-column: 1 / -1; display: flex; align-items: flex-start;
  gap: 1.1rem;
}
.service-card--wide .service-icon { font-size: 1.7rem; margin-bottom: 0; flex-shrink: 0; }
.service-icon { font-size: 1.9rem; margin-bottom: .75rem; }
.service-card h3 {
  font-family: var(--head); font-size: .97rem; font-weight: 700;
  color: var(--navy); margin-bottom: .45rem;
}
.service-card p { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ===== CTA STRIPE ===== */
.cta-stripe { background: var(--green); padding: 1.4rem 0; }
.cta-stripe-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.cta-stripe-inner strong { font-size: .97rem; font-weight: 600; color: #fff; }
.cta-stripe .btn { background: #fff; color: var(--green); }
.cta-stripe .btn:hover { background: var(--bg2); }

/* ===== PROSJEKTER ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.project-card { border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--bdr); transition: box-shadow .22s, transform .22s; }
.project-card:hover { box-shadow: 0 8px 28px rgba(13,33,55,.11); transform: translateY(-3px); }
.project-img { height: 150px; }
.pi--1 { background: linear-gradient(135deg, #163554, #2d6a4f); }
.pi--2 { background: linear-gradient(135deg, #2d6a4f, #0d2137); }
.pi--3 { background: linear-gradient(135deg, #1a5c40, #7a4e1a); }
.project-body { padding: 1.25rem; }
.project-body h3 { font-family: var(--head); font-size: .93rem; font-weight: 700; color: var(--navy); margin: .45rem 0 .38rem; }
.project-body p  { font-size: .83rem; color: var(--muted); line-height: 1.6; }
.tag {
  display: inline-block; font-size: .67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--green); background: rgba(45,106,79,.1);
  padding: .18rem .5rem; border-radius: 4px;
}

/* ===== ARTIKLER ===== */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.article-card { background: var(--bg); border: 1px solid var(--bdr); border-radius: 12px; padding: 1.65rem; transition: box-shadow .22s, transform .22s; }
.article-card:hover { box-shadow: 0 8px 28px rgba(13,33,55,.1); transform: translateY(-3px); }
.article-card h3 { font-family: var(--head); font-size: .95rem; font-weight: 700; color: var(--navy); margin: .6rem 0 .45rem; line-height: 1.35; }
.article-card p  { font-size: .84rem; color: var(--muted); line-height: 1.65; margin-bottom: .85rem; }
.article-card a  { font-size: .83rem; font-weight: 600; color: var(--green); }
.article-card a:hover { text-decoration: underline; }

/* ===== OM ===== */
.about-layout { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: start; }
.about-layout p { font-size: .93rem; color: var(--muted); line-height: 1.78; margin-bottom: .85rem; }
.about-table { border-collapse: collapse; margin-top: 1.5rem; font-size: .88rem; }
.about-table th { color: var(--navy); font-weight: 600; padding: .4rem 1.2rem .4rem 0; white-space: nowrap; vertical-align: top; }
.about-table td { color: var(--muted); padding: .4rem 0; }
.about-table td a { color: var(--green); }
.about-badges { display: flex; flex-direction: column; gap: .55rem; padding-top: .25rem; }
.badge {
  background: var(--bg); border: 1px solid var(--bdr); border-radius: 6px;
  padding: .42rem .95rem; font-size: .73rem; font-weight: 700;
  color: var(--muted); letter-spacing: .05em; white-space: nowrap;
}

/* ===== KONTAKT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { font-size: .93rem; color: var(--muted); margin-bottom: 1.75rem; line-height: 1.75; }
.contact-list { display: flex; flex-direction: column; gap: .95rem; }
.contact-list li { display: flex; flex-direction: column; gap: .08rem; }
.contact-list strong { font-size: .75rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.contact-list span  { font-size: .88rem; color: var(--muted); }
.contact-form { background: var(--bg2); border: 1px solid var(--bdr); border-radius: 14px; padding: 2.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.form-group label { font-size: .77rem; font-weight: 600; color: var(--text); margin-bottom: .32rem; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .68rem .9rem; border: 1.5px solid var(--bdr); border-radius: var(--r);
  font-family: var(--font); font-size: .87rem; color: var(--text);
  background: #fff; outline: none; transition: border-color .18s, box-shadow .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,79,.09); }
.form-group textarea { resize: vertical; }
.form-msg { margin-top: .8rem; font-size: .83rem; font-weight: 600; color: var(--green); text-align: center; min-height: 1.2em; }
.form-msg.err { color: #c0392b; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.5); padding: 4rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand .logo { margin-bottom: .85rem; }
.footer-brand .logo span:last-child { color: #fff; }
.footer-brand > p { font-size: .83rem; max-width: 230px; line-height: 1.65; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.footer-cols h4 { color: #fff; font-size: .73rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-cols ul { display: flex; flex-direction: column; gap: .48rem; }
.footer-cols li,
.footer-cols a  { font-size: .82rem; color: rgba(255,255,255,.42); }
.footer-cols a:hover { color: rgba(255,255,255,.8); }
.footer-bottom { padding: 1.2rem 0; }
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.25); text-align: center; }
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

/* ===== RESPONSIV ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .about-layout  { grid-template-columns: 1fr; gap: 2rem; }
  .about-badges  { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 880px) {
  .hero-inner      { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-img        { height: 200px; max-width: 480px; }
  .info-cols       { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid   { grid-template-columns: repeat(2,1fr); }
  .articles-grid   { grid-template-columns: repeat(2,1fr); }
  .contact-layout  { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner    { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 66px; left: 0; right: 0;
    background: rgba(13,33,55,.97); flex-direction: column;
    padding: 1rem; gap: 0; border-top: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: .7rem .9rem; width: 100%; }
  .has-dropdown .dropdown {
    position: static; box-shadow: none; border: none;
    background: rgba(255,255,255,.05); border-radius: 6px;
    padding: .2rem 0 .2rem .85rem; display: none; min-width: auto;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { color: rgba(255,255,255,.65); }
  .dropdown li a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--wide { flex-direction: column; }
  .projects-grid   { grid-template-columns: 1fr; }
  .articles-grid   { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-cols     { grid-template-columns: repeat(2,1fr); }
  .cta-stripe-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}
