/* ===============================
   Who We Serve Section
   Marketing + CTA Alignment
=============================== */

.section.enhanced {
    --rail-max: 1160px;
    --rail-pad: clamp(16px, 4vw, 48px);
    position: relative;
    padding: clamp(40px, 6vw, 80px) var(--rail-pad);
    margin: 0 auto;
    max-width: var(--rail-max);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
}

/* Left column */
.section.enhanced .col.copy {
    display: grid;
    align-content: start;
    gap: 20px;
}

.section.enhanced .main-headline {
    font-family: "Montserrat";
    font-weight: 700;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #1f1f1f;
    max-width: 22ch;
}

/* Paragraph + button on the same line */
.text-and-button {
    display: flex;
    align-items: flex-start; /* align button with top of paragraph */
    gap: 18px;
    flex-wrap: wrap; /* wraps on small screens */
}

.text-and-button .paragraph {
    font-family: "Montserrat";
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.55;
    color: #1f1f1f;
    max-width: 56ch;

    display: inline-block; /* do not occupy full width */
    flex: 1 1 auto; /* grow only as needed */
    margin: 0; /* no extra margin */
}

/* CTA button */
.section.enhanced .button.cta {
    border: 2px solid #165c7d; /* temporary border for debugging alignment */
    border-radius: 10px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease;
    margin-top: 0; /* keeps top aligned with paragraph */
}

.section.enhanced .icon-ionicons-filled-play {
    width: 24px;
    height: 24px;
    display: inline-block;
    fill: #165c7d;
    flex-shrink: 0;
}

.section.enhanced .watch-prototyping {
    font-size: clamp(17px, 1.7vw, 19px);
    line-height: 1;
    letter-spacing: 0.3px;
    font-weight: 600;
    color: #165c7d;
}

.section.enhanced .button.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
    background: rgba(22, 92, 125, 0.06);
}

/* Right column (image + glow) */
.section.enhanced .labtop-image.art {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.section.enhanced .ellipse-21 {
    position: absolute;
    width: min(70vw, 560px);
    aspect-ratio: 1;
    background: rgba(251, 188, 5, 0.5);
    border-radius: 50%;
    filter: blur(75px);
    z-index: 0;
    transform: translate(8%, 6%);
    animation: subtle-pulse 4s ease-in-out infinite;
}

.section.enhanced .samaneh-vajdi-unit-5-2 {
    position: relative;
    z-index: 1;
    width: min(84vw, 646px);
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(31, 50, 63, 0.22);
    animation: float-up 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Animations */
@keyframes subtle-pulse {
    0%,
    100% {
        transform: translate(8%, 6%) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translate(8%, 6%) scale(1.04);
        opacity: 1;
    }
}

@keyframes float-up {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .section.enhanced .ellipse-21,
    .section.enhanced .samaneh-vajdi-unit-5-2 {
        animation: none;
    }
    .section.enhanced .button.cta {
        transition: none;
    }
}

/* Responsive */
@media (max-width: 980px) {
    .section.enhanced {
        grid-template-columns: 1fr;
    }
    .section.enhanced .labtop-image.art {
        order: -1;
    } /* image above text */
}

@media (max-width: 640px) {
    /* keep things tidy on small screens */
    .text-and-button {
        gap: 12px;
    }
    .section.enhanced .watch-prototyping {
        font-size: 16px;
    }
}


@media (max-width: 640px) {
    /* Center text + button container */
    .text-and-button {
        flex-direction: column;   /* stack paragraph and button */
        align-items: center;      /* center content horizontally */
        text-align: center;       /* center paragraph text */
    }

    .text-and-button .paragraph {
        max-width: 100%;          /* allow full width */
    }

    .section.enhanced .button.cta {
        display: block;           /* behave like block element */
        width: 100%;              /* take full width */
        text-align: center;       /* center text inside */
        justify-content: center;  /* center icon + label */
        border-radius: 8px;
    }
}


@media (max-width: 640px) {
  /* Center the entire marketing block */
  .section.enhanced .col.copy {
    text-align: center;
    align-items: center;
  }

  /* Improve paragraph readability */
  .section.enhanced .paragraph {
    max-width: 90%;
    line-height: 1.6;
    margin: 0 auto 16px auto;  /* center with spacing under text */
  }

  /* Style the button to be easier to spot */
  .section.enhanced .button.cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;                /* full width on mobile */
    padding: 14px 20px;
    border-radius: 10px;
    background-color: #165c7d;  /* filled background */
    border: none;               /* remove border outline */
    color: #fff;                /* white text */
  }

  .section.enhanced .button.cta svg {
    fill: #fff;                 /* make play icon white */
  }

  .section.enhanced .watch-prototyping {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
  }
}


/* Mobile refinements for the Marketing section */
@media (max-width: 640px) {
  /* Create a tidy, readable block like your screenshot */
  #marketing.section.enhanced {
    margin-bottom: 48px;             /* more space before next section */
    padding-block: 28px;
    border-radius: 16px;
  }

  /* Constrain and center the text container */
  #marketing .section-text {
    max-width: 92%;
    margin: 0 auto;
  }

  /* Headline and paragraph: left align, comfortable line length */
  #marketing .main-headline {
    text-align: left;
    margin: 0 0 8px 0;
  }
  #marketing .text-and-button {
    flex-direction: column;      /* stack text then button */
    align-items: stretch;        /* let button fill width */
    gap: 14px;
    text-align: left;
  }
  #marketing .paragraph {
    max-width: 100%;
    line-height: 1.7;
    margin: 0;                   /* no extra gaps */
  }

  /* CTA: full width, outlined, no hover effects */
  #marketing .button.cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #165c7d;
    color: #165c7d;
    transition: none;            /* no hover animation */
    box-shadow: none;
  }
  #marketing .button.cta:hover,
  #marketing .button.cta:active {
    transform: none;
    background: #fff;
    box-shadow: none;
  }
  #marketing .button.cta .icon-ionicons-filled-play {
    fill: #165c7d;
  }
  #marketing .watch-prototyping {
    color: #165c7d;
    font-size: 16px;
    font-weight: 600;
  }
}

