/*
Theme Name: Southern Salon
Author: Northwork
URL: northwork.co.uk
*/



/*_______________________________________*/
/*Colours*/
/*_______________________________________*/

:root {
    --c-orange: rgb(255, 118, 0);
    --c-text-colour: #707070;
    --l-universal-padding: 1rem;
    --l-max-page-width: 1500px;
    --l-max-paragraph-width: 44ch;
    --l-max-content-width: 55ch;
    --l-separator-line: linear-gradient(270deg, rgb(197, 197, 197) 0%, rgba(255, 255, 255, 0) 100%);
}

.bg--colour {
    background-color: var(--c-color);
}


* {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-weight: 500;
}

/*_______________________________________*/
/*Global Defaults*/
/*_______________________________________*/

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Univers Next W01 Light', sans-serif;
    font-weight: normal;
    color: var(--c-text-colour);
    font-size: 1.4rem;
}

.contain {
    max-width: var(--l-max-page-width);
    margin: 0 auto;
    position: relative;
    padding: var(--l-universal-padding);
}


/* 
img {
    width: 100%;
    height: auto;
} */

a {
    text-decoration: none;
    color: inherit;
}

a:hover {}

a:after {}


/*_______________________________________*/
/*Typography Global*/
/*_______________________________________*/



.title {
    font-family: 'Roobert-Light', sans-serif;
}

.title h1 {
    margin: 0;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.8rem;
    max-width: 20ch !important;
}

h2 {
    font-size: 1.2rem;
    line-height: 1.8rem;
}

h3 {
    font-size: 1.1rem;
    line-height: 1.5rem;
}

h4 {
    font-size: .9rem;
}

p {
    font-size: 1rem;
    line-height: 1.7rem;
}


@media screen and (min-width:700px) {

    h1 {
        font-size: 3rem;
        line-height: 2.8rem;
    }


    h2 {
        font-size: 1.8rem;
        line-height: 2.3rem;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 1.2rem;
        line-height: 2rem;
    }

    .p-width {
        max-width: var(--l-max-paragraph-width);
    }

}

em,
i {
    font-family: 'Univers Next W01 Light Italic', sans-serif;
    font-style: normal;
    font-weight: normal;
}

strong,
b {
    font-family: 'Univers Next W01 Medium', sans-serif;
    font-style: normal;
    font-weight: normal;
}

/*_______________________________________*/
/*Navigation*/
/*_______________________________________*/

/*_______________________________________*/
/*Grid*/
/*_______________________________________*/

.grid {
    display: grid;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-start--2 {
    grid-column: 2;
}

.gap--2 {
    gap: 2rem;
}

.gap--4 {
    gap: 4rem;
}

/*_______________________________________*/
/*Header*/
/*_______________________________________*/

.header {
    height: auto;
    width: auto;
    /* min-height: 500px; */
    max-width: 100%;
    position: relative;
    background-image: url('./assets/img/nav_bg.jpg');
    background-position: top;
    background-size: cover;
}

.header--nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header--image {
    position: relative;
    overflow: hidden;
    height: 45vh;
    min-height: 700px;
}

.header--image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
}

/*_______________________________________*/
/*Homepage*/
/*_______________________________________*/

/* Header */

.logo-sm {
    max-width: 200px;
    padding: var(--l-universal-padding) 0;
}

/*Hero*/

.hero {
    overflow: hidden;
}

.hero-container {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    min-height: 500px;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    animation: scale 3s ease-in forwards;

}

@media sceen and (max-width: 1000px) {
    .hero-container {
        aspect-ratio: 1.25 / 1;
    }
}

@keyframes scale {
    0% {
        transform: scale(1.05);
        -webkit-transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}

.hero--sun {
    background: rgb(255, 118, 0);
    background: linear-gradient(90deg, rgba(255, 118, 0, .8) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    height: 70vh;
    width: 70vh;
    max-height: 90vw;
    max-width: 90vw;
    min-height: 500px;
    min-width: 500px;
    padding: 2rem;
    animation: spin 4s linear infinite, fadeIn 1s ease-in forwards;

}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.3;
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.hero--logo {
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 1rem;
    max-width: var(--l-max-page-width);
    animation: enterUp 6s ease-in forwards;
}

@keyframes enterUp {
    0% {
        transform: translateY(75%);
        opacity: 0;
    }

    30% {
        transform: translateY(-10%);
        opacity: .5;
    }

    60% {
        transform: translateY(-5%);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


.hero--logo img {
    width: 100%;
    height: auto;
}

.site-intro--contain {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

@media screen and (min-width:700px) {
    .site-intro {
        max-width: var(--l-max-paragraph-width);
        text-wrap: balance;
        margin-top: 3rem;
    }
}

.site-intro--underline {
    width: 100%;
    height: 1px;
    background-image: var(--l-separator-line);
    background-position: 0px 0px;
    background-repeat: repeat-x;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    animation: linepulse 15s linear infinite;
    overflow: hidden;
    background-size: 200% 100%;
}

@keyframes linepulse {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: 0 0;
    }
}


/* Footer */

.footer-container {
    height: 30vh;
    min-height: 400px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer--inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    padding-top: 2rem;
}

.footer--nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer--nav ul li {
    padding-bottom: .5rem;
}

.footer-meta {
    height: 10vh;
    min-height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: var(--l-universal-padding);
    font-size: 1rem;
}






.blog--item {
    min-height: 300px;
    margin: 5rem 0;
    padding: var(--l-universal-padding) 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
}



.blog--item:hover .blog--item__text {
    color: black;
    animation: textTransform 1s ease-in forwards;
}

@keyframes textTransform {
    0% {
        color: inherit;
    }

    100% {
        color: var(--section-primary-colour);
    }
}

.blog--item__underline {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(240deg, var(--section-primary-colour) 0%, rgba(255, 255, 255, 0) 100%);
    background-repeat: repeat-x;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.blog--item:hover .blog--item__underline {
    animation: linepulse 15s linear infinite;
    overflow: hidden;
    background-size: 200% 100%;
}

@keyframes linepulse2 {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: 0 0;
    }
}

.blog--item__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog--item__text .title {
    z-index: 9;
}

.blog--item__text .title h1 {
    text-transform: uppercase;
    max-width: 500px;
}

.blog--item__text h4 {
    text-transform: uppercase;
}

.blog--image__container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.blog--image,
.post--image {
    position: relative;
}

.post--image {
    position: relative;
    height: 70vh;
    width: 70vh;
    max-height: 600px;
    max-width: 600px;
}

.blog--image::after {
    content: '';
    background: rgb(255, 118, 0);
    background: linear-gradient(240deg, var(--section-primary-colour) 0%, rgba(255, 255, 255, 0) 80%);
    border-radius: 50%;
    height: 35vh;
    width: 35vh;
    min-height: 300px;
    min-width: 300px;
    max-height: 500px;
    max-width: 500px;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(-50%);
}

.onward-links--item .blog--image::after {
    display: none;
}

.onward-links--item .blog--image {
    height: 200px;
    width: 200px;
}

.onward-links--item .blog--image .blog--image-clip {
    height: auto;
    width: 100%;
}

.post--image::after {
    content: '';
    background: rgb(255, 118, 0);
    background: linear-gradient(240deg, var(--section-primary-colour) 0%, rgba(255, 255, 255, 0) 80%);
    border-radius: 50%;
    height: 35vh;
    width: 35vh;
    min-height: 300px;
    min-width: 300px;
    max-height: 500px;
    max-width: 500px;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(-50%);
}

.post--image::after {
    height: 70vh;
    width: 70vh;
}


.blog--image-clip img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

@media screen and (max-width: 700px) {
    .blog--item {
        flex-direction: column;
        overflow: hidden;
        margin: 2rem 0;
    }

    .blog--image {
        width: 50%;
        height: auto;
        aspect-ratio: 1;
        display: flex;
        justify-content: flex-end;
    }

    .blog--image::after {
        transform: none;
    }

    .post--image {
        width: 40vh;
        height: 40vh;
    }

    .post--image::after {
        opacity: .4;
    }
}


@media screen and (min-width: 700px) {
    .blog--image-clip {
        height: 35vh;
        width: 35vh;
        min-height: 300px;
        min-width: 300px;
        max-height: 500px;
        max-width: 500px;
        overflow: hidden;
    }
}


blockquote {
    margin: 6rem 0;
    position: relative;
}

blockquote h1::before,
blockquote h2::before,
blockquote h3::before,
blockquote p::before {
    content: '“';
    font-size: 10rem;
    line-height: 0;
    display: block;
    position: absolute;
    top: 2rem;
    left: -.5rem;
}



.post {
    margin-top: 4rem;
	margin-bottom: 4rem;
}

.post-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    border-bottom: 1px solid var(--c-text-colour);
    overflow: hidden;
}



.post-hero .title {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
}

@media screen and (max-width:900px) {
    .blog--image__container {
        grid-column: 2;
    }

    .post-hero .title {
        grid-row: 2;
        grid-column: span 2;
    }
}

.post--content {
    max-width: var(--l-max-content-width);
    padding: var(--l-universal-padding);
}

@media screen and (min-width:900px) {
    .post--content {
        margin: 0 auto;
    }
}

.post--content a {
    border-bottom: 1px solid var(--section-primary-colour);
    padding-bottom: 3px;
}

.post--content a:hover {
    color: var(--section-primary-colour);
}


/* Swiper: Image carrousel */

.slider-container {
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
    scroll-snap-type: y mandatory;
}


.image-block {
    height: 50vh;
    min-height: 500px;
    max-height: 900px;
    width: 100%;
    margin: 5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
}





.swiper {
    height: 100%;
    margin: 0 .5rem;
}

.has-caption {
	padding-bottom: 6rem;
}

.swiper-padded {
	padding-bottom: 6rem;
}

.swiper-wrapper .swiper-slide {
    width: auto;
    height: auto;
}

.swiper img {
    height: 100%;
    width: auto;
}

.swiper figure {
    margin: 0;
}

.slide-caption {
    margin: 1rem;
    margin-left: 0;
    font-size: .9rem;
    max-width: 30ch;
}

.wp-caption {
	padding-bottom: 2rem;
}

.wp-caption,
.wp-caption img {
    width: 100% !important;
}

.wp-caption-text {
    font-size: 1rem;
    line-height: 1.2rem;
    margin-top: 0.5rem;
    max-width: 50ch;
}

.swiper-pagination {
    position: relative;
    bottom: 0;
}

.swiper-pagination-bullet-active {
    background: var(--section-primary-colour);
}


.swiper-button-next,
.swiper-button-prev {
    color: gray;
    background-color: white;
    padding: 1.5rem;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 25px;
}

.swiper-button-prev {}

.backhome {
    border-bottom: 1px solid black;
}


@media screen and (max-width:700px) {
    .swiper {
        padding-bottom: 0;
        height: auto;
    }

    .swiper img {
        height: auto;
    }

    .swiper-pagination {
        position: relative;
        bottom: 0;
    }

    .swiper-button-wrapper {
        display: none;
    }

    .image-block {
        height: 90vh;
        min-height: inherit;
        margin: 0;
    }

    .slide-caption {
        max-width: 90vw;
    }
}

@media screen and (max-width:600px) {}


/* Navigation */



.nav-wrapper nav {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.navigation {
    max-width: 500px;
    border-radius: 20px;
    padding-right: 30px;
    line-height: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-wrapper ul {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    list-style: none;
    height: 0;
    width: 0;
    overflow: hidden;
    transition: .4s cubic-bezier(.77, 0, .18, 1);
}

.nav-wrapper .navigation {
    background-color: none;
    transition: 1s;
}

.nav-wrapper.active .navigation {
    background-color: white;
    transition: .5s;
}

.nav-wrapper.active ul {
    width: 100%;
    height: 100%;
    max-width: 620px;
    margin-right: 20px;
}

.nav-wrapper ul li {
    padding-right: 2rem;
}

.nav-wrapper ul li:hover {
    color: var(--c-orange);
}

.nav-toogler {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    width: 50px;
    height: 50px;
    padding: 18px 10px;
    cursor: pointer;
    background-color: white;
    border-radius: 50%;
}

.nav-wrapper:not(.active) .nav-toogler {
    margin-left: -10px;
}

.nav-toogler::before,
.nav-toogler::after {
    content: '';
    position: relative;
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--c-orange);
}

.nav-toogler::after {
    margin-top: 10px;
}

.nav-wrapper.active .nav-toogler::before,
.nav-wrapper.active .nav-toogler::after {
    position: absolute;
    top: 50%;
    background-color: var(--c-orange);
    transform: rotate(135deg);
}

.nav-wrapper.active .nav-toogler::after {
    transform: rotate(-135deg);
    margin-top: 0;
}


/* About page */

.about-container {
    background-position: center;
    background-repeat: repeat-y;
}

.about-para--contain>* {
    max-width: 600px;
}

@media screen and (min-width: 600px) {
    .about {
        overflow: hidden;
    }

    .about-para--contain:first-of-type {
        margin-top: 5vh;
    }

    .about-para--contain {
        clear: both;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .about-para--contain>* {
        margin-bottom: 10vh;
    }

    .about-para--contain>.block-quote {
        margin-bottom: 0;
    }

    .about-para--contain>*:nth-of-type(even) {
        align-self: flex-end;
    }


    /* .hero--sun__about {
        background: rgb(255, 118, 0);
        background: linear-gradient(90deg, rgba(255, 118, 0, .5) 0%, rgba(255, 255, 255, 0) 100%);
        background-repeat: repeat-y;
        border-radius: 50%;
        height: 40vh;
        width: 40vh;
        max-height: 1000px;
        max-width: 1000px;
        min-height: 800px;
        min-width: 800px;
        padding: 2rem;
        margin: 0 auto;
        position: absolute;
        align-self: flex-start;
        top: 0;
        left: 0;
        right: 0;
    } */
}