/* =========================================
   BRIDGEFORALLE – GEMENSAM CSS
========================================= */

:root {
  --green: #174331;
  --green-dark: #103326;
  --green-light: #edf3ee;
  --gold: #d8b45c;
  --white: #fff;
  --background: #fafaf7;
  --text: #26332c;
  --muted: #68736c;
  --border: #e1e7e1;
  --footer-height: 230px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.section { padding: 60px 0; }

/* HEADER OCH NAVIGATION */

.header {
  position: relative;
  z-index: 10;
  width: 100%;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.navbar {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.site-logo {
  display: block;
  width: 65px;
  height: 55px;
  object-fit: contain;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font: 1.5rem Georgia, serif;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-links a {
  color: #e1e9e3;
  font-size: .84rem;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.current { color: var(--gold); }

.nav-links .nav-button {
  padding: 8px 13px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
}

.nav-links .nav-button:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: white;
}

/* HERO – STARTSIDAN */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 28px 0;
  color: white;
  background: var(--green);
}

.hero-background {
  min-height: 480px;
  padding: 65px 0;
  background:
    linear-gradient(rgba(16,51,38,.72), rgba(16,51,38,.82)),
    url("images/BakrundNorskAlle.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #e0e8e1;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.hero h1 {
  max-width: 700px;
  font: 500 clamp(2.5rem,5vw,4rem)/1.1 Georgia,serif;
}

.hero-text {
  max-width: 570px;
  margin-top: 14px;
  color: #dce5de;
  font-size: 1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.button-gold {
  background: var(--gold);
  color: var(--green-dark);
}

.button-gold:hover { background: #ebce82; }

.button-outline {
  border-color: rgba(255,255,255,.55);
  color: white;
}

.button-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.hero-stats div { display: flex; flex-direction: column; }

.hero-stats strong {
  color: var(--gold);
  font: 1.15rem Georgia,serif;
}

.hero-stats span {
  color: #dce5de;
  font-size: .78rem;
}

/* UNDERSIDOR */

.page-hero {
  padding: 48px 0;
  color: white;
  background: var(--green);
}

.page-hero h1 {
  max-width: 800px;
  font: 500 clamp(2.2rem,5vw,3.4rem) Georgia,serif;
}

.page-hero p {
  max-width: 720px;
  margin-top: 12px;
  color: #dce5de;
}

/* INTRODUKTION OCH RUBRIKER */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

h2 { font: 500 clamp(1.9rem,4vw,2.8rem)/1.2 Georgia,serif; }

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #987528;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: 1.5px;
}

.content-section {
  padding: 48px 0;
  background: white;
}

.content-section .container { max-width: 950px; }

.section-heading { display: block; margin-bottom: 26px; }

.section-heading h2,
.content-section h2 { color: var(--green); }

.section-heading p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
}

.content-section p {
  max-width: 800px;
  margin-bottom: 15px;
  color: var(--muted);
}

.content-section h2 { margin-bottom: 15px; }

.content-section h3 {
  margin: 24px 0 8px;
  color: var(--green);
  font: 600 1.3rem Georgia,serif;
}

.content-section ul,
.content-section ol {
  margin: 15px 0 24px;
  padding-left: 24px;
  color: var(--muted);
}

.content-section li { margin-bottom: 8px; padding-left: 4px; }

.content-section a:not(.button) {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

/* KORT */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
}

.card h3 {
  margin-bottom: 9px;
  color: var(--green);
  font: 1.3rem Georgia,serif;
}

.card p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .93rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 750;
}

.text-link:hover { color: #987528; }

.pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--green-light);
  color: var(--green);
  font-size: .76rem;
  font-weight: 700;
}

/* ARTIKLAR */

.search-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.search-box {
  display: flex;
  gap: 10px;
  width: min(350px,100%);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; }

.article-grid { display: block; }

.article-card {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.article-card:first-child { border-top: 1px solid var(--border); }

.article-art { display: none; }

.article-body { padding: 0; }

.article-body h3 {
  margin: 6px 0 8px;
  color: var(--green);
  font: 1.4rem Georgia,serif;
}

.article-body p {
  max-width: 780px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .95rem;
}

.article-card[hidden] { display: none; }

.no-results { padding: 25px 0; color: var(--muted); }

/* DOKUMENT OCH KURSER */

.document-list { margin-top: 24px; }

.document-item {
  padding: 21px 0;
  border-bottom: 1px solid var(--border);
}

.document-item:first-child { border-top: 1px solid var(--border); }

.document-item h3 {
  margin: 4px 0 7px;
  color: var(--green);
  font: 1.35rem Georgia,serif;
}

.document-item p { max-width: 780px; color: var(--muted); }

.document-date {
  color: #987528;
  font-size: .82rem;
  font-weight: 750;
}

.document-item a {
  display: inline-block;
  margin-top: 6px;
  color: var(--green);
  font-weight: 750;
}

/* TABELLER */

.table-wrap { overflow-x: auto; }

.simple-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.simple-table th,
.simple-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.simple-table th { color: var(--green); font-weight: 750; }
.simple-table td { color: var(--muted); }

/* INFORMATIONSRUTOR */

.info-box {
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 3px solid var(--gold);
  background: var(--background);
}

.info-box p + p { margin-top: 8px; }

/* FORMULÄR */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field.full { grid-column: 1 / -1; }

.form-field label { font-size: .9rem; font-weight: 700; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.form-note { color: var(--muted); font-size: .88rem; }

.form-message {
  margin-top: 15px;
  color: var(--green);
  font-weight: 700;
}

/* KONTAKT */

.contact-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contact-section h2,
.contact-section h3 {
  margin-bottom: 8px;
  color: var(--green);
}

.contact-section p { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.contact-image img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 5px;
}

.contact-information h2 { margin-bottom: 18px; }

.contact-information h3 {
  margin: 15px 0 4px;
  color: var(--green);
}

.contact-information p { margin-bottom: 5px; }

/* CTA */

.cta-section {
  padding: 50px 0;
  color: white;
  text-align: center;
  background: var(--green-dark);
}

.cta-section p {
  max-width: 650px;
  margin: 14px auto 22px;
  color: #dce5de;
}

/* FOOTER */

.footer {
  width: 100%;
  height: var(--footer-height);
  min-height: var(--footer-height);
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #e4eae5;
  background: var(--green-dark);
}

.footer-main {
  width: min(1120px,90%);
  height: 178px;
  min-height: 178px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: start;
  gap: 32px;
  padding: 25px 0 15px;
}

.footer-brand { max-width: 380px; }
.footer-brand .logo { margin-bottom: 8px; }

.footer-brand p {
  max-width: 320px;
  margin-top: 5px;
  color: #b8c8bc;
  font-size: .9rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-column h3 {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: .9rem;
}

.footer-column a {
  color: #c5d1c8;
  font-size: .87rem;
}

.footer-column a:hover { color: var(--gold); }

.footer-bottom {
  width: 100%;
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(5%,calc((100% - 1120px)/2));
  border-top: 1px solid rgba(255,255,255,.13);
  color: #aabbb0;
  font-size: .78rem;
}

/* SURFPLATTA */

@media (max-width: 980px) {
  .navbar { gap: 14px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: .78rem; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* MOBIL */

@media (max-width: 760px) {
  .navbar { min-height: 70px; }

  .site-logo {
    width: 55px;
    height: 48px;
  }

  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 5% 20px;
    background: var(--green-dark);
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 11px 0;
    font-size: .92rem;
  }

  .nav-links .nav-button {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    min-height: 300px;
    padding: 25px 0;
  }

  .hero-background {
    min-height: 420px;
    padding: 45px 0;
    background-position: center;
  }

  .hero-stats { gap: 18px; margin-top: 20px; }

  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-image img { height: 250px; }

  .footer {
    height: auto;
    min-height: 0;
  }

  .footer-main {
    width: 90%;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
    padding: 28px 0;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    height: auto;
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 5%;
  }
}

/* SMÅ MOBILER */

@media (max-width: 560px) {
  .section { padding: 45px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { min-height: 280px; padding: 22px 0; }

  .hero h1 { font-size: clamp(2.4rem,11vw,3.2rem); }

  .hero-stats div { min-width: 80px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }

  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* TILLGÄNGLIGHET */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}