*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: content-box;
}

:root {
    --gold_color:rgb(198, 164, 68);
    --bg_off_black: rgb(10, 10, 10);
    --_off_white: rgb(225, 225, 225);
}

@font-face {
    font-family: 'Nunito';
    src: url(../fonts/Nunito.ttf);
}

@font-face {
    font-family: 'Nunito';
    font-style: italic;
    src: url(../fonts/NunitoItalic.ttf);
}

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

html {
    font-family: 'Nunito';
}

header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px;
    place-items: center;
    z-index: 99;
    padding-inline: clamp(10px, 2vw, 30px);
    padding-block: clamp(10px, 2vw, 20px);
    background-color: rgb(10, 10, 10);
}

.header_logo_link {
    width: 10%;
    max-width: 100px;
    min-width: 50px;
    grid-column: 1 / -1;
    grid-row: 1;
}

.lang-dropdown {
    position: relative;
    grid-column: 2;
    grid-row: 1;
}

#langToggle {
    background-color: unset;
    border: none;
}

.lang-menu {
    display: flex;
    position: absolute;
    right: 100%;
    height: 100%;
    border: none;
    border-radius: 5px 0 0 5px;
    opacity: 0;
    transform: translateX(5px);
    transition: transform 150ms ease-out, opacity 150ms ease-out;
}

.lang-menu.active {
    opacity: 1;
    transform: translateX(0);
}

.lang-menu div {
  cursor: pointer;
  display: flex;
  padding: 5px 8px;
  margin: auto;
}

.lang-menu div:hover {
  background: #252525;
}

.lang_flag {
    width: 30px;
    margin: auto;
}

#langToggle {
    display: flex;
    align-items: center;
    background-color: #252525;
    padding: 5px 8px;
    border-radius: 5px;
    gap: 5px;
}

.lang_arrow_down {
    position: relative;
    width: 8px;
    height: 8px;
    margin: 5px;
    transform: rotate(-45deg);
    transition: transform 150ms linear;
}

.lang-dropdown:has(.lang-menu.active) .lang_arrow_down {
  transform: rotate(45deg);
}

.lang_arrow_down::before,
.lang_arrow_down::after {
    content: '';
    position: absolute;
    background-color: var(--gold_color);
}

.lang_arrow_down::after {
    bottom: 0;
    left: 0;
    width: 8px;
    height: 1px;
}
.lang_arrow_down::before {
    left: 0;
    bottom: 0;
    width: 1px;
    height: 8px;
}

@media (max-width: 800px) {
    .header_logo_link {
        margin-right: auto;
        margin-left: 4%;
    }

    .lang_flag {
        width: 20px;
        margin: auto;
    }

}



/* End of NAV styles */


.hero_section {
    display: grid;
    background-color: black;
}

.hero_logo_bg {
    width: 80%;
    margin: auto;
    max-width: 900px;
    grid-column: 1;
    grid-row: 1;
}

.hero_logo {
    grid-column: 1;
    grid-row: 1;
    width: 10%;
    max-width: 150px;
    margin: auto;
    filter: drop-shadow(2px 2px 5px rgb(0, 0, 0));
}

.intro_section {
    display: flex;
    background-color: black;
}

.intro_wrapper {
    margin: 5vw auto;
    width: 80%;
    max-width: 700px;
    color: var(--_off_white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

h1 {
    position: relative;
    color: var(--gold_color);
    font-size: clamp(20px, 4vw, 45px);
}

h1::before {
    content: '';
    position: absolute;
    background-image: url(../assets/logos/LogoIB_gold.svg);
    background-repeat: no-repeat;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    aspect-ratio: 1;

}

h2 {
    font-size: clamp(10px, 1vw, 15px);
    position: relative;
    font-weight: 200;
    text-align: center;
}

.section_text {
    font-size: clamp(12px, 1.5vw, 16px);
    line-height: 1.5;
    margin: 10px;
}

.intro_text {
    text-align: center;
    max-width: 500px;
    margin-top: 2em;
    font-size: clamp(15px, 2vw, 20px);
    font-weight: bold;

}

h2::after,
h3::after {
    content: '';
    display: block;
    width: 70px;
    height: 1px;
    background-color: var(--gold_color);
    opacity: .5;
    margin: auto;
    margin-top: 15px;
}

h2::before,
h3::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width:3px;
    height: 3px;
    outline: 1px var(--gold_color) solid;
    rotate: 45deg;
    background-color: black;
}

.pigs_section {

    /* background-color: rgb(255, 254, 239); */
    background-image: linear-gradient(to right, rgb(245, 233, 211), rgb(255, 254, 239));
}

.pigs_wrapper {
    display: grid;
    width: 90vw;
    margin: auto;
    max-width: 1100px;
    grid-template-columns: 1fr 1fr;
}


.pigs_image {
    object-fit: cover;
    height: 100%;
    aspect-ratio: 3 / 4;
}

.pigs_grid_text_container {
    width: 70%;
    margin: 2em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h3 {
    position: relative;
    font-size: clamp(15px, 2vw, 25px);
    white-space: nowrap;
}

.short_link {
    margin-right: auto;
}

.short_link button {
    cursor: pointer;
    color: blue;
    transition: color 250ms linear;
    background-color: transparent;
    border: 0;
    outline: none;
    font-size: clamp(12px, 1.5vw, 16px);
    line-height: 1.5;
}

/* styles for the dialog */

#policyId {
    max-width: min(60ch, 85%);
    margin: auto;
    padding: 15px;
    gap: 1em;
    outline: none;
}

#policyId::backdrop {
    background-color: black;
    opacity: .6;
}

#policyId h3, #policyId h4 {
    color: var(--gold_color);
}

#policyId h3 {
    text-transform: capitalize;
    font-size: clamp(20px, 3vw, 30px);
    text-align: center;
}

#policyId h3::before {
    content: none;
}

#policyId h4 {
    font-size: clamp(16px, 2vw, 22px);
}

#policyId ul {
    list-style: none;
}

.close-button-wrapper {
    width: 100%;
    text-align: center;
}

.close-button {
    margin: 10px;
    padding: 5px 10px;
    background-color: var(--gold_color);
    border: 0;
    border-radius: 5px;
}


#nutriId {
    max-width: min(60ch, 85%);
    margin: auto;
    padding: 15px;
    gap: 1em;
    outline: none;
}

#nutriId::backdrop {
    background-color: black;
    opacity: .6;
}

#nutriId h3, #nutriId h4 {
    color: var(--gold_color);
}

#nutriId h3 {
    text-transform: capitalize;
    font-size: clamp(20px, 3vw, 30px);
    text-align: center;
}

#nutriId h3::after,
#nutriId h3::before {
    content: none;
}

#nutriId h4 {
    margin-top: 20px;
    font-size: clamp(16px, 2vw, 22px);
}

#nutriId ul {
    list-style: none;
    margin-top: 20px;
}

.close-nutri-button {
    margin: 10px;
    padding: 5px 10px;
    background-color: var(--gold_color);
    border: 0;
    border-radius: 5px;
}


/* END styles for the dialog */


.short_link a:hover {
    color: blue;
}

.pigs_footer_container {
    display: grid;
}

.pigs_claim_image {
    grid-column: 1;
    grid-row: 1;
    /* filter: brightness(40%); */
    object-fit: cover;
    max-height: 600px;

}

.sustainable_claims_container {
    grid-column: 1;
    grid-row: 1;
    margin: 40px auto;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

.sustainable_claims_container h3 {
    color: white;
}

.sustainable_claims_container .section_text {
    color: var(--_off_white);
    width: 60%;
    max-width: 700px;
}

.sustainable_claims_container .claim_text {
    font-style: italic;
    text-align: center;
}



.contact_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact_bg {
    grid-column: 1 / -1;
    grid-row: 1;
    filter: brightness(60%);
}

.contact_grid .info_wrapper {
    grid-column: 1;
    grid-row: 1;
    width: 50%;
    margin: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 15px;

}

.contact_logo_wrapper {
    position: relative;

}

.contact_logo_wrapper::after {
    content: '';
    display: block;
    width: 70px;
    height: 1px;
    background-color: var(--gold_color);
    opacity: .5;
    margin-top: 15px;
}

.contact_logo_wrapper::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 35px;
    width:3px;
    height: 3px;
    outline: 1px var(--gold_color) solid;
    rotate: 45deg;
    background-color: black;
}

.contact_grid .info_wrapper img {
    width: 50%;
    height: auto;
    margin-left: 0;
}

.contact_grid .info_wrapper ul {
    color: var(--_off_white);
    list-style: none;

}

.contact_grid .info_wrapper ul li {
    font-size: clamp(10px, 1.2vw, 16px);
    line-height: 1.5;
    margin: 15px 0;
}

.contact_grid .info_wrapper ul li a {
    color: var(--_off_white);
    text-decoration: none;
}



@media (max-width: 800px) {
    .pigs_wrapper {
        grid-template-columns: 1fr;
    }
    .grid_change_order {
        grid-row: 4;
    }
    .display_grid_img:nth-of-type(1) {
        grid-column: 1 / -1 ;
        grid-row: 1 / -1;
        filter: brightness(.4);
    }

    .display_grid_img:nth-of-type(2) {
        display: none;
    }

    .display_list_container {
        grid-column: 1 / 5 ;
        grid-row: 1 / -1;
        z-index: 2;
        margin: 10%;
        max-width: 30ch;
    }
}

/* JS styles for revealing images */

section img,
footer img {
/* NOTE all img aside of Lang Selector */
    opacity: 0;
    transition: opacity 450ms ease-in-out;
}


.header_logo {
    opacity: 1;
}

.slide_right {
    opacity: 0;
    transform: translate(50px, 0);
    transition: opacity 450ms linear, transform 450ms linear;
}

.slide_left {
    opacity: 0;
    transform: translate(-50px, 0);
    transition: opacity 450ms linear, transform 450ms linear;
}
