/* ==========================================================================
   Lagnir og þjónusta (pipulogn.is) – design of the old "aarian" template
   (Helix Ultimate 1 + preset2 + custom.css) ported to Helix Ultimate 2.
   Section/addon styling itself comes from the SP Page Builder settings.
   ========================================================================== */

:root {
  --pl-red: #c3333c;
  --pl-blue: #14489c;
  --pl-orange: #ec430f;
  --pl-dark: #060608;
  --pl-text: #888888;
}

/* ---------- general ---------- */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--pl-text);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: .01em;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
a { color: var(--pl-orange); transition: color 400ms, background-color 400ms; }
a:hover, a:focus, a:active { color: #044cd0; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: #333333; font-weight: 600; line-height: 1.1; }
h2 { font-size: 30px; }
h3 { font-size: 24px; margin-top: 20px; margin-bottom: 10px; }
h4 { font-size: 18px; margin-top: 10px; margin-bottom: 10px; }
img { max-width: 100%; height: auto; }
.text-primary { color: var(--pl-blue) !important; }

/* buttons (old: red, hover near-black) */
.sppb-btn,
#sp-component .sppb-btn {
  border-radius: 5px;
  border: none;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: .01em;
  padding: 10.5px 34px;
  transition: all .4s ease;
}

/* old template forced every SPPB button red (the outlined hero button excepted) */
.sppb-btn { background: var(--pl-red) !important; color: #ffffff; }
.sppb-btn:hover, .sppb-btn:focus { color: #ffffff; }

/* 1140px containers like the old Bootstrap 4 template */
@media (min-width: 1200px) { #sp-header > .container, .sp-page-title > .container, #sp-main-body > .container { max-width: 1140px; padding-left: 15px; padding-right: 15px; } }

/* ---------- top bar + header overlay the hero / page title ---------- */
.body-innerwrapper { position: relative; overflow-x: hidden; }
#sp-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
}
#sp-top .container { max-width: none; padding: 0; }
#sp-top .container-inner > .row { margin: 0; }
#sp-top #sp-top1 { padding: 0; }
#sp-top .sppb-row-container { max-width: 1140px; }
#sp-top .sp-module { margin: 0; }
#sp-top a { color: inherit; }
#sp-top a:hover { color: var(--pl-orange); }
.header-border { border-bottom: 1px solid rgba(210, 218, 226, 0.25); }
.pl-home .header-border { border-bottom: 0; }
.pl-home #sp-top .sppb-section { background-color: rgba(6, 6, 8, 0.5); }

#sp-header {
  position: absolute !important;
  top: 50px; left: 0; right: 0;
  z-index: 99;
  height: auto;
  padding: 30px 0;
  background: transparent;
  box-shadow: none;
}
#sp-header.header-sticky {
  position: fixed !important;
  top: 0;
  padding: 0;
  background: var(--pl-dark);
  box-shadow: 0 0 16px rgba(0, 0, 0, .1);
  animation: pl-menu-sticky .8s ease-out;
}
@keyframes pl-menu-sticky { 0% { margin-top: -180px; } 50% { margin-top: -150px; } 100% { margin-top: 0; } }
#sp-header .logo { height: 60px; display: inline-flex; align-items: center; margin: 0; }
#sp-header .logo a { display: block; line-height: 1; }
#sp-header .logo-image,
#sp-header .logo-image-phone {
  height: 45px !important;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
#sp-header.header-sticky .logo-image { height: 36px !important; }

/* main menu */
#sp-header #sp-menu .sp-column { display: flex; align-items: center; justify-content: flex-end; height: 60px; }
.sp-megamenu-parent { float: none; margin: 0 -15px 0 0; }
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  padding: 10.5px 15px;
  line-height: 20px;
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #ffffff;
  transition: all .4s ease;
}
#sp-header.header-sticky .sp-megamenu-parent > li > a { line-height: 20px; padding-top: 20px; padding-bottom: 20px; }
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active:hover > a { color: var(--pl-orange); }

/* off-canvas toggler (mobile) */
#offcanvas-toggler { height: 60px; display: flex; align-items: center; }
#offcanvas-toggler .burger-icon > span { background-color: #ffffff; }
.offcanvas-menu .offcanvas-inner .menu > li > a:hover,
.offcanvas-menu .offcanvas-inner .menu > li.active > a { color: var(--pl-orange); }

/* ---------- page title (inner pages) ---------- */
.sp-page-title {
  padding: 195px 0 80px;
  background-color: var(--pl-orange);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  position: relative;
}
.sp-page-title .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; }
.sp-page-title .sp-page-title-heading {
  margin: 0;
  padding: 0;
  font-size: 38px;
  line-height: 1.1;
  color: #ffffff;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
}
.sp-page-title .breadcrumb { background: none; padding: 0; margin: 0; font-family: 'PT Sans', sans-serif; font-size: 16px; }
.sp-page-title .breadcrumb > li,
.sp-page-title .breadcrumb > li > a,
.sp-page-title .breadcrumb > li + li::before { color: #ffffff; }
.sp-page-title .breadcrumb > .active,
.sp-page-title .breadcrumb > li.active span { color: rgba(255, 255, 255, .8); }
.sp-page-title .breadcrumb .divider,
.sp-page-title .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #ffffff; }

/* ---------- body ---------- */
#sp-main-body { padding: 100px 0; }
.com-sppagebuilder #sp-main-body { padding: 0; }
.com-sppagebuilder #sp-main-body > .container { max-width: none; padding: 0; }
.com-sppagebuilder #sp-main-body > .container > .container-inner > .row { margin: 0; }
.com-sppagebuilder #sp-main-body #sp-component { padding: 0; }

/* hero slideshow (old LayerSlider) */
.pl-hero-row > .sppb-row-container,
.pl-hero-row .sppb-column { padding: 0; }
.pl-hero .sppb-slideshow-fullwidth__content,
.pl-hero .sppb-carousel-extended-content-wrapper { padding-top: 120px; }
.pl-hero .pl-slide-title,
.pl-hero h2.pl-slide-title {
  margin: 0 0 20px;
  font-family: 'PT Sans', sans-serif;
  font-size: 50px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.pl-hero .pl-slide-text {
  max-width: 620px;
  margin: 0 0 40px;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  line-height: 32px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.pl-hero .pl-slide-btn {
  display: inline-block;
  margin: 0 15px 10px 0;
  padding: 12.5px 34px;
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--pl-red);
  border: 1px solid var(--pl-red);
  border-radius: 5px;
}
.pl-hero .pl-slide-btn .sp-slider-btn-text { background: none !important; padding: 0 !important; margin: 0; color: inherit !important; border: 0; box-shadow: none; font: inherit; line-height: inherit; }
.pl-hero .pl-slide-btn.pl-slide-btn-outline { background: transparent; border-color: #ffffff; }
.pl-hero .pl-slide-btn:hover { background: var(--pl-blue); border-color: var(--pl-blue); color: #ffffff; }

/* service features (raw HTML boxes) */
.single-why-choose-us { display: flex; align-items: flex-start; }
.single-why-choose-us .icon-box { flex: 0 0 90px; }
.single-why-choose-us .icon-box .inner { width: 90px; height: 90px; background: #ffffff; box-shadow: 0 5px 20px 2px rgba(0, 0, 0, .05); display: flex; align-items: center; justify-content: center; }
.single-why-choose-us .icon-box img { width: 35px; height: auto; margin: 0; position: static; display: block; }
.single-why-choose-us .text-box { padding-left: 30px; flex: 1 0 auto; max-width: calc(100% - 90px); }
.single-why-choose-us .text-box h3 { margin: 0 0 10px; color: var(--pl-dark); font-family: 'PT Sans', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: .03em; transition: .4s; white-space: nowrap; }
.single-why-choose-us .text-box p { line-height: 24px; }
.single-why-choose-us:hover .text-box h3 { color: var(--pl-red) !important; }

/* Fyrri verk: masonry gallery (old BA Gallery look) */
.pl-gallery .sppb-gallery { display: block; column-count: 4; column-gap: 10px; margin: 0; padding: 0; }
.pl-gallery .sppb-gallery > li { display: block; break-inside: avoid; margin: 0 0 10px !important; padding: 0; width: auto !important; }
.pl-gallery .sppb-gallery > li a { display: block; overflow: hidden; }
.pl-gallery .sppb-gallery img { width: 100% !important; height: auto !important; object-fit: initial; display: block; transition: transform .5s ease; }
.pl-gallery .sppb-gallery > li a:hover img { transform: scale(1.04); }
@media (max-width: 991.98px) { .pl-gallery .sppb-gallery { column-count: 3; } }
@media (max-width: 767.98px) { .pl-gallery .sppb-gallery { column-count: 2; } }

/* Hafa samband: form */
.pl-contact-form .sppb-form-builder-field input,
.pl-contact-form .sppb-form-builder-field textarea { box-shadow: none; }
.pl-contact-form textarea { min-height: 110px; }
.pl-contact-form altcha-widget,
.pl-contact-form .altcha { display: block; }

/* ---------- footer ---------- */
#sp-footer { background: #171717; color: #ffffff; font-size: 14px; padding: 0; text-align: left; }
#sp-footer > .container { max-width: none; padding: 0; }
#sp-footer .container-inner { padding: 0; border: 0; }
#sp-footer .container-inner > .row { margin: 0; }
#sp-footer #sp-footer1 { padding: 0; }
#sp-footer .sp-module { margin: 0; }
#sp-footer a { color: #a2a2a2; }
#sp-footer a:hover { color: #ffffff; }
@media (min-width: 992px) {
  #sp-footer1 .inner { position: relative; overflow: hidden; }
  #sp-footer1 .inner::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 35%; background: var(--pl-blue); }
}

/* back to top */
.sp-scroll-up { background: #333333; color: #ffffff; border-radius: 3px; }
.sp-scroll-up:hover { background: var(--pl-red); color: #ffffff; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  #sp-header { padding: 15px 0; }
  .sp-page-title { padding: 150px 0 60px; }
}
@media (max-width: 767.98px) {
  #sp-header { top: 0; padding: 10px 0; }
  .sp-page-title { padding: 110px 0 45px; }
  .sp-page-title .sp-page-title-heading { font-size: 30px; }
  .pl-hero .pl-slide-title, .pl-hero h2.pl-slide-title { font-size: 34px; }
  .pl-hero .pl-slide-text { font-size: 16px; line-height: 26px; }
}

/* ---------- fixes found while comparing with the old site ---------- */
/* Bootstrap 4 utility classes still used in the SPPB content (top bar) */
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
@media (min-width: 768px) {
  .text-md-left { text-align: left !important; }
  .text-md-right { text-align: right !important; }
}
.sp-megamenu-parent { margin-right: 0; }
.sp-page-title .breadcrumb > li:first-child > span.fas,
.sp-page-title .breadcrumb .fa-map-marker-alt,
.sp-page-title .breadcrumb .fa-location-dot { display: none; }
/* form fields as on the old site: 50px high, light grey */
.pl-contact-form .sppb-form-group input.sppb-form-control { height: 50px; }
.pl-contact-form .sppb-form-group textarea.sppb-form-control { height: 110px; }
@media (max-width: 767.98px) { .pl-contact-form { margin-top: 30px; } }
/* hero text on the same 1140px grid as the logo */
.pl-hero .sppb-container { max-width: 1140px; }
/* the gallery items are floated by SPPB, which breaks the CSS columns */
.pl-gallery .sppb-gallery > li { float: none !important; }
.sp-page-title .breadcrumb { padding: 0 !important; }
.sp-page-title .breadcrumb .mod-breadcrumbs__divider { display: none; }
.pl-gallery .sppb-gallery { width: 100% !important; margin: 0 !important; }
/* full-width Helix rows (SPPB pages, top bar, footer): no negative gutters, SPPB sections bring their own */
#sp-main-body > .row, #sp-top > .row, #sp-footer > .row, #sp-title > .row,
#sp-main-body > .container-fluid > .row, #sp-top > .container-fluid > .row, #sp-footer > .container-fluid > .row { margin-left: 0; margin-right: 0; }
#sp-main-body > .row > #sp-component, #sp-top > .row > #sp-top1, #sp-footer > .row > #sp-footer1 { padding-left: 0; padding-right: 0; }

/* header sits right below the top bar, whose height varies (it wraps on tablets): --pl-top is set by the
   template's custom JS (template.php) from the real #sp-top height */
#sp-header:not(.header-sticky) { top: var(--pl-top, 50px); }
.sp-page-title { padding-top: calc(var(--pl-top, 50px) + 145px); }
@media (max-width: 991.98px) { .sp-page-title { padding-top: calc(var(--pl-top, 50px) + 120px); } }
@media (max-width: 575.98px) { #sp-header:not(.header-sticky) { top: 0; } .sp-page-title { padding-top: 110px; } }
.pl-hero .sppb-container { padding-top: var(--pl-top, 50px); }
/* SPPB form builder applies field_gutter as a positive margin on the form plus padding on each field:
   pull the form back so the fields line up with the column like on the old site */
.pl-contact-form .sppb-addon-form-builder-form { margin-left: -15px !important; margin-right: -15px !important; }
.pl-contact-form .sppb-form-builder-btn { margin-left: 15px !important; margin-right: 15px !important; }

/* page title row: full width, no gutters */
.pl-title-row > .row { margin-left: 0; margin-right: 0; }
.pl-title-row > .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.offcanvas-menu .burger-icon > span { background-color: #252525 !important; }
.offcanvas-menu .offcanvas-inner .menu > li > a { font-family: 'PT Sans', sans-serif; font-weight: 700; color: #252525; }
/* small desktops (992-1199): logo shrinks instead of the menu wrapping to two lines */
@media (min-width: 992px) {
  #sp-header .container-inner > .row { flex-wrap: nowrap; }
  #sp-header #sp-logo { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
  #sp-header #sp-menu { flex: 0 0 auto; width: auto; }
  #sp-header .logo, #sp-header .logo a { max-width: 100%; }
}
@media (max-width: 1199.98px) { .single-why-choose-us { margin-bottom: 30px; } }
.sppb-addon-text-block { overflow-wrap: break-word; }

/* SP Page Builder frontend editor canvas: no page title there, so the overlaid top bar/header would
   cover the content being edited -> put them back into the normal flow on a dark background */
.layout-edit-iframe #sp-top,
.layout-edit-iframe #sp-header:not(.header-sticky) { position: relative !important; top: 0 !important; }
.layout-edit-iframe #sp-top,
.layout-edit-iframe #sp-header { background: var(--pl-dark); }

/* phone icon of the old template (aarian "hialeah" icon font) in the top bar */
@font-face {
  font-family: 'hialeah-icon';
  src: url('fonts/hialeah-icon.woff') format('woff'), url('fonts/hialeah-icon.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: block;
}
[class^="hialeah-icon-"], [class*=" hialeah-icon-"] {
  font-family: 'hialeah-icon' !important;
  speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.hialeah-icon-phone-call::before { content: "\e934"; }

/* footer: the old blue band was a fixed 35% of the screen, which on narrower desktops ran under the
   "Hafa Samband" column. It now starts exactly at the 4th column (container 1140 / 960, col 75%). */
@media (min-width: 992px) {
  #sp-footer1 .inner::before { width: calc(50% - 240px); }
  #sp-footer1 .inner .sppb-row > div:nth-child(4) { padding-left: 45px; }
}
@media (min-width: 1200px) {
  #sp-footer1 .inner::before { width: calc(50% - 285px); }
}

/* ==========================================================================
   Nov 2026 design v2 (Filmís): modern look – Manrope, navy/red, pill buttons,
   light sticky header. Everything below overrides the ported look above;
   delete from this comment to the end of the file to go back.
   ========================================================================== */
:root { --ink: #0b1f3f; --brand: #14489c; --accent: #c3333c; --accent-d: #a82a32; --soft: #f4f7fb; --line: #e3e8f0; --body: #475467; }
html body { font-family: 'Manrope', 'PT Sans', sans-serif; font-size: 17px; line-height: 1.65; letter-spacing: 0; color: var(--body); }
h1, h2, h3, h4, h5, h6, .sppb-addon-title { font-family: 'Manrope', 'PT Sans', sans-serif; color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--brand); }
a:hover, a:focus { color: var(--accent); }
.body-innerwrapper { overflow-x: clip; }
.sppb-addon-text-block p + p { margin-top: .8em; }

/* top bar */
#sp-top { position: relative; background: var(--ink); }
#sp-top, #sp-top p, #sp-top a, #sp-top span { font-family: 'Manrope', 'PT Sans', sans-serif !important; font-size: 14px; }
#sp-top .sppb-section { background-color: transparent !important; }
.header-border { border-bottom: 0; }

/* header */
#sp-header,
#sp-header:not(.header-sticky),
#sp-header.header-sticky { position: sticky !important; top: 0 !important; margin-top: 0; padding: 14px 0; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); box-shadow: 0 1px 0 var(--line); animation: none; }
#sp-header .logo-image, #sp-header .logo-image-phone, #sp-header.header-sticky .logo-image { height: 38px !important; }
.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span,
#sp-header.header-sticky .sp-megamenu-parent > li > a { font-family: 'Manrope', 'PT Sans', sans-serif; font-size: 15.5px; font-weight: 700; letter-spacing: 0; line-height: 20px; color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.sp-megamenu-parent > li:hover > a, .sp-megamenu-parent > li.active > a, .sp-megamenu-parent > li.active:hover > a { color: var(--accent); }
.sp-megamenu-parent > li:last-child > a, #sp-header.header-sticky .sp-megamenu-parent > li:last-child > a { margin-left: 10px; padding: 10px 22px; background: var(--accent); color: #fff !important; }
.sp-megamenu-parent > li:last-child > a:hover { background: var(--accent-d); }
#offcanvas-toggler .burger-icon > span { background-color: var(--ink); }
.offcanvas-menu .offcanvas-inner .menu > li > a { font-family: 'Manrope', 'PT Sans', sans-serif; font-size: 18px; color: var(--ink); }
.layout-edit-iframe #sp-header { background: #ffffff; }

/* buttons */
.sppb-btn, #sp-component .sppb-btn { font-family: 'Manrope', 'PT Sans', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 24px; padding: 14px 30px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(195, 51, 60, .55); transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.sppb-btn:hover, .sppb-btn:focus { background: var(--accent-d) !important; transform: translateY(-1px); }

/* page title on inner pages */
.sp-page-title { padding: 60px 0 52px !important; background: var(--soft) !important; background-image: none !important; border-bottom: 1px solid var(--line); }
.sp-page-title::before { display: none; }
.sp-page-title .sp-page-title-heading { font-family: 'Manrope', 'PT Sans', sans-serif; font-size: 46px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.sp-page-title .breadcrumb { font-family: 'Manrope', 'PT Sans', sans-serif; font-size: 14.5px; }
.sp-page-title .breadcrumb > li, .sp-page-title .breadcrumb > li > a, .sp-page-title .breadcrumb > li + li::before, .sp-page-title .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #667085; }
.sp-page-title .breadcrumb > .active, .sp-page-title .breadcrumb > li.active span { color: var(--ink); }

/* forms */
.sppb-form-control, .sppb-form-group input.sppb-form-control, .sppb-form-group textarea.sppb-form-control { border: 1px solid #cfd8e6; border-radius: 12px; background: #fff; font-family: inherit; font-size: 16px; color: var(--ink); }
.sppb-form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 72, 156, .15); }

/* footer */
#sp-footer { background: var(--ink); color: #c8d3e6; font-size: 15px; }
#sp-footer, #sp-footer p { font-family: 'Manrope', 'PT Sans', sans-serif !important; }
#sp-footer1 .inner::before { display: none !important; }
#sp-footer1 .inner .sppb-row > div:nth-child(4) { padding-left: 15px; }
#sp-footer .sppb-section { background-color: transparent !important; }
#sp-footer .sppb-addon-title, #sp-footer h3 { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
#sp-footer a { color: #c8d3e6; }
#sp-footer a:hover { color: #fff; }
.sp-scroll-up { background: var(--ink); border-radius: 999px; }

@media (max-width: 767.98px) {
  #sp-header { padding: 10px 0; }
  #sp-header .logo-image, #sp-header .logo-image-phone { height: 28px !important; }
  .sp-page-title { padding: 36px 0 32px !important; }
  .sp-page-title .sp-page-title-heading { font-size: 32px; }
  .sppb-addon-single-image { margin-top: 0; }
}
#sp-footer .sppb-addon-single-image img { filter: brightness(0) invert(1); max-width: 260px; }
#sp-footer .sppb-section:first-child { padding-top: 20px; }
/* staff cards and contact page */
.sppb-addon-person { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.sppb-person-name { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
