/* Landing Section */

.landing {
  margin-bottom: 50px;
}

.landing h1 {
  font-size: 8rem;
  background: linear-gradient(to bottom, #fff, #fff, rgba(255,255,255,0.4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 auto;
}

.header h1:nth-child(2) {
  margin-top: -60px;
}

.landing p {
  font-size: 1.25rem;
  color: var(--text-grey);
  width: 50%;
  margin: -40px auto 0;
}

.stone-image {
  position: relative;
  margin: 0 0 100px;
}

.stone-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 100px);
  pointer-events: none;
}

.stone-image img {
  filter: brightness(1.25) contrast(1.05);
  transition: filter 0.25s ease;
}

.landing img {
  width: 60%;
  min-width: 500px;
  clip-path: inset(0px 0px 100px 0px);
}

/* We Are Section */

.we-are {
  display: flex;
  gap: 80px;
  max-width: 1100px;
  margin: -50px 10% 0;
}

.we-are .left {
  flex: 1;
}

.we-are .right {
  flex: 1;
}

.we-are img {
  width: 100%;
  border-radius: 10px;
  border-color: var(--text-grey);
  border-width: 2px;
  border-style: solid;
  margin-top: -100px;;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 100%);
}

.we-are img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  
  pointer-events: none;
}

/* Work Example Section */

.work {
  margin: 0 50px;
  text-align: center;
}

.work h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin: 100px 0 50px;
}

.work .example {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 20px;
  height: 500px;
}

.work .example .left {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.work .example img,
.work .example video {
  border-radius: 20px 0 0 20px;
  width: auto;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work .example p:last-child {
  margin-right: 40px;
}

.work .example .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work a {
  border-color: var(--accent-color);
  border-width: 2px;
  border-style: solid;
  border-radius: 100px;
  color: var(--accent-color);
  padding: 14px 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 24px;
}

.work a.button:hover {
  color: var(--background-color);
  background-color: var(--accent-color);
}

/* Why Us Section */

.why-us {
  margin: 100px auto 0;
  max-width: 1100px;
  padding: 0 10%;
  display: flex;
  gap: 80px;
  align-items: center;
}

.why-us .left {
  flex: 1;
}

.why-us img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 30px;
}

.why-us .right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.why-us h2 {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 40px;
}

.why-us .heading-alt {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 5px;
}

.why-us .content {
  margin-bottom: 20px;
  width: 90%;
}

.why-us .content:last-child {
  margin-bottom: 0;
}


/* KPI Section */
.kpis {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 10%;
  text-align: center;
}
.kpis h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 24px;
}
.kpi-grid {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.kpi {
  flex: 1 1 220px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 24px 80px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kpi-value {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 8px;
}
.kpi-label {
  color: var(--text-grey);
  font-size: 1rem;
}

/* Responsive Design */

.reviews {
  width: 100%;
  box-sizing: border-box;
  margin-top: 80px;
  padding: 0;
  text-align: center;
}
.reviews h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 30px;
}
.reviews-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10%;
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  /* allow review cards to wrap to additional rows when space is limited */
  flex-wrap: wrap;
  /* ensure wrapping layout uses normal document flow */
  overflow-x: visible;
}

/* Hide horizontal scrollbar on smaller screens but keep scrolling functional */
@media (max-width: 1024px) {
  .reviews-grid {
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
  }
  .reviews-grid::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
    height: 0;
  }
}
.review-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  /* flexible sizing so cards wrap onto new rows when needed */
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 360px;
}
.review-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.04);
}
.review-quote {
  color: var(--text-color);
  font-style: italic;
  line-height: 1.4;
}
.review-meta {
  color: var(--text-grey);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .reviews-grid {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .reviews {
    padding: 0 6%;
    margin-top: 40px;
  }
  .review-card {
    width: 100%;
    max-width: 520px;
  }
}

.landing h1 {
  line-height: 1.2;
  margin-top: 50px;
  font-size: 4rem;
  margin-bottom: 40px;;
  /* font-size: 8rem; */
  /* margin-top: -20px; */
}

/* Style the third word when wrapped by JS (i18n-safe) */
.landing h1 .third-word {
  display: inline-block;
  /* large display style copied from the original commented styles */
  font-size: 8rem;
  margin-top: -20px;
  background: linear-gradient(to bottom, #fff, #fff, rgba(255,255,255,0.4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* Ensure the part after the split moves to a new line */
.header h1 .hero-rest,
.landing h1 .hero-rest {
  display: block;
  /* match large heading styles so the split line keeps the intended size */
  font-size: 8rem;
  margin-top: -20px;
  background: linear-gradient(to bottom, #fff, #fff, rgba(255,255,255,0.4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

@media (max-width: 768px) {
  .landing h1 {
    line-height: 1;
    margin-top: 50px;
    font-size: 2.5rem; 
    /* font-size: 4rem;  */
    /* margin: 0 0 40px; */
  }

  .landing h1 .third-word {
    /* scale down on small screens so it doesn't overflow */
    font-size: 3rem;
    margin-top: 0;
  }

  .landing h1 .hero-rest,
  .header h1 .hero-rest {
    font-size: 4rem;
    margin-top: 0;
  }

  .landing p {
    width: 80%;
  }

  .stone-image img {
    width: 100%;
    min-width: unset;
    clip-path: inset(0);
    margin-top: 50px;
  }

  .we-are {
    flex-direction: column;
    margin-top: -100px;
  }

  .we-are img {
    margin-top: -50px;
  }

  .work {
    margin: 0;
  }

  .work .example {
    flex-direction: column;
    height: auto;
  }
  .work .example img,
  .work .example video {
    border-radius: 20px 20px 0 0;
    height: 300px;
    width: 100%;
    object-fit: cover;
  }

  .work .example .right {
    margin: 0 40px;
  }

  .work .example p:last-child {
    margin-right: 0;
    margin-bottom: 40px;
  }

  .work a {
    margin-bottom: 40px;
  }

  /* Mobile adjustments for Why Us section */
  .why-us {
    flex-direction: column;
    gap: 20px;
    max-width: none;
    padding: 0 20px;
    margin: 100px auto 0;
  }

  .why-us img {
    width: 100%;
    height: 300px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .why-us .right {
    align-items: flex-start;
    margin: 0;
  }

  /* KPI responsive: stack KPI cards on small screens */
  .kpis {
    padding: 0 6%;
    margin: 0;
    margin-top: 40px;
  }

  .kpi-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .kpi {
    flex: 1 1 100%;
    text-align: left;
    padding: 20px 60px;
  }

  .review-card {
    width: 90%;
  }
}