/* ═══════════════════════════════════════════
   DATAFACTOR — SHARED STYLES
   Used across landing page and service pages
   ═══════════════════════════════════════════ */

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

:root {
    --accent: #0D6B58;
    --accent-warm: #1A8F74;
    --accent-soft: rgba(13, 107, 88, 0.06);
    --accent-border: rgba(13, 107, 88, 0.12);
    --bg: #FCFCFA;
    --bg-warm: #F6F5F0;
    --bg-cream: #F0EDE5;
    --bg-white: #FFFFFF;
    --text-primary: #1C1C1A;
    --text-body: #3D3D3A;
    --text-secondary: #7A7A72;
    --text-tertiary: #AEAEA6;
    --border: #E6E4DD;
    --border-light: #EDEBE5;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-w: 1540px;
    --px: clamp(2rem, 5vw, 6rem);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(252, 252, 250, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 450;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-menu a:hover { color: var(--accent); }

.nav-menu .cta-link {
    padding: 0.5rem 1.35rem;
    background: var(--text-primary);
    color: var(--bg) !important;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.nav-menu .cta-link:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ── BUTTONS ── */
.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    background: var(--text-primary);
    color: var(--bg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 107, 88, 0.15);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #fff;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: var(--accent-warm);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 143, 116, 0.3);
}

/* ── DIVIDER ── */
hr.divider {
    border: none;
    height: 1px;
    background: var(--border);
}

/* ── ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   SERVICE DETAIL PAGES
   ═══════════════════════════════════════════ */

/* ── BACK LINK ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-bottom: 3rem;
    transition: color 0.2s, gap 0.2s;
}

.back-link:hover {
    color: var(--accent);
    gap: 0.75rem;
}

/* ── SERVICE HERO ── */
.svc-hero {
    padding: 140px 0 clamp(4rem, 7vw, 6rem);
}

.svc-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: end;
}

.svc-num {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.svc-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.svc-hero-desc {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    padding-bottom: 0.5rem;
}

/* ── SERVICE SECTIONS ── */
.svc-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.svc-approach-section {
    background: var(--bg-warm);
}

.svc-two-col {
    display: grid;
    grid-template-columns: 0.35fr 0.65fr;
    gap: clamp(2rem, 5vw, 5rem);
}

.svc-col-label h2 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: sticky;
    top: 100px;
}

/* ── DELIVERABLES ── */
.svc-deliverables {
    display: grid;
    gap: 0;
}

.svc-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.svc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.svc-item h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.svc-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* ── APPROACH TEXT ── */
.svc-approach-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    max-width: 640px;
}

/* ── TECHNOLOGIES ── */
.svc-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.svc-tech-list span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 50%;
    transition: color 0.2s;
}

.svc-tech-list span:hover {
    color: var(--accent);
}

/* ── SERVICE CTA ── */
.svc-cta {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
}

.svc-cta-inner {
    background: var(--text-primary);
    color: #fff;
    text-align: center;
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
    border-radius: 24px;
}

.svc-cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
}

.svc-cta-inner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    max-width: 440px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .svc-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .svc-two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .svc-col-label h2 {
        position: static;
    }
}

@media (max-width: 640px) {
    .nav-menu { display: none; }
    .svc-tech-list span { width: 100%; }
    .btn-white,
    .btn-dark {
        display: flex;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
    }
    .svc-cta .container { padding-left: 0; padding-right: 0; }
    .svc-cta-inner { border-radius: 0; padding-left: 1.5rem; padding-right: 1.5rem; }
    footer .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
}
