/*
 * Projekt: Memora - Your journeys remembered
 * Zweck: Multimediaprojekt 1 (MMP1)
 * Studiengang: MultiMediaTechnology | FH Salzburg
 * Autorin: Helena Meindl
 * Jahr: 2026
*/

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 70vh;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 600px;
    margin-left: var(--margin-large);
}

.hero-sub {
    font-family: 'Reenie Beanie';
    color: var(--primary-color);
    font-size: 1.8rem;  
}

.hero h1 {
    font-size: 4rem;
    margin: 1rem 0;
    text-align: left;
}

.hero h1 span {
    color: var(--text-color);
}

.hero-text {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-explore, .btn-map {
    border-radius: 20px;
    padding: var(--padding-small);
    padding-left: var(--padding-medium);
    padding-right: var(--padding-medium);
    background-color: var(--primary-color);
    border: none;
    font-size: var(--font-size);
    color: white;
    text-decoration: none;
}

.btn-explore:hover, .btn-map:hover {
    color: white;
}

.btn-addTrip {
    border-radius: 20px;
    padding: var(--padding-small);
    padding-left: var(--padding-medium);
    padding-right: var(--padding-medium);
    border: 1px solid var(--primary-color);
    font-size: var(--font-size);
    color: var(--primary-color);
    text-decoration: none;
}

/* HINTERGRUNDBILD */
.hero-image {
    height: 100%;
    background-image:  linear-gradient(to right, var(--background-color) 0%, rgba(0,0,0,0) 70%), url('../images/mallorca_11.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* FEATURES */
.features {
    padding: 4rem 2rem;
}

.features-sub {
    font-family: 'Raleway';
    color: var(--primary-color);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
}

.features h3 {
    color: var(--text-color); 
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.features-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 2rem;
    border-right: 1.5px solid rgba(0,0,0,0.1);
}

.features-card:last-child {
    border-right: none;
}

.features-card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

.features-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.features-card p {
    color: #666;
    line-height: 1.5;
}

.icon {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    background-color: var(--primary-color-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center; 
    margin-top: var(--margin-large);
}

/* MAP */
.map {
    padding: 2rem;
}

.map-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.map-container img {
    width: 100%;
    border-radius: 20px;
}

.map-sub {
    font-family: 'Raleway';
    color: var(--primary-color);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.map-text h3 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

/* RESPONSIVE */
@media screen and (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin: 0;
        padding: 3rem 2rem;
        text-align: center;
        order: 2;
    }

    .hero h1 {
        font-size: 3rem;
        text-align: center;
    }

    .hero-text {
        max-width: 500px;
        margin: 0 auto 2rem auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: 1;
        height: 50vh;
        background-image: linear-gradient(to bottom, rgba(0,0,0,0) 60%, var(--background-color) 100%), url('../images/mallorca_11.JPG');
    }

    .features {
        padding: 3rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .features-card {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 1.5rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .features-card:last-child {
        border-bottom: none;
    }

    .icon {
        width: 60px;
        height: 60px;
        margin-top: 0;
    }

    .icon img {
        width: 40px !important;
        height: 40px !important;
    }

    .map-container {
        grid-template-columns: 1fr;
    }

    .map-container img {
        border-radius: 20px 20px 0 0;
        height: 300px;
    }

    .map-text {
        text-align: center;
        padding: 2rem;  
    }
}

@media screen and (max-width: 780px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 1.4rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-explore, .btn-addTrip, .btn-map {
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 0.9rem 1.5rem;    
    }

    .hero-image {
        height: 40vh;
        min-height: 250px;
    }

    .features {
        padding: 2.5rem 1rem;
    }
    
    .features h3 {
        font-size: 1.4rem;
        padding: 0 1rem;
    }

    .features-grid {
        gap: 1rem;
    }

    .features-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .features-card .text {
        order: 2;
    }

    .features-card h4 {
        font-size: 1rem;
    }

    .features-card p {
        font-size: 0.9rem;
    }

    .icon {
        width: 70px;
        height: 70px;
    }

    .icon img {
        width: 45px !important;
        height: 45px !important;
    }

    .map {
        padding: 1rem;
    }
    
    .map-container {
        border-radius: 16px;
    }

    .map-container img {
        border-radius: 16px 16px 0 0;
        height: 220px;
    }

    .map-text {
        padding: 1.5rem;
    }

    .map-text h3 {
        font-size: 1.3rem;
    }

    .map-text p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 375px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-sub {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .features h3 {
        font-size: 1.2rem;
    }

    .map-text h3 {
        font-size: 1.1rem;
    }
}