/* --- GLOBAL RESET & TYPOGRAPHY --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: linear-gradient(to right, #101721, #3e536e);
}

section {
  scroll-margin-top: 70px;
}

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

/* --- NAVIGATION --- */
.main-header {
  background: linear-gradient(to right, #101721, #3e536e);
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.4s ease,
    padding 0.4s ease; /* Smooth transition */
}

/* The "Slick" Dimmed State */
.main-header.scrolled {
  background-color: rgba(
    45,
    63,
    83,
    0.95
  ); /* Slightly darker and 5% transparent */
  padding: 5px 0; /* Optional: Shrinks the nav slightly for a pro feel */
  backdrop-filter: blur(8px); /* Adds a high-end frosted glass effect */
}

body {
  padding-top: 70px;
  margin: 0;
}

/* Change your existing .reveal class to this */
.reveal {
  /* Remove opacity: 0 and transform here */
  transition: all 0.8s ease-out;
}

/* Only hide them if the body has the .js-ready class */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* Reveal active state remains the same */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* This pushes the nav links to the center/right, leaving room for the button */
.nav-menu {
  margin-left: auto;
}

/* --- THE RED BUTTON STYLE --- */
.header-cta {
  margin-left: 20px;
}

.quote-btn {
  background: linear-gradient(
    to right,
    #eb2027,
    #eb2027,
    #eb2027,
    #101721,
    #3e536e
  ) !important;
  background-size: 400% 100% !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
  padding: 10px 22px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border-radius: 1px;
  text-transform: uppercase;
  transition:
    background-position 0.4s ease,
    transform 0.3s !important;
  white-space: nowrap;
  margin-left: 25px;
  display: inline-block;
}

.quote-btn:hover {
  background-position: right center !important;
  /* transform: translateY(-1px); */
}

.logo img {
  height: 50px;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links > li {
  position: relative;
  padding: 15px 20px;
}

/* Non-active nav item colors */
.nav-links a {
  color: #95a2ac;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  transition: 0.3s ease;
}

/* Activated / Hover state */
.nav-links li:hover > a,
.nav-links li.active a {
  color: #e3eef7;
  text-decoration: underline;
}

/* Dropdown Menu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #e8e8e8;
  min-width: 280px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  border-top: 3px solid #eb2027;
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li a {
  color: #101010 !important; /* Your specified subnav color */
  text-transform: none;
  font-weight: 500;
  padding: 12px 20px;
  display: block;
  text-decoration: none !important;
}

.submenu li a:hover {
  background-color: #f4f4f4;
  color: #eb2027 !important;
}

/* --- HERO SECTION --- */
.hero-simple {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #3e536e;
  /* This prevents the "sticky" jump during scroll */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.hero-simple::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, rgba(16, 23, 33, 0.75), rgba(62, 83, 110, 0.75)),
    url("../images/hero-keys.webp") no-repeat center center/cover;
  z-index: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  opacity: 0;
  animation: ultraSmooth 1.2s cubic-bezier(0.39, 0.575, 0.565, 1) forwards;
}

@keyframes ultraSmooth {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-simple h1 {
  color: white;
  font-size: 95px;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
}

/* --- SUBHEAD & 4-IMAGE GRID --- */
.subhead-section {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}

.subhead-section h2 {
  color: #eb2027;
  font-size: 38px;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}

.subhead-section p {
  font-size: 20px;
  color: #666;
  margin-bottom: 0px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.image-block-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.image-block-grid img {
  width: 100%;
  border-radius: 1px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-block-grid img {
  filter: grayscale(40%) contrast(90%);
  transition: 0.4s ease;
}

.image-block-grid img:hover {
  filter: grayscale(0%) contrast(100%);
  transform: translateY(-5px); /* Lift effect */
}

/* --- VIMEO SECTION --- */

.video-container {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Limits the width so it doesn't get giant */
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* Modern way to handle ratio without padding hacks */
  border-radius: 1px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: #101721; /* Ensures if there's any loading delay, it stays dark */
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- SECTION 4: SERVICE CARDS --- */
.section4 {
  padding: 100px 20px;
  background: #fff;
}

.section4-header h2 {
  font-size: 36px;
  color: #eb2027;
  text-align: center;
  margin-bottom: 60px;
  font-family: "Montserrat", sans-serif;
}

.section4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD STYLING */
.card {
  background: linear-gradient(to right, #ffffff, #ffffff, #101721, #3e536e);
  background-size: 300% 100%;
  background-position: left center;
  border: 1px solid #101721;
  box-shadow: 2px 4px 12px 4px rgba(46, 46, 46, 0.25);
  border-radius: 0px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background-position 0.4s ease;
}

.card:hover {
  background-position: right center;
}

.card:hover h3,
.card:hover p,
.card:hover p a {
  color: white;
}

/* .card:hover img {
  filter: invert(1);
} */

.card img,
.card h3,
.card p {
  transition:
    filter 0.3s ease,
    color 0.3s ease;
}

.card img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.card h3 {
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: #101721;
}

.card p {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.card p a {
  color: #ed1c24;
  text-decoration: underline;
}

.section4-cta {
  text-align: center;
  margin-top: 60px;
}

.section4-button {
  display: inline-block;
  background: linear-gradient(to right, #eb2027, #eb2027, #101721, #3e536e);
  background-size: 300% 100%;
  background-position: left center;
  color: white;
  padding: 20px 45px;
  text-decoration: none;
  border-radius: 1px;
  transition: background-position 0.4s ease;
}

.section4-button:hover {
  background-position: right center;
}

/* --- SECTION 5: VIDEO SLIDER --- */
.section5 {
  background: url("../images/s4-background.png") no-repeat center center;
  background-size: cover;
  padding: 100px 80px;
  color: white;
  text-align: center;
}

.section5 h2 {
  font-size: 32px;
  margin-bottom: 50px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.video-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.video-slide {
  min-width: 100%;
  padding: 0 10px;
}

.video-slide video {
  width: 100%;
  border-radius: 1px;
  background: #101721;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(140, 0, 0, 0.8);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  font-size: 20px;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* --- SECTION 6: CONTACT --- */
.section6 {
  padding: 100px 20px;
  background: #fff;
  color: #3e536e;
}

.section6-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.section6-left,
.section6-right {
  flex: 1;
}

.section6-left h2 {
  color: #3e536e;
  margin-bottom: 30px;
  font-family: "Montserrat", sans-serif;
}

.section6-left h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.section6-left a {
  color: #3e536e;
  text-decoration: none;
}

/* FORM STYLING */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 1px;
  /* Added 'solid' here to make the border show up */
  border: 2px solid #3e536e;
  font-family: "Montserrat", sans-serif;
  background-color: #fff;
  color: #333;
}

/* Adds a highlight effect when the user clicks a field */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #eb2027;
  box-shadow: 0 0 5px rgba(140, 0, 0, 0.2);
}

.contact-submit {
  background: linear-gradient(
    to right,
    #eb2027,
    #eb2027,
    #eb2027,
    #101721,
    #3e536e
  );
  background-size: 400% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 1px;
  width: 100%;
  transition: background-position 0.4s ease;
  text-transform: uppercase;
}

.contact-submit:hover {
  background-position: right center;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Honeypot field: hidden from sighted users and keyboard tab order, but
   still present in the DOM/markup for bots that fill in every field. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.cf-turnstile-container {
  margin-bottom: 15px;
}

.form-error {
  color: #eb2027;
  font-weight: 600;
  margin-bottom: 15px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success h3 {
  color: #3e536e;
  font-size: 28px;
  margin-bottom: 15px;
}

.form-success p {
  color: #333;
  font-size: 18px;
}

/* --- SITE FOOTER --- */
.site-footer {
  background: linear-gradient(to right, #101721, #3e536e);
  color: white;
  padding: 60px 20px;
  margin-top: 0; /* Ensures it sits flush with Section 6 */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-left,
.footer-right {
  flex: 1;
}

.footer-left h2 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #e3eef7; /* Light blue accent */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Montserrat", sans-serif;
}

.footer-left p {
  margin-bottom: 12px;
}

.footer-left a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s;
}

.footer-left a:hover {
  color: #e3eef7;
  text-decoration: underline;
}

/* Right Side Branding & Button */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.footer-logo {
  height: 60px;
  margin-bottom: 30px;
}

.footer-demo-button {
  background: linear-gradient(
    to right,
    #eb2027,
    #eb2027,
    #eb2027,
    #101721,
    #3e536e
  );
  background-size: 400% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  color: white;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 1px;
  transition: background-position 0.4s ease;
  text-align: center;
}

.footer-demo-button:hover {
  background-position: right center;
}

.footer-demo-button h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Privacy & Terms line */
.footer-left p:nth-last-of-type(2) {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

/* Hide the mobile-only nav button on desktop */
.nav-links .mobile-cta {
  display: none;
}

/* --- KEYCARE PAGE --- */

.hero-keycare::before {
  background:
    linear-gradient(to right, rgba(16, 23, 33, 0.75), rgba(62, 83, 110, 0.75)),
    url("../images/hero-keycare.webp") no-repeat center center / cover;
}

.hero-subhead {
  color: white;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.kc-intro .kc-intro-sub {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 10px;
}

#install-card {
  scroll-margin-top: 100px;
}

.kc-mobile {
  padding: 100px 20px;
  background: linear-gradient(to right, #101721, #3e536e);
  color: white;
}

.kc-mobile-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  align-items: center;
}

.kc-mobile-left {
  flex: 1;
}

.kc-mobile-left h2 {
  font-size: 36px;
  color: #eb2027;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
}

.kc-mobile-left p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #e3eef7;
}

.kc-mobile-list {
  list-style: none;
  padding: 0;
}

.kc-mobile-list li {
  font-size: 17px;
  color: #e3eef7;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  line-height: 1.5;
}

.kc-mobile-list li::before {
  content: "→";
  color: #eb2027;
  position: absolute;
  left: 0;
  font-weight: 700;
}

.kc-mobile-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.kc-mobile-right img {
  max-width: 100%;
}

.kc-specs {
  padding: 100px 20px;
  background: #ffffff;
}

.kc-specs-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  align-items: center;
}

.kc-specs-image {
  flex: 1;
}

.kc-specs-image img {
  width: 100%;
}

.kc-specs-table {
  flex: 1;
}

.kc-specs-table h2 {
  font-size: 32px;
  color: #eb2027;
  margin-bottom: 30px;
  font-family: "Montserrat", sans-serif;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Montserrat", sans-serif;
}

.specs-table thead tr {
  background: linear-gradient(to right, #101721, #3e536e);
  color: white;
}

.specs-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.th-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  text-transform: none;
  letter-spacing: 0;
}

.td-sub {
  font-size: 13px;
  color: #888;
}

.specs-table tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background 0.2s ease;
}

.specs-table tbody tr:hover {
  background: #e8eef3;
}

.specs-table td {
  padding: 16px 20px;
  font-size: 16px;
  color: #333;
}

.specs-table td a {
  color: #eb2027;
  font-weight: 700;
  text-decoration: none;
}

.specs-table td a:hover {
  text-decoration: underline;
}

.kc-features .section4-grid {
  align-items: stretch;
}

.kc-features .card {
  height: 100%;
  justify-content: flex-start;
}

.kc-features {
  padding-top: 40px;
}

#install {
  scroll-margin-top: 90px;
}

.kc-cta-section {
  background: url("../images/s4-background.png") no-repeat center center;
  background-size: cover;
  padding: 100px 80px;
  color: white;
  text-align: center;
}

.kc-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.kc-cta-container h2 {
  font-size: 36px;
  color: white;
  margin-bottom: 30px;
  font-family: "Montserrat", sans-serif;
}

.kc-cta-container p {
  font-size: 18px;
  color: white;
  margin-bottom: 20px;
  line-height: 1.7;
}

.kc-cta-container .section4-button {
  margin-top: 20px;
  display: inline-block;
}

.kc-cta-section .section4-button {
  background: linear-gradient(to right, #ffffff, #ffffff, #101721, #3e536e);
  background-size: 300% 100%;
  background-position: left center;
  color: #101721;
  transition: background-position 0.4s ease;
}

.kc-cta-section .section4-button:hover {
  background-position: right center;
  color: white;
}

.kc-tagline {
  padding: 80px 20px 5px 20px;
  background: #ffffff;
  text-align: center;
}

.kc-tagline-container h2 {
  font-size: 42px;
  color: #eb2027;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 16px;
}

.kc-tagline-container p {
  font-size: 22px;
  color: #3d526e;
  margin-bottom: 10px;
}

.kc-tagline-sub {
  font-size: 18px !important;
  color: #3d526e !important;
}

/* =============================================
   DESKTOP SOFTWARE PAGE
   ============================================= */

/* --- HERO --- */
.hero-desktop::before {
  background:
    linear-gradient(to right, rgba(16, 23, 33, 0.65), rgba(62, 83, 110, 0.65)),
    url("../images/hero-desktop-software.webp") no-repeat center center / cover;
}

/* --- PRICING SECTION --- */
.ds-pricing {
  padding: 20px 20px 80px 20px;
  background: #ffffff;
}

.ds-pricing-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  align-items: flex-start;
}

.ds-pricing-left {
  flex: 1;
}

.ds-pricing-left h2 {
  font-size: 32px;
  color: #eb2027;
  margin-bottom: 30px;
  font-family: "Montserrat", sans-serif;
}

.ds-pricing-right {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
}

.ds-pricing-right img {
  width: 100%;
  max-width: 480px;
  border-radius: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.ds-pricing-bullets {
  list-style: none;
  padding-top: 40px;
  margin-top: 24px;
}

.ds-pricing-bullets li {
  font-size: 17px;
  color: #333;
  padding: 8px 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

/* --- FEATURES SECTION HEADER --- */
.ds-features-header {
  padding: 60px 20px 20px;
  background: #f4f4f4;
  text-align: center;
}

.ds-features-header-inner h2 {
  font-size: 36px;
  color: #eb2027;
  font-family: "Montserrat", sans-serif;
}

/* --- ALTERNATING FEATURE ROWS --- */
.ds-feature {
  padding: 80px 20px;
  background: #f4f4f4;
}

.ds-feature.ds-feature-alt {
  background: #ffffff;
}

.ds-feature-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  align-items: center;
}

.ds-feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ds-feature-image img {
  width: 100%;
  max-width: 420px;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 1px;
  border: 1px solid #101721;
  box-shadow: 2px 4px 12px 4px rgba(46, 46, 46, 0.25);
  transition: box-shadow 0.4s ease;
}

.ds-feature-image img:hover {
  box-shadow: 0 0 20px 6px rgba(235, 32, 39, 0.4);
}

.ds-feature-content {
  flex: 1;
}

.ds-feature-content h2 {
  font-size: 30px;
  color: #eb2027;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
}

.ds-feature-intro {
  font-size: 17px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.7;
  font-family: "Montserrat", sans-serif;
}

.ds-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ds-feature-list li {
  font-size: 16px;
  color: #444;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: relative;
  line-height: 1.6;
  font-family: "Montserrat", sans-serif;
}

.ds-feature-list li::before {
  content: "→";
  color: #eb2027;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Sub-groups inside Code Red */
.ds-feature-subgroup {
  margin-top: 20px;
}

.ds-feature-subgroup h3 {
  font-size: 17px;
  color: #101721;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  margin-top: 8px;
}

/* --- BUSINESS TEXTING PAGE --- */

.hero-business-texting::before {
  background:
    linear-gradient(to right, rgba(16, 23, 33, 0.6), rgba(62, 83, 110, 0.6)),
    url("../images/hero-business-texting.webp") no-repeat center center / cover;
}

.bt-intro {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.bt-intro h2 {
  color: #eb2027;
  font-size: 38px;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
}

.bt-intro p {
  font-size: 20px;
  color: #666;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.bt-key-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.bt-feature-pill {
  background: linear-gradient(to right, #101721, #3e536e);
  color: #e3eef7;
  padding: 14px 24px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bt-feature-pill::before {
  content: "✓";
  color: #eb2027;
  font-weight: 800;
  font-size: 16px;
}

.bt-pricing {
  padding: 100px 20px;
  background: #f5f5f5;
}

.bt-pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.bt-pricing-left {
  flex: 0 0 53%;
}

.bt-pricing-left h2 {
  font-size: 32px;
  color: #eb2027;
  margin-bottom: 30px;
  font-family: "Montserrat", sans-serif;
}

.bt-pricing-right {
  display: flex;
  flex: 0 0 47%;
  align-items: center;
  min-height: 100%;
  align-self: stretch;
}

.bt-pricing-right h3 {
  font-size: 22px;
  color: #eb2027;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
}

.bt-segment-note {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #eb2027;
  padding: 20px 24px;
  margin-top: 10px;
  border-radius: 0 2px 2px 0;
}

.bt-tagline {
  font-size: 30px;
  color: #333;
  line-height: 1.5;
  background-color: #ffffff;
  border: 1px solid #101721;
  box-shadow: 2px 4px 12px 4px rgba(46, 46, 46, 0.25);
  border-radius: 0px;
  padding: 30px 24px;
}

.bt-groups {
  padding: 100px 20px;
  background: #fff;
  text-align: center;
}

.bt-groups h2 {
  font-size: 36px;
  color: #eb2027;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
}

.bt-groups-intro {
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
}

.bt-groups-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 50px auto;
}

.bt-group-item {
  background: linear-gradient(to right, #101721, #3e536e);
  color: #e3eef7;
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Montserrat", sans-serif;
  border-radius: 1px;
  transition: background-position 0.4s ease;
  background-size: 200% 100%;
  background-position: left center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-group-item:hover {
  background-position: right center;
}

.bt-reztext-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 17px;
  color: #eb2027;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #eb2027;
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

.bt-reztext-link:hover {
  opacity: 0.75;
}

/* --- INSPECTIONS PAGE --- */

.hero-inspections::before {
  background:
    linear-gradient(to right, rgba(16, 23, 33, 0.6), rgba(62, 83, 110, 0.6)),
    url("/images/hero-inspections.webp") no-repeat center center / cover;
}

/* INSPECTION TYPES SECTION */
.insp-types {
  padding: 40px 20px 100px 20px;
  background: #fff;
  text-align: center;
}

.insp-types-container {
  max-width: 1100px;
  margin: 0 auto;
}

.insp-types h2 {
  font-size: 36px;
  color: #eb2027;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
}

.insp-types-intro {
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
}

.insp-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 50px auto;
}

.insp-type-item {
  background: linear-gradient(to right, #101721, #3e536e);
  color: #e3eef7;
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Montserrat", sans-serif;
  border-radius: 1px;
  transition: background-position 0.4s ease;
  background-size: 200% 100%;
  background-position: left center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insp-type-item:hover {
  background-position: right center;
}

.insp-incl-note {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 45px;
}

.insp-types .section4-button {
  display: inline-block;
}

/* SMART FEATURES SECTION */
.insp-smart {
  background: #f4f4f4;
}

.insp-smart-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.insp-ocr-note {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: center;
  font-size: 17px;
  color: #444;
  line-height: 1.7;
}

/* CUSTOM-BUILT: "you define" spacing */
.insp-you-define {
  margin-top: 24px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .insp-smart-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .insp-types {
    padding: 60px 20px;
  }

  .insp-type-item {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 992px) {
  .bt-pricing-container {
    flex-direction: column;
  }

  .bt-groups-grid,
  .insp-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bt-intro,
  .bt-pricing,
  .bt-groups {
    padding: 60px 20px;
  }

  .bt-intro h2 {
    font-size: 28px;
  }

  .bt-groups-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bt-feature-pill {
    width: 100%;
  }

  .bt-pricing-container {
    flex-direction: column;
  }

  .bt-pricing-left,
  .bt-pricing-right {
    flex: 1 1 100%;
    min-width: 0;
  }

  .specs-table {
    display: block;
    max-width: 100%;
  }

  .bt-pricing-left {
    overflow: hidden;
  }

  .specs-table th,
  .specs-table td {
    padding: 12px 10px;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .ds-pricing-container,
  .ds-feature-container {
    flex-direction: column;
  }

  .ds-feature.ds-feature-alt .ds-feature-container {
    flex-direction: column;
  }

  .ds-feature.ds-feature-alt .ds-feature-image {
    order: -1;
  }

  .ds-feature-image img {
    max-width: 100%;
    height: auto;
  }

  .ds-pricing-right img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .ds-pricing,
  .ds-feature,
  .ds-features-header {
    padding: 20px 20px 60px 20px;
  }

  .ds-features-header-inner h2 {
    font-size: 26px;
  }

  .ds-feature-content h2 {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .kc-mobile-container,
  .kc-specs-container {
    flex-direction: column;
  }

  .hero-subhead {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .kc-mobile,
  .kc-specs,
  .kc-cta-section,
  .kc-tagline {
    padding: 60px 20px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-right {
    align-items: center;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .section4-grid,
  .image-block-grid {
    grid-template-columns: 1fr;
  }
  .hero-simple h1 {
    font-size: 32px;
  }
}

@media (min-width: 993px) {
  .nav-links .mobile-cta {
    display: none;
  }
}

/* MOBILE NAV & LAYOUT (992px Breakpoint) */
@media (max-width: 992px) {
  /* --- 1. THE HEADER BAR RESET --- */
  .nav-container {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 60px !important;
    padding: 0 !important;
  }

  .logo {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }

  .logo img {
    height: 40px !important;
  }
  .header-cta {
    display: none !important;
  }

  /* --- 2. THE HAMBURGER TO "X" TRANSFORMATION --- */
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around; /* Changed for better "X" spacing */
    width: 30px !important;
    height: 24px !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle .bar {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #ffffff !important;
    border-radius: 2px;
    transition: all 0.3s ease-in-out; /* Smooth transition to X */
  }

  /* Morphing into X */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0; /* Hide middle bar */
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* --- 3. THE SLIDE-OUT MENU --- */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100% !important;
    background-color: #3e536e;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-sizing: border-box !important;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links > li > a {
    padding: 15px 20px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #e3eef7 !important;
    box-sizing: border-box !important;
    text-decoration: none;
  }

  /* --- 4. SUBMENU & ARROWS --- */
  .nav-links .submenu {
    display: none !important;
    background-color: #e8e8e8;
    position: static;
    width: 100%;
  }

  .dropdown.active > .submenu {
    display: block !important;
  }

  .arrow {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    cursor: pointer;
  }

  .arrow::after {
    content: " ▼" !important;
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .dropdown.active > a .arrow::after {
    content: " ▲" !important;
    color: #eb2027;
  }

  /* --- 5. MOBILE CTA --- */
  .nav-links .mobile-cta {
    display: block !important;
    padding: 20px !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important; /* Forces the button to stay inside the screen */
  }

  .nav-links .mobile-cta .quote-btn {
    width: 100% !important;
    max-width: none !important; /* Overrides desktop max-width */
    margin: 0 !important; /* Removes desktop margin-left: 25px */
    display: block !important;
    box-sizing: border-box !important;
    padding: 15px !important;
    text-align: center !important;
  }

  /* --- 6. GRID & CARD FIXES --- */
  .image-block-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 20px !important;
  }

  .section4-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    padding: 20px;
  }

  .card {
    width: 100% !important;
    max-width: 450px !important;
    padding: 40px 20px !important;
  }

  .kc-tagline {
    padding: 80px 20px 5px 20px;
  }

  /* --- 7. CONTACT FORM FIX --- */
  .section6 {
    padding: 30px 20px;
    background: #fff;
    color: #3e536e;
  }

  .section6-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 0;
  }

  .section6-left,
  .section6-right,
  .contact-form {
    width: 100% !important;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100% !important;
    font-size: 16px !important;
    padding: 12px !important;
  }

  section {
    scroll-margin-top: 0px;
  }
}

/* --- LEGAL PAGES (Privacy Policy / Terms and Conditions) --- */
.legal-page {
  padding: 100px 20px;
  background: #fff;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  color: #eb2027;
  font-size: 38px;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.legal-content > p > em {
  color: #666;
  font-size: 14px;
  font-style: normal;
}

.legal-content h2 {
  color: #101721;
  font-size: 22px;
  font-family: "Montserrat", sans-serif;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 10px;
}

.legal-content a {
  color: #eb2027;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #101721;
}

.legal-content strong {
  color: #101721;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .legal-page {
    padding: 60px 20px;
  }

  .legal-content h1 {
    font-size: 28px;
  }

  .legal-content h2 {
    font-size: 19px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }
}
