/* SmartPref OÜ — Corporate Landing Page Styles
   Color palette: Navy Dark #1F303E, Navy Light #536A85, Accent Green #558B2F
   Design: Material-inspired, clean minimal */

/* ─── Base ─────────────────────────────────────────────────────────────────── */

:root {
    --navy-dark:   #1F303E;
    --navy-mid:    #2c3e50;
    --navy-light:  #536A85;
    --green:       #558B2F;
    --green-light: #6aaf38;
    --bg-light:    #f4f6f8;
    --bg-white:    #ffffff;
    --text-dark:   #1F303E;
    --text-body:   #4a5568;
    --text-muted:  #718096;
    --border:      #e2e8f0;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 2px 8px rgba(0,0,0,0.12);
    --shadow-lg:   0 4px 20px rgba(0,0,0,0.16);
    --radius:      6px;
    --transition:  0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    background: var(--bg-white);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--navy-dark); }

/* ─── Navbar ────────────────────────────────────────────────────────────────── */

.sp-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--navy-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    height: 60px;
    display: flex;
    align-items: center;
}

.sp-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sp-navbar-brand {
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.sp-navbar-brand span {
    color: var(--green-light);
}

.sp-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0; padding: 0;
}

.sp-nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.sp-nav-links a:hover { color: #fff; }

.sp-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.sp-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */

.sp-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #15264D 100%);
    color: #fff;
    text-align: center;
    padding: 140px 24px 100px;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric background texture */
.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(83,106,133,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83,106,133,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.sp-hero-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.sp-hero-eyebrow {
    display: inline-block;
    background: rgba(85,139,47,0.2);
    border: 1px solid rgba(106,175,56,0.4);
    color: #a0d060;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.sp-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.sp-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    margin: 0 0 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.sp-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none !important;
}

.sp-btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.sp-btn-primary:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    color: #fff;
    box-shadow: 0 4px 16px rgba(85,139,47,0.4);
    transform: translateY(-1px);
}

.sp-btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.35);
    margin-left: 12px;
}

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

/* ─── Section base ──────────────────────────────────────────────────────────── */

.sp-section {
    padding: 88px 24px;
}

.sp-section-light { background: var(--bg-light); }
.sp-section-white { background: var(--bg-white); }

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.sp-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}

.sp-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.sp-section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 56px;
    line-height: 1.7;
}

.sp-section-header { margin-bottom: 56px; }

/* ─── Services ──────────────────────────────────────────────────────────────── */

.sp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.sp-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.sp-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sp-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.sp-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
}

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

/* ─── Tech Stack ────────────────────────────────────────────────────────────── */

.sp-tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.sp-tech-category h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-light);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green);
    display: inline-block;
}

.sp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-badge {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all var(--transition);
}

.sp-badge:hover {
    background: var(--navy-dark);
    color: #fff;
    border-color: var(--navy-dark);
}

/* ─── About ─────────────────────────────────────────────────────────────────── */

.sp-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sp-about-text p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin: 0 0 16px;
}

.sp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sp-stat {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.sp-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.sp-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── Support / Boosty ──────────────────────────────────────────────────────── */

.sp-support-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #15264D 100%);
    border-radius: 12px;
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture matching the hero */
.sp-support-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(83,106,133,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83,106,133,0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.sp-support-text {
    position: relative;
}

.sp-support-text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 20px;
    line-height: 1.75;
}

.sp-support-text ul {
    margin: 0;
    padding: 0 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-support-text li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.sp-support-text li strong {
    color: #a0d060;
}

.sp-boosty-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none !important;
    background: #ffffff;
    border-radius: 50px;
    padding: 14px 28px 14px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.sp-boosty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.sp-boosty-logo {
    width: 110px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.sp-boosty-btn {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--navy-dark) !important;
    white-space: nowrap;
    text-decoration: none !important;
}

/* ─── Contact ───────────────────────────────────────────────────────────────── */

.sp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.sp-contact-info p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin: 0 0 32px;
}

.sp-contact-details {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.sp-contact-details .icon {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sp-contact-card {
    background: var(--navy-dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.sp-contact-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 12px;
}

.sp-contact-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0 0 28px;
    line-height: 1.65;
}

.sp-btn-light {
    background: #fff;
    color: var(--navy-dark);
    border-color: #fff;
}

.sp-btn-light:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 4px 16px rgba(85,139,47,0.35);
    transform: translateY(-1px);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */

.sp-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.6);
    padding: 40px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sp-footer-brand {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.sp-footer-brand span { color: var(--green-light); }

.sp-footer p {
    margin: 4px 0 0;
    font-size: 0.8rem;
}

.sp-footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0; padding: 0;
}

.sp-footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.sp-footer-links a:hover { color: #fff; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .sp-about-grid,
    .sp-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sp-support-banner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 32px;
    }

    .sp-boosty-cta {
        align-self: flex-start;
    }

    .sp-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sp-nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 60px;
        left: 0; right: 0;
        background: var(--navy-dark);
        padding: 16px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .sp-nav-links.open { display: flex; }

    .sp-nav-links a {
        display: block;
        padding: 12px 24px;
    }

    .sp-nav-toggle { display: flex; }

    .sp-hero { padding: 110px 24px 80px; }

    .sp-btn-outline { margin-left: 0; margin-top: 12px; }

    .sp-hero .sp-btn { display: block; width: fit-content; margin: 0 auto; }
    .sp-hero .sp-btn + .sp-btn { margin-top: 12px; }

    .sp-section { padding: 64px 24px; }

    .sp-stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

    .sp-footer-inner { flex-direction: column; text-align: center; }
    .sp-footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .sp-stats { grid-template-columns: 1fr; max-width: 200px; margin: 0 auto; }
}
