@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  /* Øyfjellet's own brand colors (logo SVG + button/CSS), mapped into an
     Equinor-style structural system. --ov-accent is a darkened, AA-legible
     shade of the real logo green #7bcb79 for text/underline use; the raw
     logo green is kept as --ov-accent-bright for large/decorative use. */
  --ov-accent-bright: #7bcb79;
  --ov-accent: #3f8f3c;
  --ov-gold: #f5d999;
  --ov-gold-deep: #b98a1f;
  --ov-ink: #3d3d3d;
  --ov-ink-muted: #6e5654;
  --ov-canvas: #ffffff;
  --ov-tint-green: #f3f9f1;
  --ov-tint-gold: #fdf6e8;
  --ov-dark: #22302a;
  --ov-dark-2: #2c3d34;
  --ov-line: #e9e5e2;
  --ov-grey: #8c8c8c;
  --ov-radius: 6px;
  --ov-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ov-ink);
  background: var(--ov-canvas);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; color: var(--ov-ink); }
p { margin: 0; }
button { font-family: inherit; }

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.29rem); line-height: 1.22; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 56px; } }

section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }

.lede { font-size: 1.05rem; color: var(--ov-ink); max-width: 68ch; }
.measure { max-width: 68ch; }

/* ---------- tint band sections ---------- */
.band-green { background: var(--ov-tint-green); }
.band-gold { background: var(--ov-tint-gold); }
.band-dark { background: var(--ov-dark); color: #fff; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede { color: rgba(255,255,255,.85); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 76px; display: flex; align-items: center;
  background: transparent;
  transition: background-color .2s var(--ov-ease), box-shadow .2s var(--ov-ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header.solid, .site-header.menu-open, .site-header.no-hero {
  background: #ffffff; box-shadow: 0 1px 0 var(--ov-line);
}
.site-logo { display: block; height: clamp(30px, 5vw, 40px); width: auto; }
.site-logo.logo-white { display: block; }
.site-logo.logo-color { display: none; }
.site-header.solid .site-logo.logo-color,
.site-header.menu-open .site-logo.logo-color,
.site-header.no-hero .site-logo.logo-color { display: block; }
.site-header.solid .site-logo.logo-white,
.site-header.menu-open .site-logo.logo-white,
.site-header.no-hero .site-logo.logo-white { display: none; }

/* Equinor's own header trusts the hamburger at every breakpoint, desktop
   included — no visible top-level nav row. Only logo + hamburger show. */
.site-header:not(.solid):not(.menu-open):not(.no-hero) .hamburger { color: #fff; }
.site-header.solid .hamburger, .site-header.menu-open .hamburger, .site-header.no-hero .hamburger { color: var(--ov-ink); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-tel {
  font-size: .9rem; letter-spacing: .2px; display: none;
}
@media (min-width: 640px) { .header-tel { display: inline; } }
.lang-switch {
  display: inline-flex; align-items: center; border-radius: 8px; padding: 2px;
  font-size: .78rem; letter-spacing: .2px;
  background: rgba(255,255,255,.22);
}
.site-header.solid .lang-switch, .site-header.menu-open .lang-switch, .site-header.no-hero .lang-switch {
  background: var(--ov-line);
}
.lang-switch a, .lang-switch span {
  padding: 5px 12px; border-radius: 6px; display: inline-block; line-height: 1.2;
}
.lang-switch span { background: #fff; color: var(--ov-ink); font-weight: 500; }
.lang-switch a { color: #fff; opacity: .75; transition: opacity .2s var(--ov-ease); }
.site-header.solid .lang-switch a, .site-header.menu-open .lang-switch a, .site-header.no-hero .lang-switch a {
  color: var(--ov-ink);
}
.lang-switch a:hover { opacity: 1; }

.hamburger {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px; z-index: 210;
}
.hamburger span { width: 24px; height: 2px; background: currentColor; display: block; }

/* ---------- mobile off-canvas menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ov-dark);
  transform: translateX(100%);
  transition: transform .3s var(--ov-ease);
  display: flex; flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-top { display: flex; justify-content: flex-end; }
.mobile-menu-close {
  background: none; border: none; color: #fff; font-size: 1.8rem;
  line-height: 1; cursor: pointer; padding: 8px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.mobile-menu nav a {
  color: #fff; font-size: 1.4rem; padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: color .2s var(--ov-ease), border-color .2s var(--ov-ease), padding-left .2s var(--ov-ease);
}
.mobile-menu nav a::after {
  content: '→'; color: var(--ov-accent-bright); flex-shrink: 0;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s var(--ov-ease), transform .2s var(--ov-ease);
}
.mobile-menu nav a:hover {
  color: var(--ov-accent-bright);
  border-color: var(--ov-accent-bright);
  padding-left: 14px;
}
.mobile-menu nav a:hover::after { opacity: 1; transform: translateX(0); }
.mobile-menu-contact { margin-top: auto; padding-top: 24px; color: rgba(255,255,255,.75); font-size: .95rem; }
.mobile-menu-contact a { color: #fff; }
@media (min-width: 640px) {
  .mobile-menu nav { max-width: 420px; }
  .mobile-menu-inner { max-width: 900px; margin: 0 auto; width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: flex-end;
  color: #fff; background: var(--ov-dark);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,26,22,.86) 0%, rgba(20,26,22,.35) 55%, rgba(20,26,22,.15) 100%);
}
.hero-inner { position: relative; padding: 160px 0 64px; max-width: 640px; }
@media (max-width: 600px) { .hero-inner { padding: 130px 0 48px; } .hero { min-height: 560px; } }
.hero-inner h1 { color: #fff; }
.hero-inner p { margin-top: 20px; color: rgba(255,255,255,.9); }
.hero-inner .crumb { display: block; color: rgba(255,255,255,.75); }

/* page hero (interior pages, no photo) */
.page-hero { padding: 150px 0 40px; }
.page-hero .crumb { font-size: .85rem; color: var(--ov-ink-muted); margin-bottom: 12px; display: block; }

/* ---------- arrow-link row ---------- */
.link-rows { display: grid; gap: 0; }
@media (min-width: 640px) { .link-rows.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--ov-line);
  transition: color .15s var(--ov-ease), border-color .15s var(--ov-ease);
}
.link-row:hover { color: var(--ov-accent); border-color: var(--ov-accent); }
.link-row .arrow { color: var(--ov-accent); flex-shrink: 0; transition: transform .15s var(--ov-ease); }
.link-row:hover .arrow { transform: translateX(3px); }
.band-dark .link-row { border-color: rgba(255,255,255,.2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--ov-radius);
  font-size: .95rem; letter-spacing: .2px; border: 1px solid transparent;
  transition: background-color .15s var(--ov-ease), color .15s var(--ov-ease), border-color .15s var(--ov-ease);
}
.btn-light { background: #fff; color: var(--ov-ink); }
.btn-light:hover { background: var(--ov-line); }
.btn-outline { border-color: currentColor; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--ov-dark); color: #fff; }
.btn-dark:hover { background: var(--ov-dark-2); }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.news-card { background: #f8f8f8; border-radius: var(--ov-radius); overflow: hidden; display: flex; flex-direction: column; }
.news-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--ov-tint-green); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-date { font-size: .8rem; color: var(--ov-grey); }
.news-card-title { font-size: 1.05rem; line-height: 1.35; }
.news-card-excerpt { font-size: .9rem; color: var(--ov-ink-muted); line-height: 1.55; flex: 1; }
.news-card-link { font-size: .85rem; color: var(--ov-accent); margin-top: 4px; }

/* ---------- stat block ---------- */
.stat-block { background: var(--ov-tint-gold); border-radius: var(--ov-radius); padding: 40px 32px; }
.stat-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .stat-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.stat-num { font-size: 2.1rem; color: var(--ov-ink); }
.stat-label { font-size: .9rem; color: var(--ov-ink-muted); margin-top: 6px; max-width: 30ch; }

/* icon stat (with real svg icons) */
.icon-stat { display: flex; gap: 16px; align-items: flex-start; }
.icon-stat img { width: 40px; height: 40px; flex-shrink: 0; }
.icon-stat-num { font-size: 1.6rem; }
.icon-stat-label { font-size: .88rem; color: var(--ov-ink-muted); margin-top: 4px; }

/* ---------- article body (single news article) ---------- */
.article-body { display: flex; flex-direction: column; gap: 20px; }
.article-body p { line-height: 1.65; }
.article-body ul, .article-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article-body a { color: var(--ov-accent); text-decoration: underline; }

/* ---------- Q&A teaser (homepage) ---------- */
.qa-teaser-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .qa-teaser-grid { grid-template-columns: repeat(3, 1fr); } }
.qa-teaser h3 { font-size: 1.1rem; line-height: 1.35; }
.qa-teaser p { font-size: .92rem; color: var(--ov-ink-muted); line-height: 1.6; margin-top: 10px; }
.qa-teaser a { font-size: .85rem; color: var(--ov-accent); margin-top: 14px; display: inline-block; }

/* ---------- news list item (archive) ---------- */
.news-list-item { border-bottom: 1px solid var(--ov-line); padding: 24px 0; display: flex; flex-direction: column; gap: 6px; }
.news-list-item:first-child { padding-top: 0; }
.news-list-date { font-size: .82rem; color: var(--ov-grey); }
.news-list-title { font-size: 1.05rem; }
.news-list-excerpt { font-size: .92rem; color: var(--ov-ink-muted); line-height: 1.55; max-width: 68ch; }
.news-list-link { font-size: .85rem; color: var(--ov-accent); margin-top: 2px; }
.news-list-item:hover .news-list-title { color: var(--ov-accent); }

/* ---------- accordion (Q&A) ---------- */
.accordion-item { border-bottom: 1px solid var(--ov-line); }
.accordion-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.02rem; color: var(--ov-ink);
}
.accordion-q .plus { color: var(--ov-accent); font-size: 1.3rem; flex-shrink: 0; transition: transform .2s var(--ov-ease); }
.accordion-item.open .accordion-q .plus { transform: rotate(45deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .25s var(--ov-ease); }
.accordion-item.open .accordion-a { max-height: 800px; }
.accordion-a-inner { padding: 0 0 22px; color: var(--ov-ink-muted); font-size: .95rem; line-height: 1.65; }

/* ---------- timeline (Facts page) ---------- */
.timeline-year { padding: 28px 0; border-top: 1px solid var(--ov-line); display: grid; grid-template-columns: 100px 1fr; gap: 24px; }
.timeline-year:first-of-type { border-top: none; }
.timeline-year .year { font-size: 1.4rem; color: var(--ov-accent); }
.timeline-events { display: flex; flex-direction: column; gap: 18px; }
.timeline-event-title { font-size: 1rem; }
.timeline-event-desc { font-size: .9rem; color: var(--ov-ink-muted); margin-top: 4px; line-height: 1.55; }
@media (max-width: 560px) { .timeline-year { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ov-dark); color: rgba(255,255,255,.85); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { display: block; font-size: .9rem; color: rgba(255,255,255,.75); margin-bottom: 10px; line-height: 1.6; }
.footer-grid a:hover { color: #fff; }
.footer-tagline { font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-credit { color: rgba(255,255,255,.55); }
.footer-credit a { color: rgba(255,255,255,.75); }

/* ---------- cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: #fff; border-top: 1px solid var(--ov-line);
  padding: 20px 24px; box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  display: none;
}
.cookie-bar.show { display: block; }
.cookie-bar-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cookie-text { font-size: .88rem; color: var(--ov-ink-muted); max-width: 62ch; }
.cookie-text a { color: var(--ov-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { padding: 10px 18px; border-radius: var(--ov-radius); font-size: .85rem; border: 1px solid var(--ov-line); background: #fff; cursor: pointer; }
.cookie-actions .accept { background: var(--ov-dark); color: #fff; border-color: var(--ov-dark); }

.cookie-modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,26,22,.5); z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal-backdrop.show { display: flex; }
.cookie-modal { background: #fff; border-radius: var(--ov-radius); max-width: 560px; width: 100%; max-height: 84vh; overflow-y: auto; padding: 32px; }
.cookie-modal h3 { margin-bottom: 16px; }
.cookie-modal p { font-size: .9rem; color: var(--ov-ink-muted); line-height: 1.6; margin-bottom: 20px; }
.cookie-cat { border-top: 1px solid var(--ov-line); padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cookie-cat-title { font-size: .92rem; }
.cookie-cat-desc { font-size: .82rem; color: var(--ov-grey); margin-top: 4px; }
.cookie-modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ov-ease), transform .6s var(--ov-ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
