/*
 Theme name:   Quick Salt
 Theme:		   Quick Salt
 Description:  Quick Salt theme for quicksalt.com website
 Author:       Codalistic
 Designer URI: https://codalistic.com
 Version:      1.1.0
*/

:root {
    --primary-color: #002366;    /* Royal Blue (Traditional) */
    --secondary-color: #002366;
    --background-color: #FFFFFF;
    --text-color: #000000;
    --button-text-color: rgb(255, 255, 255);
    --card-color: #dffbff;
    --shadow-color: #000;
    --form-border-color: #ccc;
    --primary-light-color: #002366;
    --gradient-color-light: #ba7c4d;
    --gradient-color-dark: #b35c2f;
    --line-height: 1.618rem;
	
	--menu-item-back-color: var(--background-color);
	--menu-separator-color: transparent;
	--menu-border-width: 0px;
	--menu-separator-width: 0px;
	--menu-transition-time: 0.25s;
	--menu-opacity: 1;
	--menu-breakpoint: 800px;
	--menu-header-offset: 0px;
	--menu-primary-background-color: var(--primary-color);
	--menu-primary-color: var(--background-color);
	--menu-primary-separator-color: var(--background-color);
	--menu-icon-color: var(--background-color);

}

@media all and (min-width: 800px) {
    nav li:last-child {
        box-shadow: inset 0 0 0 2px #FFF;
    }
}

form input[type="submit"] {
    box-shadow: inset 0 0 0 2px #FFF;
}

.contact h2,
.contact a {
    color: var(--button-text-color);
}


/***********/
/* RESET   */
/***********/

* {
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}


/****************/
/* FONT-STYLES  */
/****************/

html,
body {
    font-size: 14px
}

@media(min-width: 320px) {
    html,
    body {
        font-size: 14px
    }
}

@media(min-width: 560px) {
    html,
    body {
        font-size: 15px
    }
}

@media(min-width: 800px) {
    html,
    body {
        font-size: 16px
    }
}

@media(min-width: 1040px) {
    html,
    body {
        font-size: 17px
    }
}

@media(min-width: 1280px) {
    html,
    body {
        font-size: 18px
    }
}

body {
    line-height: var(--line-height);
    font-family: 'Libre Caslon Text', serif;
    text-rendering: optimizelegibility;
}

h1,
h2,
h3,
nav {
    font-family: 'Didact Gothic', sans-serif;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.618rem;
    line-height: 3.236rem;
}

h2 {
    font-size: 2.618rem;
    line-height: 3.236rem;
}

h1 {
    font-size: 4.235rem;
    line-height: 4.854rem;
}

nav {
    font-size: 1.25rem;
    line-height: 1.618rem;
}


/**************/
/* HTML-TAGS  */
/**************/

html,
body {
    min-width: 320px;
    width: 100%;
    height: 100%;
}

a {
    color: var(--secondary-color);
    text-decoration: underline;
}

h2 a {
    text-decoration: none;
}

h2 a:hover {
    text-decoration: underline;
}

article h2,
article>p:first-child {
    font-weight: bold;
    margin-top: var(--line-height);
}

article {
    margin-bottom: var(--line-height);
}

aside h2 {
    text-align: center;
}

h1,
h2,
h3 {
    color: var(--secondary-color);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    width: 100%;
}

header {
    width: 100%;
    position: relative;
    background-color: var(--primary-color);
}

img {
    border-radius: 0.5rem;
}

footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding-top: var(--line-height);
}

p {
    margin-bottom: var(--line-height);
}


/**************/
/*   GRID   */
/**************/

body,
header,
header .glitch,
footer,
footer .wrapper,
.main,
.navbar {
    display: grid;
}

body {
    grid-template-rows: auto auto 1fr auto;
}

footer,
header,
.main,
.navbar {
    grid-template-columns: auto minmax(320px, 60em) auto; /* between 50-75 characters: minimum 50 chars. */
    grid-template-rows: auto;
}

.glitch {
    grid-column-start: 1;
    grid-column-end: 4;
	padding-top: 25%;
}

.wrapper {
    grid-column-start: 2;
    grid-column-end: 3;
}

.wrapper.contact {
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.618rem;
}

.contact section:nth-child(2) {
    grid-row-start: 2;
    grid-column-start: 1;
    grid-column-end: 3;
}

.contact section:nth-child(3) {
    grid-row-start: 1;
    grid-column-start: 2;
}

@media all and (max-width: 480px) {
    .contact section:nth-child(3) {
        display: grid;
        align-items: flex-end;
    }
}

@media all and (min-width: 800px) {
    .wrapper.contact {
        grid-template-columns: minmax( calc( 320px / 4), calc( 960px / 4)) minmax( calc( 320px / 2), calc( 960px / 2)) minmax( calc( 320px / 4), calc( 960px / 4));
        grid-column-start: 2;
        grid-column-end: 3;
    }
    .contact section:nth-child(2) {
        grid-row-start: auto;
        grid-column-start: auto;
        grid-column-end: auto;
    }
    .contact section:nth-child(3) {
        grid-row-start: auto;
        grid-column-start: auto;
    }
}


/**************/
/*   LAYOUT   */
/**************/

a.continue-link {
    display: block;
    margin-top: var(--line-height);
    float: right;
}

a.introlink::after {
    clear: both;
}

nav a {
    color: var(--background-color);
    text-decoration: none;
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: transparent;
}

nav li:last-child {
    background-color: var(primary-light-color);
}

nav li:hover a {
    font-size: 1.2em;
}

nav .current_page_item a {
    font-weight: bold;
}

@media all and (min-width: 800px) {
    nav li:hover a,
    nav .current_page_item a {
        font-size: 1em;
        border-color: var(--background-color);
    }
}

.header-logo {
    height: 4rem;
    padding-top: 0.618rem;
    overflow: hidden;
    float: left;
}

.header-logo img {
    display: block;
    float: left;
    filter: invert(100%);
    height: calc( 3 * var(--line-height));
}

.wrapper {
    padding: 0 0.618rem;
}

.main .wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./images/quicksalt-logo.png);
    filter: invert(100%) brightness(50%) sepia(1) saturate(10000) hue-rotate(219deg) saturate(105.5%) brightness(45%);
    background-position: 0.618rem calc(0.618rem - 4rem);
    background-size: auto calc( 3 * var(--line-height));
    background-repeat: no-repeat;
}

.navbar {
    height: 4rem;
    color: var(--background-color);
}

footer .info ul {
    list-style: none;
}

.contact img {
    width: 100%;
    max-width: 240px;
    float: right;
}

.contact h2 {
    margin-bottom: 1.618rem;
}

.rounded {
    border-radius: 0.5rem;
}

.left {
    float: left;
}

.right {
    float: right;
}


/******************/
/* HELPER CLASSES */
/******************/

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.clearfix {
    display: inline-block;
}


/* start commented backslash hack \*/
* html .clearfix {
    height: 1%;
}
.clearfix {
    display: block;
}
/* close commented backslash hack */

.blur {
    filter: blur(1.618rem);
}


/***********/
/* Article */
/***********/

@media all and (min-width: 800px) {
    .page:not(.home) article {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 2fr;
        grid-auto-rows: min-content;
        /* grid-column-gap:1.618rem; */
        margin: 0 auto 1.618rem;
    }
}

article p:first-of-type,
.intro p:first-of-type {
    font-weight: 700;
}

article h2,
article p,
article p:first-of-type {
    display: grid;
    text-align: left;
    grid-column-end: 6;
    /* display: inline-block; */
}

article h2 {
    grid-column-start: 1;
}

article>p {
    grid-column-start: 3;
    margin-top: 1.618rem;
    margin-bottom: 0;
}

article p:first-of-type {
    grid-column-start: 2;
}

.main section {
    grid-column-start: 1;
    grid-column-end: 3;
}

.main section p {
    margin-top: 1.1618rem;
}

.main section h2+p,
.main section h2+p,
.main section p:first-of-type {
    margin-top: 0;
}

.main section p:last-child {
    margin-bottom: 0;
}

.main section p+h2,
.main section p+h3 {
    margin-top: -1.618rem;
}

.gallery section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    grid-column-gap: 1.618rem;
    grid-row-gap: 1.618rem;
    width: 100%;
    margin: 0 auto;
}

@media all and (min-width: 520px) {
    .gallery section {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media all and (min-width: 800px) {
    .gallery section {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery img {
    width: 100%;
    box-shadow: 0 0 0 2px var(--form-border-color);
}
.gallery a:hover img {
    box-shadow: 0 0 0 4px var(--primary-color);
	outline: 2px solid var(--background-color);
}

aside {
    grid-row: 4 / 10;
}

aside h3 {
    text-align: left;
    border-bottom: 1px solid var(--secondary-color);
}

aside ul {
    list-style: none;
    padding-left: 0;
}

aside.gallery {
    margin-top: 1.618rem;
}

article aside p:first-of-type {
    font-weight: normal;
}

@media all and (min-width: 800px) {
    .home aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1.618rem;
    }
}


/**************/
/* NAVIGATION */
/**************/

.responsive-menu-button {
	margin-top: 1rem;
}
.responsive-menu-button span::before,
.responsive-menu-button span::after,
.responsive-menu-button span > b {
    border-radius: 0;
    height: 2px;
}
.responsive-menu-button span > b {
    margin: 7px 0;
}

/* Desktop Menu */
@media all and (min-width: 800px) {
	nav ul {		
		margin-top: 0.5rem;
	}
	nav ul a {		
		display: inline;
		padding: 0;
		margin: 0 0.5rem;
	}
}


/**************/
/*   FORM(S)  */
/**************/

form {
    width: 100%;
    height: 100%;
}

form ol {
    list-style: none;
    height: 100%;
}

form ol li {
    margin: 0 0 5px 0;
}

form input[type="submit"],
form input[type="submit"]:hover {
    background: var(--primary-light-color);
    color: var(--button-text-color);
    text-decoration: none;
    border: none;
    line-height: 2rem;
}

form input[type="submit"]:hover {
    text-decoration: underline;
    cursor: pointer;
}

form input[type="submit"] {
    width: 100%;
    font-size: 1rem;
	border-radius: 4px;
}

#acceptance {
    font-size: 0.8em;
}

#submititem img {
    width: auto;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    box-shadow: inset 0 0 0 1px var(--form-border-color);
    border: none;
	border-radius: 4px;
    color: var(--text-color);
    width: 100%;
    padding-left: 0.5rem;
    font-size: 1rem;
    line-height: 1.618em;
    background-color: var(--background-color);
}

@media(min-width: 600px) {
    form input[type="text"],
    form input[type="email"],
    form input[type="tel"],
    form textarea {
        box-shadow: inset 0 0 0 2px var(--form-border-color);
        background-color: var(--background-color);
    }
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form textarea:focus {
    box-shadow: inset 0 0 0 2px var(--secondary-color);
    color: var(--text-color);
	outline: 1px solid var(--background-color);
}

form label {
    display: inline;
    height: 1.5rem;
    margin-left: 0.5rem;
    line-height: 1.5rem;
    color: var(--background-color);
}

form tr th {
    display: none;
    width: 150px;
}

@media all and (min-width: 601px) {
    form tr th {
        display: inline;
    }
}

form ol li span {
    line-height: 1rem;
    width: 100%;
    display: inline;
}

form textarea {
    width: 100%;
    height: 100%;
    font-family: arial, sans serif;
}

form select {
    background-color: var(--background-color);
    display: inline-block;
    border: none;
    line-height: 1.5rem;
    font-size: 0.8rem;
}

form table.eme-rsvp-form select {
    width: auto;
    padding: 0 1rem;
    box-shadow: inset 0 0 0 2px var(--form-border-color);
}

form table.eme-rsvp-form th {
    display: table-cell;
    width: 7em;
    vertical-align: top;
    font-weight: 300;
}

form table.eme-rsvp-form .eme-required-field {
    display: none;
}

@media(min-width: 601px) {
    form select {
        width: calc(100% - 8em - 0.5rem);
    }
}

form ol,
form ol .wpcf7,
form ol .wpcf7-form,
form ol .wpcf7 textarea {
    height: 100%;
}

form ol .wpcf7 {
    width: 100%;
}

.wpcf7 {
    min-height: 100%;
    width: 100%;
}

form .eme-rsvp-form {
    width: 100%;
}

#acceptance span {
    display: inline;
    margin-left: 0;
}


/*********
** WPML **
*********/

#flags_language_selector {
    text-align: right;
    grid-column: 1/-1;
}

#flags_language_selector img {
    margin: 1px;
    border: 1px solid #333;
    border-radius: 0;
    width: 24px;
    height: 16px;
}