/* --- Theme Variables --- */
:root {
  --cp-primary-red: #d7282f; /* Dominant Red */
  --cp-dark-red-bg: #b02228; /* Darker red for some accents/backgrounds */
  --cp-maroon-bar: #7d1e22; /* Maroon for "Turn-Key Solutions" bar */
  --cp-dark-grey-text: #333333;
  --cp-medium-grey-text: #555555;
  --cp-light-grey-bg: #f4f4f4; /* Lighter than default Bootstrap bg-light */
  --cp-very-light-grey-bg: #f8f9fa;
  --cp-white: #ffffff;
  --cp-black-bg: #1a1a1a;
  --cp-footer-bg: #232323; /* Footer background from previous version, can be adjusted */
  --cp-footer-dark-bg: #1e1e1e; /* Darker footer bg from new image */
  --cp-font-heading: "Montserrat", sans-serif;
  --cp-font-body: "Open Sans", sans-serif;
}

/* --- General Styles --- */
body {
  font-family: var(--cp-font-body);
  color: var(--cp-medium-grey-text);
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--cp-font-heading);
  color: var(--cp-dark-grey-text); /* Default heading color */
  font-weight: 700;
  margin-bottom: 0.75em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
} /* Main page titles */
h2 {
  font-size: 2rem;
} /* Section titles */
h3 {
  font-size: 1.6rem;
}
h4 {
  font-size: 1.3rem;
}

.section-padding {
  padding: 60px 0;
}
.section-padding-sm {
  padding: 40px 0;
}

.btn-cp-red {
  background-color: var(--cp-primary-red);
  border-color: var(--cp-primary-red);
  color: var(--cp-white);
  padding: 10px 25px;
  font-family: var(--cp-font-heading);
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.btn-cp-red:hover {
  background-color: darken(var(--cp-primary-red), 10%);
  border-color: darken(var(--cp-primary-red), 10%);
  color: var(--cp-white);
}

.red-underline {
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}
.red-underline::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--cp-primary-red);
}
.text-cp-primary-red {
  color: var(--cp-primary-red) !important;
}

/* --- Main Navigation --- */
.main-navbar {
  background-color: var(
    --cp-white
  ); /* Or var(--cp-primary-red) if header is red */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding-top: 5px;
  padding-bottom: 5px;
}
/* .main-navbar .navbar-brand img {
    max-height: 50px; 
} */
.main-navbar .nav-link {
  color: var(--cp-dark-grey-text); /* Adjust if navbar bg changes */
  font-family: var(--cp-font-heading);
  font-weight: 600;
  padding: 0.6rem 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer; /* Indicate clickable for JS nav */
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--cp-primary-red); /* Or var(--cp-white) if on red bg */
}
/* If main navbar has red background like in image_d27cd4.jpg */
.main-navbar.navbar-red-bg {
  background-color: var(
    --cp-dark-red-bg
  ); /* A slightly darker red for contrast */
}

.main-navbar.navbar-red-bg .nav-link {
  color: var(--cp-white);
}
.main-navbar.navbar-red-bg .nav-link:hover,
.main-navbar.navbar-red-bg .nav-link.active {
  color: #f0f0f0; /* Lighter hover for white text */
  /* text-decoration: underline; */
}
.main-navbar.navbar-red-bg .header-actions a {
  color: var(--cp-white);
}
.main-navbar.navbar-red-bg .header-actions a:hover {
  color: #f0f0f0;
}
.main-navbar.navbar-red-bg .btn-cp-red {
  /* Button needs to stand out */
  background-color: var(--cp-white);
  color: var(--cp-primary-red);
  border-color: var(--cp-white);
}
.main-navbar.navbar-red-bg .btn-cp-red:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.main-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--cp-primary-red);
  font-size: 0.85rem;
}
.main-navbar .dropdown-item {
  color: var(--cp-dark-grey-text);
  font-family: var(--cp-font-heading);
  font-weight: 500;
}
.main-navbar .dropdown-item:hover {
  background-color: var(--cp-light-grey-bg);
  color: var(--cp-primary-red);
}
.header-actions a {
  color: var(--cp-medium-grey-text);
  margin-left: 15px;
  font-size: 1.1rem;
}
.header-actions a:hover {
  color: var(--cp-primary-red);
}

/* --- Hero Section --- */
.hero-section-wrapper {
  position: relative;
  background: url("https://placehold.co/1920x700/cccccc/969696?text=Hero+Background+Slider")
    no-repeat center center;
  background-size: cover;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
}
.hero-text-bars {
  width: 100%;
}
.hero-bar {
  color: var(--cp-white);
  padding: 15px 0;
  text-align: center;
}
.hero-bar-dark {
  background-color: rgba(0, 0, 0, 0.8);
}
.hero-bar-dark h1 {
  color: var(--cp-white);
  font-size: 1.8rem;
  margin: 0;
  font-weight: 600;
}
.hero-bar-maroon {
  background-color: var(--cp-maroon-bar);
}
.hero-bar-maroon p {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
}

/* --- Magento E-commerce Stores Section --- */
.magento-counterpoint-section h2 {
  font-weight: 700;
}
.magento-counterpoint-section .lead-text {
  font-family: var(--cp-font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--cp-dark-grey-text);
}
.magento-counterpoint-section .content-image img {
  max-width: 100%;
  border-radius: 8px;
}
.industries-served {
  font-size: 0.9rem;
  color: var(--cp-medium-grey-text);
  margin-top: 20px;
}

/* --- Features Section (Custom Price Rules etc.) --- */
.features-section-alt {
  background-color: var(--cp-very-light-grey-bg);
}
.feature-item-alt {
  padding: 20px;
  margin-bottom: 20px;
}
.feature-item-alt h4 {
  font-size: 1.25rem;
  color: var(--cp-primary-red);
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-item-alt p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Your Next Steps Section --- */
.next-steps-section {
  display: flex;
  flex-wrap: wrap;
}
.next-steps-intro {
  background-color: var(--cp-primary-red);
  color: var(--cp-white);
  padding: 60px 40px;
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.next-steps-intro h4 {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 5px;
  color: var(--cp-white);
}
.next-steps-intro h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--cp-white);
}
.next-steps-intro p {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.9;
}
.next-steps-list {
  background-color: var(--cp-black-bg);
  color: var(--cp-white);
  padding: 60px 40px;
  flex: 0 0 60%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.step-item {
  text-align: center;
  max-width: 200px;
  margin: 15px;
}
.step-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cp-white);
}
.step-item p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- Selected Works Section --- */
.selected-works-section {
  background-color: var(--cp-light-grey-bg);
}
.portfolio-placeholder img {
  border: 5px solid var(--cp-white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  margin: 0 auto;
  display: block;
}

/* --- Recommended For You (Blog) Section --- */
.blog-card {
  background-color: var(--cp-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}
.blog-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-content {
  padding: 25px;
}
.blog-card-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--cp-dark-grey-text);
}
.blog-card-content .meta {
  font-size: 0.8rem;
  color: var(--cp-medium-grey-text);
  margin-bottom: 10px;
}
.blog-card-content p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.blog-card-content .btn-link {
  color: var(--cp-primary-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-card-content .btn-link:hover {
  text-decoration: underline;
}

/* --- Innovation/Customer Service/Expertise Section --- */
.expertise-highlight-item {
  text-align: center;
}
.expertise-highlight-item h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--cp-dark-grey-text);
}
.expertise-highlight-item p {
  font-size: 0.95rem;
}

/* --- Contact Us Section --- */
.contact-section {
  background-color: var(--cp-light-grey-bg);
}
.contact-section .form-control {
  border-radius: 5px;
  padding: 12px 15px;
  margin-bottom: 20px;
}
.contact-section .form-control:focus {
  border-color: var(--cp-primary-red);
  box-shadow: 0 0 0 0.2rem rgba(215, 40, 47, 0.25);
}

/* --- Ecommerce Page Specific Styles --- */
/* These styles will apply to ecommerce.html */
.ecommerce-page-header {
  background-color: var(--cp-dark-red-bg); /* Matching the nav red */
  padding: 20px 0;
  color: var(--cp-white);
}
.ecommerce-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 5px;
}
.ecommerce-breadcrumb span {
  text-transform: uppercase;
}
.ecommerce-breadcrumb .current {
  font-weight: 600;
}
.ecommerce-page-header .page-date {
  font-size: 0.85rem;
  opacity: 0.8;
}
.ecommerce-content-section {
  background-color: var(
    --cp-white
  ); /* White background for main content area */
}
.ecommerce-content-section .content-box {
  border: 1px solid #dee2e6; /* Light border like in screenshot */
  padding: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}
.ecommerce-content-section h3 {
  /* "Grow your business..." */
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cp-dark-grey-text);
  margin-bottom: 20px;
}
.ecommerce-content-section h4 {
  /* "Benefits", "Data Sync" */
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cp-dark-grey-text);
  margin-top: 25px;
  margin-bottom: 10px;
}
.ecommerce-content-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}
.why-magento-section {
  /* Potentially a different background or just standard section padding */
}
.why-magento-title {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.why-magento-title .icon {
  font-size: 2rem;
  color: var(--cp-white);
  background-color: var(--cp-primary-red);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}
.why-magento-title h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cp-dark-grey-text);
  margin-bottom: 0;
}
.magento-feature-item h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cp-dark-grey-text);
  margin-bottom: 8px;
}
.magento-feature-item p {
  font-size: 0.95rem;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--cp-footer-dark-bg); /* Updated to darker footer */
  color: #a0a0a0; /* Slightly lighter text for darker bg */
  padding-top: 50px;
  padding-bottom: 0; /* Bottom padding will be handled by footer-bottom */
}
.main-footer h5 {
  /* Footer column titles */
  color: var(--cp-white);
  margin-bottom: 20px;
  font-size: 0.9rem; /* Smaller titles in new footer */
  font-weight: 600;
  text-transform: uppercase;
}
.main-footer ul {
  list-style: none;
  padding-left: 0;
}
.main-footer ul li a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.85rem; /* Smaller links */
  line-height: 1.9;
  transition: color 0.3s ease;
}
.main-footer ul li a:hover {
  color: var(--cp-primary-red);
}
.footer-logo-tagline img {
  max-height: 40px; /* Adjust as needed */
  margin-bottom: 10px;
}
.footer-logo-tagline p {
  /* "2025 All rights reserved..." */
  font-size: 0.8rem;
  color: #777;
  margin-top: 15px;
}
.footer-bottom {
  /* This might be part of the main footer or separate */
  background-color: var(--cp-black-bg); /* Even darker for absolute bottom */
  color: #777;
  padding: 15px 0;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 40px; /* Spacing from footer content */
}
/* Social icons in footer - already styled, can adjust if needed */

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .main-navbar .navbar-nav {
    margin-top: 15px;
  }
  .main-navbar .nav-link {
    padding: 0.5rem;
    text-align: center;
  }
  .header-actions {
    text-align: center;
    margin-top: 10px;
    width: 100%; /* Make icons and button take full width on mobile */
  }
  .header-actions .btn-cp-red {
    display: inline-block; /* Keep button inline if space allows */
    margin-top: 0; /* Reset margin if needed */
  }
  .main-navbar.navbar-red-bg .header-actions .btn-cp-red {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
    margin-top: 10px;
  }

  .hero-section-wrapper {
    min-height: 400px;
  }
  .hero-bar-dark h1 {
    font-size: 1.5rem;
  }
  .hero-bar-maroon p {
    font-size: 1rem;
  }

  .next-steps-intro,
  .next-steps-list {
    flex: 0 0 100%;
    text-align: center;
  }
  .next-steps-list {
    padding-top: 40px;
  }
  .ecommerce-page-header .container {
    text-align: center;
  }
}
@media (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  .section-padding {
    padding: 40px 0;
  }
  .main-footer .text-md-start {
    text-align: center !important;
  } /* Center footer columns on mobile */
  .main-footer h5 {
    margin-top: 20px;
  }
  .footer-logo-tagline {
    text-align: center;
  }
}
