/* ==========================================================================
   A.S. Borg Osakeyhtiö — site styles
   ========================================================================== */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #12263f; color: #ffffff; }

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

:focus-visible {
  outline: 2px solid #1e4f91;
  outline-offset: 2px;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

main { display: block; }
section[id] { scroll-margin-top: 76px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: #12263f;
  color: #ffffff;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  color: #12263f;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

h1 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
h2 { margin: 0 0 14px; font-size: clamp(23px, 3vw, 30px); font-weight: 700; }
h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }

p { margin: 0 0 14px; }

.lead {
  font-size: 18px;
  color: #3f4b5b;
  max-width: 600px;
  margin: 0;
}

.kicker {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #525e6e;
}

/* --------------------------------------------------------------------------
   Links and buttons
   -------------------------------------------------------------------------- */

a { color: #1e4f91; text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: #12263f; color: #ffffff; }
.btn-primary:hover { background: #0d1c2e; }

.btn-secondary { background: #ffffff; color: #12263f; border-color: #c3ccd6; }
.btn-secondary:hover { border-color: #12263f; }

.contact-line {
  display: inline-block;
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 700;
  color: #1e4f91;
}
.contact-line:hover { text-decoration: underline; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid #e4e8ed;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 13px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #12263f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 5px; }
.brand .brand-sub { font-weight: 500; color: #525e6e; }

.nav-links { display: flex; flex-wrap: wrap; gap: 2px; }

.nav-links a {
  padding: 7px 11px;
  border-radius: 5px;
  color: #374151;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover { color: #12263f; background: #f2f4f7; text-decoration: none; }
.nav-links a[aria-current="page"] {
  color: #12263f;
  background: #eef2f6;
}

/* Language switch */

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #c3ccd6;
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch span,
.lang-switch a {
  padding: 6px 10px;
  line-height: 1.2;
  text-decoration: none;
}

.lang-switch span {
  background: #12263f;
  color: #ffffff;
}

.lang-switch a {
  background: #ffffff;
  color: #12263f;
}

.lang-switch a:hover {
  background: #f2f4f7;
  text-decoration: none;
}

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

.hero { border-bottom: 1px solid #e4e8ed; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  padding: 76px 0 68px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Company facts card */

.facts-card {
  background: #f6f7f9;
  border: 1px solid #dfe3e9;
  border-radius: 8px;
  padding: 24px 26px;
}

.facts-heading {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #525e6e;
}

.facts { margin: 0; display: grid; gap: 13px; }
.facts > div { display: grid; gap: 2px; }
.facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #525e6e;
}
.facts dd { margin: 0; font-size: 15px; font-weight: 600; color: #12263f; }
.facts dd a { color: #1e4f91; }
.facts dd a:hover { text-decoration: underline; }

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

.section { padding: 76px 0; }

.section-soft {
  background: #f6f7f9;
  border-top: 1px solid #e4e8ed;
  border-bottom: 1px solid #e4e8ed;
}

.section-head { max-width: 680px; margin: 0 0 36px; }

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

.service {
  border-top: 2px solid #12263f;
  padding-top: 18px;
}

.service p { color: #3f4b5b; margin: 0; }

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

.contact-item {
  background: #ffffff;
  border: 1px solid #dfe3e9;
  border-radius: 8px;
  padding: 22px 24px;
}

.contact-item p { color: #3f4b5b; margin: 0; font-size: 15px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.two-col p { color: #3f4b5b; margin: 0 0 14px; }
.two-col p:last-child { margin-bottom: 0; }

.prose-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 22px 0 0;
}
.prose-links a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Subpage hero & aligned reading column
   -------------------------------------------------------------------------- */

.page-hero {
  background: #f6f7f9;
  border-bottom: 1px solid #e4e8ed;
  padding: 56px 0 48px;
}

.page-hero-inner { max-width: 760px; margin: 0 auto; }

.meta-line {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: #525e6e;
}

.support-wrap { max-width: 760px; margin: 0 auto; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid #dfe3e9;
  border-radius: 8px;
  padding: 24px;
}
.card h3 { font-size: 16px; }
.card p { font-size: 15px; color: #3f4b5b; margin: 0; }

.support-extra { margin-top: 44px; }

.bullet-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #374151;
}

/* --------------------------------------------------------------------------
   Prose (legal pages)
   -------------------------------------------------------------------------- */

.prose { max-width: 760px; margin: 0 auto; }

.prose h2 {
  margin: 40px 0 10px;
  font-size: 20px;
}
.prose h2:first-child { margin-top: 0; }

.prose p { color: #374151; margin: 0 0 14px; }
.prose ul { color: #374151; margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }

.address-card {
  background: #f6f7f9;
  border: 1px solid #dfe3e9;
  border-left: 3px solid #12263f;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 18px 0 22px;
}
.address-card p { margin: 0 0 4px; color: #374151; }
.address-card p:last-child { margin-bottom: 0; }
.address-card p:first-child { font-weight: 700; color: #12263f; }

.table-wrap {
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0 0 20px;
}

.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid #e4e8ed;
  color: #374151;
}

.prose th {
  background: #f6f7f9;
  color: #12263f;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose tr:last-child td { border-bottom: 0; }

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

.site-footer {
  background: #12263f;
  color: #c2cedb;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.footer-tag { margin: 0; font-size: 14px; }

.footer-h {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
}

.footer-grid a { color: #e2e8f0; }
.footer-grid a:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
  margin-top: 44px;
  border-top: 1px solid #2c4258;
  padding: 18px 0;
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 13px;
  color: #9db0c4;
}

.footer-bottom-row p { margin: 0; }

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

@media (max-width: 920px) {
  .site-header { position: static; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0 48px;
  }
  .service-grid,
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { order: 3; width: 100%; margin-top: 4px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav { padding: 12px 20px; }
  .hero-grid { padding: 44px 0 40px; }
  .page-hero { padding: 44px 0 36px; }
  .service-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-row { flex-direction: column; gap: 4px; }
}
