/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Header */
.site-header {
  background: #000;
}

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

.logo img {
  height: 52px;
  padding-top: 15px;
}

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

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  padding: 10px 5px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('images/dsn-all-states-title-hero-bg.jpg') no-repeat center center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.hero-content h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 30px;
}

.hero.services-hero {
  position: relative;
  background: url('/images/dsn-all-states-title-services-hero-bg.jpg') no-repeat center center/cover;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-button {
  background: #0073e6;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #005bb5;
}

/* Red Banner Section */
.red-banner-section {
  background-color: #c00000;
  color: #fff;
  padding: 5px 0;
  border-top: 2px solid #fff;
}

.red-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-left {
  display: flex;
  align-items: center;
}

.banner-icon {
  margin-right: 30px;
}

.banner-icon img {
  width: 70px;
  height: auto;
}

.banner-left p {
  font-size: 1rem;
  margin: 0;
  max-width: 800px;
  line-height: 1.4;
}

.banner-right {
  margin-left: 20px;
}

.get-started-button {
  background-color: #fff;
  color: #000;
  padding: 16px 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.get-started-button:hover {
  background-color: #f2f2f2;
  color: #c00000;
}

.get-started-button2 {
  background-color: #c00000;
  color: #fff;
  padding: 16px 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.get-started-button2:hover {
  background-color: #a90101;
  color: #fff;
}

/* Content Sections */
.content-section {
  padding: 30px 0;
  text-align: left;
}

.content-section h2 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.content-section p {
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 30px 0;
}

/* Insights Section (Blog) */
.insights-section {
  padding: 80px 0; /* Adjust as needed */
  background-color: #f7f8fa;
}

.insights-container {
  display: flex;
  align-items: center; /* Change this line to center the columns vertically */
  justify-content: space-between;
  gap: 20px;
}

/* Left Column: Text & Logo */
.insights-text {
  flex: 0 0 40%;           /* 40% width for text column; adjust as needed */
  text-align: left;
}

.insights-logo {
  max-width: 420px;        /* Adjust logo size if needed */
  margin-bottom: 20px;
}

.btn-insights {
  display: inline-block;
  background-color: #c00000;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.btn-insights:hover {
  background-color: #a00000;
}

/* Right Column: Blog Cards */
.insights-posts {
  flex: 0 0 50%;           /* 50% width for blog cards; adjust as needed */
  display: flex;
  flex-wrap: wrap;
  gap: 25px;               /* Spacing between cards */
}

.insights-post {
  flex: 0 0 calc(50% - 20px); /* Two cards per row (50% each minus gap) */
  background-color: #f9f9f9;   /* Fallback background color */
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
}

/* Each blog card is a clickable link */
.insights-post-link {
  display: block;
  color: #333; /* Default text color */
  text-decoration: none;
}

/* Card image (background) */
.post-img {
  width: 100%;
  height: 300px;            /* Adjust height as desired */
  background-size: cover;
  background-position: center;
}

/* Card info area */
.post-info {
  background-color: #c00000; /* Red background for the text area */
  color: #fff;
  padding: 15px;
}

.post-info h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.2;
}

.post-info p {
  font-size: 0.9rem;
}

/* Features */
.solution-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.feature {
  flex: 0 0 20%;
  text-align: left;
  margin-bottom: 0px;
}

.feature img {
  width: 16%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 1.3rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-left {
  flex: 0 0 50%;
}

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

.contact-right {
  flex: 0 0 50%;
  padding-left: 20px;
  text-align: left;
}

.contact-right h2 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-right p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.hubspot-form {
  margin-top: 20px;
}

/* Responsive adjustments for Contact Section */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  
  .contact-left,
  .contact-right {
    flex: 1 0 100%;
    padding: 0;
  }
  
  .contact-right {
    margin-top: 20px;
  }
}

/* Footer */
.site-footer {
  background: #c00000;
  padding: 20px 0;
  border-top: 1px solid #eaeaea;
  text-align: center;
  color: #fff;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-nav li {
  margin: 0 10px;
}

.footer-nav a {
  text-decoration: none;
  color: #fff;  /* Footer links in white */
  font-size: 0.6rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 10px 0;
  }

  .hero {
    height: 450px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .red-banner-container {
    flex-direction: column;
    text-align: left;
  }

  .banner-left {
    align-items: center;
    margin-bottom: 25px;
  }

  .solution-features {
    flex-direction: column;
  }

  .feature {
    flex: 1 0 100%;
  }

  /* Insights Section Responsive */
  .insights-container {
    flex-direction: column;
  }

  .insights-text,
  .insights-posts {
    flex: 1 0 100%;
  }

  .insights-post {
    flex: 1 0 100%;
  }
  @media (max-width: 768px) {
  .insights-logo {
    max-width: 290px !important;
  }
}

  .post-img {
    height: 200px; /* Increase for mobile if needed */
  }
}

/* --- Mobile Navigation --- */

/* Hide the checkbox */
.menu-toggle {
  display: none;
}

/* Hamburger icon - hidden by default, displayed on mobile */
.hamburger {
  display: none;
  cursor: pointer;
  width: 20px;
  height: 15px;
  position: relative;
  z-index: 1000;
}

/* Create the three bars */
.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 60%;
}

.hamburger span:nth-child(3) {
  top: 0px;
}

/* Transform hamburger into X when checkbox is checked */
.menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
  /* Display hamburger icon */
  .hamburger {
    display: block;
  }
  
  /* Hide the navigation by default */
  .main-nav {
    display: none;  /* Hide by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);  /* Overlay background */
    z-index: 1000;
    padding-top: 60px;  /* Optional: space at the top */
  }
  
  /* When the menu toggle is checked, show the navigation (pushing content down) */
  .menu-toggle:checked ~ .main-nav {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 10px 0;
    background: #000;  /* Mobile navigation background */
  }
  
  .main-nav li {
    margin: 10px 0;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;       /* Ensure a row layout on mobile */
    justify-content: flex-start;
  }
  
  .hamburger {
    order: 0;
    margin-right: 15px;
    display: block;
    z-index: 1001; /* Ensure it's above the overlay */
  }
  
  .logo {
    order: 1;
    flex-grow: 1;
    text-align: center;      /* Align the logo to the right */
    padding-right: 20px;    /* Add a 20px right offset */
  }
}
@media (max-width: 768px) {
  /* Display the hamburger icon (kept on the left with logo on the right) */
  .header-container {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  /* Show the overlay menu when checked */
  .menu-toggle:checked ~ .main-nav {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  .main-nav li {
    margin: 20px 0;
    text-align: center;
  }
}
/* Fix for HubSpot form being cut off on mobile */
@media (max-width: 768px) {
  .contact-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    overflow: visible; /* Ensure the form is not clipped */
  }

  .hubspot-form {
    width: 100%;
    max-width: 100%;
    height: auto !important; /* Allow form to expand */
    overflow: visible !important;
  }

  .hubspot-form iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 680px; /* Ensures form doesn't get cut off */
  }
}
@media (max-width: 768px) {
  .red-banner-section {
    padding-bottom: 20px;
  }
}
@media (min-width: 769px) {
  .logo img {
    height: 70px;
  }
}
/* 1) Hero CTA: align right under the H1, add spacing */
.hero.services-hero .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right align within text block */
}
.hero.services-hero .get-started-button {
  margin-top: 16px;
}

/* 2) Full-bleed red block with tighter rhythm */
.key-features-red {
  padding: 48px 0 44px;
}
.kfr-title {
  font-size: 30px;
  margin-bottom: 14px;
}
.kfr-list {
  margin-left: 1.25rem;
  line-height: 1.55;
}
.kfr-list li + li { margin-top: 6px; }

/* 3) Proprietary software image ratio and spacing */
.proprietary-software .ps-image,
.proprietary-software .ps-image img {
  width: 600px;
}
.proprietary-software .ps-text h2 { margin-bottom: 0px; }
.proprietary-software .button.small { margin-top: 0px; }

/* Remove default padding on Proprietary Software section */
.hero.services-hero + .proprietary-software {
  padding-top: 0;
  padding-bottom: 0;
}

/* Make the monitor image overlap above and below */
.proprietary-software .ps-image img,
.proprietary-software .ps-image {
  margin-top: -70px;   /* pull image upward */
  margin-bottom: -55px; /* pull image downward */
  margin-right: -50px; /* pull image right */
}

/* 4) Feature cards grid balance */
.features .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1024px) {
  .features .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features .cards { grid-template-columns: 1fr; }
}

/* 5) Smooth scroll for in-page anchors */
html {
  scroll-behavior: smooth;
}
/* Center the hero content block itself */
.hero.services-hero .hero-content {
  display: flex;
  justify-content: center;
}

/* Make a narrow column that sizes to the headline, then right-align the button to it */
.hero.services-hero .hero-head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* pushes the button to the right edge of the headline width */
  width: max-content;      /* shrink to fit headline width */
}

/* Center the text within that narrow column */
.hero.services-hero .hero-title {
  text-align: center;
  margin: 0;
}

/* Padding above button */
.hero.services-hero .get-started-button {
  margin-top: 30px;
}

/* Keep “SIMPLIFIED!” on one line */
.nowrap { white-space: nowrap;
}
