/* 
  Hero
*/

.hero {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 4vh, 4rem) 2rem;
  width: 100%;
  height: auto;
  min-height: calc(100vh - 98px);
  min-height: calc(100svh - 98px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: clamp(2rem, 4vh, 4rem);
  overflow: hidden;

  background-image: url("../img/web/header-hero-desktop.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--text-main);
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left, rgba(0,0,0,0.45), rgba(0,0,0,0.9));
  pointer-events: none;
  z-index: 0;
}

.hero-text,
.features {
  position: relative;
  z-index: 1;
}

.hero-text {
  align-self: center;
  margin: 2rem 0;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin: 1.5rem 0;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.5rem;
  max-width: 440px;
  line-height: 1.6;
  margin: 2.5rem 0;
}


.features {
  display: flex;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  align-self: end;
  margin: 0;
}

.feature {
  position: relative;
  flex: 1;
  text-align: center;
  color: var(--text-main);
  padding: 1.5rem 1rem 2rem;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  transition: transform 0.25s ease, background-color 0.2s ease-out, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  background-color: rgba(149, 120, 255, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: background-color 0.85s ease-in;
}

.feature img {
  display: block;
  height: 64px;
  margin: 0 auto 1rem;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  transition: color 0.25s ease;
  color: #fff;
}

/* subtle bottom line, expands into border on hover */
.feature::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 32px;
  height: 2px;
  transform: translateX(-50%);
  background: rgba(123, 92, 255, 0.8);
  border-radius: 999px;
  opacity: 1;
  transition:
    width 0.6s ease,
    height 0.6s ease,
    bottom 0.6s ease,
    opacity 0.6s ease,
    border-radius 0.6s ease;
}

.feature:hover::after {
  width: calc(100% - 4px);
  height: calc(100% - 6px);
  bottom: 2px;
  background: transparent;
  border: 2px solid rgba(123, 92, 255, 0.9);
  border-radius: 14px;
}

.feature:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* ---- Global layout for sections ---- */

section.content-sec {
  margin: 0;
  padding: 0;
}

.content-sec .box-left,
.content-sec .box-right {
  width: 50%;
  flex: 1;
}

/* ---- Typography (shared) ---- */

.content-sec h3 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 0;
  color: var(--text-purpl);
}

.content-sec h1 {
  font-size: var(--text-size-second);
  line-height: 1.2;
  margin: 0 0 16px;
}

.content-sec h2 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.content-sec p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 480px;
}

/* ---- Shared two-column layout for JOB / WHY / APPROACH ---- */

section.job .box-two,
section.why .box-two,
section.approach .box-two {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

section.job .box-left,
section.why .box-left,
section.approach .box-left {
  box-sizing: border-box;
  padding: 2rem 1rem 4rem 4rem;
}

section.job .box-right,
section.why .box-right,
section.approach .box-right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

section.job .box-right img,
section.why .box-right img,
section.approach .box-right img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- JOB – white background, light image on right ---- */

section.job {
  background-color: #ffffff;
  color: #000000;
  height: 60vh;
}

section.job .box-two{
  height: 100%;
}

section.job .box-right {
  display: flex;
  height: 100%;
  padding: 0;
}

section.job .box-right img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

section.job p {
  font-weight: bold;
}

/* ---- WHY – dark background, image on right ---- */

section.why {
  background-color: #000000;
  color: #ffffff;
  height: 60vh;
}

section.why .box-two{
  height: 100%;
}

section.why .box-right {
  display: flex;
  height: 100%;
  padding: 0;
}

section.why .box-right img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
section.why .box-left p {
  color: var(--text-muted);
  font-weight: bold;
}


section.why .box-left a{
  margin-top: 3rem;
}
/* ---- APPROACH – white background, building image on right ---- */

section.approach {
  background-color: #ffffff;
  color: #000000;
}

section.approach .box-two {
  height: auto;
  min-height: 75vh;
  min-height: 75svh;
  max-height: 90svh;
}

section.approach .box-left {
  display: flex;
  align-items: center;
  height: auto;
  padding-top: 2rem;
  padding-left: 6rem;
  padding-right: 1rem;
  padding-bottom: 0rem;
}

section.approach .text-cont{
  width: 100%;
}

section.approach .box-right {
  align-self: stretch;
  max-height: none;
  padding: 2rem 0 0 2rem;
}

section.approach .box-right img {
  height: 100%;
  object-fit: cover;
}

section.approach .box-left h3 {
  color: #a17cff;
}

section.approach ul {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

section.approach li {
  margin-bottom: 20px;
}

section.approach .box-left p {
  font-weight: bold;
  color: var(--text-muted);
}

/* ---- MORE ---- */

section.more {
  background-color: #ffffff;
  color: #000;
  padding: 4rem 2rem 5rem;
}

/* shared inner width */
section.more .more-inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* heading */
section.more .more-inner > h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 3.5rem;
  text-align: left;
}

/* grid */
section.more .box-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

/* rest of your existing rules stay the same */
section.more .box-left,
section.more .box-right {
  width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}

section.more .box-left img,
section.more .box-right img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin-bottom: 1.8rem;
}

section.more h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 0.8rem;
  color: #000;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

section.more p {
  width: 100%;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #7a7a7a;
  margin: 0;
  
}

/* ---- REVIEWS ---- */

section.reviews {
  background: #ffffff;
  color: #000;
  padding: 4rem 2rem 5rem;
  overflow: hidden;
}

section.reviews .reviews-head,
section.reviews .reviews-slider {
  max-width: 1320px;
  margin: 0 auto;
}

section.reviews .reviews-head h1 {
  margin: 0 0 2.5rem;
  font-size: 3rem;
  line-height: 1.1;
}

section.reviews .reviews-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

section.reviews .reviews-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  will-change: transform;
}

section.reviews .review-box {
  flex: 0 0 380px;
  min-height: 240px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

section.reviews .review-quote {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #000;
}

section.reviews .review-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

section.reviews .review-meta img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

section.reviews .review-meta h6 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

section.reviews .review-role {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #8b8b8b;
}

/* ---- LAST CALL – same two-column, centered text/button ---- */

section.last-call {
  background-color: #f5f5f5;
  color: #000;
}

section.last-call .box-two {  
  display: flex;
  flex-wrap: wrap;              
  align-items: center;
  gap: 1.5rem;                  
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 2rem;
  box-sizing: border-box;
}

section.last-call .box-left {
  flex: 1 1 auto;              /* was flex: 1 1 auto */
  width: auto;                  /* cancels the global width: 50% */
  min-width: 0;
}

section.last-call .box-left h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.2;
}

section.last-call .box-right {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

section.last-call .box-right a {
  text-decoration: none;
  padding: 0.9rem 2.4rem;
  border-radius: 10px;
  border: none;
  background-color: #e0e0e0;
  color: #000;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

section.last-call .box-right a:hover {
  background-color: #d6d6d6;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

section.last-call .box-right a:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* =========================
        RESPONSIVE
   ========================= */
/* ---------- Tablet / small laptop ---------- */
@media (max-width: 1024px) {
    .hero {
        height: auto;
        min-height: calc(100vh - 98px);
        padding: 3rem 1.5rem;
        grid-template-rows: auto auto;
        row-gap: 3rem;
        background-position: center;
    }

    .hero-text {
        margin: 0;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-text p {
        font-size: 1.15rem;
        max-width: 100%;
        margin: 1.5rem 0 2rem;
    }

    /* 4 features -> 2 x 2 */
    .features {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .feature {
        flex: 1 1 calc(50% - 1rem);
        margin: 0;
    }

    /* JOB / WHY / APPROACH stack vertically */
    section.job,
    section.why {
        height: auto;
    }

    section.job .box-two,
    section.why .box-two,
    section.approach .box-two {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    section.job .box-left,
    section.why .box-left,
    section.approach .box-left,
    section.job .box-right,
    section.why .box-right,
    section.approach .box-right {
        width: 100%;
        height: auto;
        max-height: none;
    }

    section.job .box-left,
    section.why .box-left,
    section.approach .box-left {
        padding: 3rem 1.5rem;
    }

    section.job .box-right,
    section.why .box-right,
    section.approach .box-right {
        padding: 0;
    }

    section.job .box-right img,
    section.why .box-right img,
    section.approach .box-right img {
        height: auto;
        max-height: 45vh;
        object-fit: cover;
    }

    .content-sec p {
        max-width: 100%;
    }

    section.more .more-inner > h1,
    section.reviews .reviews-head h1 {
        font-size: 2.4rem;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
    .hero {
        min-height: 0;
        padding: 2.5rem 1.25rem;
        row-gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature {
        margin: 0;
        min-width: 0;
        padding: 1.25rem 0.75rem 2.25rem;   /* extra bottom room for the line */
        text-align: center;
    }


    .feature img {
        height: 48px;
        margin-bottom: 0.75rem;
    }

    .feature h3 {
      font-size: 0.75rem;
      line-height: 1.3;
      margin-bottom: 0;
      overflow-wrap: break-word;
    }

    section.job .box-left,
    section.why .box-left,
    section.approach .box-left {
        padding: 2.5rem 1.25rem;
    }

    .content-sec h1 {
        font-size: 1.5rem;
    }

    .content-sec p,
    section.more p {
        font-size: 1rem;
    }

    .btn {
        display: block;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    section.last-call .box-two{
      flex-direction: column;
      align-items: stretch;
      padding: 2.5rem 1.25rem;
      gap: 1.75rem;
    }

    section.last-call .box-left h1{
      font-size: clamp(1.4rem, 6vw, 1.8rem);
      overflow-wrap: break-word;
    }

    section.last-call .box-right{
      width: 100%;
      justify-content: stretch;
    }

    section.last-call .box-right button{
      width: 100%;
      padding: 1rem 1.25rem;
      white-space: normal;
    }

    section.more {
        padding: 3rem 1.25rem 3.5rem;
        box-sizing: border-box;
    }

    section.more .more-inner {
        max-width: 100%;
        width: 100%;
    }

    section.more .box-two {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    section.more .box-left img,
    section.more .box-right img {
        width: 100%;
        height: auto;
        margin-bottom: 1.2rem;
    }

    section.more p,
    section.more h3 {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}
