/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: A child theme for GeneratePress.
Author: Antigravity UI/UX Expert
Author URI: https://generatepress.com
Template: generatepress
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Landing Page Reset & Base Styles --- */
body.sama-landing-body {
    margin: 0;
    padding: 0;
    background-color: #f8ebdb;
}

.sama-landing-page {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #f8ebdb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* --- Cards Layout --- */
.sama-cards-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: auto 0;
    padding: 40px 0;
    width: 100%;
    max-width: 1100px;
}

.sama-card {
    background-color: #ffffff;
    border-radius: 28px;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(139, 92, 26, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    position: relative;
    user-select: none;
}

.sama-card img {
    width: 250px;
    height: 250px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* --- Card Default Transforms (Desktop) --- */
.card-mae {
    transform: translateY(0);
}

.card-sama {
    /* Central card: elevated by default using translateY(-20px) as baseline */
    transform: translateY(-20px);
    box-shadow: 0 30px 60px rgba(139, 92, 26, 0.1);
}

.card-sara {
    transform: translateY(0);
}

/* --- Hover Effects --- */
.sama-card:hover {
    box-shadow: 0 40px 80px rgba(139, 92, 26, 0.16);
}

.card-mae:hover {
    transform: scale(1.04) translateY(-16px);
}

.card-sama:hover {
    transform: scale(1.04) translateY(-40px);
}

.card-sara:hover {
    transform: scale(1.04) translateY(-18px);
}

.sama-card:hover img {
    transform: scale(1.05);
}

/* --- Footer Text --- */
.sama-footer {
    text-align: center;
    max-width: 620px;
    color: #4a3e35;
    font-size: 17px;
    line-height: 1.7;
    margin-top: auto;
    padding-top: 40px;
    animation: fadeIn 1s ease-out;
}

.sama-footer p {
    margin: 0;
}

.sama-footer a {
    color: #2d251e;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(45, 37, 30, 0.2);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.sama-footer a:hover {
    color: #8b5c1a;
    border-color: #8b5c1a;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Layout (Mobile / Tablet) --- */
@media (max-width: 960px) {
    .sama-landing-page {
        padding: 40px 20px;
    }

    .sama-cards-container {
        flex-direction: column;
        gap: 35px;
        margin: 40px 0;
    }

    .sama-card {
        width: 260px;
        height: 260px;
        border-radius: 24px;
        padding: 30px;
        /* Reset absolute desktop shift */
        transform: none; 
    }

    /* Reordering in mobile: sama (1) -> sara (2) -> mae (3) */
    .card-sama {
        order: 1;
        transform: translateY(0);
        box-shadow: 0 20px 50px rgba(139, 92, 26, 0.08);
    }

    .card-sara {
        order: 2;
        transform: translateY(0);
    }

    .card-mae {
        order: 3;
        transform: translateY(0);
    }

    /* Hover animations for mobile (keeps it clean without desktop translateY values) */
    .card-mae:hover {
        transform: scale(1.03) translateY(-8px);
    }

    .card-sama:hover {
        transform: scale(1.03) translateY(-8px);
    }

    .card-sara:hover {
        transform: scale(1.03) translateY(-8px);
    }
}
