@import url('variables.css');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
}

body {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
}

.smooth-link {
    cursor: pointer;
}

.logo-font {
    font-family: var(--title-font);
}

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

/* Buttons */
.btn {
    background-color: var(--do-primary-color);
    width: 100%;
    padding: 0.75em 1.25em;
    font-size: 1.2em;
    color: white;
    font-weight: 500;
    transition: all ease 0.1s;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.btn.btn-light {
    background-color: white;
    color: var(--do-primary-color);
}

.btn.btn-border {
    background-color: transparent;
    border: 0.15em solid white;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow:rgba(0, 0, 0, 0.05) 2px 2px 5px 0em;
}

.btn.btn-border:hover {
    background-color: white;
    color: var(--do-primary-color);
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--do-primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading p {
    color: white;
    font-size: 1.5em;
    font-weight: 500;
    text-align: center;
}

/* Page transitions */
.transition-overlay {
    display: flex;
    position: fixed;
    z-index: 51;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    margin: 0;
    pointer-events: none;
}

.transition-overlay .transition-overlay-element {
    transform: scaleY(0);
}

.transition-overlay .transition-overlay-element:first-child {
    width: 60%;
    background-color: var(--do-color);
}

.transition-overlay .transition-overlay-element:last-child {
    width: 40%;
    background-color: var(--do-color-darken);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
}

.modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 53;
    width: 80%;
    max-width: 500px;
    background-color: black;
    border-radius: var(--border-radius);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 10px 0em;
    padding: 2em 3em;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.modal .modal-card .modal-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal .modal-card .modal-card-body {
    width: 100%;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal .modal-card .modal-card-body p {
    font-size: 1.1em;
    line-height: 1.5em;
    margin: 1em 0;
    text-align: center;
}

.modal .modal-card .modal-card-body .modal-card-title {
    font-size: 2em;
    font-weight: 500;
    color: var(--do-color-darken);
    text-align: center;
}

.modal .modal-logo {
    width: 100px;
    margin: 1em auto;
}

.legal-age-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em;
}

.legal-age-buttons .btn {
    margin: 0.5em 0.5em 0 0.5em;
    text-align: center;
    text-decoration: none;
}

/* Header */
.logo {
    width: 80px;
    height: 80px;
    position: absolute;
    background-color: var(--do-color);
    padding: 1em;
    z-index: 52;
}

header #logo_container a {
    text-decoration: none;
}

header {
    display: flex;
    height: 3em;
    background-color: var(--do-color);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    font-weight: 500;
    z-index: 50;
}

header div {
    display: inline-flex;
}

nav {
    width: 100%;
    margin: auto;
    padding-left: 100px;
    z-index: 50;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
}

nav ul li {
    list-style: none;
    text-align: center;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 0.9em 1em;
    transition: all ease 0.1s;
}

nav ul li a:hover {
    background-color: var(--do-color-darken);
}

nav.mobile-menu {
    display: none;
    position: absolute;
    top: 48px;
    width: 100%;
    background-color: var(--do-color);
    padding-top: 3em;
}


nav.mobile-menu ul li {
    width: 100%;
}


nav.mobile-menu ul li a {
    display: block;
}

.navbar-icons {
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.navbar-icons a {
    text-decoration: none;
    transition: all ease 0.1s;
    padding: 0.8em 0;
}

.navbar-icons a:hover {
    background-color: var(--do-color-darken);
}

.navbar-icons a:not(:last-child) svg {
    border-right: solid 0.5px rgba(255, 255, 255, 0.5);
}
.navbar-icons a:last-child svg {
    border-left: solid 0.5px rgba(255, 255, 255, 0.5);
}

.navbar-icons a svg {
    fill: white;
    padding: 0 1em;
}

header .menu-icon {
    display: none;
    padding: 0.8em 1em;
    cursor: pointer;
    transition: all ease 0.1s;
    z-index: 2;
}

header .menu-icon svg {
    fill: white;
}

header .menu-icon:hover {
    background-color: var(--do-color-darken);
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--do-color);
    height: 3em;
    padding: 2em 0;
    z-index: 4;
}

footer p {
    text-align:center;
    color: white;
    font-size: 0.9em;
}

footer .footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin-bottom: 0.5em;
}

footer .footer-icons a svg {
    padding: 0.5em 0.8em;
    fill: white;
}

/* HOME */
#index-bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url(../img/beers/RuralBeer.jpg);
    background-size: cover;
    background-position: center;
    transition: background-color ease 1s;
    z-index: -2;
}

#index-bg-color {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0);
    background-size: cover;
    background-position: center;
    transition: background-color ease 0s;
    z-index: -1;
}

.content {
    width: 100%;
    margin: auto;
    padding: 0;
    min-height: calc(100vh - 10em);
}

.hero {
    width: 100%;
    height: 90vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small-hero {
    height: 30vh;
    background-image: url('../img/beers/RuralBeer.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    color: white;
    font-size: 2em;
    font-family: var(--title-font);
    text-align: center;
    height: 100%;
    width: 100%;
    display: flex;
}

.hero-text-content {
    margin: auto;
}

.hero:not(.small-hero) .hero-text-content {
    padding-top: 60vh;
}

/* Beers Home Page */
.beers-types {
    display: flex;
    justify-content: center;
    padding-top: 10vh;
    min-height: 100vh;
}

.beers-types-beer {
    width: 250px;
    margin: 0 4%;
    height: 80vh;
    cursor: pointer;
    margin-bottom: 20vh;
}

.beers-types-beer-points {
    position: relative;
    width: 130px;
    left: -20%;
    top: 30%;
    z-index: 0;
}

.beers-types-beer-points .dots-svg .dots-svg-dot {
    fill: var(--do-secondary-color);
    stroke: var(--do-secondary-color);
    stroke-width: 5px;
}

.beers-types-beer-main {
    position: relative;
    justify-content: flex-start;
    align-items: center;
    z-index: 1;
    width: 100%;
}

.beers-types-beer-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.beers-types-beer-image img {
    width: 60%;
    top: 50%;
    left: -15px;
    position: relative;
}

.beers-types-beer-block {
    width: 100%;
    height: 300px;
    max-height: 50vh;
    top: -45%;
    left: 0%;
    background-color: var(--do-primary-color);
    position: relative; 
    z-index: 0;
}

.beers-types-beer-block .do-biggest {
    font-family: var(--title-font);
    font-size: 3em;
    font-stretch: 150%;
    font-weight: 500;
    color: var(--do-secondary-color);
    position: relative;
    left: 70%;
}

/* BEERS */
.menu-beers {
    width: 100%;
    position: sticky;
    box-sizing: border-box;
    top: 0;
    z-index: 2;
}

.menu-beers ul {
    display: flex;
}

.menu-beers ul li {
    list-style-type: none;
    width: 33.33%;
    text-align: center;
    background-color: var(--do-color);
    border-right: solid 0.5px rgba(255, 255, 255, 0.5);
}

.menu-beers ul li a {
    display: block;
    padding: 1em 1em;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all ease 0.1s;
}

.menu-beers ul li:last-child {
    border-right: none;
}

.menu-beers ul li a:hover {
    background-color: var(--do-color-darken);
}

.red-beer {
    --do-primary-color: var(--do-red);
    --do-secondary-color: var(--do-brown);
    --title-color: var(--do-color);
}

.blue-beer {
    --do-primary-color: var(--do-blue);
    --do-secondary-color: var(--do-light-red);
    --title-color: white;

}

.orange-beer {
    --do-primary-color: var(--do-golden);
    --do-secondary-color: var(--do-orange);
    --title-color: var(--do-dark-blue);
}

.beer-section {
    background-color: var(--do-primary-color);
}

.beer-section-bg {
    position: absolute;
    z-index: 0;
    height: 100%;
}

.beer-section-bg.bg-left {
    background-color: var(--do-primary-color);
    width: 65vw;
}

.beer-section-bg.bg-right {
    background-color: var(--do-secondary-color);
    width: 40vw;
    right: 0;
}

.beer-section-bg .dots-svg {
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.beer-section-bg .dots-svg .dots-svg-dot {
    fill: var(--do-primary-color);
    stroke: var(--do-primary-color);
    stroke-width: 3px;
}

.beer-section-bg .do-biggest {
    font-family: var(--title-font);
    position: relative;
    font-size: 30vh;
    color: var(--do-color);
    top: 100%;
    left: 0;
    transform: translate(-10%, -100%);
    display: block;
    color: var(--do-secondary-color);
    overflow: hidden;
    height: 150px;
}

.beer-section-main {
    position: relative;
    display: flex;
    justify-content: flex-start;
    height: 100vh;
    align-items: center;
    z-index: 1;
    width: 100%;
}

.beer-section .beer-section-image {
    width: 45vw;
    height: 100%;
    position: relative;
}

.beer-section .beer-section-image img {
    width: auto;
    height: 80vh;
    max-height: 80vh;
    top: 50%;
    left: 0;
    position: relative;
    transform: translate(-50%, -50%) rotate(-7deg);
}

.beer-section .beer-section-content {
    width: 35vw;
    height: 100%;
    margin-left: auto;
    padding: 0 15vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.beer-section .beer-section-content h2 {
    font-size: 3.5em;
    margin-bottom: 1em;
    color: var(--title-color);
    font-weight: 800;
    text-align: center;
    line-height: 0.55em;
}

.beer-section .beer-section-content h2 .do-beer  {
    font-family: var(--title-font);
    font-size: 2em;
    font-stretch: 150%;
    font-weight: 600;
    color: var(--do-secondary-color);
}

.beer-section .beer-section-content p {
    font-size: 1.6em;
    font-weight: 500;
    margin-bottom: 1em;
    color: white;
    text-align: center;
}

.buy-button {
    margin-top: 1em;
    background-color: var(--do-secondary-color);
    box-sizing: content-box;
    width: fit-content;
    color: white;
    cursor: pointer;
}

.buy-button:hover {
    transform: scale(1.05) rotate(-2deg);
}

/*Do Expererience */
.cards {
    width: calc(100% - 4em);
    max-width: 1000px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2em;
    row-gap: 2em;
    margin: 2em auto;
}

.card {
    display: flex;
    background-color: white;
    border-radius: 0.25em;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.card .card-content {
    width: 60%;
    box-sizing: border-box;
    padding: 2em 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card .card-content h1 {
    font-stretch: 30%;
}

.card .card-image {
    width: 40%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    border-radius: 0.25em 0 0 0.25em;
}

.card .card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em;
}

.card .card-actions a {
    color: black;
}

.card .card-actions button {
    width: fit-content;
}

.price {
    text-align: right;
    font-size: 1.1em;
    font-weight: 600;
    font-stretch: 110%;
    font-family: var(--title-font);
    margin-top: 1em;
}

/* About Do */
.menu-about-do {
    width: 100%;
    position: sticky;
    box-sizing: border-box;
    top: 0;
    z-index: 2;
}

.menu-about-do ul {
    display: flex;
}

.menu-about-do ul li {
    list-style-type: none;
    width: 50%;
    text-align: center;
    background-color: var(--do-color);
    border-right: solid 0.5px rgba(255, 255, 255, 0.5);
}

.menu-about-do ul li a {
    display: block;
    padding: 1em 1em;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all ease 0.1s;
}

.menu-about-do ul li:last-child {
    border-right: none;
}

.menu-about-do ul li a:hover {
    background-color: var(--do-color-darken);
}

.about-section {
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
}
.about-section-main:before {
	content:'';
	position: absolute;
    top: 0;
	bottom: 0;
	left: 0;
	right: 0;
    background-color: rgba(175, 97, 9, 0.2);
}

.about-section-main {
    position: relative;
    display: flex;
    justify-content: flex-end;
    min-height: 75vh;
    align-items: center;
    z-index: 1;
    width: 100%;
}

.about-section .about-section-content {
    min-width: 45%;
    max-width: 60%;
    height: calc(75vh - 6em);
    margin-left: auto;
    box-sizing: border-box;
    padding: 4em 5em;
    margin: 3em;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(0,0,0,0.1);
}

.about-section:nth-child(2n) .about-section-main {
    justify-content: flex-start;
}

.about-section .about-section-content h2 {
    font-size: 3em;
    margin-bottom: 1em;
    color: var(--title-color);
}

.about-section .about-section-content p {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 1em;
    color: white;
}
.about-section .about-section-content h3 {
    font-size: 1.7em;
    font-weight: 600;
    margin-bottom: 1em;
    color: var(--do-primary-color);
}

#firstBeer .about-section-main::before {
    background-color: rgba(0,0,0,0.3);
}

#energy .about-section-main::before {
    background-color: rgba(0,0,0,0.3);
}

#fermentation .about-section-content h3 {
    color: rgb(241, 238, 196);
}

#sustainability .about-section-main::before {
    background-color: rgba(0,0,0,0.3);
}

#commitment .about-section-main {
    align-items: center;
    justify-content: center;
}

#commitment .about-section-content {
    max-width: 400px;
    height: auto;
    text-align: center;
}

#commitment .about-section-content h3 {
    margin: 0;
}

/* Find us (pagina mas estupenda) */
.map{
    width: 100%;
    height: 90vh;
    border: 0;
}

.contact-form {
    width: 90vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 5vw;
    background-color: var(--do-primary-color);
}

.contact-form .contact-form-container {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.contact-form .contact-form-header {
    font-size: 1.5em;
    color: white;
    margin-bottom: 1.5em;
}

.contact-form .contact-form-input-container {
    width: 100%;
}

.contact-form .contact-form-input-container input,
.contact-form .contact-form-input-container textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1em;
    padding: 0.5em 1em;
    margin-bottom: 1em;
    border: solid 3px white;
    transition: background-color ease 0.1s,
                color ease 0.1s;
}

.contact-form .contact-form-input-container textarea {
    resize: none;
}

.contact-form .contact-form-input-container input:focus,
.contact-form .contact-form-input-container input:focus::placeholder,
.contact-form .contact-form-input-container textarea:focus,
.contact-form .contact-form-input-container textarea:focus::placeholder,
.contact-form .contact-form-input-container input:not(:placeholder-shown),
.contact-form .contact-form-input-container textarea:not(:placeholder-shown) {
    background-color: var(--do-color);
    color: white;
}

/* DO YOUNG */
.blockquote-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 10em);
    padding: 0 20px;
    background-color: black;
}

.blockquote {
    position: absolute;
    width: 400px;
    margin: 80px auto;
    top: 25vh;
    align-self: center;
    display: flex;
    flex-direction: column;
}

.box {
    border: solid 2px var(--do-color);
    border-radius:20px;
    height: 190px;
    background-color: transparent;
}

.box:after {
    content:"";
    position: absolute;
    border: 2px solid var(--do-color);
    border-radius: 0 50px 0 0;
    width: 60px;
    height: 60px;
    bottom: -60px;
    left: 50px;
    border-bottom: none;
    border-left: none;
    z-index: 3; 
}

.box:before {
    content:"";
    position: absolute;
    width: 80px;
    border: 6px solid black;
    bottom: -3px;
    left: 51px;
    z-index: 2;
}

.blockquote h1 {
    font-family: 'Abril Fatface', cursive;
    position: absolute; /* for pseudos */
    color: var(--do-color);
    font-size: 2.8rem;
    font-weight: normal;
    line-height: 1;
    margin: 0;
    padding: 25px;
}

.blockquote span {
    font-family: 'Abril Fatface', cursive;
}

/* increase header size after 600px */
@media all and (min-width: 600px) {
    .blockquote h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .box {
        height: 220px;
    }
}

/* Blockquote subheader */
.blockquote h4 {
    position: absolute;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 400;
    font-stretch: 80%;
    line-height: 1.2;
    margin: 0;
    padding-top: 15px;
    z-index: 1;
    margin-left:150px;
    padding-left:12px;
    top: 230px;
}


.blockquote h4:first-letter {
    margin-left:-12px;
}

/* Responsive */
@media screen and (max-width: 1000px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .about-section-main {
        align-items: flex-start;
    }

    .about-section .about-section-content {
        width: 100%;
        min-height: 30vh;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .transition-overlay .transition-overlay-element:first-child {
        width: 100%;
    }

    .logo {
        width: 50px;
        height: 50px;
        position: absolute;
        background-color: var(--do-color);
        padding: 0.75em;
    }

    .legal-age-buttons {
        flex-direction: column;
    }

    .hero.hero-small {
        height: 15vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    header {
        justify-content: space-between;
    }

    header div {
        display: block;
    }

    header .menu-icon {
        display: block;
    }

    nav {
        padding-left: 0;
        display: none;
    }

    nav.mobile-menu ul {
        display: block;
    }

    nav.mobile-menu ul li {
        display: block;
    }

    nav.mobile-menu ul li:last-child {
        border-bottom: solid 1px white;
    }

    .beers-types {
        flex-direction: column;
        height: auto;
    }

    .beers-types-beer {
        margin: 0 auto;
        margin-bottom: -5vh;
    }

    .beers-types-beer-image img {
        max-height: 60vh;
        width: auto;
    }

    .beer-section-bg.bg-right {
        width: 0;
    }

    .beer-section-bg.bg-left {
        width: 100%;
        height: initial;
    }

    .beer-section-bg .do-biggest {
        transform: translate(-11%, 50%);
        font-size: 25vh;
        height: 100%;
        width: 112%;
    }

    .beer-section-bg .dots-svg {
        position: absolute;
        top: -10vh;
        left: -32vw;
        width: 28vw;
        padding-left: 10px;
        height: 100%;
        z-index: 1;
    }

    .beer-section-bg .dots-svg .dots-svg-dot {
        fill: var(--do-secondary-color);
        stroke: var(--do-secondary-color);
        stroke-width: 7px;
    }

    .beer-section-main {
        flex-direction: column;
        flex-flow: column-reverse;
        height: auto;
    } 

    .beer-section .beer-section-content {
        width: 70vw;
        padding: 0 15vw;
        margin-bottom: 20vh;
    }

    .beer-section .beer-section-content h2 {
        font-size: 2.5em;
    }

    .beer-section .beer-section-image {
        width: auto;
        margin: 5vh 0;
    }

    .beer-section .beer-section-image img {
        width: auto;
        height: 40vh;
        max-height: 40vh;
        top: 15%;
        left: 0;
        position: relative;
        transform: translate(0%, 0%) rotate(7deg);
    }

    .about-section .about-section-content {
        max-width: 100vw;
        margin: 0;
        padding: 2em;
    }

    .about-section .about-section-content h2 {
        font-size: 1.5em;
    }
    
    .about-section .about-section-content p {
        font-size: 1em;
    }

    .about-section .about-section-content h3 {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 480px) {
    .menu-beers {
        position: relative;
    }

    .menu-beers ul {
        flex-direction: column;
    }

    .menu-beers ul li {
        width: 100%;
        border-right: none;
        border-bottom: solid 0.5px rgba(255, 255, 255, 0.5);
    }

    .menu-beer ul li:last-child {
        border-bottom: none;
    }

    .beer-section-bg .do-biggest {
        transform: translate(-20%, 50%);
        font-size: 25vh;
        height: 100%;
        width: 125%;
    }

    .card {
        flex-direction: column;
    }

    .card .card-content {
        width: 100%;
    }

    .card .card-image {
        height: 20vh;
        width: 100%;
        border-radius: 0.25em 0.25em 0 0;
    }
}