:root {
  --navy: #282a66;
  --navy-dark: #032141;
  --gold: #ffc107;
  --gold-soft: #ffc107bd;
  --ink: #555;
  --muted: #777;
  --line: #d9d7d7;
  --wash: #f7f7f7;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

section {
  padding: 70px 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Roboto", sans-serif;
}

.main-title {
  text-align: center;
  margin-bottom: 20px;
}

.main-title h1 {
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 36px;
  line-height: 0.9;
  margin-bottom: 56px;
  position: relative;
  display: inline-block;
}

.main-title h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 72px;
  height: 3px;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 6px 0 var(--gold);
}

.section-intro {
  max-width: 720px;
  margin: -24px auto 40px;
  text-align: center;
  color: var(--ink);
}

.custom-btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 150px;
  height: 52px;
  line-height: 50px;
  padding: 0;
  border: 1px solid var(--gold) !important;
  border-radius: 0;
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  background: transparent !important;
  overflow: hidden;
  transition: color 0.35s ease;
}

.custom-btn::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0;
  background: var(--gold);
  z-index: -1;
  transition: height 0.35s ease;
}

.custom-btn:hover,
.custom-btn:focus-visible {
  color: #000;
}

.custom-btn:hover::after,
.custom-btn:focus-visible::after {
  height: 100%;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 10000;
  display: grid;
  place-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.load-circle {
  width: 64px;
  height: 64px;
  border: 10px solid var(--gold);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-sticky,
.site-nav.menu-open {
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.wordmark {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--white) !important;
}

.wordmark span {
  color: var(--gold);
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 600;
  padding: 28px 15px !important;
  text-transform: capitalize;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--gold-soft);
}

.navbar-toggler {
  border: 0;
  background: var(--gold);
  width: 46px;
  height: 40px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler span {
  display: block;
  height: 3px;
  background: var(--white);
  border-radius: 1px;
}

#heroCarousel .carousel-item {
  position: relative;
  height: 100vh;
  min-height: 640px;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#heroCarousel .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 1;
  pointer-events: none;
}

#heroCarousel .carousel-caption {
  position: absolute;
  inset: 0 12% auto;
  top: 38%;
  bottom: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  z-index: 2;
  pointer-events: none;
}

#heroCarousel .hero-actions,
#heroCarousel .custom-btn {
  pointer-events: auto;
}

#heroCarousel .carousel-caption p {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-size: 16px;
}

#heroCarousel .carousel-caption h2 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
}

#heroCarousel .carousel-caption h2 span {
  color: var(--gold);
}

.hero-lead {
  max-width: 640px;
  color: #f3f3f3;
  font-size: 14px;
  margin: 8px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#heroCarousel .custom-btn {
  margin: 0;
}

#heroCarousel .carousel-indicators {
  z-index: 6;
  bottom: 36px;
  margin-bottom: 0;
}

#heroCarousel .carousel-indicators [data-bs-target] {
  box-sizing: border-box !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  padding: 0 !important;
  margin: 0 7px;
  text-indent: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  background-clip: border-box;
  opacity: 0.9;
  overflow: hidden;
}

#heroCarousel .carousel-indicators .active {
  background-color: var(--gold);
  opacity: 1;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  z-index: 6;
  width: 8%;
}

.about-details h5 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.about-details p {
  text-align: justify;
  margin-right: 12px;
  color: var(--muted);
}

.about-icons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.about-icon-text {
  flex: 1;
  background: rgba(0, 0, 0, 0.08);
  padding: 20px 14px;
  text-align: center;
  transition: 0.45s ease;
}

.about-icon-text:hover {
  background: var(--gold-soft);
  box-shadow: 5px 5px rgba(0, 0, 0, 0.17);
}

.ab-icon i {
  font-size: 30px;
  color: var(--gold);
}

.about-icon-text:hover .ab-icon i {
  color: var(--white);
}

.ab-icon h5 {
  color: var(--ink);
  margin: 12px 0 6px;
  font-size: 16px;
}

.ab-icon p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.about-img {
  position: relative;
  min-height: 380px;
  padding-top: 24px;
}

.about-main {
  width: 92%;
  height: 430px;
  object-fit: cover;
  margin-left: auto;
  display: block;
  box-shadow: 10px 10px rgba(0, 0, 0, 0.08);
}

.about-small {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 46%;
  height: 180px;
  object-fit: cover;
  box-shadow: 8px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

#services,
#contact {
  background: var(--wash);
}

.card-row {
  margin-bottom: 42px;
}

.feature-card {
  position: relative;
  margin-top: 28px;
  height: calc(100% - 28px);
}

.feature-details {
  border: 1px solid #282a661a;
  background: var(--white);
  padding: 48px 24px 28px;
  box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.15);
  height: 100%;
  min-height: 210px;
  transition: 0.7s ease-in-out;
}

.feature-details h4 {
  color: var(--ink);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.feature-details p {
  text-align: center;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.feature-icon i {
  position: absolute;
  left: 50%;
  top: -21px;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 12px 40px;
  font-size: 20px;
  line-height: 1;
  transition: background 0.3s ease;
}

.feature-card:hover .feature-icon i {
  background: var(--gold);
}

.feature-card:hover .feature-details {
  background: var(--navy);
  color: var(--white);
  box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.4);
}

.feature-card:hover .feature-details h4,
.feature-card:hover .feature-details p {
  color: var(--white);
}

.catalog-card {
  position: relative;
  padding-top: 18px;
  height: 100%;
}

.price {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  transition: 0.3s ease;
  height: 100%;
}

.price:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.price li {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
}

.price .header {
  color: var(--navy);
  font-size: 25px;
  font-weight: 900;
  padding-top: 36px;
  padding-bottom: 8px;
}

.price .header p {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-transform: capitalize;
  margin: 10px 0 0;
}

.price .grey {
  font-size: 14px;
}

.button-p {
  padding: 28px 20px !important;
}

.button {
  display: inline-block;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 10px 25px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.price:hover .button {
  background: var(--navy);
  color: var(--gold);
}

.price-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.price-icon i {
  width: 40px;
  height: 40px;
  line-height: 36px;
  text-align: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
}

.price:hover .price-icon i {
  background: var(--navy);
  color: var(--gold);
}

#practice {
  background: var(--wash);
}

.practice-card {
  background: var(--white);
  text-align: center;
  padding: 36px 24px;
  box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.12);
  height: 100%;
}

.practice-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
}

.practice-card h4 {
  color: var(--navy);
  margin-bottom: 12px;
}

.practice-card p {
  margin: 0;
  font-size: 14px;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.2fr;
  grid-template-rows: 250px 250px;
  gap: 6px;
}

.insight-grid .item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

.insight-grid .item:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.insight-grid .item:nth-child(3) {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

.insight-grid .item:nth-child(4) {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}

.insight-grid .item {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 220px;
}

.insight-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, rgba(40, 42, 102, 0.05), rgba(40, 42, 102, 0.82));
  color: var(--white);
  opacity: 1;
  transition: 0.45s ease;
}

.insight-grid .item:hover .insight-copy,
.insight-grid .item:focus-within .insight-copy {
  background: linear-gradient(180deg, rgba(40, 42, 102, 0.2), rgba(40, 42, 102, 0.9));
}

.insight-copy h4 {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.insight-copy p {
  margin: 0;
  color: var(--white);
}

.contact-form .form-group {
  margin-bottom: 14px;
}

.contact-form .input-group-text {
  background: var(--white);
  border-radius: 0;
  color: var(--gold);
}

.contact-form .input-group-text i,
.contact-list i,
.footer-contact i,
.footer-links i {
  color: var(--gold);
}

.contact-form .form-control,
.contact-form .input-group-text,
.button,
.navbar-toggler {
  border-radius: 0;
}

.contact-form .form-control {
  text-transform: none;
  font-size: 14px;
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 0.2rem #ffc10738;
  border-color: var(--gold);
}

.submit-btn {
  color: #111 !important;
  background: var(--gold) !important;
}

.submit-btn::after {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}

.contact-panel {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.contact-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.contact-panel-body {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(40, 42, 102, 0.92));
  color: var(--white);
  padding: 48px 28px 28px;
}

.contact-panel-body h3 {
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
}

.contact-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.contact-list li,
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.contact-list a,
.contact-panel-body p {
  color: var(--white);
}

.contact-list i {
  width: 18px;
  margin-top: 4px;
}

#footer {
  position: relative;
  background: #1c1e4a;
  padding: 70px 0 40px;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.92;
}

#footer .container {
  position: relative;
  z-index: 1;
}

.footer-blurb {
  color: var(--white);
  font-size: 14px;
  margin-top: 16px;
}

.footer-heading,
.footer-contact span,
.footer-contact a,
.footer-links a {
  color: var(--white);
}

.footer-heading {
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-links a:hover,
.footer-contact a:hover,
.contact-list a:hover {
  color: var(--gold);
}

.wordmark-light {
  display: inline-block;
  margin-bottom: 8px;
}

#copyright {
  padding: 12px 0;
  background: var(--navy-dark);
  text-align: center;
}

#copyright p {
  margin: 0;
  color: var(--white);
  font-size: 14px;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--navy);
    margin-top: 8px;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px !important;
  }

  .about-icons {
    flex-direction: column;
  }

  .about-img {
    margin-top: 32px;
  }

  .insight-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }

  .insight-grid .item:nth-child(1),
  .insight-grid .item:nth-child(2),
  .insight-grid .item:nth-child(3),
  .insight-grid .item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .insight-copy {
    opacity: 1;
    background: rgba(40, 42, 102, 0.55);
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 52px 0;
  }

  .main-title h1 {
    font-size: 28px;
  }

  #heroCarousel .carousel-item {
    min-height: 560px;
  }

  #heroCarousel .carousel-caption {
    top: 30%;
    inset: 0 10% auto;
  }

  .insight-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .about-main {
    width: 100%;
    height: 280px;
  }

  .about-small {
    width: 42%;
    height: 130px;
  }
}
