/* ==========================================================================
   TEKROK INC Global Design System
   A scalable, semantic, and responsive CSS framework.
   ========================================================================== */

/* 1. CONTAINER SYSTEM */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
    max-width: 1240px;
    /* Standardized max-width */
}

/* 2. SECTION SPACING SYSTEM */
.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-lg {
    padding-top: 120px;
    padding-bottom: 120px;
}

.section-sm {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* 3. TYPOGRAPHY SCALE */
:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --line-height-base: 1.6;
    --line-height-heading: 1.2;
}

body {
    font-family: var(--font-body);
    line-height: var(--line-height-base);
    color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: var(--line-height-heading);
    color: var(--color-text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* 4. BUTTON SYSTEM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    /* Consistent border radius */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* 5. CARD SYSTEM */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Ensures equal height in flex/grid contexts */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    margin-bottom: 16px;
}

.card-body {
    flex: 1;
    /* Pushes footer to bottom */
}

.card-footer {
    margin-top: 24px;
}

/* 6. GRID SYSTEM */
.grid {
    display: grid;
    gap: 30px;
    /* Standard gap */
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 7. RESPONSIVE BREAKPOINTS */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding-right: 30px;
        padding-left: 30px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        /* Adjust grid-3 to 2 columns on tablet */
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        /* Stack everything on mobile */
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
    }
}