
/* ==========================================
   TAJ INDIA MACHINERY
   SPECIAL PURPOSE MACHINES - HERO VIDEO
   Same proportions as About page video
========================================== */

.spm-page,
.spm-page * {
    box-sizing: border-box;
}

.spm-page {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
    font-family: "Oxanium", sans-serif;
}


/* ==========================================
   HERO SECTION
========================================== */

.spm-hero {
    position: relative;

    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;
    aspect-ratio: 3736 / 2220;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #354783;
    line-height: 0;
}


/* ==========================================
   FULL VIDEO
========================================== */

.spm-hero-video {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;
    aspect-ratio: 3736 / 2220;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;

    border: 0;
    outline: 0;

    background: #354783;
}


/* ==========================================
   TABLET
========================================== */

@media screen and (max-width: 900px) {

    .spm-hero {
        width: 100%;
        height: auto;
        aspect-ratio: 3736 / 2220;
    }

    .spm-hero-video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width: 600px) {

    .spm-hero {
        width: 100%;
        height: auto;
        aspect-ratio: 3736 / 2220;

        overflow: hidden;
    }

    .spm-hero-video {
        display: block;

        width: 100%;
        max-width: 100%;
        height: auto;

        aspect-ratio: 3736 / 2220;

        object-fit: contain;
        object-position: center;
    }
}



/* ==========================================
   SPM INTRO SECTION
   Left Content + Right Machine Image
========================================== */

.spm-intro-section,
.spm-intro-section * {
    box-sizing: border-box;
}

.spm-intro-section {
    width: 100%;
    margin: 0;
    padding: 60px;

    background: #fff7f2;
    color: #26364c;
}

.spm-intro-container {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
    align-items: center;
    gap: clamp(35px, 5vw, 80px);

    width: calc(100% - 10%);
    max-width: 1500px;
    margin: 0 auto;
}

/* ==========================================
   LEFT CONTENT
========================================== */

.spm-intro-content {
    width: 100%;
    min-width: 0;
}

.spm-intro-content h2 {
    margin: 0 0 30px;
    padding: 0;

    background: linear-gradient(
        100deg,
        #b10b67 0%,
        #8f147e 55%,
        #5424a5 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    color: #9a147a;
    font-family: "Oxanium", sans-serif;
    font-size: 35px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.spm-intro-content p {
    margin: 0 0 20px;
    padding: 0;

    color: #566577;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;

    overflow-wrap: break-word;
}

.spm-intro-content p:last-child {
    margin-bottom: 0;
}

.spm-intro-content strong {
    color: #4e6075;
    font-weight: 700;
}

/* ==========================================
   RIGHT IMAGE FRAME
========================================== */

.spm-intro-image {
    width: 100%;
    min-width: 0;
    min-height: 350px;

    border: 1px solid #f8e2d5;
    border-radius: 15px;
    overflow: hidden;

    background: #fff7f2;
}

/* Zoom viewport */

.spm-image-zoom {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 350px;

    overflow: hidden;
}

/* Machine image */

.spm-image-zoom img {
    display: block;

    width: 60%;
    height: 100%;
    min-height: 350px;

    margin: 0;
    padding: 30px;

    object-fit: contain;
    object-position: center;

    transform: scale(1);
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);

    will-change: transform;
}

/* Smooth zoom on hover */

.spm-intro-image:hover .spm-image-zoom img {
    transform: scale(1.10);
}

/* Keyboard accessibility */

.spm-intro-image:focus-within {
    outline: 2px solid #8f147e;
    outline-offset: 3px;
}

/* ==========================================
   LAPTOP
========================================== */

@media screen and (max-width: 1200px) {

    .spm-intro-section {
        padding: 45px 0 50px;
    }

    .spm-intro-container {
        width: calc(100% - 8%);
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
        gap: 35px;
    }

    .spm-intro-content h2 {
        margin-bottom: 24px;
        font-size: clamp(28px, 3vw, 36px);
    }

    .spm-intro-content p {
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.8;
    }

    .spm-intro-image,
    .spm-image-zoom,
    .spm-image-zoom img {
        min-height: 440px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media screen and (max-width: 900px) {

    .spm-intro-section {
        padding: 40px 0 45px;
    }

    .spm-intro-container {
        width: calc(100% - 50px);
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .spm-intro-content h2 {
        margin-bottom: 22px;
        font-size: clamp(29px, 4.2vw, 38px);
    }

    .spm-intro-content p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .spm-intro-image {
        width: 100%;
        max-width: 540px;
        min-height: 400px;
        margin: 0 auto;
    }

    .spm-image-zoom,
    .spm-image-zoom img {
        min-height: 400px;
    }

    /* Disable hover-style zoom on touch devices */
    .spm-intro-image:hover .spm-image-zoom img {
        transform: scale(1);
    }
}

/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width: 600px) {

    .spm-intro-section {
        padding: 30px 0 35px;
    }

    .spm-intro-container {
        width: calc(100% - 30px);
        gap: 22px;
    }

    .spm-intro-content h2 {
        margin-bottom: 18px;
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.3;
    }

    .spm-intro-content p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 18px;
    }

    .spm-intro-image {
        width: 100%;
        max-width: 100%;
        min-height: 330px;
        border-radius: 10px;
    }

    .spm-image-zoom,
    .spm-image-zoom img {
        min-height: 330px;
    }

    .spm-image-zoom img {
        padding: 15px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media screen and (max-width: 380px) {

    .spm-intro-container {
        width: calc(100% - 24px);
        gap: 18px;
    }

    .spm-intro-content h2 {
        font-size: 25px;
    }

    .spm-intro-content p {
        font-size: 14px;
        line-height: 1.75;
    }

    .spm-intro-image {
        min-height: 280px;
    }

    .spm-image-zoom,
    .spm-image-zoom img {
        min-height: 280px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .spm-image-zoom img {
        transition: none;
    }
}



/* ==========================================
   ADVANTAGES OF SPM SECTION
========================================== */

.spm-advantages-section,
.spm-advantages-section * {
    box-sizing: border-box;
}

.spm-advantages-section {
    width: 100%;
    margin: 0;
    padding: 60px;

    background: #ffede3;
}

.spm-advantages-container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 40px;

    width: calc(100% - 10%);
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================
   LEFT MACHINE IMAGE
========================================== */

.spm-advantages-image {
    width: 95%;
    min-width: 0;
    height: 400px;

    overflow: hidden;
    border: 1px solid #ffd8c4;
    border-radius: 15px;

    background: #ffede3;
}

.spm-advantages-image-inner {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    overflow: hidden;
}

.spm-advantages-image-inner img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 20px;

    object-fit: contain;
    object-position: center;

    transform: scale(1);
    transition: transform 0.55s ease;
    will-change: transform;
}

/* Smooth hover zoom */

.spm-advantages-image:hover
.spm-advantages-image-inner img {
    transform: scale(1.07);
}

/* ==========================================
   RIGHT CONTENT
========================================== */

.spm-advantages-content {
    width: 100%;
    min-width: 0;
}

.spm-advantages-content h2 {
    margin: 0 0 20px;
    padding: 0;

    background: linear-gradient(
        100deg,
        #b20b67 0%,
        #8f147e 55%,
        #5424a5 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    color: #9b147b;
    font-family: "Oxanium", sans-serif;
    font-size: 35px ;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: break-word;
}

/* ==========================================
   ADVANTAGES LIST
========================================== */

.spm-advantages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
}

.spm-advantages-list li {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 40px;

    margin: 0;
    padding: 8px 12px;

    background: #ffe2d2;
    color: #596a7d;

    font-family: "Oxanium", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;

    overflow-wrap: break-word;
}

/* Green check icon */

.spm-advantage-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 16px;
    width: 16px;
    height: 16px;

    color: #19bd24;
}

.spm-advantage-check svg {
    display: block;

    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

/* ==========================================
   LAPTOP
========================================== */

@media screen and (max-width: 1200px) {

    .spm-advantages-section {
        padding: 42px 0 48px;
    }

    .spm-advantages-container {
        width: calc(100% - 6%);
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 28px;
    }

    .spm-advantages-image {
        height: 490px;
    }

    .spm-advantages-image-inner img {
        padding: 22px;
    }

    .spm-advantages-content h2 {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .spm-advantages-list {
        gap: 18px;
    }

    .spm-advantages-list li {
        font-size: 15px;
        padding: 9px 10px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media screen and (max-width: 900px) {

    .spm-advantages-section {
        padding: 35px 0 42px;
    }

    .spm-advantages-container {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 50px);
        gap: 30px;
    }

    .spm-advantages-image {
        width: 100%;
        height: 440px;
    }

    .spm-advantages-content h2 {
        font-size: 34px;
        margin-bottom: 24px;
    }

    .spm-advantages-list {
        gap: 15px;
    }

    .spm-advantages-list li {
        min-height: 44px;
        font-size: 16px;
    }

    /* Touch devices don't need hover zoom */
    .spm-advantages-image:hover
    .spm-advantages-image-inner img {
        transform: scale(1);
    }
}

/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width: 600px) {

    .spm-advantages-section {
        padding: 28px 0 32px;
    }

    .spm-advantages-container {
        width: calc(100% - 30px);
        gap: 24px;
    }

    .spm-advantages-image {
        height: 340px;
        border-radius: 10px;
    }

    .spm-advantages-image-inner img {
        padding: 15px;
    }

    .spm-advantages-content h2 {
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .spm-advantages-list {
        gap: 12px;
    }

    .spm-advantages-list li {
        min-height: 44px;
        padding: 10px;
        gap: 10px;
        font-size: 14px;
        line-height: 1.6;
    }

    .spm-advantage-check {
        flex-basis: 17px;
        width: 17px;
        height: 17px;
    }

    .spm-advantage-check svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media screen and (max-width: 380px) {

    .spm-advantages-container {
        width: calc(100% - 24px);
        gap: 20px;
    }

    .spm-advantages-image {
        height: 290px;
    }

    .spm-advantages-content h2 {
        font-size: 26px;
    }

    .spm-advantages-list li {
        font-size: 13px;
        padding: 9px 8px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .spm-advantages-image-inner img {
        transition: none;
    }
}




/* ==========================================
   SPM FEATURES - ANIMATED HOVER CARDS
========================================== */

.spm-features-section,
.spm-features-section * {
    box-sizing: border-box;
}

.spm-features-section {
    width: 100%;
    margin: 0;
    padding: 60px;

    background: #fff7f5;
    color: #ffffff;
}

.spm-features-container {
    width: calc(100% - 10%);
    max-width: 1400px;
    margin: 0 auto;
}


/* ==========================================
   THREE-COLUMN GRID
========================================== */

.spm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    width: 100%;
    margin: 0;
    padding: 0;
}


/* ==========================================
   BASE CARD
========================================== */

.spm-feature-card {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    min-width: 0;
    height: clamp(250px, 22.5vw, 350px);

    margin: 0;
    padding: 0;

    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;

    background: #ffbf99;
    color: #ffffff;

    cursor: default;

    transition:
        background-color 420ms ease,
        box-shadow 420ms ease,
        transform 420ms cubic-bezier(.2, .7, .25, 1);
}


/* ==========================================
   TOP COLOR STRIP
========================================== */

.spm-feature-top {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: -1;

    width: 100%;
    height: 30%;

    background: #e0a17e;
    opacity: 1;

    transition:
        background-color 420ms ease,
        opacity 420ms ease,
        height 420ms ease;
}


/* ==========================================
   ICON BADGE
========================================== */

.spm-feature-icon {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 clamp(56px, 6.5vw, 100px);
    width: clamp(56px, 6.5vw, 100px);
    height: clamp(56px, 6.5vw, 100px);

    margin: clamp(26px, 3.2vw, 58px) 0 0;
    padding: clamp(17px, 1.7vw, 28px);

    border-radius: 44% 44% 48% 48% / 36% 36% 55% 55%;

    background: #fff0e6;
    color: #e5a17b;

    transform: scale(1);

    transition:
        background-color 420ms ease,
        color 420ms ease,
        transform 420ms cubic-bezier(.2, .7, .25, 1);
}

.spm-feature-icon svg {
    display: block;

    width: 90%;
    height: 100%;

    overflow: visible;
}


/* ==========================================
   CARD TEXT
========================================== */

.spm-feature-content {
    position: relative;
    z-index: 1;

    width: 100%;
    margin: clamp(18px, 2vw, 34px) 0 0;
    padding: 0 22px 24px;

    text-align: center;
}

.spm-feature-content h3 {
    margin: 0 0 12px;
    padding: 0;

    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;

    transition: color 350ms ease;
}

.spm-feature-content p {
    max-width: 400px;

    margin: 0 auto;
    padding: 0;

    color: #ffffff;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;

    overflow-wrap: break-word;
}


/* ==========================================
   EXACT HOVER EFFECT
   Selected card turns brighter orange
========================================== */

@media (hover: hover) and (pointer: fine) {

    .spm-feature-card:hover {
        background: #ffa970;

        box-shadow: 0 10px 26px rgba(151, 77, 34, 0.12);

        transform: translateY(-2px);
    }

    .spm-feature-card:hover .spm-feature-top {
        height: 30%;
        background: #ffa970;
        opacity: 0;
    }

    .spm-feature-card:hover .spm-feature-icon {
        background: #fff3e9;
        color: #e49a70;
        transform: scale(1.035);
    }
}


/* Keyboard navigation */

.spm-feature-card:focus-visible {
    outline: 3px solid #a61b71;
    outline-offset: 3px;
}


/* ==========================================
   LAPTOP
========================================== */

@media screen and (max-width: 1200px) {

    .spm-features-container {
        width: calc(100% - 6%);
    }

    .spm-features-grid {
        gap: 20px;
    }

    .spm-feature-card {
        height: clamp(270px, 27vw, 350px);
    }

    .spm-feature-icon {
        flex-basis: 82px;
        width: 82px;
        height: 82px;

        margin-top: 30px;
        padding: 17px;
    }

    .spm-feature-content {
        margin-top: 24px;
        padding: 0 14px 20px;
    }

    .spm-feature-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .spm-feature-content p {
        font-size: 12px;
    }
}


/* ==========================================
   TABLET
========================================== */

@media screen and (max-width: 800px) {

    .spm-features-section {
        padding: 25px 0 30px;
    }

    .spm-features-container {
        width: calc(100% - 36px);
    }

    .spm-features-grid {
        gap: 14px;
    }

    .spm-feature-card {
        height: 270px;
    }

    .spm-feature-icon {
        flex-basis: 68px;
        width: 68px;
        height: 68px;

        margin-top: 25px;
        padding: 14px;
    }

    .spm-feature-content {
        margin-top: 20px;
        padding: 0 10px 18px;
    }

    .spm-feature-content h3 {
        font-size: 14px;
        margin-bottom: 9px;
    }

    .spm-feature-content p {
        font-size: 11px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width: 600px) {

    .spm-features-section {
        padding: 22px 0 28px;
    }

    .spm-features-container {
        width: calc(100% - 30px);
    }

    .spm-features-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;

        max-width: 390px;
        margin: 0 auto;
    }

    .spm-feature-card {
        height: 270px;
        border-radius: 4px;
    }

    .spm-feature-top {
        height: 30%;
    }

    .spm-feature-icon {
        flex-basis: 76px;
        width: 76px;
        height: 76px;

        margin-top: 27px;
        padding: 16px;
    }

    .spm-feature-content {
        margin-top: 20px;
        padding: 0 20px 20px;
    }

    .spm-feature-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .spm-feature-content p {
        font-size: 13px;
        line-height: 1.65;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media screen and (max-width: 380px) {

    .spm-features-container {
        width: calc(100% - 24px);
    }

    .spm-feature-card {
        height: 250px;
    }

    .spm-feature-icon {
        flex-basis: 70px;
        width: 70px;
        height: 70px;

        margin-top: 24px;
        padding: 14px;
    }

    .spm-feature-content {
        margin-top: 18px;
    }

    .spm-feature-content h3 {
        font-size: 15px;
    }

    .spm-feature-content p {
        font-size: 12px;
    }
}


/* Respect reduced-motion settings */

@media (prefers-reduced-motion: reduce) {

    .spm-feature-card,
    .spm-feature-top,
    .spm-feature-icon,
    .spm-feature-content h3 {
        transition: none;
    }
}


/* Features Section Heading */

.spm-features-heading {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;

    font-size: clamp(27px, 2.1vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;

    background: linear-gradient(
        90deg,
        #bd0871,
        #791a9c
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 600px) {
    .spm-features-heading {
        margin-bottom: 25px;
        font-size: 25px;
        line-height: 1.4;
    }
}