/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --blue:       #2B6CB0;
  --blue-dark:  #1E5A9C;
  --blue-light: #4A8BC9;
  --blue-tint:  #EAF2FB;
  --text:       #141F33;
  --muted:      #6B7280;
  --white:      #ffffff;
  --bg:         #ffffff;
  --form-bg:    #F2F2EF;
  --field-bg:   #E8E8E5;
}

/* ── BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── BUTTON ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px;
}
.nav-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 2px 18px rgba(20, 31, 51, 0.09);
  border: 1px solid rgba(43, 108, 176, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 22px;
  gap: 24px;
}
.nav-logo img {
  height: 52px;
  width: auto;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--text);
  font-weight: 700;
}

/* ── HAMBURGER ──────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(43, 108, 176, 0.08); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ────────────────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-width: 1200px;
  margin: 8px auto 0;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(20, 31, 51, 0.10);
  border: 1px solid rgba(43, 108, 176, 0.10);
  padding: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}
.mobile-menu.open {
  max-height: 300px;
  opacity: 1;
  padding: 16px;
}
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.15s;
}
.mobile-menu a:hover { background: var(--blue-tint); }
.mobile-cta {
  margin-top: 8px;
  text-align: center;
  background: var(--blue) !important;
  color: var(--white) !important;
}
.mobile-cta:hover { background: var(--blue-dark) !important; }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 88px;
}
.hero-text h1 {
  font-size: 50px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 22px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.checklist-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: var(--blue-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%232B6CB0' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.hero-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(43, 108, 176, 0.10);
}

/* ── CALL TO ACTION ─────────────────────────────────── */
.cta-section {
  background: var(--form-bg);
  padding: 80px 24px 88px;
}
.cta-inner {
  max-width: 740px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: 50px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 40px;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  font-size: 17px;
  font-weight: 500;
  color: var(--blue);
}
.required-dot {
  color: var(--blue-dark);
  margin-left: 4px;
  font-weight: 700;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(43, 108, 176, 0.20);
  background: var(--field-bg);
  font-family: inherit;
  font-size: 18px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.10);
}
.form-field textarea {
  resize: vertical;
  min-height: 148px;
}
.btn-senda {
  align-self: flex-start;
  padding: 13px 44px;
  font-size: 16px;
  margin-top: 4px;
}
.form-field input.input-error,
.form-field textarea.input-error {
  border-color: #E53E3E;
  background: #FFF5F5;
}
.form-field input.input-error:focus,
.form-field textarea.input-error:focus {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
  background: var(--white);
}
.form-error {
  font-size: 14px;
  color: #E53E3E;
  display: none;
}
.form-error.visible {
  display: block;
}
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success p {
  font-size: 18px;
  font-weight: 500;
  color: var(--blue);
  line-height: 1.6;
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer-wrapper {
  background: var(--form-bg);
}
.site-footer {
  background: var(--blue);
  border-radius: 28px 28px 0 0;
  padding: 62px 24px 57px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 100px;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
}
.footer-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  row-gap: 0;
}
.footer-row-top {
  min-height: 53px;
  margin-bottom: 12px;
}
.footer-logo {
  height: 53px;
  width: auto;
  border-radius: 8px;
}
.footer-label {
  color: var(--white);
  font-weight: 700;
  font-size: 19px;
}
.footer-name {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 2;
}
.footer-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 2;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }
.social-row {
  display: flex;
  gap: 11px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}
.social-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
}

/* ── SERVICES PAGE ──────────────────────────────────── */
.services-hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 72px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 88px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-question {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.faq-answer {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.services-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(43, 108, 176, 0.10);
  position: sticky;
  top: 100px;
}

/* ── ABOUT PAGE ─────────────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 3fr 1.4fr;
  gap: 72px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 88px;
}
.about-bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-bio p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.values-section {
  padding: 0 24px 80px;
}
.values-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--blue-tint);
  border-radius: 16px;
  padding: 28px 28px 32px;
}
.value-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
}
.value-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value-card li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.value-card li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 500;
}
.purpose-section {
  padding: 64px 24px 80px;
}
.purpose-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.purpose-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.purpose-text {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1280px) {
  .hero-text h1,
  .cta-inner h2 {
    font-size: 38px;
  }
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px 72px;
  }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 460px; margin: 0 auto; }
  .services-hero,
  .about-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px 72px;
  }
  .services-photo { order: -1; }
  .services-photo img { max-width: 360px; margin: 0 auto; position: static; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 40px;
  }
  .footer-row { display: contents; }
  .footer-cell-logo    { order: 1; margin-bottom: 24px; }
  .footer-cell-name    { order: 2; }
  .footer-cell-kennitala { order: 3; }
  .footer-cell-vsk     { order: 4; margin-bottom: 24px; }
  .footer-cell-contact-label { order: 5; margin-bottom: 4px; }
  .footer-cell-email   { order: 6; }
  .footer-cell-phone   { order: 7; margin-bottom: 24px; }
  .footer-cell-social-label { order: 8; margin-bottom: 8px; }
  .footer-cell-social-icons { order: 9; }
  .footer-cell-empty   { display: none; }
}
@media (max-width: 800px) {
  .nav-right { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .nav-card { border-radius: 20px; padding: 10px 12px 10px 16px; }
}
@media (max-width: 640px) {
  .hero-text h1,
  .cta-inner h2 { font-size: 31px; }
  .values-grid { grid-template-columns: 1fr; }
  .purpose-text { font-size: 18px; }
  .footer-inner { padding: 0 24px; }
}
@media (max-width: 400px) {
  .nav-logo img { height: 36px; }
  .nav-card { padding: 8px 10px 8px 14px; }
}
