@import url('../global-typography.css');

:root {
    --teal: #0A919B;
    --black: #0d0d0d;
    --white: #ffffff;
    --gray: #f2f2f2;

    /* --- Spacing --- */
    --section-padding: 120px 8%;
    --section-padding-mobile: 80px 5%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--black); color: var(--white); overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 8%; }
.teal-text { color: var(--teal); }
.label-mono { font-family: monospace; letter-spacing: 4px; color: var(--teal); display: block; margin-bottom: 20px; font-weight: 700; }

/* HERO */
.services-hero {
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.services-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title { font-size: clamp(56px, 10vw, 128px); font-weight: 800; line-height: 0.85; }
.hero-sub { font-size: 22.4px; max-width: 600px; margin: 30px auto 0; opacity: 0.7; }

/* THE STACKING SYSTEM */
.stack-section { position: relative; width: 100%; }
.stack-cards { display: flex; flex-direction: column; align-items: center; }

.s-card {
    position: sticky;
    top: 10vh; /* This is the anchor point */
    width: 90vw;
    max-width: 1100px;
    height: 75vh;
    border-radius: 40px;
    margin-bottom: 15vh; /* This creates the "scroll distance" */
    display: flex;
    align-items: center;
    padding: 60px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.3);
    will-change: transform, opacity; /* Boosts Performance */
}

/* COLORS */
.stack-cards .s-card:nth-child(1) {
    background: #12474C;
    color: #ffffff;
}

.stack-cards .s-card:nth-child(2) {
    background: #0A919B;
    color: #ffffff;
}

.stack-cards .s-card:nth-child(3) {
    background: #DDDBDD;
    color: #12474C;
}

.stack-cards .s-card:nth-child(4) {
    background: #12474C;
    color: #ffffff;
    border: 1px solid rgba(221, 219, 221, 0.18);
}

.stack-cards .s-card:nth-child(5) {
    background: #0A919B;
    color: #ffffff;
    border: 1px solid rgba(221, 219, 221, 0.18);
}

.stack-cards .s-card:nth-child(1) .c-num { color: #DDDBDD; opacity: 0.18; }
.stack-cards .s-card:nth-child(2) .c-num { color: #DDDBDD; opacity: 0.2; }
.stack-cards .s-card:nth-child(3) .c-num { color: #12474C; opacity: 0.18; }
.stack-cards .s-card:nth-child(4) .c-num { color: #DDDBDD; opacity: 0.18; }
.stack-cards .s-card:nth-child(5) .c-num { color: #DDDBDD; opacity: 0.2; }

.stack-cards .s-card:nth-child(3) .white-text,
.stack-cards .s-card:nth-child(4) .white-text {
    color: inherit;
}

.stack-cards .s-card:nth-child(1) .btn-service {
    border-color: #ffffff;
    color: #ffffff;
}

.stack-cards .s-card:nth-child(2) .btn-service {
    border-color: #ffffff;
    color: #ffffff;
}

.stack-cards .s-card:nth-child(3) .btn-service {
    border-color: #12474C;
    color: #12474C;
}

.stack-cards .s-card:nth-child(4) .btn-service {
    border-color: #ffffff;
    color: #ffffff;
}

.stack-cards .s-card:nth-child(5) .btn-service {
    border-color: #ffffff;
    color: #ffffff;
}

.card-inner {
    position: relative;
    width: 100%;
    padding-right: 180px;
}

.c-num {
    font-size: 112px;
    font-weight: 800;
    line-height: 0.85;
    opacity: 0.1;
    position: absolute;
    top: 0;
    right: 0;
}
.card-inner h2 { font-size: 56px; font-weight: 800; margin-bottom: 20px; line-height: 1; }
.card-inner p { font-size: 19.2px; max-width: 650px; line-height: 1.6; margin-bottom: 40px; }

.service-points {
    display: grid;
    gap: 10px;
    list-style-position: inside;
    max-width: 720px;
    padding: 0;
}

.service-points li {
    font-size: 16px;
    line-height: 1.45;
}

.btn-service {
    display: inline-block; padding: 15px 35px; border: 2px solid var(--black);
    text-decoration: none; color: var(--black); font-weight: 800; text-transform: uppercase; font-size: 13.6px;
}
.white-btn { border-color: var(--white); color: var(--white); }

/* FINAL CTA */
.final-cta {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.cta-reveal-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--teal);
    transform: translateY(100%);
    z-index: 1;
}
.cta-content { position: relative; z-index: 2; }
.cta-huge { font-size: clamp(64px, 10vw, 128px); font-weight: 800; margin-bottom: 30px; }
.cta-title-link {
    color: inherit;
    display: inline-block;
    text-decoration: none;
}
/* Hide duplicate CTA in shared footer — Services page has its own */
.footer-cta-hero { display: none !important; }

.outline-text { -webkit-text-stroke: 0; color: white; }
.btn-main { 
    display: inline-block; padding: 25px 60px; background: white; color: var(--black);
    text-decoration: none; font-weight: 800; border-radius: 50px; margin-top: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .services-hero { height: 60vh; }
    .hero-sub { font-size: 17.6px; }
    
    .s-card {
        width: 95vw;
        height: auto;
        min-height: 60vh;
        padding: 40px 30px;
        border-radius: 30px;
        margin-bottom: 5vh;
        top: 80px;
    }
    
    .card-inner { padding-right: 90px; }
    .card-inner h2 { font-size: 35.2px; }
    .card-inner p { font-size: 16px; margin-bottom: 30px; }
    .c-num { font-size: 64px; top: 0; }
    
    .cta-huge { font-size: 56px; }
    .btn-main { padding: 20px 40px; font-size: 14.4px; }
}
/* --- GLOBAL MOBILE RESPONSIVENESS (CONSISTENCY FIX) --- */
@media (max-width: 768px) {
    h1, .hero-title, .reveal-text, .cta-large-text, .cta-huge, .massive-title, .cap-head {
        font-size: clamp(40px, 8vw, 56px) !important;
        line-height: var(--lh-display) !important;
    }
    h2, .sec-title, .main-title, .client-intro-mini h2 {
        font-size: clamp(32px, 6vw, 40px) !important;
        line-height: var(--lh-heading) !important;
    }
    h3, .lead-text, .card-inner h2, .industry-info h3 {
        font-size: clamp(24px, 5vw, 28.8px) !important;
        line-height: var(--lh-subheading) !important;
    }
    p, .sub-statement, .sub-text, .hero-desc, .hero-sub {
        font-size: 16px !important;
        line-height: var(--lh-p) !important;
    }
    /* Section Padding Consistency */
    section, .section, .client-perfect-section, .industry-section, .simple-trust, .services-modern, .testimonial-stage, .insights-modern, .stack-section, .final-cta, .site-footer-premium, .site-footer { 
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}
