html {
  font-size: 14px;
  scroll-behavior: smooth;
}

/* Global Typography Standards */
body {
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--brand-black-500);
  line-height: 1.6;
}

main {
  background-color: white;
}

section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  padding-left: 0;
  padding-right: 0;
}

section#hero {
  padding: 0;
}

a {
  text-decoration: none;
}

ul.not-bulleted {
  list-style: none;
}

a[href^="tel"],
a[href^="mailto"] {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
}

/* Make all text-primary links bold */
a.text-primary {
  font-weight: 700;
}

/* Form Submit Button Styles */
.form-submit-btn {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
  transition: all 0.3s ease;
}

.form-submit-btn:hover:not(:disabled) {
  background-color: #c82333;
  border-color: #bd2130;
  color: white;
}

.form-submit-btn:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  opacity: 0.65;
  cursor: not-allowed;
}

.form-submit-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}

.nav .brand,
.nav a {
  color: whitesmoke !important;
}

.rounded-button {
  border-radius: 1.6rem !important;
}

.min-vh-25 {
  min-height: 25vh;
}

.min-vh-33 {
  min-height: 33vh;
}

.min-vh-50 {
  min-height: 50vh;
}

.min-vh-75 {
  min-height: 75vh;
}

.card {
  border-radius: 1.6rem;
  /*background-color: #f8f8f8 !important;*/
  border: #d8d8d8 solid 1px;
  box-shadow: unset;
}

/* START OF - ACCORDION CSS OVERRIDES */

.accordion button h2 {
  margin: 0;
  padding: 2rem;
}

.accordion-item:first-of-type {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.accordion-item {
  background: none;
  border: none;
}

.accordion-button:not(.collapsed) {
  color: black;
  background: none;
  box-shadow: none;
  border-bottom: 2px solid white;
  font-size: large;
  text-align: left;
  font-weight: bold;
}

.accordion button {
  background: none;
  border: none;
  border-bottom: 2px solid white;
  text-align: left;
  font-size: large;
  text-align: left;
  font-weight: bold;
}

.accordion-body {
  padding: 3rem;
}

.accordion-button:focus {
  border: none;
  box-shadow: none;
}

/* END OF - ACCORDION CSS OVERRIDES */

.border-primary {
  border-color: var(--color-primary) !important; /* overrides bootstrap utilities*/
}

.submit-form {
  background-color: #ededed;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  width: 100%;
  height: 100%;
}

.support-img {
  height: 415px;
}

/* START - HERO SECTION STYLES */

#hero {
}

#hero-content {
  color: white;
  padding: 10rem 5rem;
  max-width: 1680px;
  margin: 0 auto;
  justify-content: center;
  align-items: flex-start;
}

.centered-overlay {
  /*position: absolute;*/

  /*padding-left: 1rem;*/
  min-width: 300px;
  text-align: center;
}

/*.centered-overlay { //edited out to adjust homepage. Unsure of trickledown effects
    position: absolute;
    text-align: left;
    margin-left: 1rem;
    margin-top: 3rem;
    min-width: 300px;
}*/

.grad-container {
  /*
    position: relative;
    text-align: center;
    color: white;
    */
}

.gradient-div {
  /*
    height: 90vh;
    min-height: 350px;
    max-height: 650px;
    */
}

.grad-img {
  float: right;
  /*max-height: 350px;*/
  width: 100%;
}

.force-break {
  white-space: pre-wrap; /* allows the \A line breaks to render */
}

/* Insert line break after "Ideas" */
.force-break::after {
  content: "";
}

/* END - HERO SECTION STYLES */

/* Homepage */

.image-background {
  background-image: url("/images/hero-homepage-2025.jpg");
  background-size: cover;
  /*background-position-x: calc(100% + 500px);
    background-position-y: calc(100% + 0px);*/
  background-repeat: no-repeat;
}

.footer-container {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center; /* centers vertically */
  position: relative;
  text-align: center;
  padding: 2rem 0 4rem 0;
  height: 275px;
}

.footer-overlay {
  padding-top: 2rem;
  max-width: 500px;
}

.caption-height {
  height: 465px;
}

.an-logo-footer {
  max-height: 72px;
}

.icon-spacing {
  margin-right: 2.5rem;
  line-height: 1.6;
}

.hr-thin {
  height: 0.1rem;
}

.footer-button {
  background-color: whitesmoke;
  color: #a7252c !important;
  height: 75px;
  max-width: 250px;
}

.message-button {
  background: white;
  width: 90%;
}

.footer-text {
  font-size: 1.3rem;
}

.footer-icon {
  font-size: 3rem;
}

.contact-button-text {
  font-size: 2.5rem;
  font-weight: 300;
}

.customer-login-button {
  border-radius: 1.6rem;
  width: 200px;
  padding: 15px;
  display: unset;
}

/* WE SHOULDN'T NEED ANY OF THESE. These are built-in Bootstrap classes and duplicative of the Bootstrap CSS files. I will look into migrating */

.m-6 {
  margin: 4rem;
}

.m-7 {
  margin: 5rem;
}

.m-8 {
  margin: 6rem;
}

.m-9 {
  margin: 7rem;
}

.m-10 {
  margin: 8rem;
}

.mt-6 {
  margin-top: 4rem;
}

.mt-7 {
  margin-top: 5rem;
}

.mt-8 {
  margin-top: 6rem;
}

.mt-9 {
  margin-top: 7rem;
}

.mt-10 {
  margin-top: 8rem;
}

.mb-6 {
  margin-bottom: 4rem;
}

.mb-7 {
  margin-bottom: 5rem;
}

.mb-8 {
  margin-bottom: 6rem;
}

.mb-9 {
  margin-bottom: 7rem;
}

.mb-10 {
  margin-bottom: 8rem;
}

.my-6 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.my-7 {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.my-8 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.my-9 {
  margin-top: 7rem;
  margin-bottom: 7rem;
}

.my-10 {
  margin-top: 8rem;
  margin-bottom: 8rem;
}

.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-7 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-8 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-9 {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.py-10 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.px-6 {
  padding-left: 4rem;
  padding-right: 4rem;
}

.px-7 {
  padding-left: 5rem;
  padding-right: 5rem;
}

.px-8 {
  padding-left: 6rem;
  padding-right: 6rem;
}

.px-9 {
  padding-left: 7rem;
  padding-right: 7rem;
}

.px-10 {
  padding-left: 8rem;
  padding-right: 8rem;
}

.p-6 {
  padding: 4rem;
}

.p-7 {
  padding: 5rem;
}

.p-8 {
  padding: 6rem;
}

.p-9 {
  padding: 7rem;
}

.p-10 {
  padding: 8rem;
}

.ps-6 {
  padding-left: 4.5rem;
}
.ps-7 {
  padding-left: 6rem;
}
.ps-8 {
  padding-left: 7.5rem;
}
.ps-9 {
  padding-left: 9rem;
}
.ps-10 {
  padding-left: 12rem;
}

.pe-6 {
  padding-left: 4.5rem;
}
.pe-7 {
  padding-left: 6rem;
}
.pe-8 {
  padding-left: 7.5rem;
}
.pe-9 {
  padding-left: 9rem;
}
.pe-10 {
  padding-left: 12rem;
}

.rounded-default {
  border-radius: 1rem !important;
}

.rounded-architectnow {
  border-radius: 12px;
}

/* End of bootstrap margin/padding declarations */

/* Homepage Clients Section Start */
.client-logo {
  max-width: 180px;
  height: auto;
  object-fit: contain;
  transition: filter 0.4s ease, opacity 0.4s ease;
  filter: none;
  opacity: 1;
}

.client-logo:hover {
  filter: grayscale(100%);
  opacity: 0.75;
}

/* Homepage Client Section End */

.container-wide {
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 calc(var(--grid-gutter) / 2);
  width: 96%;
}

#partnerships h4 {
  width: 100%;
}

.logo-container {
  z-index: 2;
  position: relative;
  border-radius: 12px;
  width: 200px;
  height: 200px;
}

.partnership-content {
  position: relative;
  z-index: 1;
}

.rotate-90-cc {
  transform: rotate(-90deg);
}

.no-gutter {
  margin-left: 0;
  margin-right: 0;
}

.custom-error-message {
  background-color: #f8d7da;
  /* Light red background */
  border: 1px solid #f5c2c7;
  /* Red border */
  color: #842029;
  /* Dark red text */
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 16px;
}

.custom-error-message strong {
  font-weight: bold;
}

.cta-caption {
  font-weight: 200;
  max-width: 650px;
}

/* Moved from Index.css to be reused on multiple pages */
.microsoft-image-right-margin {
  width: 25%;
  margin-right: 30px;
  margin-bottom: 0;
  margin-top: 0;
}

.microsoft-image-no-right-margin {
  width: 25%;
  margin-bottom: 0;
  margin-top: 0;
}

/* REUSABLE CARD STYLES - START */

.stat-row {
  /* THESE ARE THE LITTLE CARDS WITH JUST A STAT*/
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.stat-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  flex: 1 1 250px;
  /*padding: 2rem;*/
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.stat-card-header {
  height: 130px;
  max-height: 150px;
  padding: 1.5rem;
  width: 100%;
}

.stat-card-body {
  padding: 2rem;
  width: 100%;
}

.stat-card-footer {
  padding: 2rem;
  width: 100%;
}

.stat-value {
  font-size: 6.5rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 2rem;
  color: #666;
  text-align: center;
}

#custom-dev-services .stat-row,
#ai-integration .stat-row,
#microsoft-cloud .stat-row {
  gap: 4rem;
  /* Increased spacing between cards */
  justify-content: space-between;
  flex-wrap: nowrap;
}

#custom-dev-services .stat-card,
#ai-integration .stat-card,
#microsoft-cloud .stat-card {
  /*flex: 1 1 450px;*/
  flex: 0 1 auto;
  max-width: 100%;
  /*padding: 2rem;*/
  display: flex;
  flex-direction: column;
  align-items: center;
  /* center all content */
  justify-content: flex-start;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
#microsoft-cloud .stat-card {
  flex: 1 1 350px;
}

#custom-dev-services .stat-card img,
#ai-integration .stat-card img,
#microsoft-cloud .stat-card img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

#custom-dev-services .stat-card a,
#ai-integration .stat-card a,
#microsoft-cloud .stat-card a {
  align-self: center;
}

.icon-img img {
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Apply on hover */
.stat-card:hover {
  animation: wiggle-scale 0.4s ease-in-out;
  transform-origin: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  /* enhanced shadow on hover */
}

/* REUSABLE CARD STYLES - END */

/* MOVE THIS TO CustomTechnologySolutions page-scoped css once complete */
.timeline-section {
  position: relative;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Draw vertical line */
.timeline-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 17.5%; /* Center of col-4 (4/12 = 33.33%, half of that = 16.66%) */
  width: 4px;
  height: 90%;
  background-color: #c0c0c0;
  z-index: 0;
  transform: translateX(-50%);
}

/* Circular image container */
.timeline-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: white;
  z-index: 1;
}

/* Contained image */
.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* end of MOVE THIS TO CustomTechnologySolutions page-scoped css once complete */

/* REUSABLE IMAGE SCALING - START */

.img-size-100 {
  max-width: 100px;
}

.img-size-200 {
  max-width: 200px;
}

.img-size-300 {
  max-width: 300px;
}

.img-size-400 {
  max-width: 400px;
}

/* REUSABLE IMAGE SCALING - END */

/* MEDIA QUERIES FOR SCALING */

@media (min-width: 768px) {
  .centered-overlay {
    /*margin-left: 75px; TOOK THIS OUT TO REMOVE IT FROM FOOTER */
  }

  .force-break span:nth-of-type(1)::after {
    content: "\A";
  }

  .force-break span:nth-of-type(2)::after {
    content: "\A";
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 16px;
  }

  .support-img-hide {
    display: none;
  }

  .stat-card {
    flex: none;
    width: 100%;
  }

  .footer-container {
    height: auto;
  }

  .footer-container h2 {
    width: 100%;
  }

  /* Draw vertical line */
  .timeline-section::before {
    content: none;
  }

  @media (max-width: 767.98px) {
    .d-grid[style] {
      grid-template-columns: repeat(1, 1fr) !important;
      gap: 1rem !important; /* smaller gap on mobile */
    }
  }
}

@media (min-width: 900px) {
  .justify-content-start-md {
    justify-content: start !important;
  }

  .slim-ul {
    max-width: 375px;
  }

  .text-left-md {
    text-align: left !important;
  }
}

@media (min-width: 1220px) {
  .footer-overlay {
    max-width: unset;
  }
}

@media (max-width: 1200px) {
  .caption-height {
    height: 600px !important;
  }
}
