/* ============================
   IOT HERO SECTION
   ============================ */

.iot-hero {
    padding: 40px 0;
}

.iot-hero-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Left Content */
.iot-hero-content {
    flex: 1;
    max-width: 520px;
}

.iot-hero-title {
    font-family: "f4";
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #222;
}

.iot-hero-title span {
    color: #fa5c40;
}

.iot-hero-desc {
    font-family: "f2";
    color: #888;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 16px;
}

.iot-hero-tag {
    font-family: "f4";
    font-size: 20px;
    color: #333;
}

/* Right Image */
.iot-hero-visual {
    flex: 1;
    text-align: center;
}

.iot-hero-visual img {
    width: 100%;
    max-width: 380px;
    height: auto;
}

/* ============================
   IOT FEATURE SECTION
   ============================ */

.iot-feature {
    padding: 40px 0;
}

.iot-feature-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Image */
.iot-feature-image {
    position: relative;
    flex: 1;
    display: inline-block;
}

/* Image */
/* ===== Feature Image (Fix for 1400px+ also) ===== */
.iot-feature-image {
    position: relative;
    flex: 0 0 auto;
    /* IMPORTANT: stop stretching */
    width: min(620px, 100%);
    /* box width = image width */
    margin-right: auto;
}

.iot-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

/* Outline */
.iot-feature-image::after {
    content: "";
    position: absolute;
    top: clamp(12px, 2vw, 24px);
    left: clamp(12px, 2vw, 24px);
    width: 100%;
    height: 100%;
    border: 2px solid #fa5c40;
    border-radius: 16px;
    z-index: 1;
}


/* Content */
.iot-feature-content {
    flex: 1;
    max-width: 480px;
}

.iot-small-title {
    font-family: "f4";
    font-size: 18px;
    color: #000000;
}

.iot-main-title {
    font-family: "f4";
    font-size: 30px;
    margin-bottom: 18px;
    color: #222;
    line-height: 1.3;
}

.iot-text {
    font-family: "f2";
    color: #888;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 15px;
}

/* ============================
   CASE STUDY SECTION
   ============================ */

.case-study-section {
    padding: 40px 0;
}

.case-study-wrap {
    background: #5f5f5f;
    border-radius: 18px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left Content */
.case-study-content {
    flex: 1;
    color: #fff;
    max-width: 590px;
}

.case-study-small {
    font-family: "f4";
    font-size: 40px;
    margin-bottom: 8px;
    color: #fff;
}

.case-study-title {
    color: #fa5c40;
    font-family: "f4";
    font-size: 32px;
    margin-bottom: 12px;
}

.case-study-desc {
    font-family: "f2";
    color: #e2e2e2;
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 15px;
}

/* Button */
.case-study-btn {
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-family: "f3";
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

.case-study-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Right Image
.case-study-image {
    flex: 1;
} */

.case-study-image img {
    width: 100%;
    max-width: 510px;
    border-radius: 16px;
    object-fit: cover;
}

/* ============================
   IOT STEPS SECTION
   ============================ */

.iot-steps-section {
    padding: 20px 0;
}

/* Header */
.iot-steps-header {

    margin-bottom: 60px;
}

.iot-steps-header .iot-small {
    font-family: "f4";
    color: #000000;
    font-size: 18px;
    margin-bottom: 8px;
}

.iot-steps-header h2 {
    font-family: "f4";
    font-size: 36px;
    color: #222;
    line-height: 1.3;
}

/* Step Row */
.iot-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 60px;
}

/* Reverse layout */
.iot-step-row.reverse {
    flex-direction: row-reverse;
}

/* Step Text */
.iot-step-text {
    flex: 1;
    max-width: 520px;
}

.step-label {
    font-family: "f4" !important;
    color: #999 !important;
    font-size: 20px !important;
    margin-bottom: 6px;
}

.iot-step-text h3 {
    font-family: "f4";
    font-size: 24px;
    margin-bottom: 12px;
    color: #222;
}

.iot-step-text p {
    font-family: "f2";
    color: #777;
    line-height: 1.7;
    font-size: 15px;
}

/* Step Visual */
.iot-step-visual {
    flex: 1;
    text-align: center;
}

.iot-step-visual img {
    width: 100%;
    max-width: 580px;
    height: auto;
    border-radius: 8px;
}

/* ============================
   CLIENTS STRIP SECTION
   ============================ */

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

.clients-title {
    font-family: "f4";
    font-size: 20px;
    margin-bottom: 40px;
    color: #333;
    text-align: start !important;
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 60px;
    align-items: center;
    justify-items: center;
}

.clients-logos img {
    max-height: 60px;
    max-width: 100%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.clients-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ============================
   CONSULTATION SECTION (NEW)
============================ */
.consult-section {
  padding: 80px 0;
}

.consult-wrap{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px; /* closer like your reference */
}

/* Left */
.consult-left{
  flex: 1;
  max-width: 520px;
}

.consult-top{
  font-family: "f3";
  font-size: 24px;
  margin-bottom: 22px;
}

.consult-title{
  font-family: "f4";
  font-size: 72px;
  line-height: 1.05;
  color: #111;
  margin: 0;
}

.consult-title span{
  color: #fa5c40;
}

/* Right Form */
.consult-form{
  flex: 1;
  max-width: 640px;
}

.consult-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
  align-items: start;
}

.form-group{
  margin: 0; /* IMPORTANT: remove extra vertical gap */
}

.form-group label{
  display: block;
  font-family: "f2";
  font-size: 16px;
  color: #111;
  margin-bottom: 8px;
}

.form-group label span{
  color: #fa5c40;
}

.form-group input{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #d6d6d6;
  font-family: "f2";
  font-size: 14px;
  outline: none;
}

.form-group input:focus{
  border-color: #fa5c40;
}

/* Button under grid, aligned like reference */
.consult-btn{
  grid-column: 1 / -1;      /* full row */
  justify-self: end;        /* move to right */
  margin-top: 14px;

  background: #fa5c40;
  color: #fff;
  border: none;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: "f3";
  font-size: 13px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.25s ease;
}

.consult-btn:hover{
  background: #e54d35;
  transform: translateY(-1px);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 992px){
  .consult-wrap{
    flex-direction: column;
    gap: 28px;
  }

  .consult-left,
  .consult-form{
    max-width: 100%;
  }

  .consult-title{
    font-size: 56px;
  }

  .consult-btn{
    justify-self: start; /* looks better when stacked */
  }

    .consult-form{
    width: 100%;
    max-width: 100%;
  }

  .consult-grid{
    width: 100%;
  }

  .form-group input{
    width: 100%;
  }
}

@media (max-width: 768px){
  .consult-section{
    padding: 40px 0;
  }

  .consult-grid{
    grid-template-columns: 1fr; /* stack fields */
  }

  .consult-title{
    font-size: 44px;
  }

  .consult-btn{
    width: 100%;
    justify-self: stretch;
  }
}




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

/* Tablet (992px and below) */
@media (max-width: 992px) {

    /* Hero Section */
    .iot-hero-wrap {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .iot-feature-image {
        margin: 0 auto;
        /* center the image box */
    }

    .iot-hero-content {
        max-width: 100%;
    }

    .iot-hero-title {
        font-size: 38px;
    }

    .iot-hero-visual img {
        max-width: 300px;
    }

    /* Feature Section */
    .iot-feature-wrap {
        flex-direction: column;
        text-align: center;
    }

    .iot-feature-content {
        max-width: 100%;
    }

    /* Case Study */
    .case-study-wrap {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .case-study-content {
        max-width: 100%;
    }

    /* Steps */
    .iot-step-row,
    .iot-step-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .iot-step-text {
        max-width: 100%;
    }

    
    /* Clients */
    .clients-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {

    /* Hero Section */
    .iot-hero {
        padding: 20px 0;
    }

    .iot-hero-title {
        font-size: 32px;
    }

    .iot-hero-desc,
    .iot-hero-tag {
        font-size: 15px;
    }

    /* Feature Section */
    .iot-feature {
        padding: 20px 0;
    }

    .iot-main-title {
        font-size: 24px;
    }

    /* Case Study */
    .case-study-section {
        padding: 20px 0;
    }

    .case-study-wrap {
        padding: 30px;
    }

    .case-study-title {
        font-size: 28px;
    }

    /* Steps */
    .iot-steps-section {
        padding: 20px 0;
    }

    .iot-steps-header h2 {
        font-size: 28px;
    }

    .iot-step-text h3 {
        font-size: 20px;
    }

   
    /* Clients */
    .clients-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
    .iot-hero-title {
        font-size: 28px;
    }

    .iot-hero-desc {
        font-size: 14px;
    }

    .iot-steps-header h2 {
        font-size: 24px;
    }


    .clients-logos {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .case-study-wrap {
        padding: 25px;
    }
}