/* Root */
:root {
  /* Font Variables */
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;

  /* Smooth scroll */
  scroll-behavior: smooth;
}

/* Main Styling */
body {
  font-family: var(--default-font);
}

a {
  color: var(--color-secondary-lt);
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: color-mix(in srgb, var(--color-secondary), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
}

.justify-text {
  text-align: justify;
  text-justify: inter-word;
  width: 100%;
}


/* Header */
.header {
  padding: 2px 0;
  transition: all 0.5s;
  z-index: 997;
}
.header .logo {
  line-height: 1;
}
.header .logo img.credence-logo {
  max-height: 32px;
  filter: brightness(0) invert(1);
  margin-right: 8px;
}
.header .logo h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  filter: brightness(0) invert(1);
  color: var(--color-neutral-lt);
}
.scrolled .header {
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
}


/* Footer */
.footer {
  padding: 2px 0;
  transition: all 0.5s;
  z-index: 997;
}


/* Navigation Menu (Desktop) */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  .navmenu li {
    position: relative;
  }
  .navmenu a,
  .navmenu a:focus {
    color: var(--color-neutral-med);
    padding: 5px;
    font-size: 14px;
    font-family: var(--default-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }
  .navmenu li:last-child a {
    padding-right: 0;
  }
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--color-neutral-lt);
  }
}


/* Navigation Menu (Mobile) */
@media (max-width: 1199px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--color-neutral-med);
    padding: 5px;
    font-size: 14px;
    font-family: var(--default-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--color-neutral-lt);
  }
}


/* Sections & Titles */
section,
.section {
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}
@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}
.section-title p {
  margin-bottom: 0;
}


/* Header Section */
.header-section {
  width: 100%;
  min-height: 45vh;
  position: relative;
  display: flex;
  align-items: center;
  background: url(credence_landing_background.jpg) no-repeat  100%;
  background-size: cover;
}

.header-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.10);
  z-index: 0;
}
.header-section .container {
  position: relative;
  z-index: 3;
}
.header-section h2 {
  margin: 0;
  font-size: 72px;
  font-weight: 700;
  line-height: 56px;
}

/* Credence Title Responsive */
#credence-title {
  font-size: 144px;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 1200px) {
  #credence-title {
    font-size: 120px;
  }
}

@media (max-width: 992px) {
  #credence-title {
    font-size: 96px;
  }
}

@media (max-width: 768px) {
  #credence-title {
    font-size: 72px;
  }
}

@media (max-width: 576px) {
  #credence-title {
    font-size: 48px;
  }
}

.header-section p {
  margin: 5px 0 10px;
  font-size: 20px;
  font-weight: 500;
}
.header-section .header-section-img {
  position: relative;
  min-height: 250px;
}
@media (max-width: 992px) {
  .header-section .header-section-img {
    text-align: center;
    overflow: hidden;
    min-height: 100px;
    max-width: 100%;
    height: auto;
  }
}
@media (max-width: 768px) {
  .header-section h2 {
    font-size: 40px;
    line-height: 36px;
  }
  .header-section p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}


/* Detail Sections */
@media (min-width: 1200px) {
  .scoot-up {
    margin-top: -10rem;
  }
}

.detail-section .content h2 {
  font-weight: 700;
}

.detail-section .content p {
  font-size: 25px;
  padding-right: 4rem;
}

.detail-section .content p:last-child {
  margin-bottom: 0;
}

/* Icon Boxes */
.light-shadow {
  box-shadow: 0 10px 50px rgba(255, 255, 255, 0.25) !important;
}

.icon-box {
  padding: 25px 25px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease-out;
}
.icon-box i {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 32px;
  line-height: 0;
  transition: all 0.4s ease-out;
  background-color: color-mix(in srgb, var(--color-secondary), transparent 95%);
  color: var(--color-secondary);
}
.icon-box h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}
.icon-box p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .detail-section h2 {
    font-size: 20px;
    line-height: 30px;
  }
  .detail-section .content p {
    font-size: 18px;
  }

  .detail-section p {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 30px;
  }

  .icon-box i {
    width: 40px;
    height: 40px;
    border-radius: 30%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 0;
    transition: all 0.4s ease-out;
    background-color: color-mix(in srgb, var(--color-secondary), transparent 95%);
    color: var(--color-secondary);
  }
}


/* Profiles */
.profile-toggle {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.profile-tab {
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
  font-weight: normal;
}

.profile-tab:hover {
  opacity: 0.8;
}

.profile-tab.active {
  font-weight: bold;
}

.profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-secondary);
}


/* Contact */
.contact .info-item i {
  color: var(--color-secondary);
  background: color-mix(in srgb, var(--color-secondary), transparent 92%);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  margin-bottom: 0;
  font-size: 14px;
}

/* Form Wrapper */
.contact .info-form {
  height: 100%;
}

/* Inputs */
.contact .info-form input[type="text"],
.contact .info-form input[type="email"],
.contact .info-form textarea {
  font-size: 14px;
  padding: 10px 15px;
}

/* Submit Button */
.contact .info-form button[type="submit"] {
  border: 0;
  padding: 10px 30px;
  border-radius: 30px;
  transition: 0.4s;
}

/* Layout Fixes: Ensure Full Width for Specific Inputs */
.contact .info-form input[name="name"],
.contact .info-form input[name="email"],
.contact .info-form input[name="company"],
.contact .info-form textarea[name="message"] {
  width: 100%;
  display: block;
  flex: 0 0 100%;
  margin-top: 10px;
}