/* ==================================================
   SERVICES PAGE – ALIGNED WITH HOME
================================================== */

/* HERO */
.services-hero {
  background: url("../images/services/services-hero.png") center / cover no-repeat;
  height: 260px;
}

.services-hero-overlay {
  background: rgba(0,0,0,0.45);
  height: 100%;
  display: flex;
  align-items: center;
}

.services-hero .container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.services-hero h1 {
  color: #fff;
  font-size: 36px;
}

.services-hero p {
  color: #e0e0e0;
  font-size: 14px;
}

/* =========================
   GLOBAL CONTAINER FIX
   (Ensures header + sections align)
========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* =========================
   WHAT WE DO – TURNKEY SECTION
========================= */

.what-we-do-section {
  background: #f7f2ec;
  padding: 90px 0;
}

/* Flex layout same as About page */
.what-we-do-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

/* LEFT CONTENT */
.what-we-do-content {
  width: 50%;
  max-width: 620px;   /* SAME visual width as About page */
}

/* Section heading */
.what-we-do-content .section-title {
  font-size: 30px;
  font-weight: 600;
  color: #3b2a1a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.what-we-do-content .section-title i {
  font-size: 22px;
  color: #a46a2a;
}

/* Paragraphs */
.what-we-do-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}

/* Sub heading */
.what-we-do-content h4 {
  margin: 22px 0 15px;
  font-size: 17px;
  font-weight: 600;
  color: #3b2a1a;
}

/* Services list */
.what-we-do-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.what-we-do-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.what-we-do-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #a46a2a;
  font-weight: bold;
}

/* Highlight line */
.what-we-do-content .highlight-text {
  font-weight: 600;
  color: #333;
  margin-top: 10px;
}

/* RIGHT IMAGE */
.what-we-do-image {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image style (same as About page) */
.what-we-do-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* Image caption */
.image-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #7a5a3a;
  text-align: center;
}

/* ==================================================
   SERVICES SPLIT SECTIONS
   (Wood + Fabrication BOTH WHITE)
================================================== */

.service-split-section {
  padding: 90px 0;
  background: #ffffff; /* ✅ BOTH white */
}

.service-split-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.service-split-flex.reverse {
  flex-direction: row-reverse;
}


/* IMAGE */
.service-image {
  width: 50%;
  display: flex;
  justify-content: center;
}

.service-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}


/* CONTENT */
.service-content {
  width: 50%;
  max-width: 620px;
}

.service-content h2 {
  font-size: 30px;
  font-weight: 600;
  color: #3b2a1a;
  margin-bottom: 18px;
}

.service-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}


/* LIST */
.service-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.service-content ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14px;
}

.service-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #a46a2a;
  font-weight: bold;
}


/* BUTTON */
.btn-primary {
  display: inline-block;
  background: #a46a2a;
  color: #fff;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #8b5a2b;
}


/* ==================================================
   SECTION HEADINGS (CENTER FOR BOTH)
================================================== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #3b2a1a;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 15px;
  color: #666;
}



/* ==================================================
   COMMON CARD STYLE (same for both sections)
================================================== */

.product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;

  height: 240px;              /* ⭐ SAME HEIGHT */
  display: flex;
  flex-direction: column;
  justify-content: center;

  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.product-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #3b2a1a;
}

.product-card p {
  font-size: 13px;
  color: #666;
}

/* =====================================
   WOOD MACHINERY SECTION
===================================== */

.wood-machinery {
  background: #f7f3ee; /* same creamy bg */
  padding: 90px 0;
}

/* heading center */
.wood-machinery .section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* GRID */
.wood-machinery .product-grid {
  display: grid;

  /* ⭐ 4 columns */
  grid-template-columns: repeat(4, 1fr);

  gap: 30px;

  max-width: 1200px;
  margin: 0 auto;
}


/* ⭐ MAKE ALL CARDS SAME SIZE */
.wood-machinery .product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;

  height: 240px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.wood-machinery .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}


/* image */
.wood-machinery .product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}


/* ⭐ CENTER SECOND ROW (last 3 cards) */
.wood-machinery .product-card:nth-child(5),
.wood-machinery .product-card:nth-child(6),
.wood-machinery .product-card:nth-child(7) {
  justify-self: center;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1100px) {
  .wood-machinery .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wood-machinery .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   FABRICATION MACHINERY SECTION
   3 PER ROW
================================================== */

.fabrication-machinery {
  background: #f7f3ee;
  padding: 90px 0;
}

.fabrication-machinery .product-grid {
  display: grid;

  /* 3 per row */
  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  max-width: 1000px;
  margin: 0 auto;
}



/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1100px) {

  .wood-machinery .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fabrication-machinery .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .wood-machinery .product-grid,
  .fabrication-machinery .product-grid {
    grid-template-columns: 1fr;
  }
}


/* =====================================
   SERVICE PAGE – FINAL CTA (FIXED PROPER)
===================================== */

.service-final-cta {
  position: relative;
  min-height: 420px;
  margin-bottom: 80px;

  /* ⭐ IMPORTANT FIXES */
  background-image: url("../images/services/services-cta.png");
  background-repeat: no-repeat;     /* STOP repeat */
  background-size: cover;          /* full section */
  background-position: center;     /* centered */
}


/* overlay (transparent or dark — your choice) */
.service-final-cta-overlay {
  min-height: 420px;
  height: 100%;

  display: flex;
  align-items: center;

  /* choose ONE */

  /* transparent */
  background: transparent;

  /* OR dark overlay (recommended)
  background: rgba(0,0,0,0.45);
  */
}


/* container */
.service-final-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}


/* text */
.cta-text {
  max-width: 620px;
  color: #ffffff;
}

.cta-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}


/* button */
.cta-button {
  display: inline-flex;
  padding: 14px 26px;
  background-color: #a56b2a;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: 0.3s;
}

.cta-button:hover {
  background-color: #8d5820;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {

  .service-split-flex,
  .service-split-flex.reverse,
  .what-we-do-flex {
    flex-direction: column;
    text-align: center;
  }

  .service-image,
  .service-content,
  .what-we-do-content,
  .what-we-do-image {
    width: 100%;
  }

  .service-content ul {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
