/* Import fonts we need to display on the website */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@font-face {
    font-family: "Berlin";
    src: url(./fonts/Berlin.ttf);
}

/* Root variables, so we don't have to write the hex color everytime */
:root {
    --text: #f5f5f5;
    --background: #656d4a;
    --cta-button: #af0000;
}

/* Minimal CSS reset */
html {
    font-size: 16px;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
*, *:before, *:after {
    box-sizing: inherit;
}
  
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}
  
ol, ul {
    list-style: none;
}

a {
    text-decoration: none;
}
  
img {
    height: auto;
    max-width: 100%;
}

body {
    color: var(--text);
    padding: 2rem;
    background: var(--background);
}

body p {
    font-family: 'Montserrat', sans-serif;
}

body h1,
body h2 {
    font-family: "Berlin", sans-serif;
}

section {
    margin-top: 100px;
}

/* Some global styling for certain classes we will apply on certain elements */
.flex-container {
    gap: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.text-box {
    width: clamp(260px, 100%, 600px);
}

.text-box h2 {
    margin-top: 1.65rem;
    font-size: 1.375rem;
}

.text-box p {
    margin-top: 1rem;
}

.center {
    text-align: center;
}

.title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    text-align: center;
    margin-bottom: 50px;
}

.button-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cta-button,
.ghost-button {
    color: var(--text);
    width: fit-content;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0.5rem 1rem;
    background: none;
    transition: 0.2s;
    font-family: 'Montserrat', sans-serif;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
}

.cta-button:hover,
.ghost-button:hover {
    transform: scale(1.05);
}

.cta-button {
    background-color: var(--cta-button);
}

.ghost-button {
    border: 1px solid var(--text);
}

/* Styling for the header */
header {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    box-sizing: border-box;
    left: 0;
    padding: 2rem;
    background: var(--background);
    z-index: 1000;
}

header .flex-container {
    align-items: center;
}

header nav {
    gap: 2rem;
    display: flex;
    align-items: center;
    position: relative;
}

header nav a {
    color: var(--text);
    transition: 0.2s;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

header nav a:hover {
    color: var(--cta-button);
}

header nav #bookBtn:hover {
    color: var(--text);
}

header nav .activity-dropdown,
header nav .event-dropdown {
    position: absolute;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    padding: 1rem;
    padding-top: 1.5rem;
    gap: 0.75rem;
}

header nav .activity-dropdown {
    left: -1rem;
    top: 28px;
    display: none;
}

header nav .event-dropdown {
    /* Use calc to calculate the position relative to the padding. This will align the text where we want it to be */
    left: calc(116px - 1rem);
    top: 28px;
    display: none;
}

header .hamburger {
    border: none;
    outline: none;
    background: var(--cta-button);
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
}

/* Styling for main content across all the pages */
main {
    width: 100%;
    height: auto;
}

main .hero {
    margin-top: 140px;
}

/* Animation for the 'gradient-text' span */
@keyframes shinyFlow {
    from {
      background-position: 0% center;
    }

    to {
      background-position: -200% center;
    }
}

.hero .text-box .gradient-text {
    animation: shinyFlow 3s linear infinite;
    background: linear-gradient(to right, var(--cta-button), #f5221b, #4a271F ,var(--cta-button));
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.hero .text-box h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.activities .card .card-content p {
    /* Smaller height for the cards on the main page to beautify the look of the card relative to the text */
    height: 60px;
}

.customers {
    margin-top: 140px;
    margin-bottom: 140px;
}

.customers h1 {
    margin-bottom: 0;
    transform: translateY(25px);
}

.customers .swiper {
    max-width: 880px;
    height: 400px;
}

.swiper-slide {
    display: grid;
    place-items: center;
}

.swiper-slide .slide-content {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--text);
    color: var(--background);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.swiper-slide .slide-content .quote-icon {
    position: absolute;
    opacity: 0.10;
}

.swiper-slide .slide-content .quote-icon:first-of-type {
    top: 120px;
    left: 50px;
}

.swiper-slide .slide-content .quote-icon:last-of-type {
    bottom: 50px;
    right: 50px;
    transform: rotate(180deg);
}

.swiper-slide .slide-content h3 {
    margin: 1rem;
    max-width: 300px;
    font-style: italic;
}

.google-rating {
    display: grid;
    place-items: center;
    margin-top: 2rem;
}

.google-rating .star-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.google-rating .star-container .star {
    width: 18px;
    height: 18px;
    background-color: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.google-rating .star-container .star:last-of-type {
    background: linear-gradient(90deg, rgba(255,215,0,1) 50%, rgba(245,245,245,0) 50%, rgba(245,245,245,0) 100%);
}

.google-rating p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.events .separator {
    height: 200px;
    width: 3px;
    background-color: var(--text);
    display: none;
}

.events .flex-container:nth-of-type(1),
.events .flex-container:nth-of-type(2) {
    margin-bottom: 4rem;
}

.events .text-box button {
    margin-top: 1rem;
}

.card {
    width: clamp(280px, 30%, 500px);
    border: 1px solid var(--text);
}

.card .card-content {
    padding: 1rem;
}

.card .card-content p {
    margin-top: 0.75rem;
    height: 130px;
}

.show-more {
    left: 50%;
    width: 200px;
    position: relative;
    transform: translateX(-50%);
    margin-top: 2rem;
    background: var(--background);
    border: 1px solid var(--text);
    color: var(--text);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: 0.2s;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.show-more:hover {
    border-radius: 6px;
}

.contact .info-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact .info-container:first-of-type {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.contact .info-container:last-of-type {
    margin-top: 0.4rem;
}

.contact .contact-icon {
    /* Temporary color change to the icon - !! Needs to be changed later on !! */
    filter: invert(1);
    margin-right: 20px;
}

.contact .info-container a {
    text-decoration: none;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    transition: 0.2s;
}

.contact .info-container a:hover {
    color: var(--cta-button);
}

.contact .map iframe {
    border-radius: 10px;
}

/* Styling for events.html page */
.text-container {
    margin-bottom: 4rem;
}

/* Styling for priser.html */
.price-page .flex-container .card {
    position: relative;
}

.price-page .flex-container .card::before {
    /* Pseudo element to make a background image we can target with a filter, without affecting the card and it's content itself */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/images/Image-Placeholder.webp);
    z-index: -100;
    filter: brightness(55%);
}

.price-page .flex-container .card .prices {
    padding: 1rem;
    height: 540px;
}

.price-page .flex-container .card .prices h1 {
    font-size: 1.25rem;
    line-height: 1.8;
    text-decoration: underline;
}

.price-page .flex-container .card .prices p {
    margin-top: 0.75rem;
}

.price-page .flex-container .card .card-content {
    text-align: center;
    background: var(--text);
    color: var(--background);
}

/* Styling for omos.html page (about-page) */

.author {
    font-style: italic;
}

/* Styling for event subpages | polterabend.html, firmaevent.html and blaamandag.html */
.subpage-hero {
    width: 100%;
    margin-top: 40px;
}

.subpage-hero-image {
    background-image: url(/images/Image-Placeholder.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 400px;
    width: 100%;
}

.price-box {
    padding: 1rem;
    border: 1px solid var(--text);
    font-family: 'Montserrat', sans-serif;
}

.price-box h1,
.price-box h3 {
    text-decoration: underline;
    margin-bottom: 1rem;
}

.event-info .price-box ul {
    padding-left: 1rem;
}

.event-info .price-box ul li {
    list-style: circle;
    line-height: 1.4;
}

.price-box p {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

/* Styling for the footer */
footer {
    width: 100%;
    height: auto;
    margin-top: 100px;
}

footer .flex-container div {
    width: 184px;
}

footer h1 {
    margin-bottom: 1.5rem;
}

footer p {
    line-height: 1.8;
}

footer a {
    color: var(--text);
    transition: 0.2s;
    line-height: 1.8;
    font-family: 'Montserrat', sans-serif;
}

footer .socials {
    gap: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

footer a:hover {
    color: var(--cta-button);
}


/* Media Querys to make our website responsive, so it works well with all sorts of devices */
@media screen and (min-width: 1100px) {
    main .events .separator {
        display: block;
    }
}

@media screen and (max-width: 1100px) {
    main .events .flex-container:nth-of-type(2) {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media screen and (max-width: 970px) {
    main .activities .flex-container {
        justify-content: center;
    }
}

@media screen and (max-width: 670px) {
    header nav {
        display: none;
    }

    header .hamburger {
        display: block;
    }
}