.landing-root {
    font-family: "Wix Madefor Display";
    background-color: #fff6e9;
    color: #590909;
}

.flip-card {
    background-color: transparent;
    /*width: 250px;
              height: 250px;*/
    perspective: 1000px;
}

.flip-card h4 {
    position: absolute;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    padding-top: 20px;
    /*box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);*/
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-front {
    /*background-color: #bbb;*/
    color: black;
}

.flip-card-back {
    /*background-color: #2980b9;*/
    color: white;
    transform: rotateY(180deg);
}

.logo img {
    width: 20px;
    height: auto;
}

.topnav {
    position: fixed;
    left: 0;
    right: 0;
    /*overflow: hidden;*/
    background-color: #941c1c;
    z-index: 1000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 16px;
    box-sizing: border-box;
}

.topnav a {
    float: none;
    color: #f2f2f2;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
}

.topnav-items {
    display: inline-block;
    vertical-align: middle;
    padding: 0 12px;
}

/* Distribute top-level links evenly across the navbar (keep logo untouched) */
.topnav > a {
    flex: 0 0 auto; /* do not stretch anchors — clickable area limited to their content */
}

.topnav a:hover {
    /*background-color: #941C1C;*/
    color: #ffffff;
}

.topnav a.active {
    /*background-color: #941C1C;*/
    color: #ffffff;
}

.topnav-centered a {
    float: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 20px;
}

@media only screen and (min-device-width: 820px) and (max-device-width: 1024px) {
    .topnav a {
        float: none;
        color: #f2f2f2;
        text-align: center;
        padding: 14px;
        text-decoration: none;
        font-size: 17px;
    }
}

/* Responsive navigation menu (for mobile devices) */
@media screen and (max-width: 768px) {
    .topnav {
        flex-direction: column;
        align-items: stretch;
    }

    .topnav a,
    .topnav .topnav-items {
        float: none;
        padding: 14px 10px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .topnav-centered {
        display: flex;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        margin: 6px 0;
    }

    .topnav-centered a {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Additional responsive helpers */
@media (max-width: 767px) {
    body {
        --navbar-height: 34px;
        padding-top: calc(var(--lang-bar-height) + var(--navbar-height));
    }

    .topnav a {
        padding: 5px 5px;
        font-size: 15px;
    }

    .topnav-centered img {
        width: 72px !important;
    }

    .navbar-toggler {
        margin-top: 0 !important;
    }

    .masthead .masthead-heading {
        font-size: 8vw !important;
    }

    .flip-card {
        max-width: 320px;
        margin: 0 auto 10px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    body {
        --navbar-height: 42px;
        padding-top: calc(var(--lang-bar-height) + var(--navbar-height));
    }

    .flip-card {
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    body {
        --navbar-height: 44px;
        padding-top: calc(var(--lang-bar-height) + var(--navbar-height));
    }
}

/* Remove extra top spacing from masthead so <main> sits directly below fixed nav */
header.masthead,
.hero-masthead {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Make flip-card images responsive and consistent */
/* Hero section backgrounds */
.hero-section {
    padding-bottom: 60px;
}

.hero-silver {
    background: linear-gradient(
        -72.24deg,
        rgba(107, 103, 96, 1) 8.173076808452606%,
        rgba(255, 246, 233, 1) 100%
    );
}

.hero-gold {
    background: linear-gradient(
        -72.24deg,
        rgba(131, 104, 48, 1) 8.173076808452606%,
        rgba(255, 246, 233, 1) 100%
    );
}

/* Hero section padding responsive */
@media (max-width: 767px) {
    .hero-section {
        padding-top: 30px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .hero-section {
        padding-top: 40px;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        padding-top: 80px;
    }
}

/* Flip card buttons layout */
.hero-buttons {
    gap: 8px;
}

.hero-buttons .btn {
    padding: 4px;
}

/* Flip card responsive heights */
.flip-card,
.flip-card-inner,
.flip-card-front,
.flip-card-back {
    height: 250px;
}

@media (max-width: 575px) {
    .flip-card,
    .flip-card-inner,
    .flip-card-front,
    .flip-card-back {
        height: 280px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .flip-card,
    .flip-card-inner,
    .flip-card-front,
    .flip-card-back {
        height: 440px;
    }
}

img.showcase,
.flip-card img {
    width: 100%;
    max-width: 250px;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 575px) {
    img.showcase {
        max-width: 280px;
    }
}

.product-specification {
    background-color: white;
}

.product-image-carrousel-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
}

.product-image-carrousel {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.product-image-carrousel img {
    border: 2px solid transparent;
}

.product-image-carrousel-container::-webkit-scrollbar {
    height: 8px;
}

.product-image-carrousel-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.product-image-carrousel-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.product-image-carrousel-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.row {
    padding: 0 15px;
}

.lang-bar {
    background-color: #590909;
    color: #ffffff;
    padding: 4px 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1052;
    height: 28px;
    line-height: 28px;
    font-size: 13px;
}

.lang-bar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 4px;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-bar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-bar a.active,
.lang-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    border-bottom: 2px solid #ffffff;
}

/* Push the main navbar down so it sits immediately below the lang-bar */
#mainNav {
    top: 28px !important;
}

/* Calculate top offset for body based on lang-bar + navbar heights
   Use CSS variables so we can override per-breakpoint below. */
:root {
    --lang-bar-height: 28px;
    --navbar-height: 40px;
}

body {
    padding-top: calc(var(--lang-bar-height) + var(--navbar-height));
}

#product-flip-card {
    height: 100%;
}

/* Make the main product flip-card fill available column/viewport space */
#product-flip-card .flip-card,
#product-flip-card .flip-card-inner,
#product-flip-card .flip-card-front,
#product-flip-card .flip-card-back {
    height: auto !important;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

#product-flip-card .flip-card img.showcase {
    width: auto;
    max-width: 100%;
    max-height: calc(80vh - 180px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 767px) {
    #product-flip-card .flip-card,
    #product-flip-card .flip-card-inner,
    #product-flip-card .flip-card-front,
    #product-flip-card .flip-card-back {
        min-height: 50vw;
    }

    #product-flip-card .flip-card img.showcase {
        max-height: 60vh;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    #product-flip-card .flip-card,
    #product-flip-card .flip-card-inner,
    #product-flip-card .flip-card-front,
    #product-flip-card .flip-card-back {
        min-height: 52vh;
    }
}

/* Ensure coin back images inside the flip-card scale like the front showcase */
#product-flip-card .flip-card-back img.img-fluid,
#product-flip-card .flip-card-back img {
    width: auto;
    max-width: 100%;
    max-height: calc(80vh - 180px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Packaging (separate non-flip container) should also scale large */
#packaging-flip-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    box-sizing: border-box;
    padding: 0;
}

#packaging-flip-card img.showcase,
#packaging-flip-card img.img-fluid {
    width: auto;
    max-width: 100%;
    max-height: calc(80vh - 180px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 767px) {
    #product-flip-card .flip-card-back img.img-fluid,
    #product-flip-card .flip-card-back img,
    #packaging-flip-card img.showcase,
    #packaging-flip-card img.img-fluid {
        max-height: 60vh;
    }
}

/* Home card: large media card used on landing/home layout (pasted image) */
.home-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #ffffff;
    padding: 40px 48px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin-bottom: 40px;
}

.home-card .home-card-text {
    flex: 1 1 45%;
}

.home-card .home-card-text h2,
.home-card .home-card-text p {
    margin: 0 0 8px 0;
    color: #ffffff;
}

.home-card .home-card-text h2 {
    font-size: 2.6rem;
    line-height: 1.05;
    font-weight: 300;
}

.home-card .home-card-media {
    flex: 0 0 46%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-card .home-card-media img {
    width: 100%;
    max-width: 720px;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .home-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 18px;
    }

    .home-card .home-card-text {
        order: 2;
        width: 100%;
    }

    .home-card .home-card-media {
        order: 1;
        width: 100%;
    }

    .home-card .home-card-media img {
        max-height: 50vh;
        width: auto;
        max-width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1400px) {
    .home-card .home-card-text h2 {
        font-size: 2.2rem;
    }

    .home-card {
        padding: 32px;
    }
}

/* Quality poster: direct 2-column grid, children are poster-text / poster-img */
.quality-poster {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    color: #590909;
    padding: 0;
    margin-bottom: 0;
}

/* Both direct children share the same card background */
.quality-poster .quality-poster-text,
.quality-poster .quality-poster-img {
    background-color: #e5cf9d;
    min-height: 260px;
}

/* Round the outer corners to make each row look like a card */
.quality-poster > :nth-child(4n + 1) {
    border-radius: 8px 0 0 8px;
}

.quality-poster > :nth-child(4n + 2) {
    border-radius: 0 8px 8px 0;
}

.quality-poster > :nth-child(4n + 3) {
    border-radius: 8px 0 0 8px;
}

.quality-poster > :nth-child(4n + 4) {
    border-radius: 0 8px 8px 0;
}

.quality-poster .quality-poster-text {
    padding: 28px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quality-poster .quality-poster-title {
    font-size: 1.8rem;
    line-height: 1.05;
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #590909;
}

.quality-poster .quality-poster-description {
    margin: 0;
    font-size: 1rem;
    color: rgba(89, 9, 9, 0.95);
}

/* Image cell fills its grid area completely */
.quality-poster .quality-poster-img {
    overflow: hidden;
    /* clips image to rounded corners */
}

.quality-poster .quality-poster-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stack to one column on smaller screens */
@media (max-width: 991px) {
    .quality-poster {
        grid-template-columns: 1fr;
        gap: 24px 0;
    }

    /* Every item spans the full width — reset radius to simple card */
    .quality-poster > :nth-child(n) {
        border-radius: 8px;
        min-height: auto;
    }

    .quality-poster .quality-poster-text {
        padding: 20px 16px;
    }

    .quality-poster .quality-poster-img img {
        max-height: 48vh;
    }
}

@media (max-width: 575px) {
    .quality-poster .quality-poster-title {
        font-size: 1.4rem;
    }

    .quality-poster .quality-poster-text {
        padding: 16px 12px;
    }
}

/* Sustainability poster: full-width banner with single combined image + arching title */
.sustainability-poster {
    position: relative;
    width: 100%;
    /* allow absolutely positioned elements (arching text) to overflow
       so the top of the arc is not clipped */
    overflow: visible;
    display: block;
    margin: 40px 0;
    padding: 40px 0;
    line-height: 0;
    /* remove gap below inline img */
}

/* The single tree.png fills the full width of the poster */
.sustainability-poster .sustainability-poster-img {
    display: block;
    width: 100%;
    height: auto;
}

/* SVG arching text overlay */
.sustainability-poster .sustainability-poster-arch {
    position: absolute;
    /* lift the arch slightly so it sits above the image and isn't visually
       flush with the poster's top edge */
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 680px;
    z-index: 3;
    pointer-events: none;
    padding-top: 0;
    /* Ensure the SVG can render parts that extend outside its viewport */
    overflow: visible;
    display: block;
}

.sustainability-poster .sustainability-poster-arch text {
    font-family: "Sorts Mill Goudy", serif;
    font-size: 38px;
    fill: #590909;
    letter-spacing: 4px;
    font-weight: 400;
}

@media (max-width: 991px) {
    .sustainability-poster {
        min-height: 340px;
    }

    .sustainability-poster .sustainability-poster-arch text {
        font-size: 30px;
    }

    .sustainability-poster .sustainability-poster-tree {
        max-width: 80%;
    }
}

@media (max-width: 575px) {
    .sustainability-poster {
        min-height: 280px;
    }

    .sustainability-poster .sustainability-poster-arch {
        width: 95%;
    }

    .sustainability-poster .sustainability-poster-arch text {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .sustainability-poster .sustainability-poster-tree {
        max-width: 95%;
    }
}

/* Landing blade helper classes (moved from inline styles) */
.hero-masthead {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.landing-heading-large {
    font-family: "Sorts Mill Goudy", serif;
    font-weight: 100;
    font-size: 5vh;
    color: #ffffff;
    text-align: center;
}

.page-section-light {
    background-color: #fff6e9;
    color: #590909 !important;
}

.btn-landing {
    background-color: #eeeeee;
    border-color: #eeeeee;
    color: #590909;
}

.portfolio-ribbon {
    width: 100px;
    margin-top: -50px;
}

.portfolio-title {
    margin-top: -60px;
    padding: 0 30px;
    color: #590909 !important;
    font-weight: 100;
}

.card-gradient {
    background: linear-gradient(
        180deg,
        rgba(243, 243, 243, 1) 0%,
        rgba(186, 186, 186, 1) 100%
    );
    border-radius: 10px;
}

.text-white-center {
    color: #ffffff;
    text-align: center;
}

.container-color-590 {
    color: #590909 !important;
}

.spacer-sm {
    margin-top: 0.5rem;
}
.spacer-md {
    margin-top: 1rem;
}

/* Timeline helpers used in company/contact pages */
.timeline-img-pad {
    padding-bottom: 30px;
}
.timeline-body-pad-left {
    color: #590909 !important;
    padding-left: 50px;
    text-align: left;
    font-size: 11pt;
}
.timeline-body-pad-right {
    color: #590909 !important;
    padding-right: 50px;
    text-align: right;
    font-size: 11pt;
}

/* Contact / form helpers */
.landing-intro {
    font-family: "Sorts Mill Goudy", serif;
    font-weight: 100;
    font-size: 18pt;
    color: #590909 !important;
}
.landing-heading-medium {
    font-family: "Sorts Mill Goudy", serif;
    font-weight: 100;
    font-size: 28pt;
    color: #590909 !important;
}
.link-590 {
    color: #590909;
    text-decoration: none;
}
.form-landing {
    background-color: #efe5c7;
    color: #590909 !important;
    border-color: #efe5c7;
}
.iframe-borderless {
    border: 0;
}
.spacer-lg {
    margin-top: 3rem;
}
.landing-heading-small {
    color: #590909 !important;
    text-align: center;
    font-family: "Sorts Mill Goudy", serif;
    font-weight: 100;
    font-size: 18pt;
}

/* Small utilities used in product display */
.hero-btn-icon {
    width: 50px;
}
.visible-block {
    display: block;
}
.hidden {
    display: none;
}
/* Ensure product flip-card shown by default and packaging hidden by default */
#product-flip-card {
    display: block !important;
}
#packaging-flip-card {
    display: none !important;
}
.no-pt {
    padding-top: 0 !important;
}
.no-pb {
    padding-bottom: 0 !important;
}
.section-heading-margin {
    margin: 20px;
}
.masthead-image {
    width: 90%;
    height: 55vh;
    object-fit: cover;
    animation: transitionIn 4s;
    margin: -30px auto 0;
    display: block;
}

/* Move hero keyframe animation into CSS so blades don't need inline <style> */
@keyframes transitionIn {
    from {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}
.card-gradient-alt {
    background: linear-gradient(
        -33.29deg,
        rgba(169, 145, 145, 1) 52.41197347640991%,
        rgba(255, 246, 233, 1) 89.61736559867859%
    );
}
.home-card-bg-1 {
    background: #370c09;
}
.home-card-bg-2 {
    background: #19371a;
}
.home-card-bg-3 {
    background: #4d3a1a;
}
.home-card-bg-4 {
    background: #363636;
}
.section-heading-13pt {
    font-size: 13pt;
}
.pb-50 {
    padding-bottom: 50px;
}
.mt-50 {
    margin-top: 50px;
}
.font-11 {
    font-size: 11pt;
}
.landing-hero-title{
    font-family: 'Sorts Mill Goudy', serif;
    font-weight: 100;
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1;
    animation: transitionIn 4s;
}

#masthead-title{
    font-family: 'Sorts Mill Goudy', serif;
}