body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Georgia', serif;
    background: #121212;
    color: #f9f9f9;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    animation: bgChange 0.5s ease forwards;
    animation-delay: 2.75s;
}

@keyframes bgChange {
    from {
        background: #121212;
        color: #f9f9f9;
    }

    to {
        background: #f9f9f9;
        color: black;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    background: #121212;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    gap: 20px;
    opacity: 0;
    animation: fadeInNav 0.5s ease forwards;
    animation-delay: 2.375s;
    transition: background-color 0.5s ease, color 0.5s ease;
    color: #f9f9f9;
}

.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

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

nav ul li a {
    color: #f9f9f9 !important;
    text-decoration: none;
    font-weight: 600;
    font-family: Arial, sans-serif;
    transition: color 0.3s;
    padding-left: 20px;
}

nav ul li a:hover,
nav ul li a[aria-current="page"] {
    color: #f2b600 !important;
}

.intro-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 1;
    z-index: 2000;
    user-select: none;
    cursor: default;
    animation: moveLogo 1s ease forwards;
    animation-delay: 2s;
    color: #f9f9f9;
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

@keyframes moveLogo {
    to {
        top: 0px;
        left: 0px;
        transform: translate(-22%, 6%) scale(0.4);
    }
}

.intro-logo.animation-ended {
    top: 0px !important;
    left: 0px !important;
    transform: translate(-22%, 6%) scale(0.4) !important;
    opacity: 1 !important;
}

@keyframes fadeInNav {
    to {
        opacity: 1;
    }
}

main {
    margin-top: 0px;
    padding: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInMain 0.5s ease forwards;
    animation-delay: 2.75s;
    background: transparent;
}

@keyframes fadeInMain {
    to {
        opacity: 1;
    }
}

body.skip-intro {
    background-color: #f9f9f9 !important;
    color: black !important;
}

body.skip-intro .intro-logo {
    animation: none !important;
    top: 0px !important;
    left: 0px !important;
    transform: scale(0.4) translate(-55%, 15%) !important;
    opacity: 1 !important;
}

body.skip-intro .logo-texts {
    animation: none !important;
    opacity: 1 !important;
}

body.skip-intro header {
    animation: none !important;
    opacity: 1 !important;
}

body.skip-intro main {
    animation: none !important;
    opacity: 1 !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1600;
    padding: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0px;
    width: 26px;
    height: 3px;
    background-color: #f9f9f9;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translateY(0);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translateY(0);
    top: 0;
}

footer {
    display: none;
    width: 100%;
    background-color: #222;
    color: white;
    text-align: center;
    padding: 1em 0;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
    margin-top: 0px;
}

.show-footer footer {
    display: block;
}

footer p {
    margin: 2px;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    top: 0;
    left: 0;
}

body.show-footer .hero {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInHeroContent 0.5s ease forwards;
    animation-delay: 2.9s;
}

@keyframes fadeInHeroContent {
    to {
        opacity: 1;
    }
}

.hero-content h1,
.hero-content p {
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease forwards;
}

.hero-content h1 {
    animation-delay: 3s;
}

.hero-content p {
    animation-delay: 3.5s;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-process {
    padding: 10px 20px 40px;
    background-color: #f9f9f9;
    color: #222;
    text-align: center;
}

h2 {
    position: relative;
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    color: #222;
    padding: 20px 0;
    display: inline-block;
    z-index: 1;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 12px;
    background-color: #f2b600;
    z-index: -1;
    opacity: 0.4;
    border-radius: 4px;
}

.process-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step {
    background-color: #fff;
    border: 1px solid #878787;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1 1 250px;
    max-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.step h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2em;
    color: #f2b600;
    margin-bottom: 8px;
}

.step h3 i {
    background: #f2b600;
    border-radius: 50%;
    color: white;
    font-size: 1.2em;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    flex-shrink: 0;
    border: none;
}

.step p {
    font-size: 1rem;
    color: #444;
}

.arrow {
    align-self: center;
    font-size: 2rem;
    color: #f2b600;
    user-select: none;
}

.icon-circle {
    background: #f2b600;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.services-section {
    padding: 10px 20px 0px;
    background-color: #f9f9f9;
    text-align: center;
    max-width: 1200px;
    margin: 0px auto;
    color: #222;
    font-family: 'Georgia', serif;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
    text-align: left;
}

.service-item .service-text {
    flex: 1 1 55%;
}

.service-item .service-text h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-shadow: 0 0 2px #f2b600;
    color: #333;
}

.service-item .service-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.service-item .service-img {
    flex: 1 1 40%;
    max-width: 40%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item .service-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.service-item.right-img {
    flex-direction: row;
}

.service-item.left-img {
    flex-direction: row-reverse;
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInList 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
    text-align: left;
}

@keyframes fadeInList {
    to {
        opacity: 1;
    }
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-list li:hover {
    transform: translateX(4px);
    color: #222;
}

.service-list li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: #f2b600;
    margin-top: 0px;
    transition: fill 0.3s ease;
}

.service-list li:hover svg {
    fill: #d6a200;
}

.cemeteries-section {
    padding: 10px 20px 0px;
    background-color: #f9f9f9;
    text-align: center;
    max-width: 1200px;
    margin: 0px auto;
    font-family: 'Georgia', serif;
    color: #222;
}

.cemeteries-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: 30px;
}

.cemeteries-map {
    flex: 1 1 40%;
    min-width: 300px;
    margin-bottom: 100px;
}

.cemeteries-list {
    flex: 1 1 55%;
    min-width: 300px;
}

.cemeteries-list h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    margin-top: 5px;
    text-shadow: 0 0 2px #f2b600;
    color: #333;
}

.cemeteries-list p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.cemetery-box {
    background-color: #fff;
    border: 2px solid #f2b600;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cemetery-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cemetery-box p {
    margin: 0;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.cemeteries-map {
    flex: 1 1 40%;
    min-width: 300px;
    background-color: #fff;
    border: 2px solid #f2b600;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cemeteries-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

img {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: block;
}

img.fade-in {
    opacity: 1;
}

.cemeteries-map iframe.fade-in {
    opacity: 1;
}

@media (max-width: 768px) {
    .intro-logo {
        transform: translate(-50%, -50%) scale(0.4);
        animation: moveLogoMobile 1s ease forwards;
        animation-delay: 2s;
    }

    @keyframes moveLogoMobile {
        to {
            top: 0px;
            left: 0px;
            transform: translate(-30.8%, 5.1%) scale(0.28);
        }
    }
    
    .intro-logo.animation-ended {
        transform: translate(-30.8%, 5.1%) scale(0.28) !important;
    }
    
    body.skip-intro .intro-logo {
        animation: none !important;
        top: 0px !important;
        left: 0px !important;
        transform: scale(0.28) translate(-110%, 15%) !important;
        opacity: 1 !important;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .hero-content {
        width: 70%;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 40px;
        font-weight: bold;
        font-family: 'Georgia', serif;
    }

    .step h3 {
        font-size: 1.2rem;
    }

    .service-item .service-text h3 {
        font-size: 1.2rem;
    }

    .cemeteries-list h3 {
        font-size: 1.2rem;
    }

    .step {
        background-color: #f9f9f9;
        border-radius: 12px;
        padding: 20px 25px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex: 1 1 0px;
        max-width: 300px;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .process-flow {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .service-item {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }
    
    .service-item .service-text,
    .service-item .service-img {
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .service-item .service-text p {
        font-size: 1rem;
    }

    .cemeteries-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cemeteries-list {
        text-align: left;
        margin-top: 5px;
    }
    
    .cemeteries-map {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        padding: 10px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .cemeteries-map iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
        display: block;
    }
}

@media (max-width: 1200px) {
    .menu-toggle {
            display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 90px;
        right: 0;
        background: #121212;
        width: 250px;
        padding: 20px 0;
        gap: 15px;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.6);
        z-index: 1500;
        border-radius: 0 0 0 10px;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li a {
        font-size: 20px;
    }
}