:root {
    /* Josephine Care Palette */
    --bg-color: #F9E7DE;
    --text-primary: #0C5061;
    --text-secondary: #588C96;
    --card-bg: #FFFFFF;
    --card-hover-bg: #FFEDE7;

    /* Brand Colors */
    --josephine-color: #0C5061;
    --safeguard-color: #3B82F6;
    --lodi-color: #22C55E;

    --font-main: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-soft: 0 4px 6px -1px rgba(12, 80, 97, 0.05), 0 2px 4px -1px rgba(12, 80, 97, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(12, 80, 97, 0.1), 0 10px 10px -5px rgba(12, 80, 97, 0.04);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(12, 80, 97, 0.05);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(12, 80, 97, 0.1);
}

.logo-container {
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 80%;
    /* Prevent logo from touching edges */
    object-fit: contain;
}

.safeguard-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    color: #0F172A;
    max-width: 90%;
    /* Ensure text/icon bundle doesn't touch edges */
}

.safeguard-icon {
    height: 48px;
    width: 48px;
    color: var(--safeguard-color);
}

.safeguard-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lodi-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--lodi-color);
}

.card p {
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.link-arrow {
    margin-top: auto;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    background-color: rgba(88, 140, 150, 0.1);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.card:hover .link-arrow {
    background-color: var(--text-primary);
    color: #FFEDE7;
    gap: 0.75rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        height: auto;
        padding: 2rem 0;
    }

    .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

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

    h1 {
        font-size: 2.5rem;
    }
}