/* =========================
   VARIABLES
========================= */
:root {
    --black: #0a0a0a;
    --main-bg: #f8f8f8;
    --white: #ffffff;
   
    --header-color: #111111;
    --accent: #22c59f;
    --text-light: #666666;
    --border-light: #eaeaea;

    /* Text Sizes */
    --fs-xs: 0.75rem;          /* 12px */
    --fs-sm: 0.875rem;         /* 14px */
    --fs-base: 1rem;           /* 16px */
    --fs-lg: 1.125rem;         /* 18px */
    --fs-xl: 1.25rem;          /* 20px */
    --fs-2xl: 1.35rem;         /* h2 size */
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-display: clamp(2rem, 4vw, 3.2rem);   /* Main heading */
}

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

body {
    background: var(--main-bg);
    color: var(--black);
    font-family: "Inter", system-ui, sans-serif;
}

/* =========================
   BACK BUTTON
========================= */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--header-color);
    font-size: var(--fs-lg);          
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: var(--accent);
    transform: translateX(-3px);
}


/* =========================
   SERVICES SECTION
========================= */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* =========================
   HEADER
========================= */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.badge {
    display: inline-block;
    color: var(--accent);
    background: var(--black);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.section-header h1 {
    font-size: var(--fs-display);
    font-weight: 700;
    line-height: 1.1;
    max-width: 760px;
    margin: 0 auto 20px;
    color: var(--header-color);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: var(--fs-base);
    line-height: 1.7;
}

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

/* card */
.service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-card h2 {
    margin-bottom: 24px;
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--header-color);
}

/* Service Groups */
.service-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.service-group {
    border-top: none;
    margin: 0;
    padding: 0;
}

.service-group {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.service-group h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--header-color);
    margin-bottom: 16px;
}

.service-card:first-child {
    grid-column: 1 / -1;
}

/* Features */
.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: #444;
    line-height: 1.5;
    font-size: var(--fs-base);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .service-groups {
        grid-template-columns: 1fr;
    }
}

/* =========================
   RESPONSIVE
========================= */

/* Large tablets */
@media (max-width: 1100px) {

    .services-section {
        padding: 40px 20px;
    }

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

    .service-card {
        padding: 32px;
    }
}

/* Tablets */
@media (max-width: 768px) {

    .section-header {
        margin-bottom: 48px;
    }

    .section-header p {
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 28px;
        margin-bottom: 20px;
    }

    .back-btn {
        font-size: 1rem;
        margin-bottom: 32px;
    }
}

/* Small phones */
@media (max-width: 480px) {

    .services-section {
        padding: 32px 16px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        letter-spacing: 1px;
    }

    .section-header h1 {
        line-height: 1.2;
    }

    .service-card {
        padding: 24px;
        border-radius: 20px;
    }

    .service-card h2 {
        font-size: 1.25rem;
    }

    .service-features li {
        font-size: 0.95rem;
        padding-left: 22px;
    }
}