/*!
 * Start Bootstrap - Stylish Portfolio v5.0.6 (https://startbootstrap.com/template-overviews/stylish-portfolio)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-stylish-portfolio/blob/master/LICENSE)
 */

body,
html {
  width: 100%;
  height: 100%;
}

:root {
  --brand: #0061b7;
  --brand-dark: #004a8c;
  --brand-tint: #e8f1fa;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #e3e8ee;
  --surface: #f6f8fb;
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: #fff;
  color: var(--ink);
  line-height: 1.65;
  padding-top: 76px; /* room for the fixed navbar */
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand-tint);
}

.btn-xl {
  padding: 1.25rem 2.5rem;
}

.navbar-brand {
  font-weight: 700;
  text-transform: uppercase;
  color: #0061b7;
  display: flex; /* Aligns logo icon and text side by side */
  align-items: center; /* Center aligns the items vertically */
}

.navbar-brand .logo-text {
  display: block; /* Stacks title and subtitle */
  margin-left: 10px; /* Adds some space between the icon and the text */
}

.navbar-brand .logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.navbar-brand .logo-subtitle {
  font-size: 0.72rem;
  display: block; /* Puts the subtitle on a new line */
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.info-content-section {
  padding-bottom: 1.5rem !important;
}

.info-container {
  padding: 0 120px;
}

@media (max-width: 768px) {
  .info-container {
    padding: 0 20px !important;
  }
}

.padded-text {
  padding-left: 20%; /* Half of the image width, adjust as needed */
  padding-right: 50px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.news-section {
  background-color: #f8f9fa;
}

.news-header-container {
  display: flex; /* Enables Flexbox */
  justify-content: space-between; /* Aligns items to each side */
  align-items: center; /* Centers items vertically */
  width: 100%;
  margin-bottom: 1.5rem;
}

.news-header-container h3 {
  margin-right: 10px; /* Adjust space between h3 and the link */
  margin-bottom: 0; /* Removes bottom margin */
}

.news-header-container a {
  margin-right: 10px; /* Adjust space between h3 and the link */
  margin-bottom: 0; /* Removes bottom margin */
}


.content-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .content-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.content-section-heading h2 {
  font-size: 2rem;
}

.content-section-heading-2 h2 {
  font-size: 2rem;
}


.content-section-heading h3 {
  font-size: 1rem;
  text-transform: uppercase;
}

.content-section-heading-2 h3 {
  font-size: 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.text-faded {
  color: rgba(255, 255, 255, 0.7);
}

/* Map */
.map {
  height: 30rem;
}

@media (max-width: 992px) {
  .map {
    height: 75%;
  }
}

.map iframe {
  pointer-events: none;
}

.scroll-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  display: none;
  width: 50px;
  height: 50px;
  text-align: center;
  color: white;
  background: rgba(52, 58, 64, 0.5);
  line-height: 45px;
}

.scroll-to-top:focus, .scroll-to-top:hover {
  color: white;
}

.scroll-to-top:hover {
  background: #343a40;
}

.scroll-to-top i {
  font-weight: 800;
}

.masthead {
  width: 100%;
  margin-top: 6rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #0061b7;
  
  background-size: cover;
  color: white;
}

.masthead h1 {
  font-size: 3rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.masthead h3 {
  text-align: center !important;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Side Menu */
#sidebar-wrapper {
  position: fixed;
  z-index: 2;
  right: 0;
  width: 250px;
  height: 100%;
  -webkit-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
  -webkit-transform: translateX(250px);
  transform: translateX(250px);
  background: #0061b7;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 250px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav li.sidebar-nav-item a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 15px;
}

.sidebar-nav li a:hover {
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
  text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
  font-size: 1.2rem;
  background: rgba(52, 58, 64, 0.1);
  height: 80px;
  line-height: 50px;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 15px;
}

.sidebar-nav > .sidebar-brand a {
  color: #fff;
}

.sidebar-nav > .sidebar-brand a:hover {
  color: #fff;
  background: none;
}

#sidebar-wrapper.active {
  right: 250px;
  width: 250px;
  -webkit-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
}

.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-link {
  font-weight: 600;
  color: var(--ink) !important;
  padding-left: 0.9rem !important;
  padding-right: 0.9rem !important;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand) !important;
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.45rem 1.25rem;
}

.dropdown-item:active {
  background-color: var(--brand);
}

.nav-cta {
  border-radius: 999px;
  padding: 0.45rem 1.25rem;
}

.menu-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  width: 50px;
  height: 50px;
  text-align: center;
  color: #fff;
  background: rgba(52, 58, 64, 0.5);
  line-height: 50px;
  z-index: 999;
}

.menu-toggle:focus, .menu-toggle:hover {
  color: #fff;
}

.menu-toggle:hover {
  background: #343a40;
}

.service-icon {
  background-color: #fff;
  color: #0061b7;
  height: 7rem;
  width: 7rem;
  display: block;
  line-height: 7.5rem;
  font-size: 2.25rem;
  -webkit-box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.callout {
  padding: 15rem 0;
  background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0.1)), to(rgba(255, 255, 255, 0.1))), url("https://heilabrot.is/img/bg-callout.jpg");
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%), url("https://heilabrot.is/img/bg-callout.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.callout h2 {
  font-size: 3.5rem;
  font-weight: 700;
  display: block;
  max-width: 30rem;
}

.portfolio-item {
  display: block;
  position: relative;
  overflow: hidden;
  max-width: 530px;
  margin: auto auto 1rem;
}

.portfolio-item .caption {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.2);
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.portfolio-item .caption .caption-content {
  color: #fff;
  margin: auto 2rem 2rem;
}

.portfolio-item .caption .caption-content h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.portfolio-item .caption .caption-content p {
  font-weight: 300;
  font-size: 1.2rem;
}

@media (min-width: 992px) {
  .portfolio-item {
    max-width: none;
    margin: 0;
  }

  .portfolio-item .caption .caption-content {
    -webkit-transition: opacity 0.25s;
    transition: opacity 0.25s;
    margin-left: 5rem;
    margin-right: 5rem;
    margin-bottom: 5rem;
  }

  .portfolio-item:hover .caption {
    background-color: rgba(29, 128, 159, 0.9);
    -webkit-clip-path: inset(2rem);
    clip-path: inset(2rem);
  }
}

a {
  color: #0061b7;
}

a:hover, a:focus, a:active {
  color: #004a8c;
}

.btn-primary {
  background-color: #0061b7 !important;
  border-color: #0061b7 !important;
  color: #fff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #004a8c !important;
  border-color: #004a8c !important;
}

.btn-secondary {
  background-color: #ecb807 !important;
  border-color: #ecb807 !important;
  color: #fff !important;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background-color: #ba9106 !important;
  border-color: #ba9106 !important;
}

.btn-dark {
  color: #fff !important;
}

.btn {
  font-weight: 600;
  border-radius: 999px;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
}

.btn-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 97, 183, 0.25);
}

.bg-primary {
  background-color: #0061b7 !important;
}

.text-primary {
  color: #0061b7 !important;
}

.text-secondary {
  color: #ecb807 !important;
}


/* ---------- Headings ---------- */

h1, h2, h3, h4, h5, h6 {
  color: inherit;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.page-title {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-title { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
}

/* ---------- Layout helpers ---------- */

.reading-container {
  max-width: 780px;
}

.narrow-container {
  max-width: 860px;
}

.bg-light {
  background-color: var(--surface) !important;
}

.read-more {
  font-weight: 600;
  text-decoration: none;
}

.read-more i {
  font-size: 0.8em;
  margin-left: 0.25rem;
  transition: transform 0.15s ease;
}

.read-more:hover {
  text-decoration: none;
}

.read-more:hover i.fa-arrow-right {
  transform: translateX(3px);
}

.read-more:hover i.fa-arrow-left {
  transform: translateX(-3px);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb-item.active {
  color: var(--muted);
}

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

.hero {
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--surface) 100%);
  padding: 4rem 0;
}

.hero-inner {
  display: flex;
  align-items: center;
}

.hero-image {
  flex: 0 0 55%;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(16, 24, 40, 0.12);
}

.hero-text {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 3rem;
  margin-left: -4rem;
  position: relative;
  box-shadow: 0 20px 45px rgba(16, 24, 40, 0.10);
}

.hero-eyebrow {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1.75rem;
}

.hero-actions .btn {
  margin: 0 0.5rem 0.5rem 0;
}

@media (max-width: 992px) {
  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-image {
    flex: none;
    width: 100%;
  }

  .hero-text {
    margin: -2rem 1rem 0;
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

/* ---------- Intro sections on the homepage ---------- */

.info-content-section {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

.info-content-section p {
  font-size: 1.075rem;
  line-height: 1.8;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.info-content-section .read-more {
  display: block;
  max-width: 760px;
  margin: 0 auto;
}

.info-container {
  padding: 0 15px;
}

/* ---------- Explainer section ---------- */

.explainer-section {
  background: var(--brand-tint);
  border-top: 1px solid #d4e3f3;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.explainer-container {
  max-width: 790px; /* same text column as the intro sections */
}

.section-eyebrow {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.explainer-section .section-title {
  margin-bottom: 1.75rem;
}

.explainer-section p:not(.section-eyebrow) {
  font-size: 1.075rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.explainer-section strong {
  color: var(--ink);
}

@media (max-width: 768px) {
  .explainer-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .explainer-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ---------- News cards ---------- */

.news-section {
  background-color: var(--surface);
}

.news-header-container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover,
.news-card:focus {
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.10);
}

.news-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--brand-tint);
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1.1rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.news-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0;
  transition: color 0.15s ease;
}

.news-card:hover .news-card-title {
  color: var(--brand);
}

.news-card-summary {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0.6rem 0 0;
}

/* ---------- Article ---------- */

.article-section {
  background: #fff;
}

.article-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.article-date {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .article-title { font-size: 1.65rem; }
}

.post {
  font-size: 1.075rem;
  line-height: 1.8;
}

.post p {
  margin-bottom: 1.35rem;
}

.post h2,
.post h3 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post img {
  max-width: 100%;
  max-height: 640px;
  height: auto;
  border-radius: 8px;
}

.post > div[style*="text-align: center"] {
  margin: 2.5rem 0;
}

.post > div > img + p,
.post > div > p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
}

.form-card label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  border-color: #cfd6de;
  border-radius: 6px;
}

.form-page .lead {
  font-size: 1.1rem;
  color: var(--muted);
}

@media (max-width: 576px) {
  .form-card { padding: 1.25rem; }
}

/* ---------- Board / accordion ---------- */

#accordion .card {
  border-color: var(--line);
}

#accordion .card-header {
  background: #fff;
}

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

footer.footer {
  background: #0f2740;
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.925rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  margin-right: 0.75rem;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

.footer-tagline {
  max-width: 320px;
}

.footer-heading {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  word-break: break-word;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Keep the footer at the bottom of the window on short pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
}

body > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

body > main > section:last-of-type {
  flex: 1 0 auto;
}

/* ---------- Mobile menu ---------- */

@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
    padding: 0.5rem 0 1rem;
  }

  .navbar-nav .nav-link {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0 0 0.25rem 0.9rem;
    background: transparent;
  }

  .nav-cta {
    margin: 0.75rem 0 0 0.9rem;
  }
}
