/*
 * Positivus treatment — adapted from positivus-from-figma (Next.js 16 + Tailwind v4)
 * Source design by Olga (@olgaaverchenko) from Figma Community.
 * Visual vocabulary: rounded-[45px] cards, 5px offset solid shadow, pink chip
 * headings, near-black accent (#191a23), bright surface, Space Grotesk.
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #EC4899;       /* hot pink (formerly Positivus neon green) */
    --accent: #191A23;        /* near-black */
    --surface: #FFFFFF;       /* page bg */
    --surface-soft: #F3F3F3;  /* card grey */
    --ink: #000000;
    --ink-muted: #292A32;
    --white: #FFFFFF;
    --container: 1240px;
    --section-pad: clamp(60px, 8vw, 140px);
    --card-radius: 45px;
    --shadow-offset: 0 5px 0 0 var(--accent);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface);
    color: var(--ink);
    line-height: 1.5;
    font-weight: 400;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--accent);
}

a { color: inherit; text-decoration: none; }
p { color: var(--ink-muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 100px; }
@media (max-width: 1200px) { .container { padding: 0 60px; } }
@media (max-width: 640px) { .container { padding: 0 24px; } }

/* ---------- Section heading "chip" pattern ---------- */
.section-head {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
@media (max-width: 768px) { .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; } }

.section-chip {
    background: var(--primary);
    padding: 0 7px;
    border-radius: 7px;
    display: inline-block;
}
.section-chip h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    line-height: 1;
    margin: 0;
    color: var(--accent);
    padding: 4px 0;
}

.section-sub {
    flex: 1;
    max-width: 580px;
    font-size: 18px;
    color: var(--ink);
}

section, .section {
    padding: 70px 0;
    scroll-margin-top: 40px;
}
@media (max-width: 768px) { section, .section { padding: 40px 0; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 19px 35px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 400;
    border: 1px solid var(--accent);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #2a2b35; }
.btn-secondary { background: var(--white); color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--white); }
.btn-accent { background: var(--primary); color: var(--accent); border-color: var(--accent); }
.btn-accent:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
    .btn { padding: 14px 22px; font-size: 16px; }
}

/* ---------- Nav ---------- */
.nav {
    position: relative;
    z-index: 50;
    padding: 60px 0 0;
}
@media (max-width: 640px) { .nav { padding: 24px 0 0; } }
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 500;
    color: var(--accent);
}
.nav-logo-mark {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 20px;
}
.nav-links { list-style: none; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.nav-links a { font-size: 20px; color: var(--accent); }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nav-cta { display: inline-flex; gap: 12px; }
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
}

/* ---------- HERO ---------- */
.hero {
    padding: 70px 0 60px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 500;
    max-width: 531px;
    margin-bottom: 35px;
    line-height: 1.04;
}
.hero p { font-size: 20px; color: var(--ink); max-width: 498px; margin-bottom: 35px; }
.hero-illustration {
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-illustration { max-width: 480px; margin: 30px auto 0; }
}

/* ---------- LOGOTYPES strip ---------- */
.logotypes {
    padding: 40px 0;
}
.logotypes-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow-x: auto;
    flex-wrap: wrap;
}
.logotypes-row .lg-item {
    color: var(--accent);
    font-size: 20px;
    font-weight: 500;
    opacity: 0.55;
    white-space: nowrap;
    filter: grayscale(1);
}

/* ---------- SERVICES (topics) — 2-col rounded cards ---------- */
.topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 1024px) { .topics-grid { grid-template-columns: 1fr; } }

.topic-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 49px;
    border-radius: var(--card-radius);
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-offset);
    min-height: 310px;
    overflow: hidden;
}
@media (max-width: 1200px) { .topic-card { padding: 35px; } }
.topic-card.v-grey { background: var(--surface-soft); }
.topic-card.v-pink { background: var(--primary); }
.topic-card.v-dark { background: var(--accent); color: var(--white); }
.topic-card.v-dark h3 { color: var(--white); }
.topic-card.v-dark .topic-link { color: var(--white); }
.topic-card.v-dark-pink { background: var(--accent); color: var(--white); }
.topic-card.v-dark-pink h3 { color: var(--white); }
.topic-card.v-dark-pink h3 .chip { background: var(--primary); color: var(--accent); }
.topic-card.v-dark-pink .topic-link { color: var(--white); }

.topic-card .topic-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 60px;
    flex: 1;
    min-width: 0;
}
.topic-card h3 {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    line-height: 1.27;
}
.topic-card h3 .chip {
    background: var(--white);
    color: var(--accent);
    padding: 0 7px;
    border-radius: 7px;
    display: inline-block;
}
.topic-card.v-pink h3 .chip { background: var(--white); }
.topic-card.v-grey h3 .chip { background: var(--primary); }
.topic-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
}
.topic-link-arrow {
    width: 41px; height: 41px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.topic-card.v-dark .topic-link-arrow, .topic-card.v-dark-pink .topic-link-arrow { background: var(--white); color: var(--accent); }

.topic-illustration {
    width: 210px;
    height: 170px;
    flex-shrink: 0;
    object-fit: contain;
}
@media (max-width: 640px) {
    .topic-card { flex-direction: column; align-items: flex-start; min-height: 0; padding: 30px; }
    .topic-illustration { width: 100%; max-width: 165px; height: 130px; align-self: center; }
    .topic-card .topic-body { gap: 30px; }
}

/* ---------- CTA / Featured-insight band ---------- */
.cta-band {
    background: var(--surface-soft);
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 60px;
    margin: 23px 0;
    overflow: hidden;
}
@media (max-width: 1200px) { .cta-band { padding: 40px; } }
.cta-band-text { flex: 3; max-width: 500px; }
.cta-band h3 {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 500;
    margin-bottom: 26px;
    line-height: 1.2;
}
.cta-band p { font-size: 18px; color: var(--ink); margin-bottom: 26px; }
.cta-band-illustration { flex: 2; max-width: 360px; display: flex; justify-content: center; }
.cta-band-svg {
    width: 100%;
    height: auto;
    color: var(--accent);
}
@media (max-width: 900px) {
    .cta-band { flex-direction: column; padding: 30px; text-align: left; }
    .cta-band-illustration { display: none; }
}

/* ---------- CASE STUDIES (dark band with 3-col panels) ---------- */
.case-studies {
    background: var(--accent);
    color: var(--white);
    border-radius: var(--card-radius);
    padding: 70px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
}
@media (max-width: 1024px) { .case-studies { grid-template-columns: 1fr; gap: 40px; padding: 50px 40px; } }
@media (max-width: 640px) { .case-studies { padding: 36px 28px; gap: 32px; } }

.case-item h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 0;
}
.case-item h4 + p, .case-item p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 20px; }
.case-item .case-stat {
    font-size: 48px;
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.case-item .case-link {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}
.case-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.18);
    padding-right: 30px;
}
@media (max-width: 1024px) {
    .case-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.18);
        padding-right: 0;
        padding-bottom: 30px;
    }
}

/* ---------- PROCESS — numbered expanding cards ---------- */
.process-list { display: flex; flex-direction: column; gap: 30px; }

.process-item {
    background: var(--surface-soft);
    border: 1px solid var(--accent);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-offset);
    padding: 40px 60px;
    position: relative;
}
@media (max-width: 768px) { .process-item { padding: 26px 30px; } }

.process-item.is-open { background: var(--primary); }

.process-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
}
.process-head-label {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    color: var(--accent);
}
.process-num {
    font-size: clamp(28px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1;
    color: var(--accent);
}
.process-title {
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 500;
    color: var(--accent);
    line-height: 1.2;
}
.process-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s;
    cursor: pointer;
}
.process-item.is-open .process-toggle { transform: rotate(45deg); background: var(--accent); color: var(--primary); }
.process-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.process-item.is-open .process-body {
    max-height: 800px;
    opacity: 1;
}
.process-divider { height: 1px; background: var(--accent); margin: 30px 0 28px; }
.process-text { font-size: 18px; color: var(--accent); line-height: 1.4; }

/* ---------- TEAM CARDS ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; gap: 30px; } }

.team-card {
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-offset);
    padding: 40px 35px;
}
.team-photo {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 28px;
    background: var(--surface-soft);
}
.team-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}
.team-header h4 { font-size: 20px; font-weight: 500; color: var(--accent); }
.team-role { font-size: 18px; color: var(--ink-muted); margin-bottom: 28px; }
.team-divider { height: 1px; background: var(--accent); margin: 28px 0; }
.team-bio { font-size: 18px; color: var(--accent); line-height: 1.4; }
.team-linkedin {
    width: 34px; height: 34px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    background: var(--accent);
    color: var(--white);
    border-radius: var(--card-radius);
    padding: 84px 60px 64px;
    text-align: center;
    overflow: hidden;
}
@media (max-width: 768px) { .testimonials { padding: 50px 30px; } }

.testimonials .container { padding: 0; }
.testimonials-track {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 30px 10px 20px;
    margin: 0 -10px;
    scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 45px;
    padding: 48px 52px;
    min-width: 600px;
    max-width: 606px;
    flex-shrink: 0;
    scroll-snap-align: center;
    text-align: left;
    position: relative;
}
@media (max-width: 768px) {
    .testimonial-card { min-width: 280px; max-width: 320px; padding: 32px; }
}
.testimonial-quote {
    color: var(--white);
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 36px;
}
.testimonial-author { color: var(--primary); font-weight: 500; font-size: 20px; margin-bottom: 4px; }
.testimonial-author-role { color: var(--white); font-size: 18px; }

.testimonials-pager {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}
.testimonials-pager span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}
.testimonials-pager span.active { background: var(--primary); width: 30px; border-radius: 5px; }

/* ---------- CONTACT (form on grey card) ---------- */
.contact-form-section { padding: 70px 0 0; scroll-margin-top: 40px; }
.contact-form-section .container { padding: 0 100px; }
@media (max-width: 1200px) { .contact-form-section .container { padding: 0 60px; } }
@media (max-width: 640px) { .contact-form-section .container { padding: 0 24px; } }

.contact-form-wrap {
    background: var(--surface-soft);
    border-radius: var(--card-radius);
    padding: 60px 100px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
}
@media (max-width: 1024px) { .contact-form-wrap { padding: 50px 40px; } }
@media (max-width: 640px) { .contact-form-wrap { padding: 30px 24px; } }
.contact-form-wrap form { max-width: 556px; flex: 1; position: relative; z-index: 1; width: 100%; }
.contact-form-illustration {
    flex: 1;
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}
.contact-form-illustration svg {
    width: 100%;
    height: auto;
    max-width: 460px;
    display: block;
}
@media (max-width: 1024px) {
    .contact-form-illustration { display: none; }
}
.contact-form-wrap .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 26px; }
.contact-form-wrap label {
    font-size: 16px;
    font-weight: 400;
    color: var(--accent);
}
.contact-form-wrap input, .contact-form-wrap textarea {
    font-family: inherit;
    font-size: 18px;
    color: var(--accent);
    background: var(--white);
    border: 1px solid var(--accent);
    border-radius: 14px;
    padding: 18px 30px;
    outline: none;
}
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236,72,153,0.18);
}
.contact-form-wrap textarea { min-height: 190px; resize: vertical; }
.contact-form-wrap .consent-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--ink-muted);
    margin: 8px 0 26px;
}
.contact-form-wrap .consent-row a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.contact-form-wrap button[type="submit"] { width: 100%; }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--accent);
    color: var(--white);
    border-radius: 45px 45px 0 0;
    padding: 55px 60px 50px;
    margin: 70px 100px 0;
}
@media (max-width: 1200px) { .footer { margin: 70px 60px 0; padding: 45px 40px 40px; } }
@media (max-width: 640px) { .footer { margin: 50px 16px 0; padding: 36px 26px 30px; } }

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 66px;
}
.footer-top .nav-logo { color: var(--white); }
.footer-nav {
    display: flex;
    gap: 40px;
    list-style: none;
    flex-wrap: wrap;
}
.footer-nav a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; font-size: 18px; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-contact { flex: 2; }
.footer-contact-chip {
    background: var(--primary);
    color: var(--accent);
    padding: 4px 7px;
    border-radius: 7px;
    display: inline-block;
    font-weight: 500;
    margin-bottom: 27px;
}
.footer-contact-lines { display: flex; flex-direction: column; gap: 20px; color: var(--white); font-size: 18px; }
.footer-contact-lines p { color: var(--white); }

.footer-sub-wrap { flex: 3; background: #292A32; border-radius: 14px; padding: 40px 40px; display: flex; gap: 20px; align-items: center; }
@media (max-width: 768px) { .footer-sub-wrap { padding: 28px 24px; } }
.footer-sub-wrap input {
    background: transparent;
    border: 1px solid var(--white);
    border-radius: 14px;
    color: var(--white);
    padding: 22px;
    flex: 1;
    font-family: inherit;
    font-size: 18px;
    outline: none;
}
.footer-sub-wrap input::placeholder { color: var(--white); opacity: 0.7; }
.footer-sub-wrap button { flex-shrink: 0; }

.footer-divider { height: 1px; background: var(--white); margin: 50px 0 30px; opacity: 0.6; }
.footer-bottom { display: flex; gap: 40px; color: var(--white); flex-wrap: wrap; font-size: 18px; }
.footer-bottom a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Legal page shell ---------- */
.page-shell {
    max-width: 880px;
    margin: 0 auto;
    padding: 80px 24px 80px;
}
.page-shell h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--accent);
}
.page-shell .page-meta {
    font-size: 13px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 40px;
}
.legal-body h2 { font-size: 22px; font-weight: 500; margin: 40px 0 14px; color: var(--accent); }
.legal-body h3 { font-size: 17px; font-weight: 500; margin: 28px 0 10px; color: var(--accent); }
.legal-body p, .legal-body li { font-size: 15px; color: var(--ink-muted); line-height: 1.7; margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.legal-back-row {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #E5E5E5;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Cookie banner ---------- */
#cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 880px;
    margin: 0 auto;
    background: var(--accent);
    color: var(--white);
    border-radius: 22px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
    z-index: 2000;
    font-size: 14px;
    line-height: 1.5;
}
#cookie-banner[hidden] { display: none !important; }
#cookie-banner .cookie-text { flex: 1; color: rgba(255,255,255,0.85); }
#cookie-banner .cookie-text a { color: var(--primary); }
#cookie-banner button {
    background: var(--primary);
    color: var(--accent);
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    #cookie-banner { flex-direction: column; align-items: stretch; }
    #cookie-banner button { width: 100%; }
}
