/* ==========================================================================
   SAREMCO TECH CASE STUDY — WEBTOS
   File: assets/css/saremco-tech-case-study.css
   ========================================================================== */

.saremco-case-page {
    --st-red: var(--color-red, #c0150f);
    --st-white: var(--color-white, #ffffff);
    --st-text: var(--color-gray-text, #9c9c9c);
    --st-border: rgba(255,255,255,.07);

    width: 100%;
    overflow: hidden;
    color: var(--st-white);
    background:
        radial-gradient(circle at 14% 4%, rgba(192,21,15,.07), transparent 24%),
        #050505;
}

.saremco-container {
    width: calc(100% - 4rem);
    max-width: 1400px;
    margin: 0 auto;
}

.saremco-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--st-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.saremco-label::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.saremco-button {
    min-height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: .25s ease;
}

.saremco-button-primary {
    background: var(--st-red);
    border: 1px solid var(--st-red);
}

.saremco-button-primary:hover {
    color: #fff;
    background: #df1a14;
    transform: translateY(-2px);
}

.saremco-button-secondary {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.14);
}

.saremco-button-secondary:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-2px);
}

.saremco-breadcrumb {
    margin-bottom: 3.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #575757;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.saremco-breadcrumb a {
    color: #777;
}

.saremco-breadcrumb a:hover {
    color: #fff;
}

.saremco-breadcrumb span[aria-current="page"] {
    color: var(--st-red);
}

/* Hero */

.saremco-hero {
    position: relative;
    min-height: calc(100vh - 90px);
    padding: 6rem 0 7rem;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.saremco-hero::before {
    content: "";
    position: absolute;
    top: 7%;
    right: -10%;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,21,15,.11), transparent 68%);
    z-index: -1;
}

.saremco-hero-grid {
    display: grid;
    grid-template-columns: minmax(0,.92fr) minmax(430px,.78fr);
    gap: 5rem;
    align-items: center;
}

.saremco-hero-copy h1 {
    max-width: 840px;
    margin: 18px 0 22px;
    color: #fff;
    font-size: clamp(50px,5.8vw,80px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.055em;
}

.saremco-hero-copy h1 span {
    color: var(--st-red);
    text-shadow: 0 0 34px rgba(192,21,15,.28);
}

.saremco-hero-tagline {
    margin-bottom: 1rem;
    color: #d7d7d7;
    font-size: 18px;
    font-weight: 700;
}

.saremco-hero-copy > p {
    max-width: 680px;
    color: var(--st-text);
    font-size: 15px;
    line-height: 1.8;
}

.saremco-hero-actions {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.saremco-service-line {
    margin-top: 3rem;
    padding-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.saremco-service-line span {
    padding: 7px 11px;
    color: #7c7c7c;
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 100px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Device Visual */

.saremco-hero-visual {
    position: relative;
    min-height: 560px;
    perspective: 1400px;
}

.saremco-device-stage {
    position: absolute;
    inset: 4%;
    transform-style: preserve-3d;
}

.saremco-laptop {
    position: absolute;
    inset: 6% 0 9%;
    transform: rotateY(-10deg) rotateX(4deg);
    animation: saremcoFloat 7s ease-in-out infinite;
}

.saremco-laptop-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.saremco-laptop-frame > img:first-child {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.saremco-laptop-screen {
    position: absolute;
    top: 15.5%;
    left: 17%;
    width: 66%;
    height: 57%;
    object-fit: cover;
    z-index: 1;
    border-radius: 2px;
}

.saremco-float-chip {
    position: absolute;
    z-index: 4;
    padding: 13px 16px;
    color: #d8d8d8;
    background: rgba(8,8,8,.9);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    animation: saremcoChip 5s ease-in-out infinite;
}

.saremco-float-chip strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 18px;
    text-transform: none;
    letter-spacing: -.02em;
}

.saremco-chip-one {
    top: 5%;
    right: 0;
}

.saremco-chip-two {
    left: 0;
    bottom: 8%;
    animation-delay: -2s;
}

.saremco-orbit {
    position: absolute;
    right: 1%;
    bottom: 1%;
    width: 165px;
    height: 165px;
    border: 1px solid rgba(192,21,15,.18);
    border-radius: 50%;
    animation: saremcoRotate 15s linear infinite;
}

.saremco-orbit::before,
.saremco-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.saremco-orbit::before {
    inset: 24px;
    border: 1px solid rgba(255,255,255,.06);
}

.saremco-orbit::after {
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--st-red);
    box-shadow: 0 0 18px rgba(192,21,15,.7);
}

/* Marquee */

.saremco-marquee {
    overflow: hidden;
    background: #080808;
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.saremco-marquee-track {
    width: max-content;
    padding: 1.1rem 0;
    display: flex;
    gap: 3rem;
    animation: saremcoMarquee 24s linear infinite;
}

.saremco-marquee-track span {
    color: #6c6c6c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.saremco-marquee-track b {
    color: var(--st-red);
}

/* Shared Sections */

.saremco-intro-section,
.saremco-strategy-section,
.saremco-visual-section,
.saremco-impact-section {
    padding: 8rem 0;
}

.saremco-intro-grid,
.saremco-strategy-grid,
.saremco-impact-grid {
    display: grid;
    grid-template-columns: minmax(300px,.72fr) minmax(0,1fr);
    gap: 7rem;
}

.saremco-heading h2,
.saremco-strategy-copy h2,
.saremco-impact-copy h2,
.saremco-cta h2 {
    color: #fff;
    font-size: clamp(34px,4vw,52px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.04em;
}

.saremco-heading h2,
.saremco-strategy-copy h2,
.saremco-impact-copy h2 {
    margin: 14px 0 18px;
}

.saremco-intro-copy p,
.saremco-strategy-copy p,
.saremco-impact-copy p {
    color: var(--st-text);
    font-size: 14px;
    line-height: 1.8;
}

.saremco-intro-copy p:first-child {
    margin-bottom: 1.4rem;
    color: #d2d2d2;
    font-size: 20px;
    line-height: 1.55;
}

/* Strategy */

.saremco-strategy-section {
    background: #070707;
    border-top: 1px solid rgba(255,255,255,.035);
    border-bottom: 1px solid rgba(255,255,255,.035);
}

.saremco-strategy-copy {
    position: sticky;
    top: 125px;
}

.saremco-strategy-flow {
    position: relative;
    padding-left: 3rem;
}

.saremco-strategy-flow::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 8px;
    width: 1px;
    background: linear-gradient(var(--st-red), rgba(192,21,15,.08));
}

.saremco-strategy-step {
    position: relative;
    padding: 0 0 3rem;
}

.saremco-strategy-step:last-child {
    padding-bottom: 0;
}

.saremco-strategy-step::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -3rem;
    width: 17px;
    height: 17px;
    background: #090909;
    border: 2px solid var(--st-red);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(192,21,15,.35);
}

.saremco-strategy-step span {
    display: block;
    margin-bottom: 8px;
    color: var(--st-red);
    font-family: monospace;
    font-size: 10px;
}

.saremco-strategy-step h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 21px;
}

.saremco-strategy-step p {
    max-width: 650px;
    color: var(--st-text);
    font-size: 13px;
    line-height: 1.72;
}

/* Visual */

.saremco-visual-stage {
    position: relative;
    min-height: 560px;
    perspective: 1500px;
}

.saremco-visual-card {
    position: absolute;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    box-shadow: 0 35px 85px rgba(0,0,0,.48);
}

.saremco-visual-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.saremco-card-one {
    inset: 5% 34% 5% 0;
    transform: rotateY(9deg) rotateZ(-1.5deg);
}

.saremco-card-two {
    top: 15%;
    right: 0;
    bottom: 12%;
    width: 43%;
    transform: translateZ(40px) rotateY(-8deg) rotateZ(1.5deg);
}

.saremco-visual-caption {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 3;
    max-width: 320px;
    padding: 1.4rem;
    background: rgba(7,7,7,.9);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    backdrop-filter: blur(14px);
}

.saremco-visual-caption span {
    color: var(--st-red);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.saremco-visual-caption p {
    margin-top: 8px;
    color: #c9c9c9;
    font-size: 13px;
    line-height: 1.65;
}

/* Impact */

.saremco-impact-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(192,21,15,.08), transparent 34%),
        #070707;
    border-top: 1px solid rgba(255,255,255,.035);
}

.saremco-impact-list {
    display: flex;
    flex-direction: column;
}

.saremco-impact-item {
    padding: 1.6rem 0;
    display: grid;
    grid-template-columns: 64px minmax(0,1fr);
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.saremco-impact-item:first-child {
    padding-top: 0;
}

.saremco-impact-item:last-child {
    border-bottom: 0;
}

.saremco-impact-item > span {
    color: var(--st-red);
    font-family: monospace;
    font-size: 11px;
}

.saremco-impact-item h3 {
    margin-bottom: 7px;
    color: #fff;
    font-size: 19px;
}

.saremco-impact-item p {
    color: var(--st-text);
    font-size: 12px;
    line-height: 1.7;
}

/* CTA */

.saremco-cta-section {
    position: relative;
    padding: 9rem 0;
    overflow: hidden;
    text-align: center;
}

.saremco-cta-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 820px;
    height: 450px;
    background: radial-gradient(circle, rgba(192,21,15,.11), transparent 68%);
    transform: translate(-50%,-50%);
}

.saremco-cta {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.saremco-cta h2 {
    margin: 15px auto 18px;
}

.saremco-cta p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--st-text);
    font-size: 15px;
    line-height: 1.75;
}

.saremco-cta-actions {
    margin-top: 2.4rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@keyframes saremcoFloat {
    0%,100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-7deg) rotateX(2deg) translateY(-12px); }
}

@keyframes saremcoChip {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes saremcoRotate {
    to { transform: rotate(360deg); }
}

@keyframes saremcoMarquee {
    to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
    .saremco-hero-grid,
    .saremco-intro-grid,
    .saremco-strategy-grid,
    .saremco-impact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .saremco-strategy-copy {
        position: static;
        max-width: 780px;
    }

    .saremco-hero-visual {
        max-width: 780px;
    }
}

@media (max-width: 768px) {
    .saremco-container {
        width: calc(100% - 2rem);
    }

    .saremco-hero {
        min-height: auto;
        padding: 4rem 0 5rem;
    }

    .saremco-breadcrumb {
        margin-bottom: 2.4rem;
        font-size: 8px;
    }

    .saremco-hero-copy h1 {
        font-size: clamp(36px,11vw,50px);
        line-height: 1.05;
    }

    .saremco-hero-tagline {
        font-size: 16px;
    }

    .saremco-hero-copy > p {
        font-size: 14px;
        line-height: 1.72;
    }

    .saremco-hero-actions,
    .saremco-cta-actions {
        flex-direction: column;
    }

    .saremco-button {
        width: 100%;
    }

    .saremco-hero-visual {
        min-height: 430px;
    }

    .saremco-laptop {
        transform: none;
        animation: none;
    }

    .saremco-orbit {
        display: none;
    }

    .saremco-chip-one {
        right: 10px;
    }

    .saremco-chip-two {
        left: 10px;
    }

    .saremco-intro-section,
    .saremco-strategy-section,
    .saremco-visual-section,
    .saremco-impact-section {
        padding: 5rem 0;
    }

    .saremco-heading h2,
    .saremco-strategy-copy h2,
    .saremco-impact-copy h2,
    .saremco-cta h2 {
        font-size: clamp(29px,8.5vw,38px);
    }

    .saremco-intro-copy p:first-child {
        font-size: 18px;
    }

    .saremco-strategy-flow {
        padding-left: 2.2rem;
    }

    .saremco-strategy-step::before {
        left: -2.2rem;
    }

    .saremco-visual-stage {
        min-height: auto;
        display: grid;
        gap: 1rem;
        perspective: none;
    }

    .saremco-visual-card {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 280px;
        transform: none;
    }

    .saremco-visual-caption {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: none;
    }

    .saremco-impact-item {
        grid-template-columns: 40px minmax(0,1fr);
        gap: 1rem;
    }

    .saremco-cta-section {
        padding: 6rem 0;
    }

    .saremco-cta p {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .saremco-container {
        width: calc(100% - 1.5rem);
    }

    .saremco-hero-copy h1 {
        font-size: 33px;
    }

    .saremco-service-line {
        flex-direction: column;
    }

    .saremco-service-line span {
        text-align: center;
    }

    .saremco-float-chip strong {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .saremco-case-page *,
    .saremco-case-page *::before,
    .saremco-case-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
