/*
   Leadcap Digital AB
   styles.css
*/

/* ===== DESIGN TOKENS ===== */
:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-secondary: #5a5a72;
    --color-text-muted: #8e8ea0;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: #eff4ff;
    --color-dark: #0c0c1d;
    --color-dark-surface: #161628;
    --color-border: #e5e5ec;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== COMPONENTS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

.btn-full { width: 100%; }

.section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin-bottom: 3rem;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s var(--ease);
}

header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.125rem;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text);
}

header:not(.scrolled) .logo-text {
    color: #fff;
}

header:not(.scrolled) .logo-mark {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul li a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #fff;
}

header.scrolled nav ul li a {
    color: var(--color-text-secondary);
}

header.scrolled nav ul li a:hover {
    color: var(--color-text);
}

.nav-cta {
    padding: 0.5rem 1.25rem !important;
    background: var(--color-accent) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: all 0.2s var(--ease) !important;
}

.nav-cta:hover {
    background: var(--color-accent-hover) !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

header.scrolled .menu-toggle span {
    background: var(--color-text);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: var(--color-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    max-width: 720px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    padding: 0.375rem 0.875rem;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== SERVICES ===== */
#services {
    padding: 7rem 0;
    background: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s var(--ease);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ===== RESULTS ===== */
#results {
    padding: 6rem 0;
    background: var(--color-dark);
}

#results .section-label {
    color: rgba(255,255,255,0.5);
}

#results .section-title {
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* ===== PROCESS ===== */
#process {
    padding: 7rem 0;
    background: var(--color-bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.step-num {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.process-step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== CLIENTS ===== */
#clients {
    padding: 6rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

#clients .section-label,
#clients .section-title {
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.2s var(--ease);
}

.client-logo:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.client-logo img {
    max-height: 40px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.client-logo:hover img {
    opacity: 1;
}

/* ===== ABOUT ===== */
#about {
    padding: 7rem 0;
    background: var(--color-bg);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about-left .section-title {
    margin-bottom: 0;
}

.about-lead {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-right p {
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ===== CONTACT ===== */
#contact {
    padding: 7rem 0;
    background: var(--color-surface);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-desc {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1rem;
    color: var(--color-accent);
    margin-top: 0.25rem;
    width: 20px;
    text-align: center;
}

.contact-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.125rem;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.contact-right {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: all 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-message i {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message h3 {
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--color-dark);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    color: rgba(255,255,255,0.4);
    margin-top: 1rem;
    font-size: 0.9375rem;
}

footer .logo-text {
    color: #fff;
}

footer .logo-mark {
    background: rgba(255,255,255,0.1);
}

.footer-nav h4,
.footer-connect h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav ul li a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--color-accent);
    color: #fff;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.3);
    font-size: 0.8125rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }

    /* Mobile nav */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-surface);
        padding: 5rem 2rem 2rem;
        transition: right 0.35s var(--ease);
        box-shadow: -8px 0 24px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    nav.active { right: 0; }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li a {
        display: block;
        padding: 0.875rem 0;
        color: var(--color-text) !important;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-cta {
        margin-top: 1rem;
        text-align: center;
        display: block !important;
    }

    .menu-toggle { display: flex; }

    /* Sections */
    #hero { padding: 7rem 0 4rem; min-height: auto; }
    .hero-content h1 { font-size: 2.25rem; }
    .hero-sub { font-size: 1rem; }

    .services-grid,
    .process-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1.5rem 0.5rem; }

    .clients-grid { grid-template-columns: repeat(2, 1fr); }

    .about-layout,
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }

    .form-row { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 2rem; }

    #services, #process, #about, #contact { padding: 4rem 0; }
    #results, #clients { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
