/* reset to remove some differences in default styles between sites */

html {
	font-size: 100%;
}

main * {
    margin:0;
    padding: 0;
    color : #333;
}

body, h1, p {
    line-height: 1.2;
}

h1,h2,p {
    margin-bottom: 10px;
}

.mgn-btm-30 {
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight:bold;
}

img.responsive {
    max-width:100%;
    height:auto;
}

.pad-x-small {
    padding-inline: 8px;
}

.nowrap {
    white-space: nowrap;
}

.w-100 {
    width:100%;
}

#nissan-page {
    padding-top: 30px;
}

#nissan-page .container {
    width: min(90%, 1200px);
    margin-inline:auto;
    margin-bottom: 2rem;
}

@media (min-width:992px) {
    #nissan-page .container {
        margin-bottom: 4rem;
    }
}

#nissan-page .container-narrow {
    max-width:1000px;
}

#nissan-page .nissan-link {
    display:inline-block;
    text-transform: uppercase;
    text-decoration: none;
    font-weight:600;
    transition: color 250ms ease-in;
    color: #333;
}

#nissan-page .nissan-link.nissan-btn {
    margin-top:1rem;
    padding: 1rem;
    background-color: #eee;
    border:0;
    font-size: 0.8rem;
}

#nissan-page .nissan-link:hover {
    color: #c3002f;
}

#nissan-page .nissan-link::after {
    content: "\203A";
    display: inline-block;
    font-weight:bold;
    margin-left: 0.5rem;
    font-size:1.2rem;
    color: #c3002f;
    transition: transform 300ms ease-in;
}

#nissan-page .nissan-link:hover::after {
    transform: translate(80%);
}

/* ============= hero section ================== */
.hero {
    position:relative;
}

.hero__image picture, .hero__image img {
    width:100%;
    height:auto;
    max-height:100vh;
    object-fit:cover;
}

.hero__text {
    text-align: center;
    line-height: 1.2;
    margin-block:2rem;
}

.hero__text h1 {
    font-size: clamp(1.5rem, 1.5rem + 2vw, 4rem);
}

.hero__text p {
    font-size: clamp(1rem, 1.rem + 1vw, 1.5rem);
}

@media (min-width: 768px) {
    
    .hero__text {
        position:absolute;
        top:50%;
        left:50%;
        transform:translate(-50%,-50%);
    }

    .hero__text h1, .hero__text p {
        color: #fff;
    }
}

@media (min-width:992px) {
    .hero {
        margin-bottom:4rem;
    }

    .hero__text {
        text-align:left;
    }

    .hero__text h1 {
        max-width: 20ch;
        margin-bottom:3.5rem;
        margin-top: 2rem;
    }

    .hero__text p {
        max-width:45ch;
        line-height:1.5;
        font-size: 1.3rem;
    }
}

/* ========= intro ================ */

    .nissan-intro {
        margin-top: 2rem;
}
