/* CSS Reset */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  height: 100%;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
  /* Keep this from reset */
  margin: 0;
  /* More explicit removal of all margins */
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  height: 100%;
  line-height: 1.5;
  background-color: #1b1b1b;
  /* Moved from later rule */
  padding: 0;
  /* Keep padding reset */
  /* margin: 0; Already handled above */
  margin-top: 0;
  /* Explicitly ensure no top margin */
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img, picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* Universal Styles */

/* Set font family for entire HTML */
* {
  font-family: "Noto Sans", Arial, sans-serif;
}

/* Set styling for H1-H3 headers */
h1,
h2,
h3 {
  font-weight: 900;
}

/* Set styling for H4-H6 headers */
h4,
h5,
h6 {
  font-weight: 700;
  font-style: italic;
}

/* Set styling for paragraph elements */
p {
  font-weight: 400;
}

/* Set the sizing and background for the home and contact sections */


/* === Sticky Header === */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #1b1b1b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Navigation Styling */

/* Style the navigation bar */
.navigation {
  width: 100%;
  height: 5rem;
  margin: 0 auto;
  padding: 0 2rem; /* Reverted to 2rem */
  color: #FFF;
  font-weight: 400;
  font-size: 1.1rem; /* Increased font size */
  text-transform: uppercase;
  letter-spacing: 0.1rem;

  /* Display Styling - Grid for precise splitting */
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Home | About | Contact | Product icons */
  align-items: center;
  list-style: none;
}

.navigation li {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}






.nav-favicon {
  height: 2.25rem;
  width: auto;
  fill: currentColor;
  stroke: currentColor;
  transition: color 0.5s ease, fill 0.5s ease, stroke 0.5s ease;
}

.home-favicon {
  height: 2.5rem;
  width: auto;
  fill: currentColor;
  transition: fill 0.5s ease;
}

.nav-login-icon {
  height: 1.2rem;
  width: auto;
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  transition: filter 0.5s ease;
}

.navigation li a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #FFF;
  transition: color 0.5s ease;
}



.nav-login-container a {
  justify-content: flex-end;
}

.navigation a:hover {
  color: #DF5504;
}

.navigation a:hover .nav-login-icon {
  filter: invert(44%) sepia(86%) saturate(5125%) hue-rotate(10deg) brightness(96%) contrast(97%);
}

/* Home Styling */

.home {
  background-color: #1b1b1b;
  background-image: url('../images/mdex-hexagon-bg-top.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  scroll-padding-top: 5rem;
  min-height: 90vh; /* Reduced from 100vh */
  display: flex;
  flex-direction: column;
}

.company {
  display: flex;
  justify-content: center;
  align-items: center; /* Centered in the middle */
  min-height: 90vh; /* Matched to home height */
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: -4rem; /* Pulled up further to reduce space above */
}

/* Logo image styling */
.logo {
  width: 18rem; /* Reduced from 22rem */
  height: auto;
  filter: drop-shadow(0rem 0.25rem 0.5rem rgba(0, 0, 0, 0.3));
}

.brand-divider {
  width: 2px;
  height: 8rem; /* Reduced from 10rem */
  background-color: #FFF;
  opacity: 0.8;
}

.slogan-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFF;
}

.slogan-line-1 {
  font-size: 1.8rem; /* Reduced to 1.8rem */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 0;
  line-height: 1.1;
  text-shadow: 0rem 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
}

.slogan-line-2 {
  font-size: 1.2rem; /* Adjusted size */
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
  margin-top: 1rem; /* Adjusted spacing */
  text-shadow: 0rem 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
}

/* About Styling */

.about {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-bottom: 0;
}

.about-us {
  background-color: #D8D8D8;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 5rem 10%;
  position: relative;
  overflow: hidden;
}


.about-header {
  color: #DF5504;
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0rem 0.25rem 0.15rem rgb(0, 0, 0, 0.1);
}

.about-content {
  max-width: 900px;
  text-align: center;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: #DF5504;
  font-weight: 700;
}

.know-more {
  width: 100%;
  max-width: 1000px;
  padding: 2.5rem 2rem 0 2rem;
  border-top: 2px solid #BCBCBC;
}

.software-header {
  color: #111;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.0rem;
  opacity: 0.8;
}

.favicon-placeholders {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  margin-top: 1.5rem;
}

.placeholder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0rem; /* Space removed */
}

.icon-container {
  height: 5.5rem; /* Consistent vertical area for all icons */
  display: flex;
  align-items: center;
  justify-content: center;
}

.favicon-placeholders img {
  height: 4.2rem; /* Standardized height for most */
  width: auto;
  transition: filter 0.4s ease-in-out;
}

.favicon-placeholders .mdex-icon {
  height: 4.8rem; /* Slightly reduced for better balance */
}

.favicon-placeholders .docai-icon {
  transform: translateY(0.28rem); /* Vertically center the big 'D' visually */
}

.favicon-placeholders .triage-icon {
  transform: translateY(-0.14rem); /* Vertically center the big 'T' visually */
}

.placeholder-text {
  color: #DF5504;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 0;
  transition: color 0.4s ease-in-out;
}

/* Background Hexagons */

.about-us::before,
.about-us::after,
.features-section::before,
.features-section::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background-repeat: repeat;
  background-size: 600px 600px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.about-us::before {
  top: -200px;
  left: -150px;
  -webkit-mask-image: radial-gradient(circle at top left, black, transparent 90%);
  mask-image: radial-gradient(circle at top left, black, transparent 90%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23c8c8c8'%3E%3Cpath d='M150 50 L236.6 100 L236.6 200 L150 250 L63.4 200 L63.4 100 Z' stroke-width='5'/%3E%3Cpath d='M323.2 50 L409.8 100 L409.8 200 L323.2 250 L236.6 200 L236.6 100 Z' stroke-width='2'/%3E%3Cpath d='M236.6 200 L323.2 250 L323.2 350 L236.6 400 L150 350 L150 250 Z' stroke-width='4'/%3E%3Cpath d='M500 40 L552 70 L552 130 L500 160 L448 130 L448 70 Z' stroke-width='2'/%3E%3Cpath d='M100 450 L143.3 475 L143.3 525 L100 550 L56.7 525 L56.7 475 Z' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}

.about-us::after {
  bottom: -200px;
  right: -150px;
  -webkit-mask-image: radial-gradient(circle at bottom right, black, transparent 90%);
  mask-image: radial-gradient(circle at bottom right, black, transparent 90%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23c8c8c8'%3E%3Cpath d='M150 50 L236.6 100 L236.6 200 L150 250 L63.4 200 L63.4 100 Z' stroke-width='5'/%3E%3Cpath d='M323.2 50 L409.8 100 L409.8 200 L323.2 250 L236.6 200 L236.6 100 Z' stroke-width='2'/%3E%3Cpath d='M236.6 200 L323.2 250 L323.2 350 L236.6 400 L150 350 L150 250 Z' stroke-width='4'/%3E%3Cpath d='M500 40 L552 70 L552 130 L500 160 L448 130 L448 70 Z' stroke-width='2'/%3E%3Cpath d='M100 450 L143.3 475 L143.3 525 L100 550 L56.7 525 L56.7 475 Z' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}

.features-section {
  background-color: #C8C8C8;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 10%;
  position: relative;
  overflow: hidden;
}

.features-section::before {
  top: -200px;
  left: -150px;
  -webkit-mask-image: radial-gradient(circle at top left, black, transparent 90%);
  mask-image: radial-gradient(circle at top left, black, transparent 90%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23d8d8d8'%3E%3Cpath d='M150 50 L236.6 100 L236.6 200 L150 250 L63.4 200 L63.4 100 Z' stroke-width='5'/%3E%3Cpath d='M323.2 50 L409.8 100 L409.8 200 L323.2 250 L236.6 200 L236.6 100 Z' stroke-width='2'/%3E%3Cpath d='M236.6 200 L323.2 250 L323.2 350 L236.6 400 L150 350 L150 250 Z' stroke-width='4'/%3E%3Cpath d='M500 40 L552 70 L552 130 L500 160 L448 130 L448 70 Z' stroke-width='2'/%3E%3Cpath d='M100 450 L143.3 475 L143.3 525 L100 550 L56.7 525 L56.7 475 Z' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}

.features-section::after {
  bottom: -200px;
  right: -150px;
  -webkit-mask-image: radial-gradient(circle at bottom right, black, transparent 90%);
  mask-image: radial-gradient(circle at bottom right, black, transparent 90%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23d8d8d8'%3E%3Cpath d='M150 50 L236.6 100 L236.6 200 L150 250 L63.4 200 L63.4 100 Z' stroke-width='5'/%3E%3Cpath d='M323.2 50 L409.8 100 L409.8 200 L323.2 250 L236.6 200 L236.6 100 Z' stroke-width='2'/%3E%3Cpath d='M236.6 200 L323.2 250 L323.2 350 L236.6 400 L150 350 L150 250 Z' stroke-width='4'/%3E%3Cpath d='M500 40 L552 70 L552 130 L500 160 L448 130 L448 70 Z' stroke-width='2'/%3E%3Cpath d='M100 450 L143.3 475 L143.3 525 L100 550 L56.7 525 L56.7 475 Z' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}

.about-us > *,
.features-section > * {
  position: relative;
  z-index: 1;
}

.features-header {
  color: #df5504;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
}

.features-blurb {
  color: #111;
  font-size: 1.25rem;
  text-align: center;
  max-width: 800px;
  line-height: 1.8;
  margin-bottom: 4rem;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
}

.feature-card {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon-wrapper {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
}

.card-title {
  color: #111;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  min-height: 3.5rem; /* Restored min-height for alignment */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact Styling */

.contact {
  background-color: #1b1b1b;
  background-image: url('../images/mdex-hexagon-bg-bottom.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  width: 100%;
  min-height: 90vh; /* Matched to logo section height */
  display: flex;
  justify-content: center;
  align-items: center; /* Centered vertically */
  padding: 0; /* No padding for perfect vertical centering */
}



/* Contact info container */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
  padding-top: 0; /* Absolute reset */
  margin-top: 0; /* Absolute reset */
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  gap: 3rem;
  margin-top: 2rem; /* Reduced to pull content up closer to title */
}

.contact-info {
  flex: 1;
  width: 100%;
  max-width: 416px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0.5rem;
  /* Gap removed to rely on explicit margins */
}

.contact-info h3:not(.contact-text):not(.contact-blurb) {
  margin: 0; /* Reset default margins for other h3s in this section */
}

.contact-header {
  color: #DF5504;
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0rem 0.25rem 0.15rem rgb(0, 0, 0, 0.25);
  padding: 0 0 2rem 0;
  margin: 0;
  margin-top: 0; /* Forced reset */
  padding-top: 0; /* Forced reset */
}

.contact-name {
  font-weight: 600;
}

.contact-icons {
  width: 1.8rem;
  height: auto;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.first-contact-section {
  margin-bottom: 1rem; /* Reduced from 2rem */
}

.contact-text,
.contact-blurb {
  color: #FFF;
  font-style: normal;
  font-weight: 400;
}

.contact-text {
  font-size: 1.1rem; /* Reduced from 1.25rem */
  text-align: left;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem; /* Increased spacing between name and email */
}

.contact-blurb {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  text-align: left;
  line-height: 1.6;
  width: 100%;
  max-width: 450px;
  margin-top: 2rem; /* Further reduced from 3rem */
}

/* Footer Styling */

footer {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  background-color: #1b1b1b;
}

.footer {
  color: #DF5504;
  font-size: 0.9rem;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  width: 100%;
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 10%; /* Matched to navigation padding */
}

.footer-favicon {
  height: 1.75rem;
  width: auto;
  transition: filter 0.5s ease;
}

.footer-home-favicon {
  height: 2.0rem;
  width: auto;
  fill: currentColor;
  transition: fill 0.5s ease;
}

.footer-login-icon {
  height: 1rem;
  width: auto;
  filter: invert(44%) sepia(86%) saturate(5125%) hue-rotate(10deg) brightness(96%) contrast(97%);
  transition: filter 0.5s ease;
}

.footer a {
  text-decoration: none;
  display: flex;
  justify-content: center;
  color: #DF5504;
  transition: color 0.5s ease;
}

.footer a:hover {
  color: #FFF;
}

.footer a:hover .footer-favicon {
  filter: brightness(0) invert(1);
}

.footer a:hover .footer-login-icon {
  filter: none;
}

.footer li {
  width: 33.33%;
  list-style: none;
  display: flex;
  justify-content: center;
}

.footer-home-container {
  justify-content: flex-start !important;
}

.footer-contact-container {
  justify-content: flex-end !important;
}

.copyright {
  color: #666;
  text-align: center;
  font-weight: 400;
  font-size: 1rem;
  padding-bottom: 2rem;
  margin: 0;
}

/* Media Queries */

@media only screen and (max-width: 1341px) {
  .about-us {
    width: 100%;
    padding: 8rem 10%;
  }

  .about-header {
    font-size: 2rem;
  }

  .features-section {
    padding: 8rem 5%;
  }
}

@media only screen and (max-width: 1220px) {
  .about-us {
    width: 100%;
    padding: 8rem 5%;
  }

  .about-header,
  .features-header,
  .contact-header {
    font-size: 2.2rem;
  }

  .software-header {
    font-size: 1.2rem;
  }

  .about-content p {
    font-size: 1.1rem;
  }

  .features-section {
    padding: 8rem 5%;
  }

  .features-header {
    font-size: 2.2rem;
  }

  .features-blurb {
    margin-bottom: 2rem;
  }

  .cards-container {
    gap: 1rem; /* Reduced from default 2rem */
  }
.feature-card {
  min-width: 40%;
  flex: 0 0 45%;
  padding: 1rem; /* Reduced from 2rem 1rem */
}

.feature-icon-wrapper {
  height: 4rem; /* Fixed height for icon alignment */
  margin-bottom: 0.5rem;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
}

.card-title {
  margin-bottom: 0.5rem; /* Reduced from 1rem */
  min-height: 3rem; /* Fixed height for title alignment */
}

.brand-wrapper {
  margin-top: -5rem; /* Reduced space above further */
}

.logo {
  width: 14rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem; /* Space between Support, Sales, and Blurb */
}

}
@media only screen and (max-width: 951px) {
  .about-us {
    padding: 4rem 10%;
    width: 100%;
    min-height: auto;
  }

  .about-header {
    font-size: 2.2rem; /* Increased from 1.6rem to match others */
    margin-bottom: 2rem;
  }

  .about-content {
    margin-bottom: 3rem;
  }

  .company, .home {
    min-height: 90vh;
  }

  .brand-wrapper {
    gap: 2rem;
  }

  .logo {
    width: 14rem;
  }

  .brand-divider {
    height: 6rem;
  }

  .slogan-line-1 {
    font-size: 1.6rem; /* Increased from 1.2rem */
  }

  .slogan-line-2 {
    font-size: 1rem;
  }

  .features-section {
    min-height: 40rem;
    padding: 3rem 1rem;
  }

  .navigation {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 0.1rem;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-info {
    display: flex;
    flex-direction: row; /* Side by side for contacts */
    flex-wrap: wrap; /* Wrap blurb to next line */
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    max-width: 100%;
    gap: 2rem; /* Space between the two groups */
  }

  .contact-text {
    justify-content: center; /* Center names and emails within columns */
  }

  .first-contact-section,
  .second-contact-section {
    flex: 1;
    min-width: 250px;
  }

  .contact-blurb {
    width: 100%;
    max-width: none;
    text-align: center;
    margin-top: 1rem;
  }
}

@media only screen and (max-width: 820px) {
  .contact-header {
    font-size: 3rem;
  }

  .logo {
    width: 10rem;
  }

  .brand-wrapper {
    gap: 1.5rem;
  }
}

@media only screen and (max-width: 730px) {
  .about-us {
    min-height: 30rem;
    padding: 3rem 10%;
  }

  .about-header {
    font-size: 1.4rem;
  }

  .know-more {
    padding-top: 2rem;
  }

  .more-header {
    font-size: 1.5rem;
  }

  .features-section {
    min-height: 30rem;
    padding: 3rem 1rem;
  }

  .company, .home {
    min-height: 30rem;
  }

  .brand-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    margin-top: 1rem; /* Reduced space above logo */
  }

  .slogan-line-2 {
    margin-top: 0.5rem; /* Reduced space between slogans */
  }

  .slogan-container {
    padding-bottom: 2rem; /* Increased space below slogans further */
  }

  .brand-divider {
    display: none;
  }

  .logo {
    width: 10rem;
  }

  .slogan-line-1 {
    font-size: 1rem;
  }

  .slogan-line-2 {
    font-size: 0.9rem;
  }

  .navigation {
    font-size: 0.8rem;
    padding: 0 0.1rem;
  }
}

@media only screen and (max-width: 543px) {
  .about-us {
    padding: 3rem 5%;
    min-height: 25rem;
  }

  .about-header,
  .features-header,
  .contact-header {
    font-size: 1.4rem;
    padding-bottom: 0.5rem; /* Reduced spacing below headers */
  }

  .software-header {
    font-size: 1rem;
    margin-bottom: 1rem; /* Reduced from default */
  }

  .favicon-placeholders {
    margin-top: 0.5rem; /* Reduced from default 1.5rem */
    gap: 3rem; /* Optional: adjust gap for smaller screens */
  }

  .feature-icon-wrapper {
    display: none;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .favicon-placeholders img {
    height: 2.5rem;
  }

  .favicon-placeholders .mdex-icon {
    height: 3.2rem;
  }

  .favicon-placeholders .triage-icon {
    height: 2.8rem;
    transform: translateY(-0.08rem); /* Vertically center 'T' on mobile */
  }

  .favicon-placeholders .docai-icon {
    height: 3rem;
    transform: translateY(0.16rem); /* Vertically center 'D' on mobile */
  }

  .placeholder-text {
    font-size: 0.75rem; /* Reduced from 0.9rem */
  }

  .features-section {
    min-height: 25rem;
    padding: 2rem 3rem;
  }

  .features-blurb {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1.5rem; /* Added horizontal padding */
  }

  .cards-container {
    gap: 2rem; /* Increased to provide more space between focus sections */
  }

  .feature-card {
    min-width: 100%;
    padding: 0;
  }

  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem; /* Increased from 0.25rem */
    min-height: auto;
  }

  .home, .company {
    min-height: 25rem;
  }

  .logo {
    width: 10rem; /* Increased from 8rem */
  }

  .slogan-line-1 {
    font-size: 1.2rem; /* Increased from 1rem */
  }

  .navigation {
    font-size: 0.75rem; /* Reduced further */
    height: 3rem; /* Reduced further from 3.5rem */
    grid-template-columns: repeat(4, 1fr);
    padding: 0 0.1rem;
  }

  .footer {
    height: 3rem; /* Reduced height */
    font-size: 0.75rem; /* Reduced font size */
  }

  .copyright {
    font-size: 0.8rem; /* Reduced font size */
    margin-top: 1rem; /* Reduced spacing */
    margin-bottom: 2rem;
  }

  .contact {
    min-height: 25rem;
    padding: 6rem 0 2rem 0; /* More top, less bottom */
  }

  .contact-info {
    margin-top: 0.25rem; /* Reduced gap from header */
    gap: 1rem; /* Space between Support, Sales, and Blurb */
  }

  .contact-text {
    font-size: 0.95rem; /* Reduced font size */
    justify-content: center;
  }

  .contact-blurb {
    text-align: center;
    font-size: 0.9rem; /* Reduced font size */
  }

  .contact-icons {
    display: none; /* Removed icons for mobile */
  }
}

.navigation .nav-icons-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  min-width: 0;
}

.nav-product-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
}

.mdex-nav-icon {
  transform: translateY(0);
}
.docai-nav-icon {
  transform: translateY(0.12rem); /* Center-align the big 'D' visually */
}
.triage-nav-icon {
  height: 2.05rem; /* Reduced by another 0.2rem from 2.25rem */
  transform: translateY(-0.06rem); /* Center-align the big 'T' visually */
}

@media only screen and (max-width: 951px) {
  .navigation .nav-icons-group {
    gap: 1rem;
  }
}

@media only screen and (max-width: 543px) {
  .navigation .nav-icons-group {
    gap: 0.4rem;
  }

  .nav-product-icon .nav-favicon {
    height: 1.3rem;
  }

  .nav-product-icon .triage-nav-icon {
    height: 1.2rem;
  }
}

/* Custom Pure CSS Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -2.25rem; /* Position below the icon */
  left: 50%;
  transform: translateX(-50%);
  background-color: #2b2b2b;
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none; /* Keep original casing */
  letter-spacing: 0.02rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #DF5504;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

.navigation a:active .nav-favicon {
  filter: brightness(0) saturate(100%) invert(88%) sepia(16%) saturate(880%) hue-rotate(345deg) brightness(85%) contrast(85%) !important;
}
.navigation a:active .nav-icon-label {
  color: #D2B48C !important;
}
