@import url('https://fonts.googleapis.com/css2?family=Corinthia:wght@400;700&family=Great+Vibes&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gentium+Basic:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap');

:root {
    /* Colors */
    --primary-color: #fdfdfd;
    --font_color: gold;
    --main_font: "Merriweather", serif;
    --elegant_font: "Great Vibes", cursive;
    --header_font: "Corinthia", cursive;


}

/* Preload images using CSS */
:root {
    --funeral-buda: url('/img/funeral_buda.webp');
    --funeral-car: url('/img/funeral_car.webp');
    --candles: url('/img/candles.webp');
}

/* Preloader background to use one of the images */
#preloader {
    background: var(--funeral-buda) center center no-repeat;
    background-size: cover;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {
    font-size: 62.5%;
    font-family: "Poppins", sans-serif;
}

body {
    width: 100%;
    background-color: var(--primary-color);
}

img {
    user-select: none;
}

/* Header */
/* General Header Styles */


header {
    user-select: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 2px solid #efbf04;
    padding: 1rem 0;

    z-index: 1000;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}


.header_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-direction: column;
}

.header_logo {
    width: 150px;
    margin-bottom: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

.nav_item a {
    text-decoration: none;
    color: black;
    font-size: 1.6rem;
    font-family: var(--main_font);
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav_item a:hover {
    color: #efbf04;
}

.nav_item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: #efbf04;
    transition: width 0.3s ease;
}

.nav_item a:hover::after {
    width: 100%;
}




/* Contact Info */
.contact_info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact_info ion-icon {
    font-size: 1.6rem;
    color: #333;
}

.contact_info a {
    text-decoration: none;
    color: #333;
}

.contact_info a:hover {
    color: #efbf04;
    text-decoration: underline;
}

/* Burger Menu Styles (Mobile) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.contact-mail,
.contact-tel {

    display: flex;
    flex-direction: row;
    justify-content: center;
}

.md {
    margin-right: 1rem;
}


.lang {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    color: black;
    font-size: 1.6rem;
    font-family: var(--main_font);
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    width: 10rem;
    margin-left: 1rem;
}

.lang:hover {
    color: #efbf04;
}

.lang::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    /* Adjusted to align with the padding */
    width: 0;
    height: 3px;
    background-color: #efbf04;
    transition: width 0.3s ease;
}

.lang:hover::after {
    width: 100%;
}



/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .contact_info {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav ul li a {
        color: #fff;
    }

    .nav_links.active {
        right: 0;
    }

    .nav_links {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .header_logo {
        margin-left: 10rem;
        margin-top: 1rem;
    }

    .header_container {
        display: flex;
        flex-direction: row;
    }
}



/* Hero Section */

.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.801)), url(/img/hero_bck_1.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    /* Center the background image */
}

@media screen and (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        /* Disable fixed background for smoother scrolling on mobile */
        background-position: center center;
        /* Ensure the image stays centered vertically and horizontally */
    }
}


.funeral_hr {
    width: 50%;
    margin-bottom: 2rem;
}

.hero_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    color: white;
    padding-right: 2rem;
    padding-left: 2rem;
    padding-top: 0rem;

}

.hero_content_div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 7rem 5rem;
    border-radius: 2rem;
    background-color: #ffffffd1;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.268);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.2px);
    -webkit-backdrop-filter: blur(7.2px);
    border: 1px solid rgba(255, 255, 255, 0.166);
}

.hero_content_div :first-child {
    font-size: 6rem;
    font-family: var(--elegant_font);
    text-align: center;
    color: var(--primary-color);
    user-select: none;
}

hr {
    width: 80%;
    /* Adjust the width as needed */
    border-top: 0;
    border-bottom: 2px solid #efbf04;
    margin: 0 auto;
    /* Center the element horizontally */
}


.hero_content_div h1 {
    margin-top: 0.5rem;
    font-size: 6rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: var(--elegant_font);
}

.hero_content_div h2 {
    font-size: 3rem;
    max-width: 50%;
    text-align: center;
    font-family: var(--elegant_font);
    color: var(--primary-color);

}

.hero_content_div a {
    font-size: 1.3rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    /* Border color */
    color: #333;
    /* Text color */
    background-color: #f9f9f9;
    /* Background color */
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
    margin-top: 2rem;
    font-family: var(--main_font);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.hero_content_div a:hover {
    background-color: #efc729d7;
    transform: scale(1.02);
    /* Zoom in */

    color: #000;

}



/* About Us Section */
.about_us {
    background-color: var(--primary-color);
    /* Default light background */
    padding: 40px 20px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    line-height: 1.6;
    color: #333;
}

.about_us_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.about_us h2 {
    font-size: 5rem;
    font-weight: bold;
    border-bottom: 2px solid #efbf04;
    font-family: var(--header_font);
    margin-bottom: 1rem;
    color: var(--color-secondary, #333);
}

.about_text {
    font-size: 1.8rem;
    font-family: var(--main_font);
    color: var(--color-text-secondary, #555);
    max-width: 80rem;
}

.about_us p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 90rem;
    font-family: var(--main_font);
    color: var(--color-text-secondary, #555);
}

.about_us h3 {
    border-bottom: 2px solid #efbf04;
    max-width: fit-content;
    font-size: 3rem;
    font-family: var(--header_font);
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-secondary, #333);
}

.about_us img.funeral_car {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about_us_section {
    text-align: left;
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 20px;
    background: var(--color-secondary-light, #fff);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about_us ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

.about_us ul li {
    font-size: 1.5rem;
    position: relative;
    padding-left: 2rem;
    font-family: var(--main_font);
    color: var(--color-text-primary, #333);
}

.about_us ul li::before {
    content: "\2022";
    /* Bullet point */
    color: var(--color-primary-dark, #4CAF50);
    /* Accent color */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
}





/* Memorial */
.memorial_wall {
    display: flex;
    flex-direction: column;
    height: 90vh;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.memorial_h2 {
    font-size: 5rem;
    margin-top: 3rem;
    border-bottom: 2px solid #efbf04;
    font-family: var(--header_font);
}

.memorial_p {
    font-size: 1.7rem;
    width: 70%;
    text-align: center;
    font-family: var(--main_font);
}

.memorial_slider {
    position: relative;
    width: 80%;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: rgba(0, 0, 0, 0.298) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
    font-family: 'Arial', sans-serif;
    /* Replace with your preferred font */
}

.slider_container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider_item {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.slider_image {
    width: 50%;
    height: auto;
    border-radius: 10px;
    margin-right: 6rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.slider_details {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
}

.slider_name {
    font-size: 3rem;
    font-family: var(--main_font);
    border-bottom: 2px solid #efbf04;
    color: #333;
    margin-bottom: 10px;
}

.slider_info {
    font-size: 18px;
    color: #666;
    margin: 5px 0;
}

.slider_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 6rem;
    cursor: pointer;
}

.slider_nav_left {
    left: 10px;
}

.slider_nav_right {
    right: 10px;
}

.slider_nav:focus {
    outline: none;
}

/* Funeral Wreath Section */

.funeral_wreath {
    background-color: var(--primary-color);
    padding: 40px 20px;
    text-align: center;
    line-height: 1.6;
    color: var(--font_color);
}

.funeral_wreath_container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.funeral_wreath_title {
    font-size: 4rem;
    font-family: var(--header_font);
    margin-bottom: 1rem;
    color: black;
    border-bottom: 2px solid #efbf04;
}

.funeral_wreath_description {
    font-size: 1.8rem;
    font-family: var(--main_font);
    color: #000;
    max-width: 80%;
}

.funeral_wreath_gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
}

.funeral_wreath_item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.funeral_wreath_item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.funeral_wreath_image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.funeral_wreath_image:hover {
    transform: scale(1.05);
}

.funeral_wreath_caption {
    font-size: 1.6rem;
    font-family: var(--main_font);
    color: #333;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal_content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.modal_content img {
    width: 50rem;
    height: auto;
    border-radius: 8px;
}

.modal_close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #333;
    font-size: 2rem;
    border: none;
    border-radius: 20%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.modal_close:hover {
    background-color: #efbf04;
}

.view_all_button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-family: var(--main_font);
    margin-top: 2rem;
    position: relative;
    /* Added to make ::after pseudo-element positioning work */
    color: black;
    /* Ensure text inherits default color */
}

.view_all_button:hover {
    color: #efbf04;
    /* Change text color on hover */
}

.view_all_button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    /* Adjust to control underline position */
    width: 0;
    height: 3px;
    /* Thickness of the underline */
    background-color: #efbf04;
    /* Underline color */
    transition: width 0.3s ease;
    /* Smooth underline animation */
}

.view_all_button:hover::after {
    width: 100%;
    /* Full underline on hover */
}



/* FAQ */
.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--primary-color);
    border-radius: 12px;
}

.faq_h2 {
    font-size: 5rem;
    font-family: var(--header_font);
    color: black;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid #efbf04;
    margin-bottom: 5rem;
}

.faq_cont {
    width: 60%;
}

.faq_container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.faq_image {
    width: 30%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.accordion {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion_item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion_button {
    background-color: white;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.6rem;
    font-family: var(--main_font);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: background-color 0.3s ease;
}

.accordion_button::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--font_color);
    transition: transform 0.3s ease;
}

.accordion_button.active::after {
    content: '-';
}

.accordion_button:hover {
    background-color: #f9f9f9;
}

.accordion_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.accordion_content p {
    margin: 1rem;
    font-size: 1.4rem;
    font-family: var(--main_font);
    color: #666;
}

.accordion_content.show {
    max-height: 200px;
}




/* Contact Us Section */
.contact_us {
    width: 100%;
    padding: 4rem 2rem;
    background-color: #fdfdfd;
    text-align: center;
}

.contact_h2 {
    font-size: 5rem;
    color: black;
    margin-bottom: 5rem;
    font-family: var(--header_font);
    border-bottom: 2px solid #efbf04;
    width: fit-content;

}

.cnt_h2_div {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* Contact Container */
.contact_container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Section */
.contact_image_container {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Contact Form */
.contact_form {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    padding: 0 1rem;
    text-align: left;
    /* Align text to the start */
}

.form_group {
    margin-bottom: 1.5rem;
}

.form_group label {
    display: block;
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form_group input,
.form_group textarea {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.4rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form_group input:focus,
.form_group textarea:focus {
    border-color: #efbf04;
    box-shadow: 0 0 5px rgba(239, 191, 4, 0.5);
}

/* Ensure consistent input and textarea height */
textarea {
    height: auto;
}

.contact_submit_button {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    font-size: 1.6rem;
    color: #fff;
    background-color: #efbf04;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact_submit_button:hover {
    background-color: #d4a702;
}

@media (max-width: 768px) {
    .contact_container {
        flex-direction: column;
    }

    .contact_image_container,
    .contact_form {
        max-width: 100%;
    }
}


/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #333;
    padding: 20px 0;
    padding-bottom: 0;
    border-top: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif;
}

.footer_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;

}

.footer_section {
    flex: 1 1 250px;
    min-width: 150px;
    max-width: fit-content;

}

.footer_section h2 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
    max-width: fit-content;
    color: #333;
    text-transform: uppercase;
}

.footer_section p,
.footer_section a {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
    text-decoration: none;
    max-width: fit-content;

    margin-bottom: 8px;
}



.footer_section ul {
    list-style: none;
    max-width: fit-content;
    padding: 0;
    margin: 0;
}

.footer_section ul li {
    margin-bottom: 8px;
    max-width: fit-content;

}

.footer_bottom {
    border-top: 1px solid #efbf04;

    text-align: center;
    padding: 10px 0;
    background-color: var(--primary-color);
    color: black;
    font-size: 1.4rem;
}

.footer_bottom p a {
    color: #efbf04;
    font-weight: bold;
}

.footer_section a {
    position: relative;
    text-decoration: none;
    color: #555;
    font-size: 1.4rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer_section a:hover {
    color: #efbf04;
}

.footer_section a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    /* Adjust the position of the underline */
    width: 0;
    height: 3px;
    /* Thickness of the underline */
    background-color: #efbf04;
    transition: width 0.3s ease;
}

.footer_section a:hover::after {
    width: 100%;
    /* Full underline */
}


@media screen and (max-width: 768px) {
    .hero_content_div {
        margin-top: 2rem;
        padding: 3rem 2rem;
    }

    .funeral_buda_txt {
        font-size: 4rem !important;
    }

    .funeral_buda_txt_2 {
        font-size: 3rem !important;
        text-align: center;
        max-width: 90%;
    }

    .hero_content_div h2 {
        font-size: 2.2rem;
        max-width: 90%;
    }

    .funeral_car {
        min-width: 30rem;
    }

    .cta_button {
        font-size: 1.1rem !important;
    }

    .memorial_slider {
        min-height: fit-content;
    }

    .memorial_h2 {
        font-size: 3rem;
        margin-bottom: 2rem;

    }

    .memorial_p,
    .funeral_wreath_description {
        font-size: 1.4rem;
        max-width: 40rem;
        margin-bottom: 2rem;
    }

    .slider_item {
        flex-direction: column;
        min-width: 100% !important;
    }

    .slider_image {
        margin-right: 0;
        width: 80%;
    }

    .slider_name {
        font-size: 2rem;
        border: 0;
    }

    .funeral_wreath_title,
    .contact_h2 {
        font-size: 3rem;
    }

    .view_all_button {
        font-size: 1.6rem;
    }

    .faq_h2 {
        font-size: 3rem;
    }

    .faq_hr {
        display: none;
    }


    .accordion_item {
        width: 100%;
        /* Make it take the full width */
        font-size: 1.5rem;
        /* Keep the font size consistent */
    }

    .faq_cont {
        width: 35rem !important;
    }

    .footer_container {
        justify-content: flex-start;
        margin-left: 5rem;
    }

    .contact_form {
        width: 100%;
    }

    .modal_content img {
        width: 30rem;
        height: auto;
    }
}