/* ==========================================================================
   Jotunfjell — Scandinavian minimal one-page site
   Palette
   Nordic Blue   #1F3864  primary / headings / brand
   Glacier White #F7F9FC  background
   Fjord Gold    #C9A24A  accent (≤ 10–15% of visible elements)
   Slate Grey    #5B6472  body text
   Midnight      #12100E  footer / deep base
   Ice Silver    #E3E8F0  dividers / borders
   Moss Green    #548235  success
   Ember Orange  #C55A11  warning / error
   ========================================================================== */

:root {
  --blue: #1F3864;
  --white: #F7F9FC;
  --gold: #C9A24A;
  --grey: #5B6472;
  --midnight: #12100E;
  --silver: #E3E8F0;
  --moss: #548235;
  --ember: #C55A11;
  --pure: #FFFFFF;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  color: var(--blue);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--blue); color: var(--pure); padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ---- Header ---------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--silver);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px;
}
.brand img { width: 54px; height: auto; }
.site-nav { display: flex; gap: clamp(16px, 2.5vw, 36px); align-items: center; }
.site-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--blue);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.site-nav a:hover { color: var(--blue); border-bottom-color: var(--gold); }
.site-nav .nav-cta {
  border: 1px solid var(--blue); border-radius: var(--radius);
  padding: 8px 18px;
}
.site-nav .nav-cta:hover { background: var(--blue); color: var(--pure); border-bottom-color: var(--blue); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons --------------------------------------------------------- */

.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: var(--pure); border-color: var(--blue); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--midnight); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--silver); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--blue); color: var(--blue); }

/* ---- Hero ------------------------------------------------------------ */

.hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--grey); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.5rem; }
.hero-meta { font-size: 0.85rem; color: var(--grey); opacity: .8; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(100%, 380px); }

/* ---- Sections -------------------------------------------------------- */

.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--silver); scroll-margin-top: 84px; }
.section-alt { background: var(--pure); }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro { font-size: 1.05rem; }

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--pure); border: 1px solid var(--silver); border-radius: var(--radius);
  padding: 32px 28px 28px; position: relative;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card-num { font-size: 0.78rem; letter-spacing: 0.15em; color: var(--gold); font-weight: 500; }
.card h3 { margin-top: 12px; font-size: 1.45rem; }
.card-tag { color: var(--blue); font-weight: 500; margin-bottom: .75em; }
.card ul { margin-top: 1rem; border-top: 1px solid var(--silver); padding-top: 1rem; }
.card li { padding: 4px 0 4px 18px; position: relative; font-size: 0.95rem; }
.card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 1px; background: var(--gold); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { border-top: 2px solid var(--silver); padding-top: 20px; position: relative; }
.steps li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--gold);
}
.step-num { display: block; font-size: 2rem; font-weight: 300; color: var(--blue); line-height: 1; margin-bottom: 10px; }
.steps p { font-size: 0.97rem; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.sector { padding: 22px 0; border-top: 1px solid var(--silver); }
.sector h3 { font-size: 1.05rem; margin-bottom: .35em; }
.sector p { font-size: 0.95rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 80px); }
.about-head { margin-bottom: 0; }
.about-body p { font-size: 1.05rem; }
.about-body strong { color: var(--blue); font-weight: 500; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--silver); }
.faq details:last-child { border-bottom: 1px solid var(--silver); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  color: var(--blue); font-weight: 500; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.4rem; font-weight: 300; transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; margin: 0; max-width: 60ch; }

/* Contact */
.section-contact { background: var(--pure); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.contact-list { margin-top: 1.5rem; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; padding: 12px 0; border-top: 1px solid var(--silver); font-size: 0.97rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--silver); }
.contact-list span { font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); align-self: center; }

.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--blue); }
.optional { color: var(--grey); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--midnight);
  background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius);
  padding: 12px 14px; width: 100%; transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: var(--moss); }
.form-status.err { color: var(--ember); }
.form-note { font-size: 0.8rem; margin: 0; opacity: .8; }

/* ---- Footer ---------------------------------------------------------- */

.site-footer { background: var(--midnight); color: #B9BEC7; font-size: 0.85rem; line-height: 1.6; }
.site-footer a { color: #E3E8F0; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px;
  padding-block: 56px 40px;
}
.footer-logo { width: 54px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.footer-name { color: var(--pure); font-weight: 500; font-size: 1rem; margin-bottom: .3em; }
.footer-brand p, .footer-contact p { margin: 0 0 .35em; }
.footer-legal p { margin-bottom: .9em; font-size: 0.8rem; opacity: .85; }
.footer-legal strong { color: #E3E8F0; font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(227, 232, 240, 0.12);
  padding-block: 22px 28px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  font-size: 0.78rem; opacity: .75;
}
.footer-bottom p { margin: 0; }

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--silver);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--silver); }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 1px solid var(--blue); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(60%, 240px); }
  .hero-copy { text-align: left; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
