/* ================= HERO ================= */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  min-height: 70vh;
  background-color: #000000;
  color: #fff;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  max-width: 700px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.08;
  margin-bottom: 2.5rem;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  max-width: 430px;
  margin-bottom: 2.8rem;
}

.hero .btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  border-radius: 8px;
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color .2s ease, transform .15s ease, box-shadow .15s ease;
}

.hero .btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(123, 92, 255, .45);
}

/* image sits on the right and bleeds to the edge */
.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  z-index: 1;
}

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

/* soft fade so the photo blends into the black text side */
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #000 0%,
    rgba(0, 0, 0, .85) 18%,
    rgba(0, 0, 0, .25) 45%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
}

/* ================= SERVICES ================= */

section.services {
    background-color: #ffffff;
    color: #000;
}

section.services .box-two {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: auto;
    min-height: 70vh;
    min-height: 70svh;
    overflow: hidden;
}

section.services .box-left {
    width: 75vw;
    box-sizing: border-box;
    padding: 2rem 1rem 4rem 4rem;
}

section.services .box-left .cont-box h2{
  margin-top: 0;
}

section.services .box-right {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    justify-content: center;
    padding: 2rem 0 2rem 1rem;
}

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



section.services .box-left h3{
  font-size: 0.8rem;
  color: var(--text-purpl);
  margin: 0;
}

/* ================= MORE (dark, image left / text right) ================= */

section.more {
    background-color: #000000;
    color: #fff;
}

section.more .box-two {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: auto;
    min-height: 70vh;
    min-height: 70svh;
    overflow: hidden;
}

section.more .box-left {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    justify-content: center;
}

section.more .box-left img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

section.more .box-right {
    width: 75vw;
    box-sizing: border-box;
    padding: 2rem 2rem 4rem 4rem
}

section.more .box-right .cont-box{
    padding-top: 1rem;
}

section.more .box-right .text-cont{
    align-items: right;
}

section.more .box-right p,
section.more .box-right h1{
    width: min(100%, 720px); 
    margin: 0.8rem 0 0 auto; /* Pushes that box to the right */
    text-align: right;       /* Aligns each text line to its right edge */
    line-height: 1.5;
}

/* ================= MESSAGE (full-bleed photo) ================= */

section.message {
  position: relative;
  max-width: 100vw;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3.5rem 3rem 6rem;
  background-color: #111;
  background-image: url("../img/web/services-crate.webp"); 
  background-size: cover;
  background-position:top ;
  color: #000;
  overflow: hidden;
}

/* light wash so the dark text stays readable on the photo */
section.message::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, .35) 0%,
    rgba(255, 255, 255, .12) 35%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
}

section.message .message-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: right;
}

section.message h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  margin-bottom: 1rem;
  margin-top: 0;
  color: #000;
}

section.message p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  color: #111;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* ---------- Tablet and below ---------- */
@media (max-width: 1024px) {
    /* HERO: image becomes a normal block under the text */
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-text {
        padding: 3rem 1.5rem 2.5rem;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(1.9rem, 6vw, 2.6rem);
        margin-bottom: 1.5rem;
    }

    .hero-text p {
        max-width: 100%;
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-img {
        position: static;          /* stop it from covering the text */
        width: 100%;
        height: auto;
        order: 2;
    }

    .hero-img img {
        width: 100%;
        height: clamp(220px, 42vw, 380px);
        object-fit: cover;
    }

    /* fade only makes sense in the side-by-side layout */
    .hero-img::after {
        display: none;
    }

    /* SERVICES / MORE: stack, image full width */
    section.services .box-two,
    section.more .box-two {
        flex-direction: column;
        min-height: 0;
        height: auto;
    }

    section.services .box-left,
    section.services .box-right,
    section.more .box-left,
    section.more .box-right {
        width: 100%;
    }

    section.services .box-left,
    section.more .box-right {
        padding: 3rem 1.5rem;
    }

    section.services .box-right,
    section.more .box-left {
        padding: 0;
        height: auto;
    }

    section.services .box-right img,
    section.more .box-left img {
        width: 100%;
        height: auto;
        max-height: 42vh;
        object-fit: cover;
    }

    /* put the image below the text on mobile in the dark section */
    section.more .box-two {
        flex-direction: column-reverse;
    }

    section.services .box-left p,
    section.more .box-right p {
        max-width: 100%;
    }

    /* MESSAGE */
    section.message {
        min-height: 0;
        justify-content: flex-start;
        padding: 3rem 1.5rem 4rem;
        background-position: center;
    }

    section.message .message-inner {
        max-width: 100%;
        text-align: left;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 560px) {
    .hero-text {
        padding: 2.5rem 1.25rem 2rem;
    }

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

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

    section.services .box-left,
    section.more .box-right {
        padding: 2.5rem 1.25rem;
    }

    section.services .box-left .cont-box,
    section.more .box-right .cont-box {
        margin-bottom: 2rem;
    }

    section.services .box-left h2,
    section.more .box-right h2 {
        font-size: 1.15rem;
    }

    section.services .box-left p,
    section.more .box-right p,
    section.message p {
        font-size: 1rem;
    }

    section.message {
        padding: 2.5rem 1.25rem 3.5rem;
    }

    /* stronger wash so dark text stays readable on a small photo */
    section.message::before {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .75) 0%,
            rgba(255, 255, 255, .55) 55%,
            rgba(255, 255, 255, .35) 100%
        );
    }

    section.message p {
        text-shadow: none;
    }
}
