/* Cards */
.product-card,
.category-card,
.blog-card,
.video-card,
.app-card {
    background: #fff;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s, transform .3s, border-color .3s;
}

.product-card:hover,
.category-card:hover,
.blog-card:hover,
.video-card:hover {
    box-shadow: 0 14px 34px rgba(24, 39, 69, .1);
    border-color: var(--gold);
}

.product-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 8px;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.blog-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.product-card:hover img,
.category-card:hover img {
    transform: scale(1.04);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.product-card-body,
.blog-card-body,
.video-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
}

.product-card-body h3,
.blog-card-body h3,
.video-card-body h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
}

.product-card-body p,
.blog-card-body p {
    flex: 1;
    font-size: .94rem;
    margin-bottom: 14px;
}

.product-swiper .swiper-slide {
    height: auto;
}

.product-card--slim .product-card-img {
    aspect-ratio: 4 / 3;
    background: #ffffff;
}

.product-card--slim .product-card-body {
    align-items: center;
    text-align: center;
    padding: 20px 18px 22px;
    justify-content: space-between;
    gap: 14px;
}

.product-card--slim h3 {
    font-size: 1.3rem;
    margin: 0;
}

.product-card--slim h3 a {
    color: var(--navy);
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 50px;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    font-size: .88rem;
    transition: background .25s, color .25s, gap .25s;
}

.btn-view:hover {
    background: var(--gold);
    color: #fff;
    gap: 12px;
}

/* Shared "Product Details" button: white, gold border, navy text, fading gold wave on hover */
.btn-detail {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 4px;
    background: #fff;
    border: 1.5px solid var(--gold);
    color: var(--navy);
    font-weight: 600;
    font-size: .88rem;
}

.btn-detail::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(168, 112, 48, .28);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.btn-detail:hover {
    background: #fff;
    color: var(--navy);
    border-color: var(--gold);
}

.btn-detail:hover::after {
    animation: detailWave .8s ease-out;
}

@keyframes detailWave {
    0% { transform: translate(-50%, -50%) scale(0); opacity: .9; }
    100% { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

.eyebrow-sm {
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
}

.link-arrow {
    font-weight: 600;
    font-family: var(--font-head);
    font-size: .9rem;
}

.link-arrow i {
    transition: transform .2s;
    display: inline-block;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.meta {
    font-size: .82rem;
    color: var(--text-2);
    margin-bottom: 8px;
}

.meta a {
    color: var(--gold);
}

/* Video cards */
.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--navy);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: transform .5s, opacity .3s;
}

.video-thumb:hover img {
    transform: scale(1.04);
    opacity: 1;
}

.play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 2rem;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .25);
    transition: background .2s, color .2s;
}

.video-thumb:hover .play-btn {
    background: var(--gold);
    color: #fff;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--navy);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8, 14, 28, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.video-modal[hidden],
.lightbox[hidden] {
    display: none;
}

.video-modal-body {
    width: min(960px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-modal-body.vertical {
    width: auto;
    height: min(86vh, 700px);
    aspect-ratio: 9 / 16;
    max-width: 100%;
}

.video-modal-body iframe,
.video-modal-body video {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close,
.lb-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.3rem;
}

.video-modal-close:hover,
.lb-close:hover {
    background: var(--gold);
}

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.filter-bar button,
.filter-bar a {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--navy);
    padding: 8px 18px;
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all .2s;
    cursor: pointer;
}

.filter-bar button:hover,
.filter-bar a:hover {
    border-color: var(--gold);
    color: var(--navy);
}

.filter-bar button.active,
.filter-bar a.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

[data-filter-item].is-hidden {
    display: none !important;
}

/* Client review videos (vertical 9:16) */
.cv-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 14;
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--navy);
    cursor: pointer;
}

.cv-card img,
.cv-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
    pointer-events: none;
    display: block;
}

.cv-card:hover img,
.cv-card:hover video {
    transform: scale(1.05);
}

.cv-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 39, 69, .45), transparent 50%);
    pointer-events: none;
}

.video-page-grid {
    max-width: none;
}

.cv-card .play-btn {
    z-index: 2;
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
}

.cv-card:hover .play-btn {
    background: var(--gold);
    color: #fff;
}

.cv-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-align: left;
}

/* Google reviews */
.google-reviews .swiper {
    padding-bottom: 40px;
}

.google-reviews .swiper-slide {
    height: auto;
}

.g-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.g-summary .bi-google {
    color: #4285f4;
    font-size: 1.3rem;
}

.g-stars {
    color: #fbbc04;
    letter-spacing: 2px;
}

.g-count {
    color: #5b6472;
    font-size: .9rem;
}

.g-review {
    background: #fff;
    border: 1px solid var(--border);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.g-review header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.g-review header div {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.g-review header small {
    color: #7a8190;
}

.g-review img,
.g-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.g-avatar {
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.g-logo {
    color: #4285f4;
    font-size: 1.2rem;
}

.g-review p {
    margin: 0;
    font-size: .95rem;
}

.google-reviews .swiper-pagination-bullet-active {
    background: var(--gold);
}

/* Why choose */
.why-section {
    position: relative;
    background:
        linear-gradient(rgba(250, 238, 218, .94), rgba(250, 238, 218, .94)),
        url('../images/factory/factory.jpg') center / cover no-repeat;
    color: var(--navy);
}

.why-section .section-title {
    color: var(--navy);
}

.why-section .eyebrow {
    color: #7a4e1d;
}

@media (min-width: 992px) {
    .why-section {
        background-attachment: scroll, fixed;
    }
}

.why-grid {
    border: 1px solid rgba(24, 39, 69, .2);
}

.why-item {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;
    height: 100%;
    border: 1px solid rgba(24, 39, 69, .2);
    margin: -.5px;
    background: rgba(255, 255, 255, .35);
    transition: background .3s;
}

.why-item>* {
    position: relative;
    z-index: 1;
}

.why-item:hover {
    background: rgba(255, 255, 255, .6);
}

/* Hover: the card's own border turns navy */
.why-item {
    transition: background .3s, border-color .3s;
}

.why-item:hover,
.why-item:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
    z-index: 2;
}

.why-item i {
    display: inline-block;
    font-size: 2rem;
    color: var(--gold);
    animation: whyFloat 3s ease-in-out infinite;
    transition: color .3s;
}

.why-item:hover i {
    color: var(--navy);
    animation: whyPulse .8s ease-in-out infinite;
}

@keyframes whyFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes whyPulse {

    0%,
    100% {
        transform: scale(1) rotate(0);
    }

    30% {
        transform: scale(1.25) rotate(-8deg);
    }

    60% {
        transform: scale(1.25) rotate(8deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    .why-item i,
    .why-item:hover i {
        animation: none;
    }
}

.why-item h3 {
    font-size: 1.1rem;
    margin: 14px 0 8px;
    color: var(--navy);
}

.why-item p {
    margin: 0;
    font-size: .94rem;
    color: #3a4560;
}

/* Achievements */
.achievements {
    background: var(--navy);
    padding: 60px 0;
    position: relative;
    overflow-x: clip;
}

.gear-set {
    position: absolute;
    top: -65px;
    right: 0;
    width: 166px;
    height: 190px;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}

.gear {
    position: absolute;
    display: block;
}

.gear-big { width: 120px; height: 120px; left: 0; top: 20px; }
.gear-mid { width: 84px; height: 84px; left: 82px; top: -15px; }
.gear-sml { width: 62px; height: 62px; left: 87px; top: 97px; }

.gear.cw { animation: gearCw 12s linear infinite; }
.gear.ccw { animation: gearCcw 12s linear infinite; }
.gear-mid.ccw { animation-duration: 8.3s; }
.gear-sml.ccw { animation-duration: 6.1s; }

@keyframes gearCw { to { transform: rotate(360deg); } }
@keyframes gearCcw { to { transform: rotate(-360deg); } }

@media (max-width: 575.98px) {
    .gear-set {
        transform: scale(.6);
        transform-origin: top right;
        right: 14px;
        top: -40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gear.cw, .gear.ccw { animation: none; }
}

.achievement {
    background: #fff;
    border-radius: 14px;
    padding: 30px 16px 26px;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
}

.achievement:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .25);
}

.achievement-icon {
    display: inline-block;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--gold);
    animation: achFloat 3s ease-in-out infinite;
}

.achievement:hover .achievement-icon {
    animation: whyPulse .8s ease-in-out infinite;
}

@keyframes achFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-7px) rotate(6deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    .achievement-icon,
    .achievement:hover .achievement-icon {
        animation: none;
    }
}

.achievement-num {
    font-family: var(--font-head);
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 700;
    color: var(--navy);
    margin-top: 8px;
}

.achievement-label {
    color: #5b6472;
    font-size: .95rem;
    padding-top: 8px;
    display: block;
}

/* Offer banner */
.offer-banner {
    background: #fff;
}

.offer-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* CTA */
.cta-banner {
    background: var(--navy);
    padding: 54px 0;
    border-top: 3px solid var(--gold);
}

.cta-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.cta-inner h2 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    margin: 0 0 8px;
}

.cta-inner p {
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Image framing */
.framed-image {
    position: relative;
    padding: 22px 22px 22px 22px;
    isolation: isolate;
}

.framed-image::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 82%;
    height: 82%;
    background: linear-gradient(135deg, rgba(168, 112, 48, .18), rgba(168, 112, 48, .5));
    border: 2px solid var(--gold);
    z-index: -1;
}

.framed-image::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 140px;
    height: 140px;
    background-image: radial-gradient(var(--gold) 2px, transparent 2.5px);
    background-size: 16px 16px;
    z-index: -1;
}

.zoom-frame {
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(24, 39, 69, .2);
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.framed-image img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s ease;
    will-change: transform;
}

@media (hover: hover) {
    .zoom-frame:hover img {
        transform: scale(1.12);
    }
}

.zoom-frame.zoomed img {
    transform: scale(1.12);
}

/* Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.showcase-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 12px;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    background: linear-gradient(transparent, rgba(14, 24, 45, .85));
}

/* Lists / misc */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding: 8px 0 8px 32px;
}

.check-list li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--gold);
}

.vm-block {
    padding: 24px;
    background: #fff;
    border-left: 3px solid var(--gold);
    margin-bottom: 16px;
}

.vm-block h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
}

.vm-block p {
    margin: 0;
}

/* Slider controls */
.slider-controls {
    display: flex;
    gap: 8px;
}

.slider-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--navy);
    background: #fff;
    color: var(--navy);
    transition: background .2s, color .2s;
}

.slider-btn:hover {
    background: var(--navy);
    color: #fff;
}

.slider-btn.swiper-button-disabled {
    opacity: .4;
}

.swiper-slide {
    height: auto;
}

/* Legal */
.legal {
    max-width: 860px;
}

.legal h2 {
    font-size: 1.3rem;
    margin: 30px 0 8px;
}

.legal h2 span {
    color: var(--gold);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8, 14, 28, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 12px 24px;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    touch-action: pan-y;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.2rem;
}

.lb-nav:hover {
    background: var(--gold);
}

.lb-prev {
    left: 10px;
}

.lb-next {
    right: 10px;
}

/* Forms */
.contact-form-sec {
    position: relative; overflow-x: clip; padding: 70px 0 !important;
    background:
        radial-gradient(circle at 8% 15%, rgba(168,112,48,.10), transparent 36%),
        radial-gradient(circle at 92% 85%, rgba(24,39,69,.06), transparent 38%),
        radial-gradient(rgba(24,39,69,.10) 1.3px, transparent 1.6px) 0 0 / 22px 22px,
        #f8f9fc;
}
.contact-form-sec::before, .contact-form-sec::after {
    content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
    border: 2px dashed rgba(168,112,48,.25); pointer-events: none;
}
.contact-form-sec::before { top: 24px; left: -60px; }
.contact-form-sec::after { bottom: 24px; right: -60px; }
.contact-form-sec .container { position: relative; z-index: 1; }
.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    padding: 28px;
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    color: var(--navy);
    border-radius: var(--radius);
}

.contact-form textarea {
    min-height: 85px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 112, 48, .15);
}

.contact-form .invalid {
    border-color: #b3261e;
}

.field-error {
    color: #b3261e;
    font-size: .8rem;
    min-height: 0;
    margin-top: 4px;
}

.form-feedback {
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-left: 3px solid var(--gold);
    font-size: .92rem;
}

.form-feedback.error {
    border-left-color: #b3261e;
}

/* About Us dynamic DB description */
.about-db-description {
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: left !important;
    word-break: normal;
    overflow-wrap: break-word;
    color: var(--text-2, #626b79);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-db-description p {
    margin-bottom: 1rem;
    line-height: 1.85;
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: left !important;
    word-break: normal;
    overflow-wrap: break-word;
}

.about-db-description p:last-child {
    margin-bottom: 0;
}

/* Home Page 8-line Clamp for About Description */
.home-about-desc {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
