/*
    STEVE & CO. 
    steveandco.shop
    build: Light of Day v 0.0.0
    stylesheet development 
    © e]O eYeOpeners.design mmxxv - mmxxvi

    styles only on home page - v 0.0.3
*/

/*
    CHANGE LOG >
    2026-02-15: Remove padding from small screens; -wm
    2025-12-28: creation; update missing main h1 styling/alignments; -wm
*/

main h1 {
    color: green;
    font-size: 160%;
    font-weight: 600;
    letter-spacing: 0.5em;
    text-align: center;
    text-shadow: 0.5px 0.5px 2px maroon, -0.5px -0.5px 1px var(--accent-color--white);
}

main h1:first-of-type {
    text-align: left;
}

main h1:nth-of-type(2) {
    text-align: right;
}

.card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-caption {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.details-btn {
    background-color: darkgreen;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-top: auto;
}

.details-btn:hover {
    background-color: #2980b9;
}

.details-btn i {
    margin-right: 8px;
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 0;
    padding: 0 15px;
}

.details-content.expanded {
    max-height: 500px;
    padding: 15px;
}

.details-content p {
    margin: 0 auto 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #7f8c8d;
    border-top: 1px solid #eee;
}

/* Responsive styles */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .image-container {
        height: 220px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /*body {
        padding: 15px;
    }
    */
    
    .card-content {
        padding: 15px;
    }
    
    .image-container {
        height: 200px;
    }
}