/* ========================
   Products Page (Forced Stacked Layout)
   ======================== */

.products-page-wrapper {
  padding: 40px 0 80px 0;
  background-color: #ffffff;
}

/* --- Block 1: Hero Banner --- */
.products-hero-banner-stacked {
  display: block; /* Forces it to take its own line */
  width: 100%;
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 60px; /* Pushes the text down */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- Hero Slideshow Transitions --- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* Smooth crossfade speed */
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text Inside Image */
.hero-title-overlay {
  position: absolute;
  bottom: 30px;
  left: 40px;
  z-index: 2;
}

.hero-title-overlay h1 {
  font-family: var(--font-primary, "Trebuchet MS", sans-serif);
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- Block 2: Content Below --- */
.products-content-stacked {
  display: block; /* Forces it to take its own line */
  width: 100%;
  text-align: center; /* Centers everything */
  max-width: 900px;
  margin: 0 auto; /* Centers the block itself */
}

.content-headline {
  font-family: var(--font-primary, "Trebuchet MS", sans-serif);
  font-size: 38px;
  font-weight: 700;
  color: #003366;
  line-height: 1.3;
  margin-bottom: 24px;
}

.content-desc {
  font-family: var(--font-secondary, "Segoe UI", sans-serif);
  font-size: 16px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Centered Buttons --- */
.content-actions-centered {
  display: flex;
  justify-content: center; /* Horizontal Center */
  gap: 16px;
}

.content-actions-centered a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-secondary, "Segoe UI", sans-serif);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Green Button */
.btn-green {
  background-color: #2e7d32;
  color: #ffffff;
  border: 1px solid #2e7d32;
}
.btn-green:hover {
  background-color: #1b5e20;
}

/* Grey Button */
.btn-grey {
  background-color: #e5e7eb;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}
.btn-grey:hover {
  background-color: #d1d5db;
}
/* =========================================
   PRODUCTS PAGE SPECIFIC STYLES
   (Forces Stacked Layout)
   ========================================= */

/* 1. Layout Reset: Forces vertical stacking */
.products-vertical-stack {
  display: block !important;
  width: 100%;
}

.products-page-main {
  background: #fff;
  padding: 40px 0 80px 0;
}

/* 2. Hero Section (Image on Top) */
.prod-hero-section {
  position: relative;
  width: 100%;
  height: 440px; /* Adjust height as desired */
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 60px; /* Pushes the text down */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.prod-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The "Products" Text Overlay */
.prod-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 40px;
  z-index: 10;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.prod-hero-overlay h1 {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 3. Content Section (Centered Below) */
.prod-content-section {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0;
}

.prod-headline {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #003580; /* Deep Blue */
  line-height: 1.3;
  margin-bottom: 24px;
}

.prod-desc {
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 4. Buttons */
.prod-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.prod-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Green Button */
.prod-btn-green {
  background-color: #2e7d32;
  color: #fff;
  border: 1px solid #2e7d32;
}
.prod-btn-green:hover {
  background-color: #1b5e20;
}

/* Grey Button */
.prod-btn-grey {
  background-color: #e5e7eb;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}
.prod-btn-grey:hover {
  background-color: #d1d5db;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .prod-hero-section {
    height: 250px;
  }
  .prod-hero-overlay h1 {
    font-size: 36px;
    padding-left: 20px;
  }
  .prod-headline {
    font-size: 26px;
  }
  .prod-actions {
    flex-direction: column;
    align-items: center;
  }
  .prod-btn {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }
}

/* =========================================
   STACKED CARDS ANIMATION
   ========================================= */

.products-stack-section {
  padding: 60px 0 0 0;
  background-color: #f8f9fa; /* Light background to make white cards pop */
  /* padding-bottom: 200px; */
}

.cards-stack-wrapper {
  /* This wrapper holds the scrollable area */
  max-width: 1400px;
  margin: 0 auto;
}

/* --- THE STICKY CARD LOGIC --- */
/* .stack-card {
  position: sticky;
  margin-bottom: 60px;
}

#card-1 {
  top: 100px;
  z-index: 1;
}

#card-2 {
  top: 130px;
  z-index: 2;
}

#card-3 {
  top: 160px;
  z-index: 3;
} */

/* --- DISABLED STICKY LOGIC (Now Standard Vertical Stack) --- */
.stack-card {
  position: relative; /* Changed from sticky to relative */
  margin-bottom: 40px; /* Space between cards */
  top: 0 !important; /* Reset the offsets */
}

/* Reset individual offsets so they don't jump */
#card-1,
#card-2,
#card-3 {
  top: 0 !important;
  z-index: 1;
}

/* --- CARD VISUAL DESIGN --- */
.stack-card-inner {
  display: flex;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: 500px;
}

.stack-img {
  flex: 1;
  min-width: 40%;
  padding: 20px;
  border-radius: 20px;
}

.stack-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.stack-content {
  flex: 1.2;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Typography */
.st-title {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 15px;
}

.st-desc {
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Info Boxes inside Card */
.st-grid {
  display: flex;
  gap: 15px;
  flex-direction: row;
  /* margin-top: auto; */
  /* margin-bottom: 30px; */
}

.st-box {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
}

.st-box.blue {
  background-color: #e3f2fd;
}
.st-box.green {
  background-color: #e8f5e9;
}

.st-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.st-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.st-box ul li {
  font-size: 13px;
  color: #444;
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
}

.st-box ul li::before {
  content: "✓";
  color: #16a34a;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .stack-card-inner {
    flex-direction: column;
    height: auto;
  }
  .stack-img {
    height: 250px;
  }
  .stack-content {
    padding: 30px;
  }
  .st-grid {
    flex-direction: column;
  }
  /* Disable sticky on mobile if screen is too short */
  .stack-card {
    position: relative;
    top: auto !important;
  }
}

/* =========================================
   QUALITY SECTION STYLES
   ========================================= */

.quality-section {
  background-color: #f9f8f6; /* Matches the beige background in image */
  padding: 80px 40px;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.quality-container {
  max-width: 1400px;
  margin: 0 auto;
  /* background-color: #000; */
}

/* --- HEADER --- */
.quality-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.q-title {
  font-size: 36px;
  color: #003366; /* Deep Navy Blue */
  font-weight: 700;
  margin-bottom: 20px;
}

.q-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.q-desc strong {
  color: #555;
  font-weight: 700;
}

/* --- GRID LAYOUT --- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* --- CARD DESIGN --- */
.quality-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;

  /* The Green Border & Shadow "Pop" Effect */
  border: 1px solid #4caf50; /* Thin green border */
  box-shadow: -5px 5px 0px #4caf50; /* Solid green offset shadow */
  transition: transform 0.2s ease;
}

.quality-card:hover {
  transform: translateY(-5px); /* Gentle float on hover */
}

.quality-card h3 {
  font-size: 18px;
  color: #222;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* --- ICONS --- */
.q-icon-box {
  width: 60px;
  height: 60px;
  background-color: #ecf5ee; /* Light green circle background */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: #2e7d32; /* Icon color */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .quality-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
    gap: 40px;
    padding: 0 10px;
  }

  .q-title {
    font-size: 28px;
  }
}

/* =========================================
   TRUSTED SECTORS STYLES
   ========================================= */

.sectors-section {
  background-color: #ffffff;
  padding: 80px 50px;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.sectors-container {
  max-width: 1400px; /* Slightly wider to fit the gallery images nicely */
  margin: 0 auto;
}

/* --- HEADER --- */
.sectors-header {
  text-align: center;
  margin-bottom: 50px;
}

.sec-title {
  font-size: 36px;
  color: #003366; /* Deep Navy Blue */
  font-weight: 700;
  margin-bottom: 15px;
}

.sec-desc {
  font-size: 16px;
  color: #777; /* Lighter grey for sub-header */
  font-weight: 400;
}

/* --- EXPANDING GALLERY --- */
.sector-gallery {
  display: flex;
  gap: 15px;
  height: 450px; /* Fixed height for the gallery strip */
  width: 100%;
}

.sector-card {
  position: relative;
  height: 100%;
  border-radius: 20px; /* Large rounded corners like the image */
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;

  /* background-size: 110%;
  transition: flex 0.5s ease-in-out, background-size 0.5s ease-in-out; */

  /* ANIMATION LOGIC */
  flex: 1; /* By default, all cards share space equally */
  transition: flex 0.5s ease-in-out;
}

/* Hover Effect: The card you touch grows, others shrink automatically */
.sector-card:hover {
  flex: 4;
  /* background-size: 125%; */
}

/* --- TEXT OVERLAY --- */
.sector-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;

  /* Gradient Dark Fade at bottom for text readability */
  background: linear-gradient(
    to top,
    rgba(16, 37, 23, 0.9) 0%,
    rgba(16, 37, 23, 0) 100%
  );

  /* Text Visibility Logic */
  opacity: 0; /* Hidden by default on thin strips */
  transition: opacity 0.3s ease 0.2s; /* Delays appearance slightly */
}

.sector-card:hover .sector-overlay {
  opacity: 1; /* Show text when card is wide */
}

.sector-overlay h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap; /* Keeps text on one line */
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .sector-gallery {
    flex-direction: column; /* Stack vertically on phones */
    height: auto;
  }

  .sector-card {
    height: 120px; /* Fixed height for stacked strips */
    flex: none; /* Disable flex scaling on mobile */
    width: 100%;
  }

  .sector-card:hover {
    flex: none;
    /* height: 300px; */
  }

  .sector-overlay {
    opacity: 1; /* Always show text on mobile for better UX */
    padding: 15px;
  }
}

/* =========================================
   REQUEST FORM STYLES
   ========================================= */

.request-info-section {
  /* Subtle Green Gradient Background like the image */
  background: linear-gradient(180deg, #e6f4ea 0%, #f0f9f4 100%);
  padding: 80px 20px;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.req-container {
  max-width: 1000px; /* Slightly narrower to focus attention */
  margin: 0 auto;
}

/* --- HEADER --- */
.req-header {
  text-align: center;
  margin-bottom: 40px;
}

.req-title {
  font-size: 32px;
  color: #003366; /* Deep Navy */
  font-weight: 500;
  margin-bottom: 15px;
}

.req-desc {
  font-size: 15px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- FORM CARD --- */
.form-card {
  background: #ffffff;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft shadow */

  /* The Top Green Border Strip */
  border-top: 4px solid #009045;
}

/* --- INPUTS LAYOUT --- */
.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.form-group {
  flex: 1; /* Makes columns equal width */
  display: flex;
  flex-direction: column;
}

.full-width {
  width: 100%;
  margin-bottom: 25px;
}

/* --- LABEL & INPUT STYLES --- */
label {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box; /* Ensures padding doesn't break layout */
}

input:focus,
select:focus,
textarea:focus {
  border-color: #009045; /* Highlights green on click */
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
}

/* --- CHECKBOX --- */
.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.checkbox-group input {
  width: auto;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  color: #555;
}

/* --- SUBMIT BUTTON --- */
.req-btn {
  width: 100%;
  background-color: #009045; /* Vivid Green */
  color: white;
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s;
}

.req-btn:hover {
  background-color: #007a3a; /* Darker green on hover */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column; /* Stack inputs vertically on mobile */
    gap: 20px;
  }

  .form-card {
    padding: 25px; /* Less padding on small screens */
  }
}
/* 1. Stop CF7 from adding extra vertical space */
.wpcf7 p,
.wpcf7 br {
  display: none !important;
}

/* 2. Fix the "Let's Connect" button layout */
.req-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%; /* Keeps it full width as per your screenshot */
}

/* 3. Keep your original design logic */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-bottom: 0; /* Prevents double spacing */
}

.wpcf7-select {
  width: 100%;
}

span.wpcf7-spinner {
  position: absolute;
  right: 20px;
}

.wpcf7-response-output {
  margin: 15px 0 0 0 !important;
  padding: 10px !important;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #003580 !important;
  color: #003580 !important;
  text-align: center;
}
