/* WHO WE ARE */
.split-section {
  display: flex;
  width: 100%;
  height: 650px; /* full height, optional */
  background: #15282D;
}

.split-image,
.split-text {
  flex: 1; /* each takes 50% width */
  overflow: hidden;
}

.split-image img {
  width: 100%;
  object-fit: cover; /* keeps image proportional & fills space */
}

.split-text {
  display: flex;
  align-items: center; /* vertically center text */
  text-align: left;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 80px;
  background-color: #15282D; /* optional */
}

@media (max-width: 1024px) {
.split-section {
  display: flex;
  width: 100%;
  height: 400px; /* full height, optional */
  background: #15282D;
}

.split-image,
.split-text {
  flex: 1; /* each takes 50% width */
  overflow: hidden;
}

.split-image img {
  width: 100%;
  object-fit: cover; /* keeps image proportional & fills space */
}

.split-text {
  display: flex;
  align-items: center; /* vertically center text */
  text-align: left;
  padding-top: 20px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 80px;
  background-color: #15282D; /* optional */
}
}

@media (max-width: 390px) {
  .split-section {
    flex-direction: column; /* stack image on top of text */
    height: 600px; /* let content height adjust */
  }

  .split-image,
  .split-text {
    flex: none;
    width: 100%;
    height: auto;
  }

  .split-image img {
    height: 250px; /* fixed image height for mobile */
  }

  .split-text {
padding: 40px 0 0;
  text-align: center;
  }
}

/* WHAT WE DO */
.image-text-section2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
  height: 500px;
}
.left-side2 {
  position: relative;
}


/* Left side (text) */

.left-side2 p{
  z-index: 2; /* Ensures text is above the overlay */
  display: flex;
  align-items: flex-start; /* Aligns content to the left */
  /* Full height of the screen */
  padding-left: 40px;
  padding-right: 90px;
  text-align: left;
}
.left-side2 h3{
  text-align: left;
  padding: 0 40px;
}

/* Right side (image) */
.right-side2 {
  flex: 1;
  position: relative;
  height: 100%;
}

.image-container2 {
  position: relative;
  height: 100%;
  width: 100%;
  
}

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

/* Fade overlay */
.image-container2 .overlay2 {
 position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,    /* fully white on left */
    rgba(255, 255, 255, 0) 100%   /* fully transparent on right */
  );
  z-index: 1;
}

@media (max-width: 768px){

  .image-text-section2{
    flex-direction: column;
    height: auto; /* important: removes 500px constraint */
    padding: 40px 20px;
    gap: 30px;
  }

  /* LEFT SIDE */
  .left-side2{
    width: 100%;
    text-align: center;
  }

  .left-side2 h3{
    padding: 0;
    text-align: center;
  }

  .left-side2 p{
    padding: 0;
    text-align: center;
  }

  .section-icon{
    margin: 10px auto;
    display: block;
  }

  /* RIGHT SIDE */
  .right-side2{
    width: 100%;
    height: auto;
  }

  .image-container2{
    height: auto;
  }

  .image-container2 img{
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  /* OPTIONAL: soften overlay on mobile */
  .image-container2 .overlay2{
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.2) 0%,
      rgba(255,255,255,0.6) 100%
    );
  }
}

/* HOW WE DO IT */
.image-text-section1{
  display:flex;
  align-items:stretch;
  height:500px; /* adjust as needed */
  width:100%;
}

/* LEFT SIDE (IMAGE) */
.left-side1{
  flex:1;
  position:relative;
}

.image-container1{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}

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

/* GRADIENT OVERLAY (image → fade into text side) */
.image-container1 .overlay1{
  position:absolute;
  inset:0;
  pointer-events:none;

  background:linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,1) 100%
  );
}

/* RIGHT SIDE (TEXT) */
.right-side1{
  flex:1;

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

  padding:40px;
  box-sizing:border-box;
}

.right-side1 h3{
  margin-bottom:20px;
  text-align: right;
  padding: 0 40px;
}

.right-side1 .dark-text{
  line-height:1.7;
}

@media (max-width: 600px){

  .image-text-section1{
    flex-direction:column;
    height:auto; /* IMPORTANT: removes 500px constraint */
    width:100%;
  }

  /* IMAGE SECTION */
  .left-side1{
    width:100%;
    height:220px; /* controlled mobile height */
  }

  .image-container1{
    width:100%;
    height:100%;
  }

  .image-container1 img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  /* Overlay stays same but still works */
  .image-container1 .overlay1{
    background:linear-gradient(
      to bottom,
      rgba(255,255,255,0.1),
      rgba(255,255,255,0.9)
    );
  }

  /* TEXT SECTION */
  .right-side1{
    width:100%;
    padding:20px;
    text-align:center;
  }

  .right-side1 h3{
    text-align:center;
    padding:0;
    margin-bottom:15px;
  }

  .right-side1 .dark-text{
    text-align:center;
  }
}

/* OUR PROCESS */
/* service process - accordion style */
.service-section {
  background: #15282D;
  margin: 0;
  padding: 0;
}
.services-process {
  max-width: 100%;
  margin: 60px auto;
  padding-top: 80px;
  padding-bottom: 80px;
  margin-top: 40px;
  margin-bottom: 80px;

}

/* Horizontal accordion container */
.accordion-horizontal {
  display: flex;
  width: 100%;
  height: 350px; /* adjust as needed */
  overflow: hidden;
  border-radius: 0px;
  margin-top:40px;
}

/* Each tile */
.accordion-tile {
  flex: 1; /* all equal when closed */
  min-width: 80px; /* small collapsed width */
  background: #1C3A40;
  border: 2px solid #C29470;
  border-radius: 10px;
  margin-right: 5px;
  
  display: flex;
  flex-direction: column;
  transition: flex 0.4s ease, background 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  color: #E0E0E0;
}

.accordion-tile:last-child {
  margin-right: 0;
}

.accordion-header {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  background: transparent;
  height: 100%;
}

.read-more {
  background: none;
  border: none;
  color: #E0E0E0;
  font-size: 1.2rem;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.3s ease;
}

.accordion-tile.active .read-more {
  transform: rotate(180deg); /* arrow points up when open */
}

.accordion-header .icon {
  width: 80px;
  height: auto;
  margin-top: 25px;
  margin-bottom: 25px;
}

.accordion-header span {
  font-weight: 600;
  font-size: 1rem;
  color: #E0E0E0;
  font-family: 'Futura', san-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Hidden content */
.accordion-content {
  opacity: 0;
  padding: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #E0E0E0;
  transition: opacity 0.3s ease;
  font-family: 'Acumin', sans-serif;
  letter-spacing: 2px;
}

/* Expanded tile */
.accordion-tile.active {
  flex: 4; /* grow bigger */
  background: #243C42;
}

.accordion-tile.active .accordion-header {
  height: auto;
  padding: 15px 20px;
  background: #1C3A40;
}
.accordion-tile.active .accordion-content {
  opacity: 1;
  height: auto;
}

/* Base desktop layout (1440px+) */
.accordion-horizontal {
  display: flex;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 0px;
  margin-top: 40px;
}

.accordion-tile {
  flex: 1; /* collapsed */
  min-width: 80px;
  transition: flex 0.4s ease, background 0.3s ease;
}

/* Header icon/text scaling */
.accordion-header .icon { width: 80px; }
.accordion-header span { font-size: 1rem; }

/* Desktop large screens >1366px */
@media (min-width: 1367px) {
  .accordion-horizontal {
    flex-direction: row;
    height: 350px;
  }
  .accordion-tile {
    min-width: 140px;
  }
  .accordion-header .icon { width: 80px; }
  .accordion-header span { font-size: 1rem; }
}

/* Medium screens 1025px – 1366px */
@media (min-width: 1025px) and (max-width: 1366px) {
  .accordion-horizontal {
    flex-direction: row;
    height: 320px; 
  }
  .accordion-tile {
    min-width: 120px;
  }
  .accordion-header .icon { width: 70px; }
  .accordion-header span { font-size: 0.95rem; }
}

/* Medium-small screens 769px – 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .accordion-horizontal {
    flex-direction: row;
    height: 300px;
  }
  .accordion-tile {
    min-width: 100px;
  }
  .accordion-header .icon { width: 60px; }
  .accordion-header span { font-size: 0.9rem; }
}

//* Small screens 390px – 768px (vertical stacked) */
@media (min-width: 391px) and (max-width: 768px) {
  .accordion-horizontal {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .accordion-tile {
    flex: none;
    width: 100%;              /* full width of container */
    margin-bottom: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;       /* center content horizontally */
  }

  .accordion-tile:last-child { margin-bottom: 0; }

  .accordion-header {
    display: flex;
    flex-direction: column;
    align-items: center;       /* center icon + text */
    justify-content: flex-start;
    padding: 15px 20px;
    height: auto;
    text-align: center;
  }

  /* Icon scaling proportionally using clamp() */
  .accordion-header .icon {
    width: clamp(50px, 12vw, 80px);  /* min 50px, max 80px, scales with screen */
    height: auto;
    margin-bottom: 8px;
  }

  .accordion-header span {
    font-size: 0.85rem;
    text-align: center;
  }

  .accordion-content {
    font-size: 0.85rem;
    padding: 15px 20px;
    text-align: center;
  }

  /* Hover effect for vertical tiles */
  .accordion-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
}

/* Extra small screens <390px */
/* Mobile: stacked accordion 390px – 768px */
@media (max-width: 768px) {
  .accordion-horizontal {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .accordion-tile {
    width: auto;
    height: 50px;              /* collapsed height */
    display: flex;
    flex-direction: column;
    align-items: center;       /* center icon + text */
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    transition: height 0.4s ease; /* smooth expansion */
    overflow: hidden;
  }

  .accordion-tile:last-child {
    margin-bottom: 0;
  }

  .accordion-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    text-align: center;
    height: auto;
  }

  .accordion-header .icon {
    width: clamp(40px, 12vw, 70px);
    height: auto;
    margin-bottom: 4px;
  }

  .accordion-header span {
    font-size: 0.85rem;
  }

  .accordion-content {
    opacity: 0;
    max-height: 0;
    padding: 0 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #E0E0E0;
    text-align: center;
    transition: opacity 0.3s ease, max-height 0.4s ease, padding 0.3s ease;
    overflow: hidden;
  }

  /* Expanded tile */
  .accordion-tile.active {
    height: auto; /* allow full expansion */
  }

  .accordion-tile.active .accordion-content {
    opacity: 1;
    max-height: 500px; /* large enough to show content */
    padding: 10px 0 15px 0;
  }
}

/* BEFORE ANY PROPJECT */
.image-text-section3{
  display:flex;
  align-items:stretch;
  height:600px;
  padding:40px;
  box-sizing:border-box;
  overflow:hidden; /* prevents text spilling outside */
}

.left-side3 h3,
.left-side3 p{
  margin:0;
  padding:0 40px;
}
.left-side3{
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden; /* prevents text spilling outside section */
}
.left-side3 h3 {
  text-align: left;
  padding: 0 40px;
}

.left-side3 p {
  padding: 0 40px;
  text-align: left;
}

/* RIGHT SIDE (IMAGE AREA) */
.right-side3 {
  flex: 1;
  height: 100%;
  position: relative;
}

/* IMAGE CONTAINER */
.image-container3{
  width:100%;
  height:100%;
  position:relative;
  overflow:hidden;
  line-height:0; /* removes tiny inline-image gaps */
  font-size:0;   /* prevents inline spacing artifacts */
}
/* IMAGE FULL HEIGHT */
.image-container3 img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border:0; /* removes any default border artifacts */
}

/* Fade overlay */
.image-container3 .overlay2 {
 position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,    /* fully white on left */
    rgba(255, 255, 255, 0) 100%   /* fully transparent on right */
  );
  z-index: 1;
}


@media (min-width: 390px) and (max-width: 1023px) {
  .image-text-section3 {
    height: auto;            /* let height adjust based on content */
    min-height: 500px;       /* optional minimum height */
    padding: 20px 0;         /* small vertical padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .left-side3 {
    max-width: 90%;          /* scale with screen width */
    text-align: left;
    margin-bottom: 20px;
  }

  .left-side3 p {
    font-size: 1rem;         /* relative font size */
    padding: 0 15px;         /* consistent horizontal padding */
    line-height: 1.4;
  }

  .left-side3 h3 {
    font-size: 1.6rem;       /* relative heading size */
    padding: 0 15px;
    margin-bottom: 10px;
  }

  .image-container3 {
    width: 100%;             /* full width but constrained by parent */
    max-width: 600px;        /* prevent image from being too wide */
    display: flex;
    justify-content: center;
  }

  .image-container3 img {
    width: 100%;
    height: auto;            /* maintain aspect ratio */
    object-fit: cover;
    border-radius: 8px;      /* optional rounding */
  }
}

@media (max-width: 390px) {
  .image-text-section3 {
    display: flex;
    flex-direction: column;  /* stack vertically */
    height: auto;            /* let height grow with content */
    padding: 15px 10px;      /* consistent small padding */
    box-sizing: border-box;
  }

  /* Image section */
  .right-side3 {
    order: 1;
    width: 100%;
  }

  .image-container3 {
    width: 100%;
    height: auto;            /* scale naturally */
    max-height: 200px;       /* prevent overly tall images */
    overflow: hidden;
    border-radius: 8px;      /* optional rounding */
  }

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

  /* Text section under image */
  .left-side3 {
    order: 2;
    width: 100%;
    padding: 10px 15px;       /* small padding for narrow screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  .left-side3 h3 {
    margin-bottom: 8px;
    font-size: 1rem;          /* ~16px, responsive for small screens */
    line-height: 1.3;
  }

  .left-side3 p {
    margin-bottom: 15px;
    font-size: 0.875rem;      /* ~14px, smaller than heading */
    line-height: 1.4;
    text-align: center;
    word-wrap: break-word;
  }
}
