/* main.css */
/* Styles for MediTrip Landing Page */
:root {
    --main-color: #506899;
    --title-color: black;
    --header-color: color-mix(in srgb, var(--title-color) 70%, transparent);
    --light-background-color: #f5f7fa;
    --darkened-background-color: #e4e9f2;
    --dark-accent: #394867;

    --content-width: 80%;
    --max-content-width: 800px;
    --header-height: 80px;
}

/* Reset and base styles */
*, :before, :after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", monospace;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

*{
    background-color: transparent;
    color: var(--main-color);
}

/* Body and wrapper styles */
body{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#cookie-curtain{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3;
    display: none;
}

#cookie-banner{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    z-index: 4;
    display: none;
    text-align: center;
}

.wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Alternating background colors for sections */
.wrapper > section:nth-child(even){
    background-color: var(--darkened-background-color);
}

.wrapper > section:nth-child(odd){
    background-color: var(--light-background-color);
}

.spacer{
    height: var(--header-height);
}

section.columns{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* Header styles */
.wrapper header{
    width: 100%;
    height: var(--header-height);
    display: flex;
    position: fixed;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1;
    background-color: #fff;
}

.wrapper header .site-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrapper header .contact-us{
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Title section styles */
.title-text{
    padding: 20px 70px;
}

#title{
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--header-color);
    margin-bottom: 20px;
    text-align: left;
}

/* Footer styles */
.wrapper footer{
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p{
    font-size: 14px;
    text-align: center;
    padding: 0;
    margin: 0;
}

/* Common element styles */
a{
    text-decoration: none;
}

a.link-decoration{
    text-decoration: underline;
}

h1{
    color: var(--header-color);
    transition: color 0.3s ease;
}

h1:hover{
    color: var(--dark-accent);
}

h2{
    font-size: 32px;
    font-weight: 600;
    color: var(--header-color);
    margin: 20px 0 0 0;
    text-align: center;
}

h3{
    font-size: 20px;
    font-weight: 500;
    color: var(--header-color);
    margin: 15px 0;
    text-align: center;
}

.offer-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.offer-item{
    width: 200px;
    background-color: var(--darkened-background-color);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s ease;
}

.offer-item:hover{
    transform: scale(1.05);
}

.offer-item span{
    font-size: 48px;
    font-weight: 700;
    color: var(--main-color);
}

.offer-item p{
    text-align: center;
}

.testimonial-item{
    max-width: var(--max-content-width);
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--light-background-color);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    text-align: center;
}

.testimonial-item .author{
    margin-top: 10px;
    font-weight: 400;
    color: var(--header-color);
    font-style: italic;
}

details{
    margin: 20px auto;
    padding: 10px 20px;
    width: 100%;
    max-width: var(--max-content-width);
    background-color: var(--darkened-background-color);
    border-radius: 10px;
}

details summary{
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    cursor: pointer;
    outline: none;
}

button, .button{
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
    width: 150px;
}

.button-primary{
    background-color: var(--main-color);
    color: #fff;
}

.button-primary:hover{
    background-color: var(--dark-accent);
}

.button-secondary{
    background-color: var(--darkened-background-color);
    color: var(--main-color);
}

.button-secondary:hover{
    color: var(--dark-accent);
}

p{
    font-size: 16px;
    font-weight: 400;
    color: var(--main-color);
    padding-bottom: 20px;
    margin: auto;
    text-align: justify;
    line-height: 1.6;
    max-width: var(--max-content-width);
}

.column{
    width: 50%;
    padding: 20px;
}

.content{
    padding: 20px 50px;
}

span.highlight{
    font-weight: 700;
}

.contact-item{
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.whats-app{
    height: 20px;
    width: 20px;
}


.blog-posts{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-posts .blog-post{
    background-color: var(--light-background-color);
    border-radius: 10px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-date{
    font-size: 12px;
    margin-bottom: 15px;
}

@media (min-width:320px) and (max-width:960px)  { /* smartphones, iPhone, portrait 480x320 phones */ 
    /* Header styles */
    .wrapper header{
        padding: 0 20px;
    }

    .wrapper header .logo img{
        height: 60px;
        width: auto;
        margin: 10px 0;
    }

    .wrapper header .site-title{
        padding: 5px 10px;
    }

    .wrapper header .site-title a h1{
        font-size: 16px;
        font-weight: 600;
    }

    .wrapper header .menu{
        display: none; /* Hide menu on small screens */
    }

    .desktop-only{
        display: none;
    }

    #cookie-banner{
        width: 100%;
    }

    .blog-posts{
        padding: 30px;
    }
}


@media (min-width:961px) { /* big landscape tablets, laptops, and desktops */
    /* Header styles */
    .wrapper header{
        padding: 0 50px;
    }

    .wrapper header .logo img{
        height: 70px;
        width: auto;
        margin: 5px 0;
    }

    .wrapper header .site-title{
        padding: 10px 20px;
    }

    .wrapper header .site-title a h1{
        font-size: 24px;
        font-weight: 700;
    }

    .wrapper header .menu{
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 50px;
    }

    .wrapper header .menu nav{
        display: flex;
        align-items: center;
        justify-content: center;
        
    }

    .wrapper header .menu nav ul{
        display: flex;
        list-style: none;
        gap: 30px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .wrapper header .menu nav ul li a{
        text-decoration: none;
        color: var(--main-color);
        font-size: 16px;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .wrapper header .menu nav ul li a:hover{
        color: var(--dark-accent);
    }

    .desktop-only{
        display: block;
    }

    .desktop-only img{
        display: block;
        max-width: 80%;
        max-height: 80%;
        border-radius: 10px;
        margin: 20px auto;
    }

    #cookie-banner{
        width: 400px;
    }

    .blog-posts{
        padding: 30px 70px;
    }
}
