* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  /* margin-top: 80px; */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: normal;
}

ul {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #0c2d57;
  --accent: #127681;
  --bg: #f9f9f9;
  --text: #333;
  --gold: #957c3d;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", sans-serif;
  /* background: #fff; */
  line-height: 1.6;
}
.dropdown-item {
  /* background-color: #f9f9f9; Sub-menu background color */
  padding: 10px 10px;
  border-radius: 4px;
  color: var(--smdm-light-blue) !important;
}

/* Hide the dropdown by default */
.dropdown-menu {
  display: none;
}

/* Show the dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.page-link {
  color: var(--smdm-light-blue);
}

.page-link.current {
  background-color: var(--smdm-blue);
}
article {
  margin: 20px 5px;
}

/* Hide the dropdown on mobile screens */
@media screen and (max-width: 767px) {
  .dropdown-menu {
    background-color: var(--smdm-light-grey);
  }

  a.dropdown-item {
    max-width: 100% !important;
    text-wrap: wrap;
  }
}

.dropdown-menu {
  text-transform: none;
  font-size: 1rem;
  font-weight: bold;
}

.search-form .search-field:focus,
.wp-block-search__input,
input:focus,
textarea:focus,
select:focus,
button.navbar-toggler:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5) !important; /* Add focus glow */
  border-color: var(--smdm-blue-accent) !important;
}

.dropdown-item:active {
  color: var(
    --smdm-light-blue
  ) !important; /* Example: change to tomato color when clicked */
  background-color: #f0f0f0 !important; /* Optional: background color change */
}

.dropdown-item:hover {
  color: var(
    --smdm-light-blue
  ) !important; /* Example: change to tomato color when clicked */
  background-color: #f0f0f0 !important; /* Optional: background color change */
}

/* ================================================================= HOME PAGE CONTENT ================================================================= */

ul {
  margin: 0;
  padding: 0;
}

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

#main-nav > div > a > img,
#wrapper-footer > footer > div.c-container > div > div > img {
  max-width: 300px;
}

#main-nav > div > a > img {
  padding-left: 1%;
}

#main-nav > div > a > img:hover {
  scale: 103%;
}

/*Navigation*/
#navbarNavDropdown a.nav-link {
  color: #ffffffff;
  white-space: nowrap;
  padding-right: 20px !important;
  text-shadow: 0.5px 0.5px 0.5px;
}

#navbarNavDropdown a.nav-link:last-child {
  padding-right: 2%;
}
#navbarNavDropdown a.nav-link:hover {
  color: #00c4f2;
  transition: 0.3s ease-in-out;
}

/* Transparent navbar (default state) */
#main-nav {
  background-color: transparent !important; /* Override Bootstrap background */
  transition: background-color 0.3s ease; /* Smooth transition */
  position: fixed;
}

/* Non-transparent navbar (on scroll) */
#main-nav.navbar-fixed {
  background-color: #111 !important; /* Non-transparent background */
}

/* #menu-item-49 > a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 10px;
  border-radius: 10px;
  text-shadow: 0px 0px 0px !important;
}

#menu-item-49 > a:hover {
  scale: 103%;
}  */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--primary) !important;
}

#main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a.nav-link {
  color: white;
  position: relative;
  text-decoration: none;
}

/* Hover style, excluding the last one */
#main-menu li:not(:last-child) a.nav-link:hover {
  color: white;
  font-weight: bold;
}

/* Underline for all except last item */
#main-menu li:not(:last-child) a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background-color: #957c3d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#main-menu li:not(:last-child) a.nav-link:hover::after {
  transform: scaleX(1);
}

#main-menu li:last-child a.nav-link {
  background-color: white;
  color: var(--primary);
  border-radius: 10px;
  margin-left: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding-right: 18px;
}

#main-menu li:last-child a.nav-link:hover {
  scale: 103%;
}

#main-menu li:last-child a.nav-link::before {
  content: "📞 ";
  font-size: 1em;
  margin-right: 5px;
  margin-top: 5px !important;
}

.hero {
  background: url("../img/building.avif") center/cover no-repeat;
  /* background: url("../img/building2.avif") center/cover no-repeat; */
  /* background: url("../img/building3.avif") center/cover no-repeat;  */
  /* background: url("../img/skyline.avif") center/cover no-repeat;  */

  padding: 8rem 6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: white;
  min-height: 100vh;
  background-attachment: fixed;
  position: relative;
}

.hero-caption {
  font-style: italic;
  padding: 0;
}

.hero p {
  max-width: 800px;
  font-size: larger;
}

.hero-text {
  max-width: 850px;
  padding: 2rem 2.5rem;
  background: rgba(12, 45, 87, 0.5);
  border-radius: 5px;
  margin-top: 20px;
}

.hero h1 {
  font-size: 2.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.headline-span {
  /* color: var(--primary); */
  /* font-weight: 700; */
}

.hero .tagline {
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.9;
  color: #ffffff;
}

.hero-list {
  margin-left: 20px !important;
  margin-bottom: 10px;
}

.hero .subheadline {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffdc73;
  text-transform: capitalize;
}

.learn-more {
  display: inline-block;
  background-color: white;
  padding: 10px 20px;
  border-radius: 10px;
  margin: 10px 0px;
  text-decoration: none;
  font-weight: bold;
  color: var(--primary);
}

.learn-more:hover {
  cursor: pointer;
  color: var(--gold);
  font-size: 101%;
}

.learn-more:hover::after {
  content: " $";
}

.form-box {
  background: white !important;
  color: #000 !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 8px !important;
  width: 100% !important;
  max-width: 400px !important;
  margin-top: 2rem !important;
}

.form-box input,
.form-box textarea,
.form-box button,
.form-box .wpcf7-form-control {
  width: 100% !important;
  padding: 0.75rem !important;
  /* margin-bottom: 1rem !important; */
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
}

.form-box textarea {
  max-height: 120px;
}

.form-box button {
  background: var(--accent) !important;
  color: white !important;
  font-weight: bold !important;
  border: none !important;
  cursor: pointer !important;
}

.form-box .wpcf7-submit {
  /* background: var(--gold) !important; */
  background: var(--primary) !important;

  /* filter: brightness(1.3); */
  color: white !important;
  font-weight: bold !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0.75rem !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
}

.form-box .wpcf7-submit:hover {
  /* background: var(--gold) !important; */
  filter: brightness(1.3);
}


#chat-launcher {
  position: fixed;
  bottom: 50px;
  right: 20px;
  background-color: #103565;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  z-index: 9999;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
#chat-modal {
  display: none;
  position: fixed;
  bottom: 120px;
  right: 20px;
  background: #fff;
  width: 320px;
  max-width: 90%;
  max-height: 60vh; /* limit height */
  overflow-y: auto; /* scroll if needed */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}
#chat-modal p,
#chat-modal label {
  font-size: 14px;
  color: #333;
}
#chat-modal input,
#chat-modal textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 100px;
}
#chat-modal input[type="submit"] {
  background-color: #103565;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}
#chat-modal input[type="submit"]:hover {
  background-color: #0d2e4d;
}

@media screen and (max-width: 400px) {
  #chat-modal {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

section {
  padding: 3rem 2rem;
}
.highlights {
  background: var(--gold);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.highlights div {
  flex: 1 1 150px;
  background: white;
  padding: 1rem;
  border-left: 4px solid var(--accent);
}

.highlight-card {
  background-color: var(--primary);
  border-left: 5px solid var(--gold);
  padding: 1rem 1rem 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-weight: 600;
  color: white;
  filter: brightness(1.1);
}

#about-section {
  padding: 4rem 2rem;
  /* background: #f4f6f9; */
  color: var(--text);
}

.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}

.about-text {
  flex: 1 1 45%;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.about-highlights {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#services {
  /* background-color: var(--primary); */
  background: #f4f6f9;
  /* color: white; */
  text-align: center;
  padding: 3rem 1rem;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: bold;
}

#services p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-item {
  background-color: rgba(255, 255, 255, 0.05);
  background-color: var(--accent);
  /* filter: brightness(1.3); */
  height: 145px;
  border-radius: 10px;
  padding: 0.4rem 0.1rem;
  transition: background 0.3s ease;
  border: 5px solid var(--gold);
  /* border-image: linear-gradient(45deg,var(--gold), #ffb400) 1; */

  box-shadow: 0 4px 12px rgba(12, 45, 87, 0.6);
}
.service-item {
  /* outline: 2px solid #0c2d57; */
  box-shadow: inset 0 0 0 4px #f4f6f9;
}

.service-item:hover {
  scale: 101%;
}

.service-icon {
  width: 50px;
  height: 50px;
  /* background-color: rgba(255, 255, 255, 0.2); */
  /* border-radius: 50%; */
  margin: 10px 10px;
  object-fit: cover;
}

.service-item p {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  color: #111;
  font-weight: bold;
}

.receivables-section {
  background: #f4f6f9;
  padding: 4rem 1rem;
  border-top: 1px solid #0c2d57;
}

.receivables-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.receivables-header {
  text-align: center;
  margin-bottom: 3rem;
}

.receivables-header h2 {
  font-size: 2rem;
  color: #0c2d57;
  font-weight: 700;
}

.receivables-header .subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

.receivables-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.receivables-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(12, 45, 87, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* This centers all children horizontally */
}

.receivables-card:hover {
  transform: translateY(-5px);
}

.receivables-card .icon {
  font-size: 2rem;
  display: flex;
  color: #0c2d57;
  margin: 0 auto;
  margin-bottom: 40px !important;
}

.receivables-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #0c2d57;
}

.receivables-card ul {
  padding-left: 1.2rem;
  color: #333;
}

.receivables-card ul li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.receivables-card .tier {
  margin-bottom: 1rem;
}

.receivables-card .tier h4 {
  font-size: 1rem;
  color: #0c2d57;
  margin-bottom: 0.3rem;
}

.approach ul {
  margin: 1rem 0;
  padding-left: 1rem;
}

.section-compliance {
  padding: 3rem 1rem;
  background-color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

.section-compliance .section-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #103565; /* Adjust to your palette */
}

.section-compliance .section-description {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #333;
}

.section-compliance div {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.compliance-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: auto;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  place-content: center; /* center grid horizontally and vertically if needed */
  align-items: center;
  justify-content: center;
}

.compliance-list li {
  display: flex;
  flex-direction: column;
  justify-content: center; /* center vertically within the li */
  align-items: center;
  text-align: center;
  background: white;
  border: 5px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem;
  box-sizing: border-box;
  min-height: 260px;
  height: 100%; /* helps alignment across rows */
}

.compliance-list li img {
  width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.compliance-list li .text {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}
.faq-section {
  /* background-color: #f9f9f9; */
  border-top: 1px solid var(--primary);
  padding: 4rem 1rem;
  min-height: 550px;
  padding-top: 4.5rem;
}

.faq-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--darkblue, #103565);
}

.faq-item {
  border-bottom: 1px solid #ccc;
  padding: 1rem 0;
  position: relative;
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-question {
  display: block;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  padding-right: 2rem;
  position: relative;
  color: #333;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item input[type="checkbox"]:checked + .faq-question::after {
  content: "–";
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  padding-top: 0; /* prevent spacing before open */
  margin-top: 0; /* also prevent spacing */
}

.faq-item input[type="checkbox"]:checked + .faq-question + .faq-answer {
  max-height: 500px; /* large enough to fit most answers */
  opacity: 1;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

#map {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  /* border: 3px solid var(--gold); */
}

.consultation {
  display: inline-block;
  margin-top: 1rem;
  background: white;
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
}

.consultation:hover {
  color: var(--gold);
}

.text {
  font-size: 1rem;
  line-height: 1.4;
}

.cta {
  background: var(--primary);
  color: white;
  text-align: center;
}

#contact h2 {
  margin-bottom: 20px;
}

.footer {
  background: #222;
  color: #bbb;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.footer a {
  color: #bbb;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  position: relative;
}

.bottom-logo {
  width: 300px;
  position: absolute;
  left: 40px;
  top: 23px;
}

.social-icons {
  margin-bottom: 10px;
}

footer a:hover,
.social-icons a:hover {
  color: var(--gold); /* or your brand color */
  /* font-weight: bold; */
}

@media (max-width: 768px) {
  #navbarNavOffcanvas {
    background-color: var(--primary) !important;
  }

  a.nav-link:last-child {
    margin-top: 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 20px;
    margin-top: 20px;
    min-height: auto;
  }
  .hero-text {
    padding: 40px 10px;
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .subheadline {
    font-size: 1.1rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero-list {
    text-align: left;
  }

  .hero .form-box {
    margin-top: 10px !important;
  }

  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    margin: 0 auto;
  }

  .compliance-list {
    grid-template-columns: 1fr;
    max-width: 90%;
    padding-left: 0 !important;
  }

  .compliance-list li {
    align-items: flex-start;
    text-align: left;
  }

  .compliance-list li img {
    margin-bottom: 0.75rem;
    margin-left: auto;
    margin-right: auto;
  }

  .bottom-logo {
    display: none;
  }
}

.form-box h3 {
  color: var(--darkblue, #103565);
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.form-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-box input[type="file"] {
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 6px;
}

#form-preview {
  background: #eef2f7;
  padding: 1rem;
  border-radius: 6px;
  display: none;
}
