/* =========================================
   1. VARIABLES (Scoped for BMS Page)
   ========================================= */
:root {
  /* --- BRAND PALETTE --- */
  --primary-blue: #0052D4;
  --primary-green: #7ebd00;
  --brand-gradient: linear-gradient(90deg, #0052D4 0%, #7ebd00 100%);

  /* --- COLORS --- */
  --bg-color: #f8f9fc;
  --panel-color: #ffffff;
  --text-dark: #1a202c;
  --text-muted: #6b6f76;
  --border-color: #e2e8f0;

  /* --- LAYOUT --- */
  --radius: 12px;
  --shadow-sm: 0 6px 18px rgba(0, 82, 212, 0.08);
  --shadow-lg: 0 16px 34px rgba(0, 82, 212, 0.12);
  --max-width: 1200px;
}

/* =========================================
   2. BMS HERO SECTION 
   ========================================= */

.bms-hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  background: radial-gradient(circle at center, #062a20 0%, #000000 75%);
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Dark Overlay */
.bms-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Split Container */
.bms-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 3rem;
  position: relative;
  z-index: 2;
  /* Sit above overlay */
}

/* --- LEFT SIDE: Content --- */
.bms-content {
  flex: 1;
  max-width: 650px;
  color: #fff;
  text-align: left;
}

.bms-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.bms-content h1 span {
  /* Text Highlight Gradient */
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bms-content .muted {
  font-size: 0.6em;
  opacity: 0.7;
  font-weight: 400;
  color: #fff;
  vertical-align: middle;
}

.bms-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

/* Hero Actions (Buttons) */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Common Button Styles */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  /* Rounded pill shape */
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #fff;
  color: var(--primary-blue);
  border: 2px solid #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* --- RIGHT SIDE: Image --- */
.bms-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bms-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  object-fit: contain;
  animation: floatBMS 4s ease-in-out infinite;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

@keyframes floatBMS {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* =========================================
   3. SECTIONS & LAYOUT (Types, Features)
   ========================================= */
.section {
  padding: 5rem 0;
  background-color: var(--bg-color);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
  text-align: left;
}

.products-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.products-title .highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.products-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--brand-gradient);
  margin-top: 10px;
  border-radius: 2px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.7;
}

/* =========================================
   4. SERVICE CARDS (Grid Layout)
   ========================================= */
.cameras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0.5rem 0;
}

.camera-card {
  background: var(--panel-color);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
}

.camera-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary-blue);
}

/* Image Wrapper */
.camera-img-wrapper {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  padding: 1.5rem;
}

.camera-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.camera-card:hover .camera-img-wrapper img {
  transform: scale(1.05);
}

/* Card Content */
.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.camera-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.camera-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.details-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.details-link:hover {
  color: var(--primary-green);
}

/* =========================================
   5. DETAILED FEATURES (Alternating Rows)
   ========================================= */
.details-section {
  padding: 5rem 0;
  background: #fff;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 6rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

/* Use :nth-child(even) to alternate layout automatically if desired, 
   or keep manual ordering in HTML */
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Checkmark styling handled in text content (✔) or add pseudo-element here */

.feature-image {
  flex: 1;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: #f9f9f9;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-image:hover img {
  transform: scale(1.05);
}

/* =========================================
   6. INSTALLATION & MAINTENANCE SERVICES
   ========================================= */
.b_services {
  background-color: var(--bg-color);
}

.b_services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.b_service-card {
  background: #fff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--text-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.b_service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Highlight Border for Maintenance Card */
.b_service-card.highlight-border {
  border-top-color: var(--primary-green);
}

.b_service-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.b_service-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.b_service-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  color: var(--primary-green);
  font-weight: bold;
}

/* Dark Button for Service Cards */
.btn-dark {
  background: var(--text-dark);
  color: #fff;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 50px;
  text-align: center;
  font-weight: 600;
  align-self: flex-start;
  transition: 0.3s;
}

.btn-dark:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

/* =========================================
   7. CONTACT SECTION
   ========================================= */
.contact-section {
  padding: 5rem 0;
  background-color: #fff;
}

.contact-wrapper {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.contact-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact-details {
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-details a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  background: #f9fafb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  color: #333;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 82, 212, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.form-actions .btn-primary {
  flex: 2;
  background: var(--primary-blue);
  /* Solid Blue */
  color: #fff;
  border: none;
}

.form-actions .btn-primary:hover {
  background: #0041a8;
  /* Darker Blue */
}

.form-actions .btn-secondary {
  flex: 1;
  background: #fff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.form-actions .btn-secondary:hover {
  background: #f1f5f9;
}

/* Contact Image */
.contact-image {
  background-color: #eee;
  position: relative;
  min-height: 400px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   8. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 968px) {

  /* Hero */
  .bms-hero {
    height: auto;
    padding: 6rem 0 4rem;
  }
 .b_service-card{
  width: 18em;
 }
  .bms-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .bms-content {
    max-width: 100%;
    text-align: center;
  }

  .bms-content p {
    margin: 0 auto 2rem;
  }

  .bms-image img {
    max-width: 320px;
    margin-bottom: 1rem;
  }

  /* Features */
  .feature-row,
  .feature-row:nth-child(even) {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .feature-image {
    width: 100%;
    height: 300px;
  }

  .feature-list {
    text-align: left;
    display: inline-block;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-image {
    min-height: 200px;
    order: -1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

.custom-shape-divider-bottom-1771057320 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1771057320 svg {
    position: relative;
    display: block;
    width: calc(114% + 1.3px);
    height: 126px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1771057320 .shape-fill {
    fill: #F8F9FC;
}