/* Upplýsingaöryggi.is / security.is — static rebuild
   Colors and type sampled from the live Wix site's computed styles. */

@font-face {
  font-family: "Spinnaker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spinnaker-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spinnaker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spinnaker-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

:root {
  --navy: #1a2b6d;
  --red: #d41317;
  --text: #333333;
  --text-light: #5f6360;
  --bg-light: #f4f4f5;
  --white: #ffffff;
  --max-width: 1100px;
  --font-heading: "Spinnaker", sans-serif;
  --font-nav: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.main-nav a {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--navy);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 14px;
}

.lang-switch a {
  color: var(--navy);
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.lang-switch a.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Social rail ---------- */

.social-rail {
  position: fixed;
  right: 24px;
  top: 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 50;
}

.social-rail img { width: 20px; height: 20px; }

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

.hero {
  position: relative;
  min-height: 640px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-panel {
  background: rgba(244, 244, 245, 0.94);
  max-width: 560px;
  padding: 48px 56px;
  margin-left: 8%;
}

.hero-panel h1 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero-panel p {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 28px;
}

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

.btn-row {
  display: flex;
  align-items: stretch;
}

.btn-plus {
  background: var(--navy);
  color: var(--white);
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.btn-cta {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  display: flex;
  align-items: center;
}

.btn-row a { transition: opacity 0.15s ease; }
.btn-row:hover a { opacity: 0.88; }

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

.section {
  padding: 80px 0;
}

.section-light { background: var(--bg-light); }

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading .kicker {
  font-family: var(--font-nav);
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 40px;
  margin: 8px 0 16px;
}

.section-heading p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-light);
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e0e1e6;
  border-top: 4px solid var(--navy);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(20, 30, 70, 0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  box-shadow: 0 10px 24px rgba(20, 30, 70, 0.12);
  transform: translateY(-3px);
  border-color: var(--navy);
}

.service-card h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 14px;
}

.service-card p {
  color: var(--text);
  margin: 0 0 20px;
  font-size: 15px;
  flex: 1;
}

.service-card a.more {
  color: var(--red);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  padding-top: 12px;
  border-top: 1px solid #eee;
  width: 100%;
}

.service-card a.more:hover { text-decoration: underline; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--bg-light);
  padding: 70px 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 16px;
}

.cta-banner p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text);
}

.cta-banner .btn-row { justify-content: center; display: inline-flex; }

/* ---------- Generic content page ---------- */

.page-header {
  padding: 60px 0 20px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 44px;
  margin: 0;
}

.content-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.content-page h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 26px;
  margin: 36px 0 14px;
}

.content-page ul {
  padding-left: 22px;
}

.content-page li { margin-bottom: 8px; }

.content-page .back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--red);
  font-family: var(--font-nav);
  font-weight: 700;
}

.contact-note {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}

.contact-note h2 { margin-top: 0; }

/* ---------- About page ---------- */

.about-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.about-layout img {
  width: 220px;
  border-radius: 4px;
  flex-shrink: 0;
}

.about-layout .about-text h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 24px;
  margin-top: 0;
}

.about-layout .about-text ul { padding-left: 20px; }

/* ---------- Blog listing ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.blog-card {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-body { padding: 20px; }

.blog-card h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
}

.blog-card p { font-size: 14px; color: var(--text-light); margin: 0 0 10px; }

.blog-meta {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Blog post ---------- */

.post-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 24px 20px;
}

.post-header h1 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  font-size: 38px;
  margin: 0 0 10px;
}

.post-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.post-body p { margin: 0 0 18px; }

.post-body video {
  width: 100%;
  border-radius: 4px;
  margin: 20px 0;
  background: #000;
}

.video-embed {
  aspect-ratio: 16 / 9;
  margin: 20px 0 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.post-body .video-link { font-size: 14px; }

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.post-gallery img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 3px;
}

.post-nav {
  border-top: 1px solid #eee;
  margin-top: 20px;
  padding-top: 20px;
}

.post-nav .kicker {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-nav ul { list-style: none; padding: 0; margin: 0; }
.post-nav li { margin-bottom: 8px; }
.post-nav a { color: var(--navy); font-weight: 700; font-family: var(--font-nav); }
.post-nav a:hover { color: var(--red); }

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

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 44px 24px 26px;
  text-align: center;
}

.site-footer p { margin: 0 0 8px; font-size: 14px; }

.site-footer .copyright {
  margin-top: 18px;
  font-size: 12px;
  opacity: 0.8;
}

.back-to-top {
  display: inline-block;
  margin-top: 18px;
  color: var(--white);
  font-size: 18px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 32px;
}

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

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .about-layout { flex-direction: column; }
  .about-layout img { width: 180px; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; width: 100%; border-bottom: 1px solid #f2f2f2; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .lang-switch { margin-left: auto; }
  .hero-panel { margin: 0 16px; padding: 32px; max-width: none; }
  .hero-panel h1 { font-size: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .social-rail { display: none; }
}
