/* =========================================================
   FILE: site.css
   PROJECT: GeekInfinity
   AUTHOR: Mac
   PURPOSE:
       Core stylesheet for the GeekInfinity landing page.
       Defines layout, card system, logo presentation,
       action cards, and footer.
   ========================================================= */

/* =========================================================
   Root Variables
   ========================================================= */

:root {
    --bg-start: #f0f4f8;
    --bg-end:   #d9e2ec;

    --card-bg:  #ffffff;
    --radius:   24px;

    --shadow:   0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-h: 0 30px 80px rgba(0, 0, 0, 0.22);

    --text-main: #1f2933;
    --text-muted: #6b7280;

    /* 🔑 SINGLE SOURCE OF TRUTH */
    --content-width: 1600px;
}

/* =========================================================
   Base / Reset
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;

    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
}

/* =========================================================
   Layout
   ========================================================= */

.layout {
    width: min(var(--content-width), 90vw);

    display: flex;
    flex-direction: column;
    gap: 24px;

    margin-top: 64px;
}

/* =========================================================
   Card Row (THE IMPORTANT PART)
   ========================================================= */

.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;

    width: 100%; /* EXACTLY logo width */
}

/* =========================================================
   Card System
   ========================================================= */

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;

    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-h);
}

/* Small action cards */
.card-small {
    width: auto;        /* 🔑 MUST be auto */
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
}

/* =========================================================
   Logo
   ========================================================= */

.logo {
    display: block;
    width: 100%;        /* fills layout width */
    height: auto;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
    margin-top: auto;
    padding: 24px 0;

    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}
