/**
 * Finnic Glass - Custom Premium Industrial Styling
 * Modern buttons, CTAs, and refined spacing
 */

/* ========== Premium CTA Buttons ========== */
.btn-finnic,
.btn-finnic-primary,
.btn-finnic-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 4px;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-finnic-primary {
    background: #1a1a1a;
    color: #fff;
}

.btn-finnic-primary:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-finnic-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-finnic-secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Product card buttons */
.product-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-card-actions .btn-finnic {
    padding: 10px 18px;
    font-size: 13px;
}

/* Override template buttons where used */
.products .figure-block .text .btn-finnic,
.product .btn-finnic {
    margin-right: 8px;
}

/* Banner CTA */
.banner .btn-finnic {
    margin: 0 4px 8px;
}

/* About/Services section buttons */
.about-cta .btn-finnic,
.services-cta .btn-finnic {
    margin: 0 8px 8px 0;
}

/* Contact form submit */
.contact-form .btn-finnic-primary[type="submit"] {
    padding: 14px 32px;
    font-size: 15px;
}

/* Contact page layout */
.contact-info-block { padding: 40px 30px; background: #f8f9fa; border-radius: 6px; margin-bottom: 30px; }
.contact-info-block h3 { margin-top: 0; margin-bottom: 15px; font-weight: 600; }
.contact-detail { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-detail .icon { font-size: 24px; color: #666; flex-shrink: 0; }
.contact-form-block { padding: 30px 0; }
.contact-form-block .form-group label { font-weight: 500; margin-bottom: 6px; display: block; }

/* Page header subtitle */
.page-header-subtitle { margin: 10px 0 0; font-size: 16px; opacity: 0.95; }

/* About page */
.about-section { padding: 60px 0; }
.about-page-content { line-height: 1.8; }
.about-page-content h2, .about-page-content h3, .about-page-content h4 { margin-top: 24px; margin-bottom: 12px; }
.about-page-content p { margin-bottom: 16px; }
.about-section-alt { background: #f8f9fa; }
.about-intro { }
.about-intro .about-title { margin-bottom: 24px; font-weight: 600; font-size: 28px; color: #1a1a1a; }
.about-intro .about-lead { font-size: 18px; line-height: 1.8; color: #444; max-width: 720px; margin: 0 auto; }
.about-intro .about-lead p { margin-bottom: 16px; }
.about-intro .about-lead p:last-child { margin-bottom: 0; }
.about-section h3 { margin-top: 0; margin-bottom: 15px; font-weight: 600; font-size: 20px; color: #1a1a1a; }
.about-section p { line-height: 1.7; margin-bottom: 15px; }
.about-content-block { padding: 25px 0; }
.about-content-block h3 { margin-bottom: 12px; }
.about-block-text { line-height: 1.75; color: #444; }
.about-block-text p { margin-bottom: 12px; }
.about-block-text p:last-child { margin-bottom: 0; }
.about-leadership-section { }
.about-leadership { align-items: center; }
.about-leadership-image { overflow: hidden; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.about-leadership-image img { width: 100%; height: auto; display: block; object-fit: cover; min-height: 280px; }
.about-leadership-content { padding-left: 40px; }
.about-leadership-content h3 { margin-top: 0; }
.about-leadership-content p { font-size: 16px; line-height: 1.75; }
@media (max-width: 991px) {
    .about-leadership-content { padding-left: 0; padding-top: 30px; }
    .about-leadership-image img { min-height: 220px; }
}
.about-capabilities-section header .title { margin-bottom: 15px; }
.about-capabilities-intro { margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.about-capabilities-intro p { font-size: 16px; color: #555; line-height: 1.6; }
/* Services grid: CSS Grid for even alignment, no awkward gaps */
.about-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}
.about-capability-item {
    padding: 25px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    transition: box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.about-capability-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.about-capability-item .icon { font-size: 28px; color: #666; display: block; margin-bottom: 12px; flex-shrink: 0; }
.about-capability-item h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; flex-shrink: 0; }
.about-capability-item p { margin: 0; font-size: 14px; line-height: 1.5; color: #555; flex: 1; min-height: 0; }
.about-capabilities-cta { margin-top: 30px; }
.about-capabilities-cta .btn-finnic { padding: 14px 28px; }
@media (max-width: 991px) {
    .about-capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 575px) {
    .about-capabilities-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Services page */
.services-intro { padding: 40px 0 20px; }
.services-lead { font-size: 17px; line-height: 1.7; color: #444; }
.services-group { padding: 40px 0; }
.services-group:nth-child(even) { background: #f8f9fa; }
.services-group-title { margin-bottom: 25px; font-weight: 600; font-size: 18px; color: #333; padding-bottom: 10px; border-bottom: 2px solid #1a1a1a; }
.service-card { padding: 30px 25px; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; height: 100%; transition: box-shadow 0.25s, border-color 0.25s; }
.service-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); border-color: #ccc; }
.service-card-icon { font-size: 32px; color: #1a1a1a; margin-bottom: 15px; }
.service-card h5 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.service-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #555; }
.services-process { padding: 60px 0; background: #1a1a1a; color: #fff; }
.services-process h3 { color: #fff; margin-bottom: 40px; }
.process-step { text-align: center; padding: 20px 15px; }
.process-num { display: inline-block; width: 50px; height: 50px; line-height: 50px; background: rgba(255,255,255,0.15); border-radius: 50%; font-size: 22px; font-weight: 600; margin-bottom: 15px; }
.process-step h5 { color: #fff; margin: 0 0 10px; font-size: 16px; }
.process-step p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; }

/* Language switcher - nav-settings with lang-current (template pattern) */
.nav-settings .lang-current { cursor: pointer; }
.nav-settings .nav-settings-list a.active { font-weight: 600; }

/* nav-settings dropdown in navigation-top (desktop header) */
nav .navigation-top .nav-settings { position: relative; }
nav .navigation-top .nav-settings .navbar-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 1100;
    min-width: 80px;
}
nav .navigation-top .nav-settings .navbar-dropdown .navbar-box .box { padding: 15px 20px; }
nav .navigation-top .nav-settings .navbar-dropdown .nav-settings-list { margin: 0; padding: 0; list-style: none; }
nav .navigation-top .nav-settings .navbar-dropdown .nav-settings-list li { margin: 0; }
nav .navigation-top .nav-settings .navbar-dropdown .nav-settings-list a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
}
nav .navigation-top .nav-settings .navbar-dropdown .nav-settings-list a:hover,
nav .navigation-top .nav-settings .navbar-dropdown .nav-settings-list a.active { background: #f5f5f5; }

/* Logo size constraints (override for larger uploaded images) */
nav .logo img {
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (min-width: 992px) {
    nav .logo img {
        max-height: 70px;
    }
}
nav .navigation-top .logo-icon {
    display: flex;
    align-items: center;
    /* padding: 0 20px !important; */
}
nav .navigation-top .logo-icon img {
    height: 75px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Category page View all */
.wrapper-more .btn-finnic-primary {
    padding: 14px 28px;
}

/* Equal height row utility */
.row-eq-height { display: flex; flex-wrap: wrap; }
.row-eq-height > [class*="col-"] { display: flex; }

/* ========== Sell Machine Page - Premium Lead Gen ========== */
.sell-machine-section {
    padding: 50px 0 80px;
    background: #f8f9fa;
}
.sell-machine-hero {
    margin-bottom: 40px;
}
.sell-machine-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}
.sell-machine-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}
.sell-machine-alert {
    max-width: 700px;
    margin: 0 auto 30px;
}
.sell-machine-layout {
    align-items: flex-start;
}
.sell-machine-benefits {
    margin-bottom: 30px;
}
.sell-machine-benefits-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sell-machine-benefits-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
}
.sell-machine-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sell-machine-benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.4;
}
.sell-machine-benefits-list li i {
    color: #1a1a1a;
    font-size: 18px;
    width: 24px;
    text-align: center;
}
.sell-machine-form-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.sell-form-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
}
.sell-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
    padding-bottom: 0;
}
.sell-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
}
.sell-form-input {
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}
.sell-form-input:focus {
    border-color: #1a1a1a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,26,26,0.1);
}
.sell-form-textarea {
    height: auto !important;
    min-height: 120px;
}
.sell-form-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sell-form-file {
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
}
.sell-form-upload-hint {
    font-size: 13px;
    color: #777;
}
.sell-form-submit {
    margin-top: 8px;
}
.sell-form-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    justify-content: center;
}
@media (min-width: 992px) {
    .sell-machine-form-col {
        padding-left: 24px;
    }
    .sell-machine-benefits {
        margin-bottom: 0;
    }
}
@media (max-width: 991px) {
    .sell-machine-section { padding: 40px 0 60px; }
    .sell-machine-hero { margin-bottom: 30px; }
    .sell-machine-title { font-size: 24px; }
    .sell-machine-form-card { padding: 28px 20px; }
    .sell-form-section { margin-bottom: 24px; padding-bottom: 20px; }
}
@media (max-width: 575px) {
    .sell-machine-section { padding: 30px 0 50px; }
    .sell-machine-title { font-size: 22px; }
    .sell-machine-form-card { padding: 24px 16px; }
    .sell-form-section-title { font-size: 15px; margin-bottom: 16px; }
    .sell-form-input { height: 42px; font-size: 16px; }
    .sell-form-btn { padding: 14px 20px; font-size: 15px; }
}

/* ========== Product Detail Page - Premium Layout ========== */
.product-detail-section { padding: 50px 0 60px; background: #f8f9fa; }
.product-detail-layout { align-items: flex-start; margin-bottom: 40px; }
.product-detail-gallery { margin-bottom: 30px; }
.product-gallery-main {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    object-fit: contain;
}
.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-thumb {
    width: 70px;
    height: 70px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.product-thumb:hover, .product-thumb.active {
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.product-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.3;
}
.product-condition-badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 500;
}
.product-condition-new { background: #d4edda; color: #155724; }
.product-condition-used { background: #e2e8f0; color: #334155; }
.product-condition-refurbished { background: #cce5ff; color: #004085; }
.product-detail-price {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.product-detail-lead {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 24px;
}
.product-detail-meta { margin-bottom: 24px; }
.product-meta-item {
    margin-bottom: 8px;
    font-size: 14px;
}
.product-meta-item a { color: #1a1a1a; }
.product-detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.product-detail-cta .btn-finnic { margin: 0; }
.product-detail-content { margin-top: 20px; }
.product-detail-block {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.product-detail-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1a1a1a;
}
.product-description-text { line-height: 1.7; color: #444; }
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.product-specs-table th,
.product-specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.product-specs-table th {
    font-weight: 500;
    color: #666;
    width: 40%;
}
.product-detail-related { margin-top: 40px; padding-top: 40px; border-top: 1px solid #e8e8e8; }
.product-detail-related h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}
@media (min-width: 992px) {
    .product-detail-info { padding-left: 24px; }
}
@media (max-width: 991px) {
    .product-detail-gallery { order: 1; }
    .product-detail-info { order: 2; margin-bottom: 0; }
}
@media (max-width: 575px) {
    .product-detail-section { padding: 30px 0 40px; }
    .product-info-card { padding: 24px 20px; }
    .product-detail-title { font-size: 20px; }
    .product-detail-cta { flex-direction: column; }
    .product-detail-cta .btn-finnic { width: 100%; justify-content: center; }
}

/* Homepage services preview - equal height grid */
.services-preview-grid { }
.services-preview-grid > [class*="col-"] { margin-bottom: 0; }
.services-preview-card { padding: 24px 20px; margin-bottom: 20px; flex: 1; display: flex; flex-direction: column; min-height: 100%; }
.services-preview-card h4 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.services-preview-card p { margin: 0; flex: 1; line-height: 1.5; font-size: 14px; }
@media (max-width: 767px) {
    .services-preview-grid > [class*="col-"] { margin-bottom: 0; }
    .services-preview-card { margin-bottom: 15px; }
}

/* navigation-top: template icon row uses 22px; text links use 12px via .left-side > a — match right-side text to left */
@media (min-width: 992px) {
    nav .navigation-top > ul > li > a.open-search {
        font-size: 22px;
        line-height: 75px;
    }
    nav .navigation-top > ul > li.nav-top-right > a {
        font-size: 12px;
        font-weight: inherit;
        line-height: 75px;
        border-left: 1px solid #e0e0e0;
        /* border-right: 1px solid #e0e0e0; */
    }
    nav .navigation-top > ul .left-side.active > a,
    nav .navigation-top > ul > li.nav-top-right.active > a {
        background-color: #e0e0e0;
    }
}

/* navigation-main: current page highlight + mobile search bar trigger position */
@media (min-width: 992px) {
    nav .navigation-main .floating-menu > ul > li.active > a {
        color: #0e3a69 !important;
    }
    nav .navigation-main .floating-menu > ul > li.active:hover {
        background-color: #0e3a69;
    }
    nav .navigation-main .floating-menu > ul > li.active:hover > a {
        color: #fff !important;
    }
    nav .navigation-main .floating-menu .navbar-dropdown ul li.active > a {
        color: #0e3a69 !important;
        font-weight: 600;
    }
}
@media (max-width: 991px) {
    nav .navigation-main .floating-menu > ul > li.active > a {
        color: rgba(255, 255, 255, 0.98);
        font-weight: 600;
    }
    nav .navigation-main .floating-menu .navbar-dropdown ul li.active > a {
        color: #fff !important;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    /* Template assumes cart/login icons; Finnic uses menu + search only */
    nav .navigation-main .open-search {
        right: 40px;
    }
}

/* Homepage six category cards — semi-transparent overlays on .entry-block */
.blog.blog-block .category-card--glass .entry.entry-block { background-color: rgba(30, 58, 95, 0.42); }
.blog.blog-block .category-card--glass-machinery .entry.entry-block { background-color: rgba(18, 72, 120, 0.45); }
.blog.blog-block .category-card--used-glass-machinery .entry.entry-block { background-color: rgba(90, 60, 40, 0.48); }
.blog.blog-block .category-card--glass-tools-accessories .entry.entry-block { background-color: rgba(45, 85, 75, 0.45); }
.blog.blog-block .category-card--materials .entry.entry-block { background-color: rgba(70, 55, 95, 0.42); }
.blog.blog-block .category-card--sell-your-glass-machinery .entry.entry-block { background-color: rgba(110, 35, 35, 0.40); }

/* Home row: tint on ::before so title/description sit above the color layer (image z-index was covering text) */
.blog.blog-block.blog-intro .row-home-categories .category-card .entry.entry-block {
    background-color: transparent !important;
    z-index: 2;
}
.blog.blog-block.blog-intro .row-home-categories .category-card--glass .entry.entry-block::before,
.blog.blog-block.blog-intro .row-home-categories .category-card--glass-machinery .entry.entry-block::before,
.blog.blog-block.blog-intro .row-home-categories .category-card--used-glass-machinery .entry.entry-block::before,
.blog.blog-block.blog-intro .row-home-categories .category-card--glass-tools-accessories .entry.entry-block::before,
.blog.blog-block.blog-intro .row-home-categories .category-card--materials .entry.entry-block::before,
.blog.blog-block.blog-intro .row-home-categories .category-card--sell-your-glass-machinery .entry.entry-block::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}
.blog.blog-block.blog-intro .row-home-categories .category-card--glass .entry.entry-block::before { background-color: rgba(30, 58, 95, 0.42); }
.blog.blog-block.blog-intro .row-home-categories .category-card--glass-machinery .entry.entry-block::before { background-color: rgba(18, 72, 120, 0.45); }
.blog.blog-block.blog-intro .row-home-categories .category-card--used-glass-machinery .entry.entry-block::before { background-color: rgba(90, 60, 40, 0.48); }
.blog.blog-block.blog-intro .row-home-categories .category-card--glass-tools-accessories .entry.entry-block::before { background-color: rgba(45, 85, 75, 0.45); }
.blog.blog-block.blog-intro .row-home-categories .category-card--materials .entry.entry-block::before { background-color: rgba(70, 55, 95, 0.42); }
.blog.blog-block.blog-intro .row-home-categories .category-card--sell-your-glass-machinery .entry.entry-block::before { background-color: rgba(110, 35, 35, 0.40); }
.blog.blog-block.blog-intro .row-home-categories .category-card .entry.entry-block .title,
.blog.blog-block.blog-intro .row-home-categories .category-card .entry.entry-block .description {
    position: relative;
    z-index: 1;
}
.blog.blog-block.blog-intro .row-home-categories .category-card .show-more {
    z-index: 3;
}

.row-home-categories { display: flex; flex-wrap: wrap; }
.row-home-categories > [class*="col-"] { display: flex; }
.row-home-categories .category-card { width: 100%; }

/* Homepage six cards: shorter image band (~20–30% less height vs typical 4:3 uploads) */
.blog.blog-block.blog-intro .row-home-categories .category-card .image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    z-index: 0;
}
.blog.blog-block.blog-intro .row-home-categories .category-card .image img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.blog.blog-block.blog-intro .row-home-categories .category-card .image:before {
    z-index: 1;
}

@media (max-width: 767px) {
    .blog.blog-block.blog-intro .row-home-categories .category-card .image {
        aspect-ratio: 16 / 10.8;
    }
    .blog.blog-block.blog-intro .row-home-categories .category-card .entry.entry-block .description p {
        font-size: 13px;
        line-height: 1.45;
    }
}

/* Cases of Success page */
.cases-of-success-section { padding: 50px 0 40px; }
.cases-of-success-intro { max-width: 720px; margin: 0 auto 40px; text-align: center; font-size: 17px; line-height: 1.75; color: #444; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 50px; }
@media (max-width: 991px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .cases-grid { grid-template-columns: 1fr; } }
.cases-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: 28px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.cases-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: #1a1a1a; }
.cases-card p { margin: 0; font-size: 14px; line-height: 1.65; color: #555; }
.cases-cta-band { background: #f4f6f8; padding: 48px 24px; text-align: center; border-radius: 6px; margin-top: 20px; }
.cases-cta-band h2 { margin-top: 0; font-size: 22px; font-weight: 600; }
.cases-page-content.cases-html h2 { font-size: 24px; margin-bottom: 16px; }
.cases-page-content.cases-html h3 { font-size: 18px; margin-top: 24px; margin-bottom: 10px; }
.cases-page-content.cases-html p { line-height: 1.75; color: #444; }

.search-results-meta { font-size: 15px; color: #555; margin-bottom: 8px; }

/* ========== Success cases listing (case study cards) ========== */
.success-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
@media (max-width: 991px) {
    .success-cases-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 575px) {
    .success-cases-grid { grid-template-columns: 1fr; gap: 20px; }
}
.success-case-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.success-case-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.success-case-card-image-link { display: block; text-decoration: none; color: inherit; }
.success-case-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1a1a1a;
}
.success-case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.success-case-card-placeholder {
    min-height: 180px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}
.success-case-card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.success-case-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}
.success-case-card-title a { color: #1a1a1a; text-decoration: none; }
.success-case-card-title a:hover { color: #333; }
.success-case-card-excerpt {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    flex: 1;
}
.success-case-card-meta {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.success-case-card-cta { align-self: flex-start; margin-top: auto; }
.cases-empty-msg { text-align: center; padding: 40px 20px; color: #666; font-size: 16px; }
.cases-page-intro { text-align: left; max-width: 800px; margin: 0 auto; }
.cases-page-intro p { line-height: 1.75; color: #444; }

/* ========== Single case study article ========== */
.case-study-article { padding-bottom: 60px; }
.case-study-hero {
    position: relative;
    width: 100%;
    max-height: 52vh;
    overflow: hidden;
    background: #111;
}
.case-study-hero img {
    width: 100%;
    height: 100%;
    max-height: 52vh;
    object-fit: cover;
    display: block;
}
.case-study-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 45%);
    pointer-events: none;
}
.case-study-inner { max-width: 900px; padding-top: 40px; padding-bottom: 20px; }
.case-study-header { margin-bottom: 28px; }
.case-study-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.2;
}
.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 14px;
    color: #666;
}
.case-meta-pill {
    display: inline-block;
    padding: 6px 12px;
    background: #f4f6f8;
    border-radius: 4px;
    font-size: 13px;
    color: #444;
}
.case-meta-date { color: #888; font-size: 13px; }
.case-study-intro {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 36px;
}
.case-rich-text p { margin-bottom: 14px; }
.case-rich-text p:last-child { margin-bottom: 0; }
.case-study-section { margin-bottom: 40px; }
.case-section-heading {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}
.case-section-emphasis {
    background: #f8f9fa;
    padding: 28px 24px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}
.case-section-result {
    background: #1a1a1a;
    color: #eee;
    padding: 28px 24px;
    border-radius: 8px;
}
.case-section-result .case-section-heading { color: #fff; border-bottom-color: rgba(255,255,255,0.35); }
.case-section-result .case-section-body { color: #ddd; }
.case-section-body { font-size: 16px; line-height: 1.75; color: #444; }
.case-before-after .case-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.case-compare-item { margin: 0; }
.case-compare-item figcaption {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 10px;
    font-weight: 600;
}
.case-compare-item img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    display: block;
}
.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.case-gallery-item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}
.case-gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.case-gallery-item:hover img { transform: scale(1.03); }
.case-study-back { margin: 32px 0 24px; }
.case-study-cta { margin-top: 16px; }

/* ========== Mobile polish (targeted; desktop unchanged) ========== */
@media (max-width: 991px) {
    .page-header .title,
    .page-header h1.title { font-size: clamp(26px, 5vw, 34px); }
    .page-header { padding-top: 28px; padding-bottom: 28px; }
    .about-section { padding: 44px 0; }
    .about-intro .about-title { font-size: 24px; line-height: 1.25; }
    .about-intro .about-lead { font-size: 16px; line-height: 1.75; }
    .about-leadership-image { border-radius: 10px; }
    .about-leadership-image img { min-height: 200px; max-height: 360px; object-fit: cover; }
    .about-leadership-content { padding-top: 24px; }
    .about-capabilities-section .title { font-size: 22px; }
    .about-capabilities-intro { margin-bottom: 28px; }
    .services-intro { padding: 32px 0 16px; }
    .services-group { padding: 32px 0; }
    .service-card { padding: 24px 20px; }
    .contact-info-block { padding: 28px 22px; margin-bottom: 24px; }
    .contact-form-block { padding: 24px 0 32px; }
    .contact-form-block .form-group { margin-bottom: 18px; }
    .product-detail-section { padding-top: 24px; padding-bottom: 40px; }
    .product-detail-title { font-size: 24px; line-height: 1.25; }
    .product-detail-section .product-detail-block { margin-bottom: 28px; }
}

@media (max-width: 768px) {
    .cases-of-success-section { padding: 36px 0 32px; }
    .cases-of-success-intro { font-size: 16px; margin-bottom: 28px; text-align: left; }
    .cases-cta-band { padding: 36px 20px; border-radius: 8px; }
    .cases-cta-band h2 { font-size: 20px; }
    .cases-cta-band .btn-finnic,
    .case-study-cta .btn-finnic,
    .contact-form-block .btn-finnic-primary[type="submit"],
    .sell-machine-form-card .btn-finnic-primary[type="submit"],
    .product-detail-cta .btn-finnic {
        min-height: 48px;
        padding: 14px 22px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
        max-width: 100%;
    }
    .success-case-card-cta { width: 100%; max-width: 100%; }
    .case-study-title { font-size: 24px; }
    .case-study-inner { padding-top: 28px; }
    .case-before-after .case-compare-grid { grid-template-columns: 1fr; }
    .case-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .case-gallery-item img { height: 140px; }
    .about-cta .btn-finnic,
    .services-cta .btn-finnic,
    .about-capabilities-cta .btn-finnic { width: auto; max-width: 100%; }
    .sell-machine-section { padding: 36px 0 56px; }
    .sell-machine-title { font-size: 24px; }
    .sell-machine-form-card { padding: 28px 20px; }
    .sell-form-section .form-group { margin-bottom: 16px; }
}

@media (max-width: 576px) {
    .page-header { padding-top: 22px; padding-bottom: 22px; }
    .about-section { padding: 36px 0; }
    .about-intro .about-title { font-size: 22px; }
    .about-capability-item { padding: 20px 18px; }
    .product-detail-section .product-detail-price { font-size: 22px; }
    .case-study-hero { max-height: 42vh; }
    .case-study-hero img { max-height: 42vh; }
    .case-gallery-grid { grid-template-columns: 1fr; }
    .case-gallery-item img { height: 200px; }
    .contact-info-block { padding: 28px 18px; border-radius: 10px; }
    .services-process { padding: 44px 0; }
    .process-step { padding: 16px 10px; }
    .products .figure-block { margin-bottom: 22px; }
    .products .text .title { font-size: 17px; line-height: 1.35; }
}

/* ========== Mobile premium readability — gutters, prose width, forms (phones/tablet only) ==========
   Does not affect desktop: all rules are inside max-width media queries. */

@media (max-width: 991px) {
    /* Slightly wider horizontal padding than default Bootstrap container on main content */
    .about-section .container,
    .services-intro .container,
    .services-group .container,
    .cases-of-success-section .container,
    section.contact .container,
    .sell-machine-section .container,
    .product-detail-section .container,
    .case-study-article .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .about-intro .about-lead,
    .about-content-block .about-block-text {
        max-width: 40rem;
        margin-left: auto;
        margin-right: auto;
    }

    .services-lead {
        max-width: 38rem;
        margin-left: auto;
        margin-right: auto;
    }

    .services-group-title {
        margin-left: 0;
        margin-right: 0;
        padding-left: 2px;
        padding-right: 2px;
    }

    .cases-of-success-intro,
    .cases-page-intro {
        max-width: 40rem;
        margin-left: auto;
        margin-right: auto;
    }

    .success-cases-grid {
        padding-left: 2px;
        padding-right: 2px;
    }

    .case-study-inner {
        max-width: min(100%, 40rem);
        margin-left: auto;
        margin-right: auto;
    }

    .banner .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .about-capabilities-grid {
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .about-section .container,
    .services-intro .container,
    .services-group .container,
    .cases-of-success-section .container,
    section.contact .container,
    .sell-machine-section .container,
    .product-detail-section .container,
    .case-study-article .container,
    .banner .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .about-intro {
        padding-left: 0;
        padding-right: 0;
    }

    .about-intro .about-title {
        margin-bottom: 18px;
    }

    .about-leadership-section .about-leadership {
        padding-left: 4px;
        padding-right: 4px;
    }

    .about-leadership-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .about-capabilities-section header .title {
        line-height: 1.3;
        padding: 0 4px;
    }

    .about-capabilities-intro {
        max-width: 36rem;
        margin-left: auto;
        margin-right: auto;
    }

    .about-capability-item {
        padding: 22px 20px;
        border-radius: 10px;
    }

    .services-intro {
        padding-top: 28px;
        padding-bottom: 12px;
    }

    .services-lead {
        font-size: 16px;
        line-height: 1.75;
    }

    .services-group {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .service-card {
        padding: 22px 20px;
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .cases-of-success-section {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .cases-of-success-intro {
        padding-left: 4px;
        padding-right: 4px;
    }

    .success-case-card {
        border-radius: 10px;
        margin-left: 2px;
        margin-right: 2px;
    }

    .success-case-card-body {
        padding: 20px 18px 22px;
    }

    .cases-cta-band {
        margin-left: 8px;
        margin-right: 8px;
        padding: 32px 22px;
    }

    /* Contact: card-style form + calmer field layout */
    section.contact {
        padding-bottom: 8px;
    }

    section.contact .contact-info-block {
        border-radius: 12px;
        padding: 24px 22px;
        margin-bottom: 20px;
        border: 1px solid #e8e8e8;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    }

    section.contact .contact-info-block h3 {
        margin-top: 0;
        margin-bottom: 12px;
        font-size: 20px;
    }

    section.contact .contact-info-block > p:first-of-type {
        margin-bottom: 20px;
        line-height: 1.65;
        color: #555;
    }

    section.contact .contact-detail {
        margin-bottom: 18px;
    }

    section.contact .contact-form-block {
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 12px;
        padding: 24px 20px 28px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    section.contact .contact-form-block h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 20px;
        line-height: 1.3;
    }

    section.contact .contact-form-block > p {
        margin-bottom: 20px;
        line-height: 1.65;
        color: #555;
        max-width: 36rem;
    }

    section.contact .contact-form .form-group {
        margin-bottom: 20px;
    }

    section.contact .contact-form .form-group label {
        margin-bottom: 8px;
        font-size: 14px;
    }

    section.contact .contact-form .form-control {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 8px;
        border-color: #d8d8d8;
    }

    section.contact .contact-form textarea.form-control {
        min-height: 140px;
        line-height: 1.55;
    }

    section.contact .contact-form .btn-finnic-primary {
        margin-top: 8px;
        width: 100%;
        max-width: 100%;
    }

    /* Case single: editorial width + section breathing room */
    .case-study-intro,
    .case-section-body {
        max-width: 38rem;
    }

    .case-study-section {
        margin-bottom: 32px;
    }

    .case-section-emphasis,
    .case-section-result {
        padding: 22px 20px;
        border-radius: 10px;
    }

    .case-before-after .case-compare-grid {
        gap: 16px;
    }

    .case-compare-item img {
        border-radius: 8px;
    }

    /* Sell machine + product: same gutter discipline */
    .sell-machine-hero {
        padding-left: 4px;
        padding-right: 4px;
    }

    .sell-machine-benefits-card {
        border-radius: 10px;
        padding: 24px 20px;
    }

    .sell-machine-form-card {
        border-radius: 12px;
        padding: 26px 20px 30px;
    }

    .product-detail-info {
        padding-top: 8px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .product-detail-lead {
        max-width: 38rem;
        line-height: 1.7;
    }

    .product-detail-meta {
        padding-top: 4px;
    }

    .product-detail-block .product-description-text {
        max-width: 40rem;
    }

    .banner .text p {
        max-width: 36rem;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.7;
    }

    .about-cta {
        padding-top: 8px;
    }
}

@media (max-width: 576px) {
    .about-section .container,
    .services-intro .container,
    .services-group .container,
    .cases-of-success-section .container,
    section.contact .container,
    .sell-machine-section .container,
    .product-detail-section .container,
    .case-study-article .container,
    .banner .container {
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
    }

    .case-study-title {
        font-size: 22px;
    }

    .services-group-title {
        font-size: 16px;
        padding-bottom: 8px;
        margin-bottom: 18px;
    }

    .cases-cta-band {
        margin-left: 4px;
        margin-right: 4px;
        padding: 28px 18px;
    }

    section.contact .contact-form-block,
    section.contact .contact-info-block {
        padding-left: 18px;
        padding-right: 18px;
    }
}
