
* {
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-decoration: none;
    box-sizing: border-box;
} 

:root {
    --text-sm: 0.8rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.563rem;
    --text-2xl: 1.953rem;  
    --text-3xl: 2.441rem; 
    
    --primary_color: #942D1B;
    --secondary_color: #F1E6D0;
    --light_color: #fff4f0;
    --transion: all 0.3s ease-in-out;
} 

@font-face {
    font-family: 'Allura';
    src: url('../fonts/Allura.ttf');
}

@font-face {
    font-family: 'Sans-Pro';
    src: url('../fonts/source-sans-pro.ttf');
}


p {
    font-size: var(--text-base);
    line-height: 1.5;
    font-family: 'Sans-Pro';
} 

.lead {
    font-size: var(--text-lg);
}

h3 {
    font-size: var(--text-xl);
} 

h2 {
    font-size: var(--text-2xl);
} 

h1 {
    font-size: var(--text-3xl);
    font-family: 'Allura';
}


body {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    font-family: 'Sans-Pro';
    text-align: center;
    background-color: var(--light_color)
} 

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 2rem;
    background-color: var(--primary_color);
    
} 

header img {
    width: 100px;
}

footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 80px;
    padding: 2rem;
    text-align: center;
    background-color: var(--primary_color);
} 

footer p {
    color: var(--secondary_color);
}

footer a {
    transition: var(--transion);
}

footer img {
    height: 50px;
    width: 50px;
}

.socials {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.socials p {
    font-weight: bold;
    align-self: center;
}

.socials ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.menu {
    display: none;
}

.menu ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.menu ul li {
    padding: 0.5rem 1rem; 
    border: solid 2px var(--secondary_color);
    border-radius: 0.75rem;
    background-color: var(--secondary_color);
    transition: var(--transion);
}

.menu ul li a {
    color: var(--primary_color);
    font-weight: bold;
    font-size: var(--text-base);
    transition: 1s;
} 

/*Hamburgar meny stil och position*/
.hamburger-menu {
    position: absolute;
    top: -100%; /*Hela elementet är utanför skrämen i övre vänster hörn*/
    left: 0;
    right: 0;
    transition: top 0.3s; /*Åker in från toppen*/
    display: none; /*Visas inte på desktop*/
    background-color: var(--primary_color);
    height: 300px;
    border-bottom: solid 0.5rem var(--secondary_color);
}

/*Hamburgar navigations meny layout*/
.hamburger-menu ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

.hamburger-menu ul li {
    padding: 1rem;
}

.hamburger-menu ul li a {
    color: var(--secondary_color);
    font-weight: bold;
    font-size: var(--text-xl);
} 


/*Hamburgar knapp storlek och position*/
.hamburger-btn {
    min-width: 44px;
    min-height: 44px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
    justify-content: center;
}

/*Hamburgar ikon stil*/
.hamburger-btn span {
    left: 0;
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--secondary_color);
    transition: 0.3s;
}

/*Hamburgar ikon mellanrum mellan streck*/
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 15px; }
.hamburger-btn span:nth-child(3) { top: 30px; }

/*När hamburgar knapp trycks förvandlas ikonen till ett x*/
.hamburger-btn.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/*När hamburgar knapp trycks visas navigations menyn*/
.hamburger-menu.open {
    display: flex;
    top:0;
} 


main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 2rem;
    margin: 0 auto;
} 

/*********************************/

.home-page {
    color: var(--secondary_color);
    background-color: var(--primary_color);
}

.hero-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--primary_color);
} 

.hero-section img {
    height: 250px;
    width: 250px;
    margin: auto;
} 

.hero-section p {
    align-self: center;
}

.events-page main img {
    height: auto;
    width: 100%;
    border: solid 6px var(--primary_color);
}


.container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-page {
    color: var(--secondary_color);
    background-color: var(--primary_color);
}

.about-page .container {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 3rem;
}

.about-page .container img {
    border-radius: 50%;
    height: 200px;
    width: 200px;
    align-self: center;
}

.info-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap:2rem;
}

.info-card {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
}

.info-card img {
    display: flex;
    align-self: center;
    height: 150px;
    width: 150px;
} 
 
.cta-btn {
    padding: 0.5rem 1rem; 
    border: solid 4px var(--primary_color);
    border-radius: 0.75rem;
    color: var(--secondary_color);
    background-color: var(--primary_color);
    justify-content: center;
    width: 200px;
    height: 50px;
    font-size: var(--text-lg);
    font-weight: bold;
    transition: var(--transion);
    align-self: center;
}


.products-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.products-section p {
    text-align: left;
    align-self: center;
}

.products {
    display: flex;
    flex-direction: column;
    gap: 2rem;
} 

.product-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: center;
} 

.product-card img {
    height: 200px;
    width: 200px;
    border: solid 4px var(--primary_color);
    border-radius: 50%;
}

.product-card p {
    text-align: center;
    font-weight: bold;
    font-size: var(--text-lg);
}

.home-page .menu ul li:first-child {
    background-color: var(--primary_color);
} 

.home-page .menu ul li:first-child a {
    color: var(--secondary_color);
} 

.products-page .menu ul li:nth-child(2) {
    background-color: var(--primary_color);
}
.products-page .menu ul li:nth-child(2) a {
    color: var(--secondary_color);
} 

.services-page .menu ul li:nth-child(3) {
    background-color: var(--primary_color);
}
.services-page .menu ul li:nth-child(3) a {
    color: var(--secondary_color);
} 

.about-page .menu ul li:nth-child(4) {
    background-color: var(--primary_color);
}
.about-page .menu ul li:nth-child(4) a {
    color: var(--secondary_color);
} 