:root {
  --brand-yellow: #ffc800;
  --brand-dark: #1d1f21;
  --brand-light: #f7f8fa;
  --text-color: #212529;
  --muted-color: #6c757d;
  --border-color: #dee2e6;
  --link-color: #0f6f9e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-color);
  background: #fff;
  font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link-color);
}

a:hover,
a:focus-visible {
  color: #0a5a7f;
}

img {
  max-width: 100%;
  height: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h4,
.h5 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.05rem);
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
}

h3,
.h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.h5 {
  font-size: 1.08rem;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.row {
  --gutter-x: 1.5rem;
  --gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--gutter-y));
  margin-right: calc(-0.5 * var(--gutter-x));
  margin-left: calc(-0.5 * var(--gutter-x));
}

.row > * {
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
  margin-top: var(--gutter-y);
}

.g-3 {
  --gutter-x: 1rem;
  --gutter-y: 1rem;
}

.g-4,
.gy-4 {
  --gutter-x: 1.5rem;
  --gutter-y: 1.5rem;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }

  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }
}

.d-flex {
  display: flex !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.h-100 {
  height: 100% !important;
}

.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.ms-auto {
  margin-left: auto !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

@media (min-width: 992px) {
  .my-lg-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .text-lg-start {
    text-align: left !important;
  }

  .text-lg-end {
    text-align: right !important;
  }

  .p-lg-5 {
    padding: 3rem !important;
  }

  .py-lg-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

.text-center {
  text-align: center !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.text-muted {
  color: var(--muted-color) !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.link-dark {
  color: #1d1f21 !important;
}

.border-0 {
  border: 0 !important;
}

.rounded-3 {
  border-radius: 0.65rem !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08) !important;
}

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

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.page-section {
  padding: 5.2rem 0;
  scroll-margin-top: 6rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-subheading {
  max-width: 720px;
  margin: 0 auto 2.2rem;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.7rem 0;
  background: rgba(18, 21, 27, 0.92);
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar.navbar-shrink {
  background: rgba(14, 17, 23, 0.97);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.18);
}

.navbar-brand img {
  height: 2rem;
  width: auto;
}

.navbar-toggler {
  margin-left: auto;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 1.3rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar-toggler-icon-custom {
  line-height: 1;
}

.navbar-collapse {
  width: 100%;
}

.collapse:not(.show) {
  display: none;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.65rem 0.4rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-yellow);
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

.nav-item {
  display: block;
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-wrap: nowrap;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: flex-end;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
}

.masthead {
  position: relative;
  min-height: 72vh;
  padding-top: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 24, 0.34) 0%, rgba(18, 20, 24, 0.6) 100%);
  pointer-events: none;
}

.masthead > .container {
  position: relative;
  z-index: 2;
}

.masthead-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.masthead-subheading,
.masthead-heading,
.masthead-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.masthead-subheading {
  margin-bottom: 0.8rem;
}

.masthead-text {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 991.98px) {
  .masthead {
    min-height: 66vh;
    padding-top: 6rem;
  }
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.78rem 1.25rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-xl {
  padding: 1rem 1.35rem;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--brand-yellow);
  color: #17191b;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #e8b500;
  color: #111;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  border-color: #97a4b4;
  color: #202833;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: #eef1f5;
  color: #171f29;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: #1d1f21;
  box-shadow: inset 0 0 0 0.2rem rgba(0, 0, 0, 0.06);
}

.service-icon .icon-svg {
  width: 2.15rem;
  height: 2.15rem;
}

.portfolio-item {
  background: #fff;
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 0.2rem 0.7rem rgba(16, 22, 31, 0.07);
}

.portfolio-link {
  position: relative;
  display: block;
}

.portfolio-hover {
  position: absolute;
  inset: 0;
  background: rgba(24, 30, 39, 0.66);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-link:hover .portfolio-hover,
.portfolio-link:focus-visible .portfolio-hover {
  opacity: 1;
}

.portfolio-hover-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.plus-symbol {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  color: #fff;
}

.plus-symbol .icon-svg {
  stroke-width: 2.4;
}

.portfolio-caption {
  padding: 1rem 1rem 1.2rem;
}

.portfolio-caption-heading {
  margin-bottom: 0.3rem;
}

.portfolio-caption-subheading {
  margin: 0;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 0.55rem;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

.info-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.info-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.45rem 1rem rgba(20, 30, 44, 0.12);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.9rem;
  color: var(--brand-yellow);
}

.info-icon .icon-svg {
  width: 3rem;
  height: 3rem;
}

.info-title {
  color: var(--brand-yellow);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  text-align: center;
}

.info-cta-link {
  display: inline-block;
  margin-top: auto;
  align-self: center;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc800 0%, #e4af00 100%);
  color: #15181d;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0.4rem 0.9rem rgba(255, 200, 0, 0.28);
}

.info-cta-link:hover,
.info-cta-link:focus-visible {
  color: #111;
  transform: translateY(-1px);
  text-decoration: none;
}

.modal-detail-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5f6d7f;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.modal-detail-link:hover,
.modal-detail-link:focus-visible {
  color: #3e4a5a;
}

.insight-modal .modal-dialog {
  max-width: 560px;
}

.modal-dialog-centered {
  min-height: calc(100% - 2rem);
  display: flex;
  align-items: center;
}

.insight-modal .modal-content.insight-modal-card {
  border: 1px solid rgba(255, 200, 0, 0.35);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(255, 200, 0, 0.22), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 1rem 2.6rem rgba(16, 23, 34, 0.28);
}

.insight-kicker {
  margin: 0 0 0.4rem;
  color: #8b6b00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.insight-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 0, 0.35);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fffdf5 0%, #fff8e6 100%);
}

.insight-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.insight-modal.fade .modal-dialog {
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.insight-modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.contact-card a {
  color: #0b6fa4;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.6rem 0.72rem;
  border: 1px solid #cfd6df;
  border-radius: 0.45rem;
  background-color: #fff;
  color: var(--text-color);
}

.form-control:focus,
.form-check-input:focus,
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 200, 0, 0.45);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.25rem rgba(255, 200, 0, 0.25);
}

.form-control.is-invalid,
.form-check-input.is-invalid {
  border-color: #dc3545;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5rem;
}

.form-check-input {
  float: left;
  margin-left: -1.5rem;
  margin-top: 0.3rem;
  width: 1rem;
  height: 1rem;
}

.form-check-label {
  display: inline;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-feedback,
.form-check-input.is-invalid + .form-check-label + .invalid-feedback {
  display: block;
}

.alert {
  position: relative;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.footer {
  border-top: 1px solid #e7ecf2;
  background: #fff;
}

.about-steps li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.item-intro {
  margin-bottom: 1rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.show {
  display: block;
}

.modal.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.modal.show {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.5rem auto;
  pointer-events: none;
}

.modal-lg {
  max-width: 860px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.6rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.58;
}

.modal-open {
  overflow: hidden;
}

.close-modal {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
}

.close-modal img {
  width: 100%;
  height: 100%;
}

.portfolio-modal .modal-content {
  padding-top: 1.5rem;
}

#submitSuccessMessage,
#submitErrorMessage {
  margin-bottom: 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
