/* ==========================================================================
   Aviga AS — Main Stylesheet (css/style.css)
   Clean, modern vanilla CSS — Visual QA implementation
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --navy: #0B0F2C;
  --dark-bg: #07091C;
  --green: #1AA167;
  --mint: #3DD68C;
  --mint-hover: #5CE3A3;
  --light-bg: #F8F8F6;
  --alt-bg: #F1ECE4;
  --crimson: #B4142C;
  --crimson-light: rgba(180, 20, 44, 0.08);
  --text-main: #0B0F2C;
  --text-muted: rgba(11, 15, 44, 0.72);
  --text-dim: rgba(11, 15, 44, 0.45);
  --white: #ffffff;
  --white-72: rgba(255, 255, 255, 0.72);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-16: rgba(255, 255, 255, 0.16);
  --border-light: rgba(11, 15, 44, 0.12);
  --border-dark: rgba(255, 255, 255, 0.12);
  
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1240px;
  --container-padding: 40px;
}

/* --------------------------------------------------------------------------
   02. BASE & RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--light-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--green);
}

button, input, textarea, select {
  font-family: inherit;
}

::placeholder {
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   03. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 44, 0.96);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-dark);
}

.header-accent-line {
  height: 2px;
  background: linear-gradient(90deg, #0B0F2C 0%, #0B0F2C 62%, #1AA167 82%, #3DD68C 100%);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px 34px;
  font-size: 14.5px;
  font-weight: 500;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--green) !important;
  border-bottom-color: var(--mint) !important;
}

.header-cta-btn {
  background: var(--mint);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 13px 24px;
  border: none;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.header-cta-btn:hover {
  background: var(--green) !important;
  color: var(--white) !important;
}

/* --------------------------------------------------------------------------
   04. HERO SECTION — SPECIFICATION SECTION 4
   -------------------------------------------------------------------------- */
#start {
  background: #fff url('../images/hero/hero.png') no-repeat center right;
  background-size: cover;
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#start h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
}

#start p {
  color: rgba(11, 15, 44, 0.72);
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  max-width: 850px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 16px;
  white-space: nowrap;
}

.hero-lead {
  max-width: 600px;
  font-size: 18.5px;
  line-height: 1.50;
  font-weight: 400;
  color: rgba(11, 15, 44, 0.72);
  margin: 0 0 24px;
  white-space: normal;
  text-wrap: pretty;
}

.hero-cta {
  padding: 17px 28px !important;
}

.hero-cta > span:first-child {
  font-size: 15.5px !important;
}

#start .hero-cta:hover {
  background: var(--green) !important;
  color: var(--white) !important;
  box-shadow: 0 24px 52px rgba(11, 15, 44, 0.35) !important;
}

/* --------------------------------------------------------------------------
   06. SECTOR GALLERY BAR — SPECIFICATION SECTION 7
   -------------------------------------------------------------------------- */
.sector-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 36px 32px;
  border-top: 3px solid var(--mint);
}

.sector-bar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.sector-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.sector-title {
  color: var(--white);
  font-size: 10.5px;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  min-height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-wrap: balance;
}

.sector-item img,
#sector-ind, #sector-hav, #sector-ene, #sector-sw, #sector-mar, #sector-hel {
  width: 100%;
  height: 165px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.sector-item:hover img,
#sector-ind:hover, #sector-hav:hover, #sector-ene:hover, #sector-sw:hover, #sector-mar:hover, #sector-hel:hover {
  transform: scale(1.015);
  border-color: var(--mint);
}

/* --------------------------------------------------------------------------
   07. SERVICE META & FINANCING GRID — SPECIFICATION SECTIONS 9, 12
   -------------------------------------------------------------------------- */
.service-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0.035em;
  text-transform: none;
  color: var(--green);
}

.finance-step-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.finance-step-card {
  min-width: 0;
  padding: 28px 24px !important;
}

.finance-step-card h3 {
  font-size: 21px !important;
  line-height: 1.18 !important;
}

.finance-step-card p {
  font-size: 14.5px !important;
  line-height: 1.58 !important;
}

/* --------------------------------------------------------------------------
   08. CALCULATOR FORMULA & DISCLAIMER — SPECIFICATION SECTION 14
   -------------------------------------------------------------------------- */
.calc-formel-val {
  font-size: 13px !important;
  line-height: 1.50 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  margin-top: 10px !important;
}

.calc-disclaimer {
  font-size: 11.5px;
  line-height: 1.50;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 8px;
  max-width: 48ch;
}

/* --------------------------------------------------------------------------
   09. TEAM SECTION & CONTACT — SPECIFICATION SECTIONS 16, 17
   -------------------------------------------------------------------------- */
section#hvem img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) !important;
  transition: filter 0.3s ease;
}

section#hvem > div > div > div:hover img,
section#hvem img:hover {
  filter: grayscale(1) contrast(1.04) !important;
}

.team-bio {
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: rgba(11, 15, 44, 0.72);
  margin-top: 10px;
  text-wrap: pretty;
}

.contact-phone:hover,
.whatsapp-link:hover,
.contact-email:hover {
  color: var(--mint) !important;
}

/* --------------------------------------------------------------------------
   09b. BOOKING CARD
   -------------------------------------------------------------------------- */
.booking-card {
  background: #fff;
  color: #0B0F2C;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  height: 100%;
}

.booking-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1AA167;
  margin-bottom: 14px;
}

.booking-card h3 {
  font-family: 'Newsreader', serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 10px;
}

.booking-card p {
  font-size: 15px;
  color: rgba(11, 15, 44, .62);
  margin: 0 0 24px;
}

.booking-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: #3DD68C;
  color: #0B0F2C;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.booking-card-btn:hover {
  background: #1AA167;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. STICKY MOBILE CTA — SPECIFICATION SECTION 29
   -------------------------------------------------------------------------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  height: 100%;
}

.mobile-cta-call {
  background: #0B0F2C;
  color: #ffffff;
}

.mobile-cta-book {
  background: #3DD68C;
  color: #0B0F2C;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS — SPECIFICATION SECTIONS 20-28
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .finance-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .finance-progress {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .sector-bar-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  footer > div {
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }
}

@media (max-width: 820px) {
  .header-live-container {
    padding: 12px 20px !important;
    flex-wrap: nowrap !important;
  }

  .header-live-nav {
    display: none !important;
  }

  .header-live-cta {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  #start {
    min-height: 560px !important;
    padding: 0 !important;
    background-position: 62% center;
  }

  .hero-inner {
    padding: 70px 22px 78px !important;
  }

  .hero-copy {
    max-width: 100%;
    padding-left: 18px !important;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.03;
    white-space: normal !important;
  }

  .sector-bar-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sector-title {
    min-height: 30px;
    font-size: 10px;
  }

  .sector-item img,
  #sector-ind, #sector-hav, #sector-ene, #sector-sw, #sector-mar, #sector-hel {
    height: 165px !important;
  }

  #modell {
    padding: 68px 22px !important;
  }

  .booking-panel {
    margin: 14px !important;
  }

  .booking-card {
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  .finance-step-grid {
    grid-template-columns: 1fr !important;
  }
}
