body,
button,
input,
p,
label,
h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
}

html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 1.1em;
}

.space {
    margin-top: 8em;
}

div#social {
    display: inline-block;
    background-color: #FFFFFF;
    width: 100%;
    padding: 0.1em 5%;
    text-align: right;
    font-size: 1.5em;
}

div#social a {
    color: #a6a6a6
}

div#social a:hover {
    color: #b00208;
}

h1 {
    font-weight: 500;
}

h2,
h3,
h4,
h5 {
    font-weight: normal;
}

.subtitle {
    color: #b00208;
}

.mobile {
    display: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(15px);
    /* Subtler movement */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.center {
    text-align: center;
}

a {
    text-decoration: none;
    color: #000000;
}

a.btn {
    padding: .7em 5%;
    background-color: #b00208 !important;
    color: #FFFFFF;
}

a:hover {
    text-decoration: underline;
}

a.btn:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.active {
    text-decoration: underline;
    font-weight: bold;
    color: #b00208 !important;
}

div#social,
header {
    position: fixed;
    top: 0;
    z-index: 999;
}

header {
    width: 100%;
    top: 2.5em;
    padding: 1.5em 2% 0 2%;
    background-color: #FFFFFF;
    -webkit-box-shadow: 0px 5px 11px 2px rgba(0, 0, 0, 0.09);
    box-shadow: 0px 5px 11px 2px rgba(0, 0, 0, 0.09);
}

.nav {
    flex-wrap: nowrap;
}

header div {
    display: inline-block;
}

header div.logo {
    width: 18%;
}

header div.logo img {
    width: 100%;
}

header div.links {
    width: 85%;
}

header div.links ul li {
    display: inline;
    margin: 0 2%;
}

header div.links ul li a {
    color: #000000;
    font-size: 1.2em;
}

header div.links ul li a:hover {
    color: #b00208;
}

/* Language Selector */
li.lang-selector {
    position: relative;
    cursor: pointer;
}

li.lang-selector .lang-active {
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

li.lang-selector .lang-active i {
    font-size: 0.8em;
    transition: transform 0.3s;
}

li.lang-selector:hover .lang-active i {
    transform: rotate(180deg);
}

ul.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 80px;
    z-index: 1000;
    list-style: none;
    /* Ensure no bullets */
}

ul.lang-dropdown li {
    display: block !important;
    margin: 0 !important;
    text-align: center;
}

ul.lang-dropdown li a {
    display: block;
    padding: 5px 15px;
    font-size: 1em !important;
}

ul.lang-dropdown li a:hover {
    background-color: #f9f9f9;
    color: #b00208;
}

li.lang-selector:hover ul.lang-dropdown {
    display: block;
}

/* Mobile adjustments for Lang Selector */
@media screen and (max-width: 770px) {
    li.lang-selector {
        margin-top: 1em !important;
        /* Separate from other links */
    }

    ul.lang-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        /* Hidden by default, requires click/hover */
    }

    li.lang-selector:hover ul.lang-dropdown {
        display: block;
    }
}

header div.links {
    padding-top: 1em;
    text-align: right;
}

section {
    padding: 3em 10%;
}

section.banner {
    background-image: url('/assets/img/banner.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
    position: relative;
    padding: 5em 10%;
}

/* Dark overlay for readability */
section.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

section.banner h2,
section.banner form {
    position: relative;
    z-index: 2;
}

section.banner h2 {
    margin-bottom: 1.5em;
    font-size: 2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5em;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.banner-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    margin-bottom: 1.5em;
}

.form-group.full-width {
    grid-column: span 2;
}

.footer-form input,
.footer-form select,
.footer-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s;
}

.footer-form input:focus,
.footer-form select:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: #b00208;
}

.footer-form select {
    cursor: pointer;
    background-color: #fff;
}

.btn-banner {
    background-color: #b00208;
    color: #FFFFFF;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.btn-banner:hover {
    background-color: #8c0206;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .banner-form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    section.banner {
        padding: 4em 5%;
    }

    .footer-form {
        padding: 1.5em;
    }
}


section.header {
    background-size: cover;
    background-position: top center;
    /* Better framing */
    padding: 0;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* White Veil Overlay */
section.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    /* Replaces the 'contrast box' effect globally */
    z-index: 1;
}

section.header .box {
    /* background-color: rgba(255, 255, 255, 0.7); Removed as we now have global overlay */
    padding: 2em;
    width: auto;
    max-width: 80%;
    text-align: center;
    position: relative;
    z-index: 2;
    /* Text above overlay */
}

section div.right,
section div.left {
    display: inline-block;
    width: 48%;
}


section div.left {
    padding: 2em 10%;
}

section div.left p {
    margin-bottom: 2em;
    font-size: 1.2em;
}

section div.right {
    text-align: center;
    vertical-align: top;
    margin-top: 10em;
}

section div.right img {
    width: 92%;
}



/* Footer Styling */
footer {
    background-color: #f9f9f9;
    padding: 4em 10% 2em 10%;
    margin-top: 4em;
    border-top: 1px solid #eeeeee;
    font-size: 1rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3em;
    margin-bottom: 3em;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: #b00208;
    font-size: 1.3em;
    margin-bottom: 1em;
    font-weight: 500;
}

.footer-col p {
    line-height: 1.6;
    color: #444;
}

/* Brand Column */
.footer-col.brand p {
    font-style: italic;
}

/* Links Column */
.footer-col.links ul {
    list-style: none;
    padding: 0;
}

.footer-col.links ul li {
    margin-bottom: 0.8em;
}

.footer-col.links ul li a {
    color: #444;
    transition: color 0.3s ease;
}

.footer-col.links ul li a:hover {
    color: #b00208;
    padding-left: 5px;
    /* Subtle movement effect */
}

/* Contacts Column */
.footer-col.contacts p {
    margin-bottom: 0.8em;
}

.footer-col.contacts i {
    color: #b00208;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-icons {
    margin-top: 1.5em;
}

.social-icons a {
    font-size: 1.5em;
    margin-right: 15px;
    color: #a6a6a6;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #b00208;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 2em;
    text-align: center;
}

#credits {
    font-size: 0.85em;
    color: #777;
    width: 100%;
}

/* Footer Responsive */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 2em;
        text-align: center;
    }

    .footer-col.contacts i {
        margin-right: 5px;
    }
}


/* MOBILE MENU */
.burger-menu {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #b00208;
    padding: 10px;
}

.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8em;
    cursor: pointer;
    color: #b00208;
}

@media screen and (max-width: 770px) {

    /* Utility Classes */
    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }

    /* Layout Adjustments */
    header div.logo {
        width: 50%;
    }

    section div.right,
    section div.left {
        width: 100%;
        text-align: center;
        margin-top: 0;
    }

    /* BURGER MENU LOGIC */
    .burger-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    header div.links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 80% !important;
        max-width: 300px;
        height: 100vh;
        background-color: #FFFFFF;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding-top: 5em;
        transition: right 0.4s ease;
        text-align: left;
        display: block !important;
    }

    header div.links.active {
        right: 0;
        /* Slide in */
    }

    header div.links ul {
        padding: 0;
        margin: 0;
    }

    header div.links ul li {
        display: block;
        margin: 1.5em 2em;
        text-align: left;
    }

    header div.links ul li a {
        font-size: 1.3em;
    }

    .close-menu {
        display: block;
    }
}

@media screen and (max-width: 450px) {
    header div.logo {
        width: 60%;
    }
}

/* GALLERY BANNER */
.gallery-banner {
    padding: 4em 10%;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 2em;
}

/* Content Styling */
.gallery-banner-content {
    max-width: 800px;
    margin: 0 auto 3em auto;
}

.gallery-banner h2 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    color: #b00208;
    /* Brand color */
    position: relative;
    display: inline-block;
}

.gallery-banner h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #b00208;
    margin: 10px auto 0;
    border-radius: 2px;
}

.gallery-banner p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    color: #555;
    text-shadow: none;
    /* Removed heavy shadow */
}

/* Button Styling */
.btn-gallery {
    padding: 12px 35px;
    background-color: #b00208;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    backdrop-filter: none;
    box-shadow: 0 4px 6px rgba(139, 68, 50, 0.2);
}

.btn-gallery:hover {
    background-color: #8c0206;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 68, 50, 0.3);
    text-decoration: none;
}

/* Grid Layout */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    /* Increased gap */
    width: 100%;
    max-width: 1500px;
    /* Expanded width */
    margin: 0 auto;
}

.gallery-grid-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    /* Softer container corners */
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring effect */
    /* Center the narrower image */
    display: flex;
    justify-content: center;
    background-color: transparent;
}

.gallery-grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

.gallery-grid-item img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-grid-item:hover img {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    /* Deep shadow on hover */
}

@media (max-width: 1024px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-banner {
        padding: 3em 5%;
    }
}

@media (max-width: 480px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}