/* Spaqva — shared site styles */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Hover (scoped — no global transition) */
img,
a {
    transition: filter 200ms ease-in-out;
}

img:hover,
a:hover {
    filter: brightness(1.05);
}

/* Inline SVG icons (replace FontAwesome) */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Headings used for structure keep the old <p> look */
h1,
h2,
h3 {
    margin: 1em 0;
    font-weight: normal;
}

.navigation-section h1 {
    margin: 0;
}

.img-logo-sample {
    max-height: 140px;
}

.sections {
    display: flex;
    flex-direction: column;
}

.section {
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex: 1 0 100%;
}

.navigation-section {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation-section .motto {
    flex: 1 0 auto;
}

.section .logo {
    max-height: 150px;
    width: auto;
    display: flex;
    flex: 0 1 100%;
}

.logo-section {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 3rem 1.5rem;
}

.logo-section .logo {
    margin-bottom: 1.5rem;
}

.about-us-section {
    display: flex;
    flex-direction: column;
    padding: 3rem 1.5rem;
}

.about-us-section .divider {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-us-section img {
    max-height: 500px;
}

.about-us-section .right-side {
    padding: 0;
}

.gallery-section {
    padding: 0;
}

.gallery-section>.image {
    width: 100%;
    max-height: 100%;
}

.gallery-section>.image.text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-section>.image.text:not(.has-text-left) {
    align-items: center;
}

.gallery-section>.image.grows {
    width: 100%;
}

.plant-image {
    order: 2;
    position: relative;
}

.special-thanks-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.special-thanks-links a+a {
    margin-left: 40px;
}

/* WCAG AA contrast overrides for Bulma helpers
   (#049fe8 → 2.95:1 on white, 2.7:1 with white text — both failed) */
.has-text-info {
    color: #1a6aa8 !important;
}

.has-background-info {
    background-color: #0d6396 !important;
}

.has-background-danger {
    background-color: #c22647 !important;
}

/* Product zoom (items-pricings) */
.has-cursor-pointer {
    cursor: pointer !important;
}

button.image {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
    display: block;
}

button.image img {
    display: block;
    width: 100%;
    height: auto;
}

.overlay {
    position: fixed;
    display: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.675);
    z-index: 10000;
}

.overlay.open {
    display: flex;
    justify-content: center;
    align-content: center;
}

.overlay .overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 0;
    color: inherit;
    font-size: 1em;
    cursor: pointer;
}

.overlay .overlay-close .icon {
    width: 2rem;
    height: 2rem;
}

.overlay .image {
    max-width: 80vw;
    max-height: 80vh;
    transform: translateY(-50%);
    top: 50%;
    cursor: default !important;
}

@media only screen and (min-width: 769px) {
    .about-us-section>.divider .image {
        padding: 2rem 0;
    }
    .about-us-section>.right-side {
        width: 100%;
    }
    .gallery-section {
        flex-direction: row;
        justify-content: space-evenly;
    }
    .gallery-section>.image {
        width: 50%;
        max-height: 100%;
    }
}

@media only screen and (min-width: 1240px) {
    .sections {
        flex-direction: row;
    }
    .logo-section {
        display: flex;
        flex: 0 0 50%;
        width: 50%;
    }
    .plant-image {
        order: 0;
    }
    .about-us-section {
        display: flex;
        flex-direction: row;
        flex: 0 0 50%;
        width: 50%;
    }
    .about-us-section>.divider {
        display: flex;
        flex-direction: row;
    }
    .about-us-section>.left-side {
        max-width: 33%;
    }
    .about-us-section>.right-side {
        padding-left: 1.5rem;
        max-width: 66%;
    }
    .gallery-section {
        flex-direction: row;
    }
    .gallery-section>.image {
        width: 25%;
        max-height: 100%;
    }
    .gallery-section>.image.grows {
        width: 50%;
    }
}

@media only screen and (min-width: 1216px) {
    .sections {
        flex-direction: row;
    }
    .logo-section {
        display: flex;
        flex: 0 0 33%;
        width: 33%;
    }
    .about-us-section {
        display: flex;
        flex: 1 0 66%;
        width: 66%;
    }
}

.navbar+* {
    margin-top: 3rem;
}

@media (prefers-reduced-motion: reduce) {
    img,
    a {
        transition: none;
    }
}
