/* ===============================
   SERVICES → WHY US TRANSITION
================================ */

.capabilities {
    position: relative;
    padding: 60px 0 100px;
    text-align: center;
    background: #f5f7f9;
}

.capabilities::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 180px;

    background:
        linear-gradient(
            to bottom,
            rgba(245,247,249,0) 0%,
            rgba(230,236,242,0.7) 60%,
            #eef3f7 100%
        );

    pointer-events: none;
}

.capability-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    gap: 40px 28px;

    padding-left: 20px;
    padding-right: 20px;

    box-sizing: border-box;
}

.cap-text {
    display: none;   /* 👈 kills old layout */
	
}

.capabilities .container {
    margin-top: 40px;
}

.cap-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cap-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #004fa3;
    margin-bottom: 18px;
}

.cap-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #f15d22;
    background: #f0f4f8;
    display: flex;
    align-items: flex-end;
	padding: 12px;
    justify-content: center;
    gap: 60px;
    height: 280px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, color 0.3s ease;
	margin-bottom: 16px;
}

.cap-card:hover {
    transform: translateY(-4px);
    color: #f15d22;
    ;
}

.cap-caption {
    margin-top: 12px;   /* 👈 add breathing room */
    font-size: 1rem;
    color: #111;
}

.cap-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    transition: transform 0.4s ease;
    z-index: 1;
}

.cap-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 79, 163, 0.25) 0%,   /* 👈 brand blue */
        rgba(0, 0, 0, 0.5) 100%      /* 👈 darker bottom for text */
    );

    opacity: 1;
}

.cap-card:hover::before {
    transform: scale(1.05);
}

/* Capability Backgrounds */
.cap-pressure::before {
    background-image: url("../assets/pressure.png");
}

.cap-temperature::before {
    background-image: url("../assets/temperature.png");
}

.cap-mass::before {
    background-image: url("../assets/mass.png");
}

.cap-dimensional::before {
    background-image: url("../assets/dimensional.png");
}

.cap-gas::before {
    background-image: url("../assets/gas.png");
}

.cap-healthcare::before {
    background-image: url("../assets/healthcare.png");
}

/* Why Us Section */

.why-card h2,
.why-card h3,
.why-card-centered h3 {
    margin-top: 0;
    color: #004fa3;
}

/* Force H3 to LOOK like H2 */
.why-card h3,
.why-card-centered h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.why-card p {
    line-height: 1.8;
    color: #000000;
    /* Dark grey is easier on the eyes than pure black */
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.why-card-centered {
    max-width: 1000px;
    margin: 0 auto;
}

/* grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

/* cards */
.why-card,
.why-card-centered {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,150,214,0.1);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;	
}

.content-card {
    background: #ffffff;

    padding: 60px;

    border-radius: 16px;

    border: 1px solid rgba(0,79,163,0.08);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.05);

    max-width: 1000px;
    margin: 0 auto;
}

/* ===============================
   FINAL DESKTOP SWOOP FIX
================================ */
.section-end {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.why-us-wrapper {
  position: relative;
  background: #eef3f7;
  padding: 80px 0 240px 0;
  overflow: hidden;
  margin-top: -120px;
	
}

/* swoop background */
.swoop-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 600px;
  z-index: 1;
  pointer-events: none;
}

.swoop-background svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* content ABOVE swoop */
.main-why-content {
  position: relative;
  z-index: 2;
}

.section-title {
    font-size: 2.4rem;
    color: #004fa3;
    margin-bottom: 10px;
    text-align: center;
}

.section-sub {
    color: #111111;
    margin-bottom: 40px;
    text-align: center;
}

.content-card h1,
.content-card h2,
.content-card h3 {
    color: #004fa3;
}

.content-card h1 {
    font-size: 2.4rem;
    margin-top: 0;
}

.content-card h2 {
    font-size: 2rem;
}

.content-card h3 {
    font-size: 1.35rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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