/* Kjarni Lögmannsstofa – look of the old kls.is (shaper_hope, preset2) on Helix Ultimate + SP Page Builder 6 */
:root {
  --kls-blue: #00bbff;
  --kls-blue-dark: #0096cc;
  --kls-text: #949494;
  --kls-dark: #000000;
  --kls-light-bg: #f3f5f7;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--kls-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--kls-dark); }
.major-color { color: var(--kls-blue); }
a { color: var(--kls-blue); }
a:hover, a:focus { color: var(--kls-blue-dark); }

/* old site used a 1170px grid */
@media (min-width: 1200px) {
  .container, .sppb-row-container, .kls-hero .sppb-container { max-width: 1170px !important; }
}
.kls-hero .sppb-container { padding-left: 15px; padding-right: 15px; }
/* full-width hero row: no gutter overflow */
#sp-page-builder .sppb-section:has(.kls-hero) { overflow: hidden; }
#sp-page-builder .sppb-section:has(.kls-hero) .sppb-row { margin: 0; }
#sp-page-builder .sppb-section:has(.kls-hero) .sppb-row > div { padding: 0; }

/* ---------- Header: transparent over the hero / page title, dark when sticky ---------- */
#sp-header {
  position: absolute !important;
  top: 0; left: 0; right: 0;
  z-index: 99;
  height: 150px;
  background: transparent !important;
  box-shadow: none !important;
  transition: background-color .3s, height .3s;
}
#sp-header > .container, #sp-header > .container > .container-inner,
#sp-header .row, #sp-header .row > div, #sp-header .sp-column { height: 100%; }
#sp-header .logo { height: 100%; display: flex; align-items: center; }
#sp-header .logo img { height: 60px; width: auto; }
#sp-header.header-sticky {
  position: fixed !important;
  height: 90px;
  background: rgba(17, 24, 32, .96) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .15) !important;
  animation: none;
}
#sp-header.header-sticky .logo img { height: 50px; }
.sticky-header-placeholder { display: none !important; }

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  padding: 0 12px;
  letter-spacing: -.2px;
}
.sp-megamenu-parent > li:last-child > a { padding-right: 0; }
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li:hover > a { color: var(--kls-blue); }
#offcanvas-toggler .burger-icon > span { background-color: #fff; }

/* Offcanvas */
.offcanvas-menu .offcanvas-inner .menu-parent > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > a {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}
.offcanvas-menu .offcanvas-inner ul.menu > li.active > a { color: var(--kls-blue); }

/* ---------- Page title banner (menu item setting) ---------- */
.sp-page-title {
  padding: 202px 0 152px;
  background-attachment: fixed;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  text-align: center;
}
.sp-page-title .sp-page-title-heading {
  font-size: 100px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -6px;
  color: #fff;
  margin: 0;
}

/* ---------- Home hero slideshow ---------- */
.kls-hero .kls-hero-title {
  letter-spacing: -5px;
  line-height: 1 !important;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .15);
}
.kls-hero .kls-hero-text { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.kls-hero .sppb-sp-slider-button {
  display: inline-block;
  margin-right: 26px;
  border-radius: 0;
  transition: background-color .25s, color .25s;
}
.kls-hero .sp-dots ul li { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .7); border: 0; margin: 0 5px; }
.kls-hero .sp-dots ul li.active, .kls-hero .sp-dots ul li:hover { background: var(--kls-blue); }
.kls-hero .sp-dots ul li::after { display: none; }

/* ---------- SP Page Builder content ---------- */
.sppb-addon-text-block .sppb-addon-content,
.sppb-addon-feature .sppb-addon-text,
.sppb-addon-image-content .sppb-addon-content { color: var(--kls-text); font-size: 14px; line-height: 1.85; }
.sppb-addon-text-block .sppb-addon-content ul { padding-left: 18px; margin: 0; }
.sppb-addon-text-block .sppb-addon-content ul li::marker { color: #b5b5b5; }

/* big two-colour section headings ("Kjarni / Lögmannsstofa", "Starfssvið / okkar") */
.sppb-addon-text-block h2.sppb-addon-title { font-size: 64px; line-height: 70px; letter-spacing: -2px; }

/* buttons (button group / image content / contact form) */
.sppb-btn { font-family: 'Poppins', sans-serif; font-weight: 700; border-radius: 0; }
.sppb-addon-button-group .sppb-btn {
  font-size: 15px; padding: 18px 36px; letter-spacing: -.5px;
  background: #000 !important; border-color: #000 !important; color: #fff !important;
}
.sppb-addon-button-group .sppb-btn:hover { background: var(--kls-blue) !important; border-color: var(--kls-blue) !important; }

/* Um okkur: image + text */
.sppb-addon-image-content .sppb-addon-title { line-height: 1.05; letter-spacing: -3px; }
.sppb-addon-image-content .sppb-btn-link { color: #444; font-weight: 600; padding-left: 0; text-decoration: none; }
.sppb-addon-image-content .sppb-btn-link:hover { color: var(--kls-blue); }

/* Um okkur: people cards */
.sppb-addon-person { background: #fff; box-shadow: 0 0 25px rgba(0, 0, 0, .04); border: 1px solid #eee; }
.sppb-addon-person .sppb-person-image img { width: 100%; }
.sppb-addon-person .sppb-person-information { padding: 25px 20px 30px; }
.sppb-addon-person .sppb-person-name { font-size: 22px !important; font-weight: 700; color: #000; margin-bottom: 4px; letter-spacing: -.5px; }
.sppb-addon-person .sppb-person-designation { font-size: 15px !important; color: var(--kls-text); margin-bottom: 18px; }
.sppb-addon-person .sppb-person-email { font-size: 13px; color: #999; }

/* Hafa samband */
.contact-form-section .sppb-addon-feature .sppb-icon { color: var(--kls-blue); }
.contact-form-section .sppb-addon-feature .sppb-addon-title { color: #949494; font-weight: 400; }
.sppb-addon-ajax-contact .sppb-form-control {
  height: 60px; border: 1px solid #e3e3e3; border-radius: 2px; padding: 10px 20px;
  font-size: 16px; color: #444; box-shadow: none;
}
.sppb-addon-ajax-contact textarea.sppb-form-control { height: 170px; }
.sppb-addon-ajax-contact .sppb-form-control:focus { border-color: var(--kls-blue); }
.sppb-addon-ajax-contact .sppb-btn {
  background: var(--kls-blue); border-color: var(--kls-blue); color: #fff;
  font-size: 15px; padding: 18px 38px; letter-spacing: -.5px;
}
.sppb-addon-ajax-contact altcha-widget { display: block; margin-bottom: 25px; }
.sppb-addon-ajax-contact .sppb-btn:hover { background: var(--kls-blue-dark); border-color: var(--kls-blue-dark); }

/* ---------- Footer ---------- */
#sp-bottom { padding: 100px 0 85px; background: #fff; color: var(--kls-text); font-size: 14px; }
#sp-bottom .sp-module-title {
  font-family: 'Poppins', sans-serif; font-size: 14px !important; font-weight: 500 !important; text-transform: uppercase; line-height: 1.5;
  color: #000 !important; margin-bottom: 25px;
}
#sp-bottom .sp-module-content p { margin: 0; line-height: 1.85; }
#sp-bottom a { color: var(--kls-text); }
#sp-bottom a:hover { color: var(--kls-blue); }
#sp-footer { background: #fff; color: var(--kls-text); font-size: 14px; }
#sp-footer .container-inner { border-top: 1px solid #e9e9e9; padding: 50px 0; }
#sp-footer a { color: var(--kls-blue); }

/* ---------- Cookie notice ---------- */
#kls-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px; background: #03b2ff; color: #fff;
  transition: opacity .35s, transform .35s;
}
#kls-cookie.is-hidden { opacity: 0; transform: translateY(100%); }
#kls-cookie p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; }
#kls-cookie a { color: #f5f5f5; text-decoration: underline; }
#kls-cookie .kls-cookie-ok {
  flex: none; border: 0; background: #fff; color: #333; font-weight: 600;
  font-family: 'Poppins', sans-serif; padding: 8px 16px; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .sp-page-title .sp-page-title-heading { font-size: 80px; letter-spacing: -4px; }
  .sppb-addon-text-block h2.sppb-addon-title { font-size: 52px; line-height: 58px; }
  #sp-bottom .sp-module-content br { display: none; }
  #sp-bottom3 .sp-module-content br { display: inline; }
}
@media (max-width: 991.98px) {
  /* header: logo left, burger right on one line */
  #sp-header .row { flex-wrap: nowrap; }
  #sp-header #sp-logo, #sp-header #sp-menu { flex: 1 1 auto; width: auto; }

  /* Forsíða / Þjónusta intro rows: intro is stacked above the other columns (widths set in the page data) */
  .responsive-padding .sppb-row > div:first-child { margin-bottom: 30px; }
  .page-4 .responsive-padding .sppb-addon-text-block { margin-right: 0 !important; }

  /* Hafa samband: space between contact info and form when stacked */
  .contact-form-section .sppb-row > div:first-child { margin-bottom: 50px; }
  #sp-header { height: 100px; }
  #sp-header .logo img { height: 52px; }
  .sp-page-title { padding: 150px 0 90px; background-attachment: scroll; }
  .sp-page-title .sp-page-title-heading { font-size: 60px; letter-spacing: -3px; }
  .sppb-addon-text-block h2.sppb-addon-title { font-size: 48px; line-height: 54px; }
  .responsive-margin-bottom { margin-bottom: 40px; }
  .sppb-addon-image-content .sppb-addon-title { font-size: 52px !important; letter-spacing: -2px; }
  #sp-bottom { padding: 70px 0 40px; }
  #sp-bottom .sp-module { margin-bottom: 30px; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  #sp-bottom .row > div { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 575.98px) {
  .page-4 .responsive-padding .sppb-addon-text-block { margin-top: 0 !important; }
}
@media (max-width: 767.98px) {
  .contact-form-section .sppb-column-addons > div { margin-left: 0 !important; margin-right: 0 !important; }
  .contact-form-section .sppb-addon-feature { padding-top: 24px !important; }
  #sp-header { height: 80px; }
  #sp-header .logo img { height: 44px; }
  #sp-header.header-sticky { height: 70px; }
  .sp-page-title { padding: 120px 0 60px; }
  .sp-page-title .sp-page-title-heading { font-size: 42px; letter-spacing: -2px; }
  .kls-hero .kls-hero-title { letter-spacing: -2px; }
  .kls-hero .kls-hero-text br { display: none; }
  .kls-hero .sppb-sp-slider-button { margin: 0 10px 10px 0; }
  .sppb-addon-text-block h2.sppb-addon-title { font-size: 40px; line-height: 46px; letter-spacing: -1px; }
  .sppb-addon-image-content .sppb-addon-title { font-size: 48px !important; letter-spacing: -2px; }
  .sppb-addon-person { max-width: 360px; margin: 0 auto 30px; }
  #kls-cookie { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  #kls-cookie p { font-size: 14px; }
}
