/* ==========================================================================
   Raftaug – custom styles (Helix Ultimate + SP Page Builder)
   Recreates the look of the previous raftaug.is (ut_reto "Construction") site.
   ========================================================================== */

:root {
  --ra-blue: #2d9cfa;
  --ra-blue-dark: #1b7fd6;
  --ra-dark: #222222;
  --ra-text: #727272;
  --ra-light: #f5f7fa;
  --ra-gray: #f3f3f3;
  --ra-footer: #24272f;
  --ra-footer-bottom: #1d2026;
}

body { font-size: 15px; line-height: 26px; color: var(--ra-text); }
h1, h2, h3, h4, h5, h6 { color: var(--ra-dark); }
a { color: var(--ra-blue); }
a:hover, a:focus { color: var(--ra-blue-dark); }

/* Content width like the old site (1110px inner) */
@media (min-width: 1200px) {
  #sp-header .container, .sp-page-title .container, #sp-main-body > .container,
  #sp-bottom .container, #sp-footer .container, .sppb-row-container {
    max-width: 1140px !important;
  }
}

/* ---------- Header: transparent over hero, blue when sticky ---------- */
#sp-top-bar, .sticky-header-placeholder { display: none !important; }

#sp-header {
  position: absolute;
  top: 0; left: 0; width: 100%;
  z-index: 99;
  height: 80px;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#sp-header.header-sticky {
  position: fixed;
  background: var(--ra-blue);
  border-bottom-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
#sp-header .logo { height: 80px; display: flex; align-items: center; }
#sp-header .logo img { height: 50px; width: auto; }

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 80px;
  padding: 0 15px;
}
.sp-megamenu-parent > li:last-child > a { padding-right: 0; }
.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active:hover > a { color: rgba(255, 255, 255, 0.6); }

#offcanvas-toggler .burger-icon > span { background-color: #fff; }

@media (max-width: 991.98px) {
  #sp-header, #sp-header .logo { height: 70px; }
  #sp-header .logo img { height: 44px; }
}
@media (max-width: 575.98px) {
  #sp-header, #sp-header .logo { height: 64px; }
  #sp-header .logo img { height: 40px; }
}

/* Offcanvas menu */
.offcanvas-menu { background: var(--ra-footer-bottom); }
.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
}
.offcanvas-menu .offcanvas-inner ul.menu > li.active > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > a:hover { color: var(--ra-blue); }
.offcanvas-menu .close-offcanvas .burger-icon > span,
.offcanvas-menu .burger-icon > span { background-color: #fff; }

/* ---------- Page title banner ---------- */
.sp-page-title {
  position: relative;
  padding: 160px 0 90px;
  background-color: #2b2f36;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.sp-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 32, 38, 0.6);
}
.sp-page-title .container { position: relative; }
.sp-page-title .sp-page-title-heading {
  color: #fff;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 14px;
}
.sp-page-title .breadcrumb {
  justify-content: center;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}
.sp-page-title .breadcrumb li,
.sp-page-title .breadcrumb a,
.sp-page-title .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #fff; }
.sp-page-title .breadcrumb a { font-weight: 500; }
.sp-page-title .breadcrumb a:hover { color: var(--ra-blue); }
.sp-page-title .breadcrumb li.active { color: rgba(255, 255, 255, 0.8); }
@media (max-width: 767.98px) {
  .sp-page-title { padding: 120px 0 60px; }
  .sp-page-title .sp-page-title-heading { font-size: 28px; }
}

/* ---------- Generic SPPB helpers ---------- */
.ra-kicker .sppb-addon-title { color: var(--ra-blue); font-size: 20px; font-weight: 500; margin-bottom: 14px; }
.ra-title-bar .sppb-addon-title,
.ra-section-title .sppb-title-heading {
  position: relative;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 400;
  padding-bottom: 18px;
  margin-bottom: 30px;
}
.ra-title-bar .sppb-addon-title::after,
.ra-section-title .sppb-title-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 80px; height: 1px;
  background: var(--ra-blue);
}
.ra-section-title .sppb-title-heading { font-weight: 500; }
.ra-section-title .sppb-section-title { margin-bottom: 50px; }
.ra-section-title .sppb-title-heading::after { left: 50%; margin-left: -40px; }
@media (max-width: 767.98px) {
  .ra-title-bar .sppb-addon-title, .ra-section-title .sppb-title-heading { font-size: 26px; }
}

.ra-bg-light { background: var(--ra-light); }
.ra-bg-gray { background: var(--ra-gray); }
.ra-mb-30 { margin-bottom: 30px; }

/* Image with blue offset block behind it */
.ra-service .ra-image-offset img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ra-service .ra-image-offset .sppb-addon-single-image-container { display: block; }
.ra-image-offset .sppb-addon-single-image-container { position: relative; display: inline-block; }
.ra-image-offset .sppb-addon-single-image-container::before {
  content: "";
  position: absolute;
  top: 15px; left: 15px; right: -15px; bottom: -15px;
  background: var(--ra-blue);
  z-index: 0;
}
.ra-image-offset img { position: relative; z-index: 1; }
@media (max-width: 991.98px) {
  .ra-image-offset { margin-top: 40px; padding-right: 15px; }
}

/* Buttons */
.sppb-btn-primary, .ra-btn .sppb-btn {
  background: var(--ra-blue);
  border-color: var(--ra-blue);
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
}
.sppb-btn-primary:hover, .sppb-btn-primary:focus { background: var(--ra-dark); border-color: var(--ra-dark); }

/* ---------- Hero slideshow ---------- */
.ra-hero .sp-slider .sppb-container { max-width: 1140px; }
.ra-hero .sp-slider-content-align-left { padding-left: 60px; padding-right: 60px; }
.ra-hero .sp-item:first-child .sp-slider-content-align-left::before {
  /* outlined blue frame from the old hero */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 250px; height: 320px;
  transform: translateY(-50%);
  border: 3px solid var(--ra-blue);
  pointer-events: none;
}
.ra-hero .sp-slider-content-align-left { position: relative; }
.ra-hero .ra-slide-title,
.ra-hero .ra-slide-big {
  color: #fff;
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 18px;
}
.ra-hero .ra-slide-big { color: var(--ra-blue); text-transform: uppercase; font-weight: 500; }
.ra-hero .ra-slide-kicker {
  color: var(--ra-blue);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ra-hero .ra-slide-text { color: #fff; font-size: 17px; }
.ra-hero .ra-slide-small { color: var(--ra-blue); font-size: 16px; margin-bottom: 26px; }
.ra-hero .ra-slide-sub { color: #fff; font-size: 30px; line-height: 1.3; margin-bottom: 14px; }
.ra-hero .sppb-slider-btn-wrap, .ra-hero .ra-slide-btn { display: inline-block; margin: 20px 12px 0 0; }
.ra-hero a.sppb-sp-slider-button, .ra-hero .ra-slide-btn a, .ra-hero a.ra-slide-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--ra-blue);
  border: 2px solid var(--ra-blue);
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
}
.ra-hero .ra-slide-btn-ghost a, .ra-hero a.ra-slide-btn-ghost { background: transparent; border-color: #fff; }
.ra-hero a.sppb-sp-slider-button:hover, .ra-hero .ra-slide-btn a:hover, .ra-hero a.ra-slide-btn:hover { background: #fff; border-color: #fff; color: var(--ra-dark); }

/* vertical square bullets on the right, like the old Revolution slider */
.ra-hero .sp-dots {
  left: auto !important;
  right: 24px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%);
  width: auto !important;
}
.ra-hero .sp-dots ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.ra-hero .sp-dots ul li {
  width: 18px !important; height: 18px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.35) !important;
  border: 0 !important;
  cursor: pointer;
  position: relative;
}
.ra-hero .sp-dots ul li::after {
  content: "";
  position: absolute;
  left: 7px; top: 7px; width: 4px; height: 4px;
  background: #fff;
}
.ra-hero .sp-dots ul li.active { background: #fff !important; }
.ra-hero .sp-dots ul li.active::after { background: var(--ra-blue); }

@media (max-width: 991.98px) {
  .ra-hero .ra-slide-title, .ra-hero .ra-slide-big { font-size: 44px; }
  .ra-hero .ra-slide-sub { font-size: 24px; }
  .ra-hero .sp-item:first-child .sp-slider-content-align-left::before { width: 180px; height: 230px; }
}
@media (max-width: 575.98px) {
  .ra-hero .sp-slider-content-align-left { padding-left: 24px; padding-right: 30px; }
  .ra-hero .ra-slide-title, .ra-hero .ra-slide-big { font-size: 32px; }
  .ra-hero .ra-slide-sub { font-size: 19px; }
  .ra-hero .ra-slide-kicker { font-size: 13px; letter-spacing: 1px; }
  .ra-hero .ra-slide-text { font-size: 15px; }
  .ra-hero .sp-item:first-child .sp-slider-content-align-left::before { width: 120px; height: 170px; left: 8px; }
  .ra-hero .sp-dots { right: 10px !important; }
  .ra-hero .sp-dots ul li { width: 14px !important; height: 14px !important; }
  .ra-hero .sp-dots ul li::after { left: 5px; top: 5px; }
}

/* ---------- News (home addon + blog) ---------- */
.ra-news .sppb-addon-article {
  background: #fff;
  height: 100%;
  margin-bottom: 30px;
  transition: box-shadow .3s;
}
.ra-news .sppb-addon-article:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.ra-news .sppb-article-img-wrap img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ra-news .sppb-article-info-wrap { padding: 24px 24px 28px; }
.ra-news .sppb-article-info-wrap h3 { font-size: 20px; line-height: 1.35; margin: 0 0 8px; }
.ra-news .sppb-article-info-wrap h3 a { color: var(--ra-dark); }
.ra-news .sppb-article-info-wrap h3 a:hover { color: var(--ra-blue); }
.ra-news .sppb-article-meta { font-size: 13px; text-transform: uppercase; margin-bottom: 12px; }
.ra-news .sppb-readmore { font-weight: 500; }
.ra-news .sppb-addon-article-layout-content ~ *, .ra-news .sppb-addon-articles + * { text-align: center; }
.ra-news .sppb-btn { border-radius: 0; }
.ra-news .sppb-addon-content > .sppb-text-center, .ra-news .sppb-addon-articles ~ div:last-child { text-align: center; margin-top: 10px; }

/* Joomla category blog (Fréttir) */
.com-content-category-blog .blog-items.raftaug-news .article-list,
.com-content-category-blog .blog-items .article-list { margin-top: 0; }
.com-content-category-blog .blog-item .article,
.com-content-category-blog .article-list .article {
  background: var(--ra-gray);
  padding: 20px 20px 24px;
  margin-bottom: 30px;
  height: calc(100% - 30px);
  border: 0;
}
.com-content-category-blog .article-intro-image img,
.com-content-category-blog .article .article-intro-image img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.com-content-category-blog .article-header h2 { font-size: 20px; line-height: 1.35; margin: 18px 0 6px; }
.com-content-category-blog .article-header h2 a { color: var(--ra-dark); }
.com-content-category-blog .article-header h2 a:hover { color: var(--ra-blue); }
.com-content-category-blog .article-info { font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }
#sp-main-body { padding: 80px 0; }
.view-article .article-details .article-header h1 { font-size: 30px; }

/* Pagination */
.pagination .page-link { border-radius: 0 !important; color: var(--ra-dark); border: 0; background: #e9ecef; margin: 0 1px; padding: 9px 16px; }
.pagination .page-item.active .page-link, .pagination .page-link:hover { background: var(--ra-blue); color: #fff; }
.pagination-wrapper, .com-content-category-blog__navigation { justify-content: center; text-align: center; }
.pagination { justify-content: center; }

/* ---------- Um okkur: staff ---------- */
.ra-staff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 30px;
}
.ra-staff li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 18px 20px;
}
.ra-staff-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ra-blue);
  color: #fff;
}
.ra-staff-name { color: var(--ra-dark); font-weight: 500; font-size: 16px; line-height: 1.35; }
@media (max-width: 991.98px) { .ra-staff { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ra-staff { grid-template-columns: 1fr; } }

/* ---------- Fyrri verk: gallery grid ---------- */
.ra-gallery .sppb-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.ra-gallery .sppb-gallery::before, .ra-gallery .sppb-gallery::after { display: none !important; content: none; }
.ra-gallery .sppb-gallery li { margin: 0 !important; width: auto !important; overflow: hidden; }
.ra-gallery .sppb-gallery li a { display: block; }
.ra-gallery .sppb-gallery img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s;
}
.ra-gallery .sppb-gallery li:hover img { transform: scale(1.05); }
@media (max-width: 767.98px) { .ra-gallery .sppb-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .ra-gallery .sppb-gallery { grid-template-columns: 1fr; } }

/* ---------- Hafa samband ---------- */
.ra-contact-info { list-style: none; margin: 0; padding: 0; }
.ra-contact-info li { margin-bottom: 26px; }
.ra-contact-info h3 {
  position: relative;
  font-size: 20px;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.ra-contact-info h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; width: 80px; height: 1px;
  background: var(--ra-blue);
}
.ra-contact-info p { margin: 0; }
.ra-contact-info a { color: var(--ra-text); }
.ra-contact-info a:hover { color: var(--ra-blue); }

.ra-contact-form .sppb-form-control,
.ra-contact-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.ra-contact-form textarea {
  border: 1px solid #e1e1e1;
  border-radius: 0;
  background: #f9f9f9;
  padding: 12px 16px;
  min-height: 50px;
  font-size: 15px;
  color: var(--ra-dark);
}
.ra-contact-form textarea { min-height: 170px; }
.ra-contact-form .sppb-form-control:focus,
.ra-contact-form input:focus, .ra-contact-form textarea:focus {
  border-color: var(--ra-blue);
  box-shadow: none;
  background: #fff;
  outline: 0;
}
.ra-contact-form .sppb-btn { padding: 13px 34px; }
.ra-contact-form .sppb-addon-form-builder-form { margin: 0 -10px; }
.ra-contact-form .sppb-form-group { padding: 0 10px; margin-bottom: 20px; box-sizing: border-box; }
.ra-contact-form .sppb-form-group:last-child { margin-bottom: 0; }
@media (max-width: 991.98px) {
  .ra-contact-col { margin-bottom: 30px; }
}

/* ---------- Footer ---------- */
#sp-bottom {
  background: var(--ra-footer);
  color: #aeb7c1;
  padding: 80px 0 40px;
  text-align: center;
  font-size: 14px;
}
#sp-bottom .sp-module { margin-bottom: 40px; }
#sp-bottom .ra-footer-title,
#sp-bottom .sp-module-title {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
#sp-bottom .ra-footer-title::before,
#sp-bottom .ra-footer-title::after {
  content: "";
  width: 22px; height: 7px;
  background: radial-gradient(circle, var(--ra-blue) 3.5px, transparent 4px) 0 0 / 11px 7px repeat-x;
}
#sp-bottom p { margin: 0; line-height: 1.6; }
#sp-bottom a { color: #aeb7c1; }
#sp-bottom a:hover { color: #fff; }
.ra-footer-list { list-style: none; margin: 0; padding: 0; }
.ra-footer-list li { margin-bottom: 14px; }

#sp-footer {
  background: var(--ra-footer-bottom);
  color: #aeb7c1;
  font-size: 14px;
  padding: 30px 0;
}
#sp-footer .container-inner { border-top: 0; padding: 0; }
#sp-footer .sp-copyright a { color: #fff; font-weight: 500; }
#sp-footer .sp-copyright a:hover { color: var(--ra-blue); }
@media (max-width: 991.98px) { #sp-footer { text-align: center; } }

/* Go-to-top */
.sp-scroll-up { background: var(--ra-blue); color: #fff; }

/* Home news: centre the "Allar fréttir" button */
.ra-news > .sppb-addon-content { display: flex; flex-direction: column; }
.ra-news > .sppb-addon-content > a.sppb-btn { align-self: center; margin-top: 10px; }

/* Article view */
.article-details .article-header h1 { color: var(--ra-dark); }
.pager .btn, .article-details .pagenavigation .btn,
.com-content-article .pagenavigation a {
  background: var(--ra-blue); border-color: var(--ra-blue); color: #fff; border-radius: 0;
}
.com-content-category-blog .article-header h2 a { color: var(--ra-dark); }
.ra-contact-form .sppb-addon-form-builder-form > * { padding-left: 10px; padding-right: 10px; box-sizing: border-box; }
/* slide buttons: neutralise SPPB's default inner button styling */
.ra-hero a.ra-slide-btn { margin: 24px 12px 0 0; padding: 12px 30px; line-height: 1.4; font-size: 15px; letter-spacing: .5px; }
.ra-hero a.ra-slide-btn .sp-slider-btn-text { background: none !important; padding: 0 !important; color: inherit !important; border: 0 !important; font: inherit; }
@media (max-width: 575.98px) { .ra-hero a.ra-slide-btn { padding: 10px 20px; font-size: 14px; } }

/* Spam protection widget (POW Captcha / ALTCHA) – match form fields */
.ra-contact-form altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: 0;
  --altcha-color-base: #f9f9f9;
  --altcha-color-border: #e1e1e1;
  --altcha-color-text: #727272;
  --altcha-color-border-focus: #2d9cfa;
  --altcha-color-error-text: #d9534f;
  --altcha-max-width: 320px;
  display: block;
}
