/* Custom Styles for Baltic Trend Interiors and Furniture */

html {
    background-color: var(--root-body-background-color);
    background: var(--root-html-background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--root-dark-color);
    line-height: 1.6;
    font-weight: 600;
    padding-top: 0;
    background-color: var(--root-body-background-color);
}

/* Ensure Foundation grid containers and elements are transparent */
.grid-container,
.grid-x,
.cell,
section {
    background-color: var(--root-transparent) !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    letter-spacing: 0.5px;
}

h2 {
    font-weight: 900;
    letter-spacing: 1px;
}

h3 {
    font-weight: 800;
}

h4 {
    font-weight: 700;
}

/* Navigation */
.top-bar {
    background-color: var(--nav-top-bar-background-color);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 0 1rem;
}

.top-bar-menu {
    width: 40%;
    display: flex;
    align-items: flex-start;
}

.top-bar-menu .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    list-style: none;
    gap: 0;
}

.top-bar-menu .menu li {
    margin: 0;
}

.top-bar-company {
    width: 40%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-left: 0.5rem;
}

.top-bar-company .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.top-bar-utility {
    width: 20%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 1ch;
}

.top-bar-utility .menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    list-style: none;
    justify-content: flex-end;
    gap: 1rem;
}

.sign-in-button {
    color: var(--nav-sign-in-button-color);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--nav-sign-in-button-background);
    border: 2px solid var(--nav-sign-in-button-border-color);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.sign-in-button:hover {
    background-color: var(--nav-sign-in-button-hover-background);
    color: var(--nav-sign-in-button-hover-color);
    border-color: var(--nav-sign-in-button-hover-border-color);
}

.language-selector {
    margin-left: 0;
    padding: 0.5rem 0.75rem;
    padding-right: calc(0.75rem + 1ch);
    min-width: 60px;
}

.top-bar .menu-text {
    font-size: 1.5rem;
    color: var(--nav-menu-text-color);
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

.top-bar .menu a {
    color: var(--nav-menu-link-color);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--nav-menu-link-background);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.top-bar ul {
    background-color: var(--nav-menu-dropdown-background);
}

/* Ensure menu dropdowns also have opaque background */
.top-bar .menu {
    background-color: var(--nav-menu-dropdown-background);
}

.top-bar .menu a:hover,
.top-bar .menu a.active {
    background-color: var(--nav-menu-link-hover-background);
    color: var(--nav-menu-link-hover-color);
}

/* Language Selector */
.language-selector {
    background-color: var(--nav-language-selector-background);
    border: 2px solid var(--nav-language-selector-border-color);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    color: var(--nav-language-selector-color);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    margin-left: 1rem;
}

.language-selector:hover {
    border-color: var(--nav-language-selector-hover-border-color);
    background-color: var(--nav-language-selector-background);
}

.language-selector:focus {
    outline: none;
    border-color: var(--nav-language-selector-focus-border-color);
    box-shadow: 0 0 5px var(--nav-language-selector-focus-box-shadow);
}

/* Hero Section */
.hero-section {
    background: var(--hero-section-background);
    color: var(--hero-section-color);
    padding: 4rem 0;
    position: relative;
    margin-top: 0;
    padding-top: calc(50px + 4rem);
    min-height: 100vh;
    scroll-margin-top: 100px;
}

.hero-content {
    position: relative;
    left: 33.33%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--hero-title-text-shadow);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    white-space: pre-line;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-section .button {
    background-color: var(--hero-button-background);
    color: var(--hero-button-color);
    border-radius: 5px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-section .button:hover {
    background-color: var(--hero-button-hover-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--hero-button-hover-box-shadow);
}

/* Rustic Square Pieces */
.rustic-square {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 2px 8px var(--rustic-square-box-shadow);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--services-section-background);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.services-section .grid-container {
    position: relative;
    z-index: 1;
}

.services-section .cell {
    background-color: var(--services-section-cell-background) !important;
}

.services-section h2 {
    color: var(--services-heading-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.services-section .lead {
    position: relative;
    color: var(--services-lead-color);

    z-index: 1;
}

.services-section .card {
    height: 100%;
    border: none;
    background-color: var(--services-card-background);
    color: var(--services-card-color);
    box-shadow: 0 2px 10px var(--services-card-box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.services-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--services-card-hover-box-shadow);
}


.services-section .card h3 {
    color: var(--services-card-heading-color);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--gallery-section-background);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.gallery-section .grid-container {
    position: relative;
    z-index: 1;
}

.gallery-section h2 {
    color: var(--gallery-heading-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.gallery-section .lead {
    color: var(--gallery-lead-color);
    position: relative;
    z-index: 1;
}

.gallery-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--gallery-slider-container-background);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px var(--gallery-slider-container-box-shadow);
    backdrop-filter: blur(10px);
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-image {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--gallery-image-box-shadow);
}

.gallery-caption {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    background-color: var(--gallery-caption-background);
    border-radius: 10px;
    margin-top: 1rem;
}

.gallery-caption h3 {
    color: var(--gallery-caption-heading-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.gallery-caption p {
    color: var(--gallery-caption-text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.gallery-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--gallery-nav-button-background);
    color: var(--gallery-nav-button-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px var(--gallery-nav-button-box-shadow);
}

.gallery-nav-button:hover {
    background-color: var(--gallery-nav-button-hover-background);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: -25px;
}

.gallery-next {
    right: -25px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    z-index: 10;
    position: relative;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gallery-indicator-background);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gallery-indicator:hover {
    transform: scale(1.2);
}

.gallery-indicator.active {
    background-color: var(--gallery-indicator-active-background);
    transform: scale(1.3);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--about-section-background);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.about-section .grid-container {
    position: relative;
    z-index: 1;
}

.about-section .cell {
    background-color: var(--about-section-cell-background) !important;
}

.about-section .grid-x>.cell:first-child {
    background-color: var(--about-callout-background) !important;
    border-left: 4px solid var(--about-callout-border-color) !important;
    border-radius: 5px !important;
    backdrop-filter: blur(10px) !important;
    padding: 2rem !important;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Team Section */
.team-section {
    padding: 5rem 0;
    background-color: var(--team-section-background);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.team-section .grid-container {
    position: relative;
    z-index: 1;
}

.team-section h2 {
    color: var(--team-heading-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.team-section .lead {
    color: var(--team-lead-color);
    position: relative;
    z-index: 1;
}

.team-section .cell {
    background: var(--team-section-cell-gradient);
}

.team-card {
    background-color: var(--team-card-background);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px var(--team-card-box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--team-card-hover-box-shadow);
}

.team-image-container {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.team-image-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--team-image-placeholder-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--team-image-placeholder-color);
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 4px 15px var(--team-image-placeholder-box-shadow);
    position: relative;
    overflow: hidden;
}

.team-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--team-image-placeholder-shine-gradient);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

.team-image-placeholder[data-member="arijus"]::after {
    content: 'A';
}

.team-image-placeholder[data-member="dziuginta"]::after {
    content: 'D';
}

.team-image-placeholder[data-member="diana"]::after {
    content: 'D';
}

.team-image-placeholder::after {
    position: relative;
    z-index: 1;
}

.team-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-name {
    color: var(--team-name-color);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.team-role {
    color: var(--team-role-color);
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.3px;
}

.about-section h2 {
    color: var(--about-heading-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.about-section .lead,
.about-section p {
    color: var(--about-text-color);
    position: relative;
    z-index: 1;
}

.about-section p[data-i18n="about.text1"],
.about-section p[data-i18n="about.text2"] {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0;
    margin-bottom: 1rem;
}

.about-section p[data-i18n="about.text2"]:last-child {
    margin-bottom: 0;
}

.callout p {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--about-text-color);

}

.about-section .callout {
    background-color: var(--about-callout-background);
    border-left: 4px solid var(--about-callout-border-color);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.about-section .callout h4 {
    color: var(--about-callout-heading-color);
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--contact-section-background);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.contact-section .grid-container {
    position: relative;
    z-index: 1;
}

.contact-section h2 {
    color: var(--contact-heading-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-section .lead {
    color: var(--contact-lead-color);
    position: relative;
    z-index: 1;
}

.contact-section form {
    background-color: var(--contact-form-background);
    border-left: 4px solid var(--contact-form-border-color);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.contact-section form label {
    color: var(--contact-form-label-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 1rem;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.contact-section input,
.contact-section textarea {
    border: 2px solid var(--contact-form-input-border-color);
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: var(--contact-form-input-focus-border-color);
    outline: none;
}

.contact-section .button {
    background-color: var(--contact-button-background);
    color: var(--contact-button-color);
    border-radius: 5px;
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.contact-section .button:hover {
    background-color: var(--contact-button-hover-background);
}

.contact-section .callout {
    background-color: var(--contact-callout-background);
    border-left: 4px solid var(--contact-callout-border-color);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.contact-section .callout h4 {
    color: var(--contact-callout-heading-color);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.contact-section .callout p strong {
    color: var(--contact-callout-strong-color);
}

/* Footer */
.footer-section {
    background-color: var(--nav-top-bar-background-color);
    backdrop-filter: blur(8px);
    color: var(--footer-section-color);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 2px solid rgba(139, 111, 71, 0.3);
}

.footer-section h4 {
    color: var(--footer-section-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--footer-section-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    color: var(--hero-button-background, #8B6F47);
    transform: translateX(5px);
}

.footer-social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-social-link:hover svg {
    transform: scale(1.1);
}

.footer-section p {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.update-translations-button {
    background-color: var(--hero-button-background, #8B6F47);
    color: var(--hero-button-color, #fff);
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: none;
}

.update-translations-button:hover {
    background-color: var(--hero-button-hover-background, #6B4423);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.update-translations-button:active {
    transform: translateY(0);
}

@media screen and (max-width: 640px) {
    .footer-section {
        padding: 2rem 0;
    }

    .footer-section .grid-x>.cell {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }

    .footer-social {
        align-items: center;
    }

    .update-translations-button {
        width: 100%;
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .top-bar-menu {
        width: 40%;
    }

    .top-bar-company {
        width: 40%;
    }

    .top-bar-utility {
        width: 20%;
    }

    .top-bar-menu .menu {
        justify-content: flex-start;
    }

    .top-bar-company .menu {
        justify-content: center;
    }

    .top-bar-utility .menu {
        justify-content: flex-end;
    }
}

@media screen and (max-width: 640px) {
    .top-bar-container {
        flex-direction: column;
    }

    .top-bar {
        padding: 0.75rem 0;
    }

    .top-bar-menu,
    .top-bar-company,
    .top-bar-utility {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .top-bar-company {
        padding-left: 0;
    }

    .top-bar-menu .menu {
        justify-content: center;
    }

    .top-bar-company .menu {
        justify-content: center;
    }

    .top-bar-utility .menu {
        justify-content: center;
    }

    .top-bar .menu-text {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-content {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .services-section h2,
    .gallery-section h2,
    .about-section h2,
    .team-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .gallery-slider {
        height: 400px;
    }

    .gallery-nav-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .gallery-prev {
        left: -20px;
    }

    .gallery-next {
        right: -20px;
    }
}