@import url("https://fonts.googleapis.com/css2?family=Lora:ital@0;1&family=Poppins:wght@400;500;600&display=swap");

:root {
    --primary-color: #f5f4f2;
    --text-dark: #57534e;
    --text-light: #78716c;
    --white: #ffffff;
    --max-width: 1200px;
    --header-font: "Lora", serif;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

img {
    width: 100%;
    display: flex;
}

a {
    text-decoration: none;
}

body {
    font-family: "Poppins", sans-serif;
}

nav {
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem;
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.link a {
    font-weight: 500;
    color: var(--text-light);
    transition: 0.3s;
}

.link a:hover {
    color: var(--text-dark);
}

.nav__logo {
    text-align: center;
    cursor: pointer;
}

.nav__logo img {
    margin: auto;
    max-width: 120px;
}

.nav__logo h4 {
    font-size: 1.5rem;
    font-family: var(--header-font);
    letter-spacing: 2px;
    color: var(--text-dark);
}

.nav__logo p {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-light);
}

.dropdown-menu2 {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    list-style: none;
    z-index: 10;
}

.link:hover .dropdown-menu2 {
    display: block;
}

.dropdown-menu2 li {
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    cursor: pointer;
}

.dropdown-menu2 li:hover {
    color: var(--white);
}

.link {
    position: relative;
}

.header {
    margin-bottom: 10rem;
    background-image: url("../assets/background.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.header__container {
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header__content h2 {
    font-size: 3.5rem;
    font-weight: 600;
    font-family: var(--header-font);
    color: white;
    line-height: 1.2;
}

.header__content span {
    font-size: 20px;
    font-family: var(--header-font);
    color: var(--white);
    line-height: 1.2;
}

.header a {
    color: white;
    text-decoration: underline;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    margin-bottom: 150px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 10;
    width: 200px;
}

.dropdown-menu li a {
    color: black;
    text-decoration: none;
}

.dropdown-menu li {
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    cursor: pointer;
}

.dropdown-menu li:hover {
    color: #57534e;
}

.dropdown a {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.simple-image-container {
    text-align: center;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    font-family: "Ethereal", "Baskerville Old Face", "Baskerville", serif;
}

.simple-image-container h2 {
    font-size: 30px;
    font-weight: 200;
    line-height: 30px;
    margin-bottom: 50px;
}

.simple-image-container p {
    color: #57534e;
    margin-top: 30px;
    margin-bottom: 40px;
}

.simple-image-container img {
    width: 100%;
    width: 800px;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-self: center;
}

.image-container {
    font-family: "Ethereal", "Baskerville Old Face", "Baskerville", serif;
    text-align: center;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.image-container h2 {
    font-size: 30px;
    font-weight: 200;
    line-height: 30px;
    margin-bottom: 50px;
}

.image-container p {
    color: #57534e;
    margin-bottom: 30px;
    margin-top: 40px;
}

.buttons button {
    padding: 10px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid #57534e;
    color: #57534e;
    background-color: white;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.buttons button.active {
    background-color: #57534e;
    color: white;
}

.buttons button:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.buttons button:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.buttons button:hover {
    background-color: #57534e;
    color: white;
}

.main-image img {
    width: 100%;
    width: 800px;
    height: 500px;
    border-radius: 10px;
    margin: 20px 0;
}

.thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnails img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.thumbnails img:hover,
.thumbnails img.active {
    border-color: #57534e;
}

.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    max-width: 800px;
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    width: 90%;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.popup-image img {
    width: 100%;
    height: 400px;
    width: 400px;
    object-fit: contain;
    padding-left: 10px;
    margin-top: 30px;
}

.popup-text {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.popup-text h2 {
    margin-top: 5px;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.border {
    color: #57534e;
    border: 1px solid #57534e;
    border-left: none;
    border-top: none;
    border-right: none;
}

.popup-text h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    color: #57534e;
}

.popup-text ul {
    color: #9F8753;
    list-style: disc;
    margin-left: 20px;
    border: 1px solid #57534e;
    border-left: none;
    border-top: none;
    border-right: none;
}

.popup-text li {
    margin-bottom: 0.5rem;
}

.cta-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #57534e;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.cta-btn:hover {
    background-color: #78716c;
}

.guarantee {
    font-size: 0.9rem;
    color: gray;
    margin-top: 1rem;
    text-align: center;
}

.footer {
    margin-top: 2rem;
    position: relative;
    background-color: var(--primary-color);
}

.footer__container {
    text-align: center;
}

.footer__container img {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 150px;
}

.footer__container h4 {
    max-width: 600px;
    margin: auto;
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: 400;
    font-family: var(--header-font);
    color: var(--text-dark);
}

.footer__container p {
    max-width: 1000px;
    margin: auto;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.footer__container button {
    padding: 1rem 2rem;
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    background-color: var(--white);
    cursor: pointer;
    transition: 0.3s;
}

.footer__container button:hover {
    color: white;
    background-color: #57534e;
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.footer__bar {
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
    background-color: black;
}

.popup {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
}

.popup-close {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    float: right;
    cursor: pointer;
}

.popup-close:hover,
.popup-close:focus {
    color: black;
    text-decoration: none;
}

/* Mobile-first base */
.container {
    width: 100%;
    padding: 0 15px;
}

/* Tablet */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
        margin: 0 auto;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Hide desktop nav, show hamburger on mobile */
@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }
}