/* ============================================================================

Theme Name: Cuticle Master Industries
Theme URI: www.dynamicxperts.com
Description: Premium WordPress theme for Cuticle Master Industries.
Version: 4.3
Author: Saad ali Tariq
Author URI: mailto:dynamicexperts@gmail.com

============================================================================= */

/* ========================================================================== 
   Primary navigation: Bootstrap desktop dropdowns + native mobile submenus
   ========================================================================== */

.desktop-primary-navigation {
    min-width: 0;
}

.desktop-primary-navigation .dropdown-menu {
    min-width: 230px;
    margin: 0;
    padding: 8px 0;
    border: 1px solid #e7e7e7;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

.desktop-primary-navigation .dropdown-item-wrap {
    position: relative;
}

.desktop-primary-navigation .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 18px;
    color: #111;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: normal;
}

.desktop-primary-navigation .dropdown-item:hover,
.desktop-primary-navigation .dropdown-item:focus,
.desktop-primary-navigation .dropdown-item.active,
.desktop-primary-navigation .dropdown-item-wrap.active > .dropdown-item {
    color: #000;
    background: #f2f2f2;
}

.desktop-primary-navigation .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after {
    position: static;
    width: 0;
    height: 0;
    margin-left: 0.4rem;
    vertical-align: 0.18em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    background: transparent;
    transform: none;
}

.desktop-primary-navigation .dropdown-submenu > .dropdown-toggle::after {
    margin-left: auto;
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

.desktop-primary-navigation .dropdown-submenu-menu {
    top: -9px;
    left: 100%;
}

.mobile-nav-list,
.mobile-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu-details > summary {
    list-style: none;
}

.mobile-menu-details > summary::-webkit-details-marker {
    display: none;
}

.mobile-menu-summary {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.mobile-menu-arrow {
    flex: 0 0 auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.mobile-menu-details[open] > .mobile-menu-summary .mobile-menu-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    padding: 2px 0 7px 16px;
    border-left: 1px solid #e5e5e5;
}

.mobile-submenu .dropdown-item {
    padding: 0.6rem 0.75rem;
    color: #222;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: normal;
}

.mobile-submenu-depth-2 {
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .desktop-primary-navigation .dropdown:hover > .dropdown-menu,
    .desktop-primary-navigation .dropdown:focus-within > .dropdown-menu,
    .desktop-primary-navigation .dropdown-submenu:hover > .dropdown-menu,
    .desktop-primary-navigation .dropdown-submenu:focus-within > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 1199.98px) {
    #mainNav {
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-primary-navigation {
        padding: 0 2px;
    }

    .mobile-nav-list > .mobile-menu-item {
        border-bottom: 1px solid #ededed;
    }

    .mobile-nav-list > .mobile-menu-item > .nav-link,
    .mobile-nav-list > .mobile-menu-item > .mobile-menu-details > .nav-link {
        padding: 0.72rem 0 !important;
        color: #111;
        font-weight: 600;
    }

    .mobile-nav-list .active {
        color: #000;
        font-weight: 700;
    }

    .mobile-primary-navigation .header-quote {
        margin: 16px 0 2px !important;
    }
}

/* ========================================================================== 
   Product category and single product pages
   All selectors are page/component scoped to protect the final homepage.
   ========================================================================== */

.tci-inner-hero {
    padding: 72px 0 64px;
    border-bottom: 1px solid #dedede;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 72%);
}

.tci-inner-hero .display-4 {
    max-width: 920px;
}

.tci-inner-hero-copy {
    max-width: 760px;
}

.tci-inner-hero-copy > :last-child {
    margin-bottom: 0;
}

.tci-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: #6d6d6d;
    font-size: 0.78rem;
    font-weight: 600;
}

.tci-breadcrumb a:hover,
.tci-breadcrumb a:focus-visible {
    color: #000;
    text-decoration: underline;
}

.tci-breadcrumb i {
    font-size: 0.62rem;
}

/* Three-level product category tree. */
.tci-category-panel {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    border: 1px solid #d8d8d8;
    background: #fff;
}

.tci-category-heading,
.tci-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 20px 22px;
    border: 0;
    color: #111;
    background: #fff;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.tci-category-heading {
    cursor: default;
}

.tci-category-toggle {
    cursor: pointer;
}

.tci-category-toggle i {
    transition: transform 0.2s ease;
}

.tci-category-toggle[aria-expanded="true"] i {
    transform: rotate(45deg);
}

.tci-category-content {
    border-top: 1px solid #d8d8d8;
}

.tci-category-tree,
.tci-category-tree .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Keep child levels closed until their parent category branch is active. */
.tci-category-tree .children {
    display: none;
}

.tci-category-tree .current-cat > .children,
.tci-category-tree .current-cat-parent > .children,
.tci-category-tree .current-cat-ancestor > .children {
    display: block;
}

.tci-category-tree {
    padding: 10px 0;
}

.tci-category-tree li {
    position: relative;
}

.tci-category-tree a {
    display: block;
    padding: 9px 22px;
    color: #4f4f4f;
    font-size: 0.88rem;
    line-height: 1.45;
    transition: color 0.2s ease, background 0.2s ease;
}

.tci-category-tree > li > a {
    color: #111;
    font-weight: 700;
}

.tci-category-tree .children a {
    padding-left: 38px;
}

.tci-category-tree .children .children a {
    padding-left: 56px;
    font-size: 0.82rem;
}

.tci-category-tree a:hover,
.tci-category-tree a:focus-visible,
.tci-category-tree .current-cat > a,
.tci-category-tree .current-cat-ancestor > a {
    color: #000;
    background: #f2f2f2;
}

.tci-category-tree .current-cat > a::before {
    position: absolute;
    left: 0;
    width: 3px;
    height: 1.35em;
    background: #000;
    content: "";
}

.tci-catalog-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dedede;
    color: #686868;
    font-size: 0.84rem;
    font-weight: 600;
}

/* Shared product cards used by category and related-products grids. */
.tci-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dedede;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tci-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.07);
}

.tci-product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.tci-product-card-image .tci-product-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.tci-product-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.tci-product-placeholder {
    display: grid;
    min-height: 260px;
    place-items: center;
    color: #aaa;
    background: #f0f0f0;
    font-size: 2.5rem;
}

.tci-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.tci-product-card-title {
    margin: 8px 0 10px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.tci-product-card-title a:hover,
.tci-product-card-title a:focus-visible {
    text-decoration: underline;
}

.tci-product-card-body p {
    margin-bottom: 22px;
    color: #666;
    font-size: 0.84rem;
    line-height: 1.65;
}

.tci-product-card-body .text-link {
    width: max-content;
    font-size: 0.8rem;
}

/* WordPress pagination output. */
.tci-pagination {
    margin-top: 52px;
}

.tci-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.tci-pagination .page-numbers {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.tci-pagination .page-numbers:hover,
.tci-pagination .page-numbers:focus-visible,
.tci-pagination .page-numbers.current {
    border-color: #000;
    color: #fff;
    background: #000;
}

.tci-empty-state {
    padding: 72px 24px;
    border: 1px solid #dedede;
    text-align: center;
}

.tci-empty-state i {
    font-size: 2.5rem;
}

.tci-empty-state h2 {
    margin: 18px 0 8px;
    font-size: 1.5rem;
}

/* Product gallery and summary. */
.tci-product-main {
    padding-top: 60px;
}

.tci-gallery-main {
    display: grid;
    overflow: hidden;
    min-height: 0;
    padding: 20px;
    border: 1px solid #d8d8d8;
    background: #fff;
    place-items: center;
}

.tci-gallery-main img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.tci-gallery-main .tci-product-placeholder {
    width: 100%;
    height: 100%;
}

.tci-gallery-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 14px 0 4px;
    scrollbar-width: thin;
}

.tci-gallery-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #cfcfcf;
    background: #fff;
    opacity: 0.58;
    cursor: pointer;
}

.tci-gallery-thumb:hover,
.tci-gallery-thumb:focus-visible,
.tci-gallery-thumb.is-active {
    border-color: #000;
    opacity: 1;
}

.tci-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tci-product-summary {
    position: sticky;
    top: calc(var(--header-h) + 28px);
}

.tci-product-summary .display-4 {
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 4.2vw, 4.25rem);
}

.tci-art-number {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 26px;
    padding: 7px 12px;
    border: 1px solid #d7d7d7;
    color: #222;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tci-art-number span {
    color: #777;
}

.tci-product-intro {
    max-width: 690px;
    font-size: 1.02rem;
}

.tci-product-intro > :last-child {
    margin-bottom: 0;
}

.tci-product-meta-list {
    margin-top: 30px;
    border-top: 1px solid #d6d6d6;
}

.tci-product-meta-list > div {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tci-product-meta-list span {
    color: #777;
    font-size: 0.78rem;
    font-weight: 600;
}

.tci-product-meta-list strong {
    color: #222;
    font-size: 0.86rem;
    font-weight: 600;
}

.tci-product-options,
.tci-inquiry-box {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #d6d6d6;
}

.tci-product-options h2 {
    margin-bottom: 18px;
    font-size: 1rem;
}

.tci-product-options label,
.tci-inquiry-box > label {
    display: block;
    margin-bottom: 7px;
    color: #444;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tci-inquiry-actions {
    display: grid;
    grid-template-columns: 108px minmax(180px, 1fr) minmax(160px, 1fr);
    gap: 10px;
}

.tci-inquiry-actions .btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.tci-whatsapp-button {
    border-color: #25d366;
    color: #fff;
    background: #25d366;
}

.tci-whatsapp-button:hover,
.tci-whatsapp-button:focus-visible {
    border-color: #1eae54;
    color: #fff;
    background: #1eae54;
}

.tci-inquiry-note {
    margin-top: 12px;
    color: #777;
    font-size: 0.78rem;
}

/* Product description/specification tabs. */
.tci-product-information {
    padding: 80px 0;
}

.tci-product-tabs {
    gap: 32px;
    border-bottom: 1px solid #ccc;
}

.tci-product-tabs .nav-link {
    padding: 0 0 15px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #777;
    background: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.tci-product-tabs .nav-link:hover,
.tci-product-tabs .nav-link:focus-visible,
.tci-product-tabs .nav-link.active {
    border-bottom-color: #000;
    color: #000;
}

.tci-tab-content {
    max-width: 980px;
    padding-top: 34px;
}

.tci-tab-content h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.tci-entry-content > :last-child {
    margin-bottom: 0;
}

.tci-entry-content img,
.tci-article-image img {
    width: 100%;
    height: auto;
}

.tci-specification-table {
    margin-bottom: 0;
    border-color: #d4d4d4;
}

.tci-specification-table th,
.tci-specification-table td {
    padding: 14px 16px;
    vertical-align: top;
}

.tci-specification-table th {
    width: 32%;
    font-size: 0.84rem;
}

.tci-specification-table td {
    color: #555;
    font-size: 0.88rem;
}

.tci-related-products {
    background: #fff;
}

/* Default page content. */
.tci-page-content {
    max-width: 980px;
}

.tci-page-content h2,
.tci-page-content h3,
.tci-page-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.7em;
}

.tci-page-content > :first-child {
    margin-top: 0;
}

.tci-page-content > :last-child {
    margin-bottom: 0;
}

.tci-page-content ul,
.tci-page-content ol {
    padding-left: 1.25rem;
}

.tci-page-content a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tci-page-links {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

/* Contact page: ACF company details + editor/Contact Form 7 content. */
.tci-contact-details {
    border-top: 1px solid #d5d5d5;
}

.tci-contact-details > div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #dedede;
    color: #333;
}

.tci-contact-details i {
    margin-top: 2px;
    font-size: 1.1rem;
}

.tci-contact-details span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tci-contact-details small {
    display: block;
    margin-bottom: 3px;
    color: #858585;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tci-contact-details a:hover,
.tci-contact-details a:focus-visible {
    text-decoration: underline;
}

.tci-contact-form {
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid #d8d8d8;
    background: #fafafa;
}

.tci-contact-form > h2 {
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.tci-contact-form-content {
    margin-top: 28px;
}

.tci-contact-form-content label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tci-contact-form-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.tci-contact-form-content select,
.tci-contact-form-content textarea {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
}

.tci-contact-form-content textarea {
    min-height: 150px;
}

.tci-contact-form-content input[type="submit"] {
    padding: 0.78rem 1.25rem;
    border: 1px solid #000;
    border-radius: 0;
    color: #fff;
    background: #000;
    font-weight: 600;
}

.tci-contact-form-content .wpcf7-spinner {
    vertical-align: middle;
}

@media (max-width: 1199.98px) {
    .tci-inquiry-actions {
        grid-template-columns: 92px 1fr;
    }

    .tci-inquiry-actions .tci-email-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .tci-inner-hero {
        padding: 58px 0 50px;
    }

    .tci-category-panel,
    .tci-product-summary {
        position: static;
    }

    .tci-category-panel {
        margin-bottom: 4px;
    }

    .tci-gallery-main {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .tci-inner-hero {
        padding: 46px 0 40px;
    }

    .tci-breadcrumb {
        margin-bottom: 20px;
    }

    .tci-catalog-content,
    .tci-product-main {
        padding-top: 48px;
        padding-bottom: 58px;
    }

    .tci-product-card-body {
        padding: 17px;
    }

    .tci-product-card-body p {
        display: none;
    }

    .tci-product-card-title {
        font-size: 0.92rem;
    }

    .tci-product-card-body .text-link {
        margin-top: 8px !important;
        font-size: 0.7rem;
    }

    .tci-pagination .prev span,
    .tci-pagination .next span {
        display: none;
    }

    .tci-gallery-thumb {
        flex-basis: 70px;
        width: 70px;
        height: 70px;
    }

    .tci-product-summary .display-4 {
        font-size: 2.2rem;
    }

    .tci-inquiry-actions {
        grid-template-columns: 82px 1fr;
    }

    .tci-inquiry-actions .tci-email-button {
        grid-column: 1 / -1;
    }

    .tci-product-information {
        padding: 60px 0;
    }

    .tci-product-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 22px;
    }

    .tci-product-tabs .nav-link {
        white-space: nowrap;
    }

    .tci-specification-table th {
        width: 42%;
    }
}

/* ========================================================================== 
   Production tour slider and animated statistics
   ========================================================================== */

.cmi-stats strong {
    font-variant-numeric: tabular-nums;
}

.cmi-production-tour {
    overflow: hidden;
    background: #f4f4f3;
}

.cmi-tour-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: end;
    gap: clamp(45px, 7vw, 110px);
    margin-bottom: 48px;
}

.cmi-tour-heading .eyebrow {
    color: var(--gold-dark);
}

.cmi-tour-heading h2 {
    margin: 8px 0 0;
    color: var(--black);
    font-size: clamp(2.65rem, 4.6vw, 5.2rem);
    line-height: 1.02;
}

.cmi-tour-heading-side > p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.75;
}

.cmi-tour-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cmi-tour-count {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 90px;
    margin-right: auto;
}

.cmi-tour-count strong {
    color: var(--gold-dark);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.25rem;
    line-height: 1;
}

.cmi-tour-count span {
    color: #8b8b86;
    font-size: 0.72rem;
    font-weight: 700;
}

.cmi-tour-control {
    display: inline-grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #d3d3cf;
    color: var(--black);
    background: #fff;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    place-items: center;
}

.cmi-tour-control:hover,
.cmi-tour-control:focus-visible {
    border-color: var(--gold);
    color: var(--black);
    background: var(--gold);
    transform: translateY(-2px);
}

.cmi-tour-slider {
    outline: none;
}

.cmi-tour-slider:focus-visible .cmi-tour-viewport {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.cmi-tour-viewport {
    overflow: visible;
}

.cmi-tour-track {
    display: flex;
    gap: 18px;
    transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.cmi-tour-slide {
    flex: 0 0 min(920px, 70vw);
    opacity: 0.52;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cmi-tour-slide.is-active {
    opacity: 1;
}

.cmi-tour-slide figure {
    position: relative;
    aspect-ratio: 3 / 2;
    margin: 0;
    overflow: hidden;
    background: #151515;
    box-shadow: 0 24px 65px rgba(17, 17, 17, 0.14);
}

.cmi-tour-slide figure::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.18) 52%, transparent 76%);
    content: "";
}

.cmi-tour-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.cmi-tour-slide.is-active img {
    transform: scale(1.025);
}

.cmi-tour-slide figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: clamp(24px, 4vw, 46px);
    color: #fff;
}

.cmi-tour-slide figcaption > span {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cmi-tour-slide h3 {
    margin: 8px 0 7px;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.8rem);
}

.cmi-tour-slide p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.7;
}

.cmi-tour-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.cmi-tour-dots button {
    width: 30px;
    height: 3px;
    padding: 0;
    border: 0;
    background: #c9c9c5;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.cmi-tour-dots button.is-active {
    width: 58px;
    background: var(--gold-dark);
}

@media (max-width: 991.98px) {
    .cmi-tour-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
    }

    .cmi-tour-heading-side {
        max-width: 720px;
    }

    .cmi-tour-slide {
        flex-basis: 82vw;
    }
}

@media (max-width: 575.98px) {
    .cmi-tour-heading h2 {
        font-size: clamp(2.3rem, 11vw, 3.35rem);
    }

    .cmi-tour-navigation {
        justify-content: flex-start;
    }

    .cmi-tour-slide {
        flex-basis: calc(100vw - 30px);
    }

    .cmi-tour-slide figcaption {
        padding: 22px;
    }

    .cmi-tour-slide p {
        display: none;
    }

    .cmi-tour-dots button {
        flex: 1 1 auto;
        width: auto;
    }

    .cmi-tour-dots button.is-active {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmi-tour-track,
    .cmi-tour-slide,
    .cmi-tour-slide img {
        transition: none;
    }
}

/* ========================================================================== 
   Lightened homepage palette — retain black for hero, imagery and footer
   ========================================================================== */

.cmi-categories,
.cmi-quality {
    background: #f4f4f3;
}

.cmi-about::before {
    background: #e9e9e7;
}

.cmi-featured {
    color: var(--black);
    background: #eef0f1;
}

.cmi-featured::before {
    border-color: rgba(159, 123, 45, 0.2);
}

.cmi-featured-heading h2,
.cmi-featured .product-title,
.cmi-featured .product-title a {
    color: var(--black);
}

.cmi-featured-heading .cmi-section-number,
.cmi-featured-heading .eyebrow,
.cmi-featured-heading-side a {
    color: var(--gold-dark);
}

.cmi-featured-heading-side p,
.cmi-featured .product-card-body p {
    color: #686868;
}

.cmi-featured .product-card {
    border-color: #d9d9d6;
    background: #fff;
    box-shadow: 0 16px 38px rgba(18, 18, 18, 0.06);
}

.cmi-featured .product-card:hover {
    border-color: var(--gold);
    box-shadow: 0 24px 55px rgba(18, 18, 18, 0.12);
}

.cmi-featured .cmi-product-meta > a {
    border-color: #d9d9d6;
    color: var(--gold-dark);
}

.cmi-featured .cmi-product-inquiry {
    border-top-color: #e2e2df;
    color: var(--black);
}

.cmi-featured .slider-nav {
    border-color: #d5d5d2;
    color: var(--black);
    background: #fff;
}

.cmi-featured .slider-dot {
    background: #c9c9c5;
}

.cmi-featured .slider-dot.active {
    background: var(--gold-dark);
}

.cmi-oem {
    color: var(--black);
    background: #fff;
}

.cmi-oem::before {
    border-color: rgba(159, 123, 45, 0.22);
}

.cmi-oem::after {
    background: rgba(159, 123, 45, 0.18);
}

.cmi-oem-index small,
.cmi-oem-copy p {
    color: var(--muted);
}

.cmi-oem-copy .eyebrow,
.cmi-oem-index span {
    color: var(--gold-dark);
}

.cmi-oem-copy h2,
.cmi-oem .cmi-arrow-link {
    color: var(--black);
}

.cmi-advantages {
    background: #f1f2f3;
}

.cmi-stats {
    border: 1px solid #d8d8d5;
    background: #fff;
    box-shadow: 0 18px 45px rgba(18, 18, 18, 0.06);
}

.cmi-stats > div {
    border-color: #dededb;
}

.cmi-stats span {
    color: #666;
}

.cmi-testimonials {
    color: var(--black);
    background: #f4f5f5;
}

.cmi-testimonials-heading h2 {
    color: var(--black);
}

.cmi-testimonials-heading .cmi-section-number,
.cmi-testimonials-heading .eyebrow {
    color: var(--gold-dark);
}

.cmi-testimonials-heading p {
    color: var(--muted);
}

.cmi-testimonial-stack {
    display: grid;
    gap: 14px;
    border-top: 0;
}

.cmi-testimonial-stack blockquote {
    padding: 32px;
    border: 1px solid #dededb;
    background: #fff;
    box-shadow: 0 14px 36px rgba(18, 18, 18, 0.05);
}

.cmi-testimonial-stack blockquote > p,
.cmi-testimonial-stack footer strong {
    color: #242424;
}

.cmi-testimonial-stack footer span {
    color: #777;
}

.cmi-testimonial-stack .stars {
    top: 32px;
    right: 32px;
    color: var(--gold-dark);
}

.cmi-certifications {
    border-color: #d8d8d5;
    background: #fff;
}

.cmi-cert-title {
    border-color: #d8d8d5;
    background: #eceeed;
}

.cmi-cert-title span {
    color: var(--gold-dark);
}

.cmi-cert-title strong {
    color: var(--black);
}

.cmi-cert-grid > div {
    border-color: #e1e1de;
}

@media (max-width: 767.98px) {
    .cmi-testimonial-stack blockquote {
        padding: 26px 22px;
    }

    .cmi-testimonial-stack .stars {
        top: 27px;
        right: 22px;
    }
}

/* ========================================================================== 
   Single Blog page
   Scoped selectors keep these styles isolated from the final home page.
   ========================================================================== */

.tci-blog-hero .display-4 {
    max-width: 1040px;
}

.tci-blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #6f6f6f;
    font-size: 0.78rem;
    font-weight: 600;
}

.tci-blog-categories {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tci-blog-categories a {
    color: #222;
}

.tci-blog-categories a:hover,
.tci-blog-categories a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tci-blog-featured-image {
    max-width: 1120px;
    margin: 0 auto clamp(40px, 6vw, 72px);
}

.tci-blog-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.tci-blog-featured-image figcaption {
    margin-top: 10px;
    color: #777;
    font-size: 0.75rem;
    text-align: center;
}

.tci-blog-content,
.tci-blog-tags,
.tci-blog-post-nav {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
}

.tci-blog-content {
    color: #3f3f3f;
    font-size: 1.02rem;
    line-height: 1.85;
}

.tci-blog-content > :first-child {
    margin-top: 0;
}

.tci-blog-content > :last-child {
    margin-bottom: 0;
}

.tci-blog-content h2,
.tci-blog-content h3,
.tci-blog-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    color: #111;
}

.tci-blog-content h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.tci-blog-content h3 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.tci-blog-content p,
.tci-blog-content ul,
.tci-blog-content ol,
.tci-blog-content blockquote {
    margin-bottom: 1.35em;
}

.tci-blog-content ul,
.tci-blog-content ol {
    padding-left: 1.35rem;
}

.tci-blog-content li + li {
    margin-top: 0.4rem;
}

.tci-blog-content a:not(.btn) {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tci-blog-content img,
.tci-blog-content video,
.tci-blog-content iframe {
    max-width: 100%;
}

.tci-blog-content img {
    height: auto;
}

.tci-blog-content blockquote {
    padding: 5px 0 5px 28px;
    border-left: 3px solid #000;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.55;
}

.tci-blog-content .alignwide {
    width: min(1040px, calc(100vw - 48px));
    max-width: none;
    margin-right: 50%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.tci-blog-content .aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.tci-blog-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid #dedede;
}

.tci-blog-tags > span {
    margin-right: 4px;
    color: #111;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tci-blog-tags a {
    padding: 7px 11px;
    border: 1px solid #d7d7d7;
    color: #444;
    font-size: 0.72rem;
    font-weight: 600;
}

.tci-blog-tags a:hover,
.tci-blog-tags a:focus-visible {
    border-color: #000;
    color: #fff;
    background: #000;
}

.tci-blog-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 52px;
    border-top: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
}

.tci-blog-post-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 24px 0;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
}

.tci-blog-post-nav-link + .tci-blog-post-nav-link {
    padding-left: 24px;
    border-left: 1px solid #d8d8d8;
}

.tci-blog-post-nav-link i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.tci-blog-post-nav-link span {
    display: block;
    min-width: 0;
}

.tci-blog-post-nav-link small {
    display: block;
    margin-bottom: 5px;
    color: #888;
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tci-blog-post-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.tci-blog-post-nav-link:hover,
.tci-blog-post-nav-link:focus-visible {
    color: #666;
}

.tci-related-blogs .blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.tci-related-blogs .blog-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.tci-related-blogs .blog-body .text-link {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .tci-blog-content {
        font-size: 0.97rem;
        line-height: 1.75;
    }

    .tci-blog-content .alignwide {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        transform: none;
    }

    .tci-blog-post-nav {
        grid-template-columns: 1fr;
    }

    .tci-blog-post-nav-link + .tci-blog-post-nav-link {
        padding-left: 0;
        border-top: 1px solid #d8d8d8;
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .tci-blog-meta {
        gap: 7px;
    }

    .tci-blog-featured-image {
        margin-bottom: 34px;
    }

    .tci-blog-content blockquote {
        padding-left: 18px;
    }
}

/* ========================================================================== 
   Cuticle Master Industries — premium black / white / gold system
   ========================================================================== */

.desktop-primary-navigation .dropdown-menu {
    padding: 10px 0;
    border-color: var(--border);
    box-shadow: 0 22px 52px rgba(16, 13, 7, 0.13);
}

.desktop-primary-navigation .dropdown-item {
    color: var(--ink);
    font-family: "Manrope", sans-serif;
}

.desktop-primary-navigation .dropdown-item:hover,
.desktop-primary-navigation .dropdown-item:focus,
.desktop-primary-navigation .dropdown-item.active,
.desktop-primary-navigation .dropdown-item-wrap.active > .dropdown-item {
    color: var(--black);
    background: var(--gold-soft);
}

.mobile-submenu {
    border-left-color: var(--gold);
}

.mobile-submenu .dropdown-item,
.mobile-menu-summary {
    font-family: "Manrope", sans-serif;
}

.mobile-nav-list .active,
.mobile-submenu .dropdown-item:hover,
.mobile-submenu .dropdown-item:focus-visible {
    color: var(--gold-dark);
}

.tci-inner-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 0;
    background: linear-gradient(125deg, #090909 0%, #191711 100%);
}

.tci-inner-hero::after {
    position: absolute;
    top: 0;
    right: 8%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    content: "";
}

.tci-inner-hero .display-4,
.tci-inner-hero .display-5,
.tci-inner-hero h1,
.tci-inner-hero h2 {
    color: #fff;
}

.tci-inner-hero-copy,
.tci-inner-hero-copy p,
.tci-inner-hero .lead-muted {
    color: rgba(255, 255, 255, 0.66);
}

.tci-inner-hero .eyebrow {
    color: var(--gold);
}

.tci-breadcrumb {
    color: rgba(255, 255, 255, 0.56);
}

.tci-breadcrumb a:hover,
.tci-breadcrumb a:focus-visible {
    color: var(--gold);
}

.tci-category-panel,
.tci-gallery-main,
.tci-product-card,
.tci-contact-form {
    border-color: var(--border);
}

.tci-category-panel {
    box-shadow: 0 18px 45px rgba(20, 16, 8, 0.06);
}

.tci-category-heading,
.tci-category-toggle,
.tci-product-tabs .nav-link,
.tci-blog-content blockquote,
.tci-blog-post-nav-link,
.tci-blog-post-nav-link small {
    font-family: "Manrope", sans-serif;
}

.tci-category-heading,
.tci-category-toggle {
    color: #fff;
    background: var(--black);
}

.tci-category-heading i,
.tci-category-toggle i {
    color: var(--gold);
}

.tci-category-content {
    border-top-color: #2b2b2b;
}

.tci-category-tree a:hover,
.tci-category-tree a:focus-visible,
.tci-category-tree .current-cat > a,
.tci-category-tree .current-cat-ancestor > a {
    color: var(--black);
    background: var(--gold-soft);
}

.tci-category-tree .current-cat > a::before {
    background: var(--gold);
}

.tci-product-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tci-product-card:hover {
    border-color: #c8b981;
    box-shadow: 0 25px 58px rgba(19, 15, 7, 0.12);
    transform: translateY(-6px);
}

.tci-product-card-image,
.tci-gallery-main,
.tci-product-placeholder {
    background: var(--light);
}

.tci-product-card-body {
    padding: 25px;
}

.tci-product-card-title a:hover,
.tci-product-card-title a:focus-visible,
.tci-blog-content a:not(.btn),
.tci-blog-categories a:hover,
.tci-blog-categories a:focus-visible {
    color: var(--gold-dark);
}

.tci-pagination .page-numbers {
    border-color: var(--border);
}

.tci-pagination .page-numbers:hover,
.tci-pagination .page-numbers:focus-visible,
.tci-pagination .page-numbers.current {
    border-color: var(--gold);
    color: var(--black);
    background: var(--gold);
}

.tci-gallery-main {
    box-shadow: 0 20px 55px rgba(20, 16, 8, 0.06);
}

.tci-gallery-thumb:hover,
.tci-gallery-thumb:focus-visible,
.tci-gallery-thumb.is-active {
    border-color: var(--gold-dark);
}

.tci-art-number {
    border-color: #d7c58d;
    color: #6e571e;
    background: var(--gold-soft);
}

.tci-product-meta-list,
.tci-product-options,
.tci-inquiry-box,
.tci-product-tabs,
.tci-blog-tags,
.tci-blog-post-nav {
    border-color: var(--border);
}

.tci-product-tabs .nav-link:hover,
.tci-product-tabs .nav-link:focus-visible,
.tci-product-tabs .nav-link.active {
    border-bottom-color: var(--gold);
    color: var(--black);
}

.tci-blog-content blockquote {
    border-left-color: var(--gold);
}

.tci-blog-tags a:hover,
.tci-blog-tags a:focus-visible {
    border-color: var(--gold);
    color: var(--black);
    background: var(--gold);
}

.tci-contact-details i {
    color: var(--gold-dark);
}

.tci-contact-form {
    background: var(--ivory);
    box-shadow: 0 18px 48px rgba(20, 16, 8, 0.06);
}

.tci-contact-form-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.tci-contact-form-content select:focus,
.tci-contact-form-content textarea:focus {
    border-color: var(--gold-dark);
    outline: 0;
    box-shadow: 0 0 0 0.18rem rgba(199, 162, 75, 0.12);
}

.tci-contact-form-content input[type="submit"] {
    border-color: var(--gold);
    color: var(--black);
    background: var(--gold);
}

.tci-contact-form-content input[type="submit"]:hover {
    border-color: var(--gold-dark);
    color: #fff;
    background: var(--gold-dark);
}

@media (max-width: 1199.98px) {
    .mobile-primary-navigation {
        padding-bottom: 4px;
    }

    .mobile-nav-list > .mobile-menu-item {
        border-bottom-color: var(--border);
    }
}

@media (max-width: 575.98px) {
    .tci-product-card-body {
        padding: 18px;
    }

    .tci-inner-hero::after {
        right: 20px;
    }
}

/* ========================================================================== 
   Rebuilt inner-page layouts
   ========================================================================== */

.tci-inner-hero {
    min-height: 370px;
    padding: clamp(78px, 8vw, 125px) 0 clamp(68px, 7vw, 105px);
    background: #090909;
}

.tci-inner-hero::before {
    position: absolute;
    right: 11%;
    bottom: -48px;
    color: rgba(199, 162, 75, 0.07);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(9rem, 19vw, 20rem);
    font-weight: 700;
    line-height: 0.8;
    content: "CMI";
    pointer-events: none;
}

.tci-inner-hero .container-xxl {
    position: relative;
    z-index: 2;
}

.tci-inner-hero .tci-breadcrumb {
    margin-bottom: clamp(40px, 5vw, 70px);
}

.tci-inner-hero .display-4 {
    max-width: 1050px;
    font-size: clamp(3rem, 6vw, 6.8rem);
    line-height: 0.96;
}

.tci-inner-hero-copy {
    max-width: 720px;
    margin-top: 22px;
}

.tci-catalog-content {
    background: #f5f3ee;
}

.tci-catalog-content > .container-xxl > .row {
    --bs-gutter-x: clamp(38px, 5vw, 78px);
}

.tci-category-panel {
    top: calc(var(--header-h) + 32px);
    overflow: hidden;
    border: 0;
    background: #090909;
    box-shadow: 0 28px 65px rgba(16, 13, 8, 0.13);
}

.tci-category-heading,
.tci-category-toggle {
    padding: 25px 25px;
    border-bottom: 1px solid #2f2d27;
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tci-category-content {
    border: 0;
    background: #101010;
}

.tci-category-tree {
    padding: 14px 0 18px;
}

.tci-category-tree a,
.tci-category-tree > li > a {
    padding-top: 11px;
    padding-bottom: 11px;
    color: rgba(255, 255, 255, 0.58);
}

.tci-category-tree > li > a {
    color: rgba(255, 255, 255, 0.82);
}

.tci-category-tree a:hover,
.tci-category-tree a:focus-visible,
.tci-category-tree .current-cat > a,
.tci-category-tree .current-cat-ancestor > a {
    color: #090909;
    background: var(--gold);
}

.tci-category-tree .current-cat > a::before {
    background: #fff;
}

.tci-catalog-toolbar {
    justify-content: flex-start;
    margin-bottom: 30px;
    padding: 0 0 17px;
    border-bottom: 1px solid #d5cfc1;
    color: var(--gold-dark);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tci-product-card {
    border: 0;
    background: #fff;
    box-shadow: 0 15px 38px rgba(17, 14, 8, 0.05);
}

.tci-product-card-image {
    position: relative;
    overflow: hidden;
    background: #ebe8e1;
}

.tci-product-card-image::after {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    content: "";
    transition: border-color 0.25s ease;
}

.tci-product-card:hover .tci-product-card-image::after {
    border-color: rgba(199, 162, 75, 0.55);
}

.tci-product-image {
    width: 100%;
    transition: transform 0.45s ease;
}

.tci-product-card:hover .tci-product-image {
    transform: scale(1.035);
}

.tci-product-card-body {
    min-height: 210px;
    padding: 27px;
}

.tci-product-card .product-code {
    width: max-content;
    padding: 4px 8px;
    color: #6f571d;
    background: var(--gold-soft);
}

.tci-product-card-title {
    margin-top: 14px;
    font-size: 1.05rem;
}

.tci-product-detail-page .tci-product-main {
    background: #f5f3ee;
}

.tci-product-detail-page .tci-product-main .row {
    --bs-gutter-x: clamp(45px, 7vw, 110px);
}

.tci-product-gallery {
    position: relative;
    padding: clamp(20px, 3vw, 38px);
    background: #0a0a0a;
    box-shadow: 0 32px 80px rgba(14, 11, 6, 0.18);
}

.tci-product-gallery::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 3px;
    background: var(--gold);
    content: "";
}

.tci-gallery-main {
    padding: clamp(18px, 3vw, 35px);
    border: 0;
    background: #fff;
    box-shadow: none;
}

.tci-gallery-thumbnails {
    padding-top: 18px;
}

.tci-gallery-thumb {
    border-color: #3b382f;
    background: #fff;
}

.tci-product-summary {
    top: calc(var(--header-h) + 35px);
    padding: clamp(32px, 4vw, 58px);
    border-left: 3px solid var(--gold);
    background: #fff;
    box-shadow: 0 25px 65px rgba(17, 14, 8, 0.07);
}

.tci-product-summary .display-4 {
    font-size: clamp(2.6rem, 4.8vw, 5rem);
    line-height: 1;
}

.tci-product-meta-list > div {
    padding: 14px 0;
    border-bottom-color: var(--border);
}

.tci-product-options,
.tci-inquiry-box {
    margin-top: 28px;
    padding-top: 24px;
}

.tci-inquiry-box {
    padding: 25px;
    border: 1px solid #d8cfb9;
    background: #f8f5ec;
}

.tci-product-information {
    padding: clamp(75px, 9vw, 125px) 0;
    color: #fff;
    background: #090909 !important;
}

.tci-product-tabs {
    border-bottom-color: #343129;
}

.tci-product-tabs .nav-link {
    color: rgba(255, 255, 255, 0.48);
}

.tci-product-tabs .nav-link:hover,
.tci-product-tabs .nav-link:focus-visible,
.tci-product-tabs .nav-link.active {
    border-bottom-color: var(--gold);
    color: #fff;
}

.tci-tab-content,
.tci-tab-content h2,
.tci-entry-content,
.tci-entry-content p {
    color: rgba(255, 255, 255, 0.68);
}

.tci-tab-content h2 {
    color: #fff;
}

.tci-specification-table {
    --bs-table-bg: transparent;
    --bs-table-color: rgba(255, 255, 255, 0.65);
    border-color: #343129;
}

.tci-related-products {
    background: #fff;
}

.tci-contact-page > .section-space {
    background: #f4f2ed;
}

.tci-contact-page > .section-space .row {
    --bs-gutter-x: clamp(45px, 7vw, 110px);
}

.tci-contact-page > .section-space .col-lg-4 {
    padding-top: 35px;
}

.tci-contact-details {
    border-top: 0;
}

.tci-contact-details > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    padding: 20px 0;
    border-bottom-color: #d5cfc1;
}

.tci-contact-details i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d2c394;
    color: var(--gold-dark);
}

.tci-contact-form {
    position: relative;
    padding: clamp(38px, 6vw, 75px);
    overflow: hidden;
    border: 0;
    background: #fff;
    box-shadow: 0 30px 80px rgba(17, 14, 8, 0.11);
}

.tci-contact-form::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 125px;
    height: 4px;
    background: var(--gold);
    content: "";
}

.tci-contact-form > h2 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
}

.tci-contact-form-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.tci-contact-form-content select,
.tci-contact-form-content textarea {
    min-height: 54px;
    border: 0;
    border-bottom: 1px solid #cfc8b9;
    background: #faf9f6;
}

.tci-blog-hero .display-4 {
    max-width: 1200px;
}

.tci-blog-meta {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.5);
}

.tci-blog-categories a {
    color: var(--gold);
}

.tci-blog-article {
    background: #fff;
}

.tci-blog-featured-image {
    position: relative;
    max-width: 1280px;
    margin-top: -150px;
    border: 14px solid #fff;
    box-shadow: 0 30px 75px rgba(18, 15, 8, 0.14);
}

.tci-blog-featured-image img {
    max-height: 720px;
    object-fit: cover;
}

.tci-blog-content {
    max-width: 790px;
    color: #47443e;
    font-size: 1.06rem;
}

.tci-blog-content > p:first-child::first-letter {
    float: left;
    margin: 5px 10px 0 0;
    color: var(--gold-dark);
    font-family: "Cormorant Garamond", serif;
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 0.75;
}

.tci-blog-content h2,
.tci-blog-content h3 {
    color: #111;
}

.tci-blog-post-nav {
    max-width: 1000px;
    margin-top: 70px;
    border-color: #d6d0c4;
}

.tci-related-blogs {
    background: #f4f2ed !important;
}

.tci-default-page .tci-page-content {
    max-width: 920px;
    padding: clamp(36px, 6vw, 75px);
    border-left: 3px solid var(--gold);
    background: #fff;
    box-shadow: 0 24px 65px rgba(17, 14, 8, 0.07);
}

@media (max-width: 991.98px) {
    .tci-inner-hero {
        min-height: 320px;
    }

    .tci-category-panel,
    .tci-product-summary {
        position: static;
    }

    .tci-product-gallery {
        margin-bottom: 12px;
    }

    .tci-contact-page > .section-space .col-lg-4 {
        padding-top: 0;
    }

    .tci-blog-featured-image {
        margin-top: -95px;
    }
}

@media (max-width: 575.98px) {
    .tci-inner-hero {
        min-height: 280px;
        padding: 55px 0 65px;
    }

    .tci-inner-hero .tci-breadcrumb {
        margin-bottom: 32px;
    }

    .tci-inner-hero .display-4 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .tci-product-summary {
        padding: 28px 20px;
    }

    .tci-inquiry-box {
        padding: 19px;
    }

    .tci-blog-featured-image {
        margin-top: -62px;
        border-width: 7px;
    }

    .tci-blog-content {
        font-size: 0.98rem;
    }

    .tci-default-page .tci-page-content {
        padding: 28px 22px;
    }
}

/* ========================================================================== 
   Header spacing and mobile navigation refinements
   ========================================================================== */

body {
    padding-top: var(--header-h) !important;
}

.cmi-categories .cmi-section-intro h2 {
    font-size: clamp(2rem, 3.5vw, 4.1rem);
    line-height: 1;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .cmi-category-mosaic .cmi-category-tile:nth-child(9):last-child {
        grid-column: span 3;
    }

    .cmi-category-mosaic .cmi-category-tile:nth-child(9):nth-last-child(2) {
        grid-column: span 2;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .cmi-category-mosaic .cmi-category-tile:nth-child(9):last-child {
        grid-column: auto;
    }
}

.navbar-toggler {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0 !important;
    line-height: 1;
}

.navbar-toggler-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    margin: 0;
    background-color: #292929;
    background-image: none !important;
    transition: background-color 0.2s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #292929;
    content: "";
    transition: top 0.2s ease, transform 0.2s ease;
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (min-width: 1200px) {
    .cmi-hero-grid {
        min-height: 720px;
    }

    .cmi-hero-copy {
        align-items: flex-start;
        padding-top: 56px;
        padding-bottom: 64px;
    }
}

@media (max-width: 1199.98px) {
    .cmi-main-nav {
        position: relative;
    }

    #mainNav.navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        max-height: calc(100vh - var(--header-h));
        margin: 0 !important;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-top: 1px solid var(--border);
        background: #fff;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
        overscroll-behavior: contain;
    }

    #mainNav .mobile-primary-navigation {
        width: min(calc(100% - 30px), 1170px) !important;
        margin: 0 auto;
        padding: 16px 0 26px;
        background: #fff;
    }
}

@media (max-width: 575.98px) {
    .cmi-categories .cmi-section-intro h2 {
        font-size: clamp(1.65rem, 8vw, 2rem);
        letter-spacing: -0.055em;
    }

    #mainNav .mobile-primary-navigation {
        width: calc(100% - 26px) !important;
    }
}

/* ========================================================================== 
   Compact inner-page hero — 200px maximum across every sub-page template
   ========================================================================== */

.tci-inner-hero {
    display: flex;
    align-items: center;
    width: 100%;
    height: 200px;
    min-height: 0;
    max-height: 200px;
    padding: 20px 0;
    overflow: hidden;
}

.tci-inner-hero .container-xxl {
    width: 100%;
}

.tci-inner-hero .tci-breadcrumb {
    flex-wrap: nowrap;
    min-width: 0;
    margin-bottom: 12px;
    overflow: hidden;
    font-size: 0.72rem;
}

.tci-inner-hero .tci-breadcrumb > * {
    flex: 0 0 auto;
}

.tci-inner-hero .tci-breadcrumb [aria-current="page"] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tci-inner-hero .eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
}

.tci-inner-hero .display-4,
.tci-inner-hero .display-5,
.tci-inner-hero h1,
.tci-inner-hero h2 {
    max-width: 1050px;
    margin-bottom: 0.35rem !important;
    font-size: clamp(2.25rem, 4vw, 3.6rem);
    line-height: 0.98;
}

.tci-inner-hero-copy {
    display: -webkit-box;
    max-width: 760px;
    margin-top: 6px;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tci-inner-hero-copy p {
    margin-bottom: 0;
}

.tci-inner-hero .tci-blog-meta {
    margin-top: 8px;
    font-size: 0.75rem;
}

.tci-inner-hero::before {
    bottom: -32px;
    font-size: clamp(7rem, 14vw, 12rem);
}

@media (max-width: 767.98px) {
    .tci-inner-hero {
        height: 180px;
        max-height: 180px;
        padding: 16px 0;
    }

    .tci-inner-hero .tci-breadcrumb {
        margin-bottom: 10px;
    }

    .tci-inner-hero .eyebrow {
        margin-bottom: 6px;
    }

    .tci-inner-hero .display-4,
    .tci-inner-hero .display-5,
    .tci-inner-hero h1,
    .tci-inner-hero h2 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .tci-inner-hero-copy {
        font-size: 0.8rem;
        line-height: 1.35;
    }
}

@media (max-width: 399.98px) {
    .tci-inner-hero {
        height: 170px;
        max-height: 170px;
        padding: 14px 0;
    }

    .tci-inner-hero .display-4,
    .tci-inner-hero .display-5,
    .tci-inner-hero h1,
    .tci-inner-hero h2 {
        font-size: clamp(1.8rem, 9vw, 2.25rem);
    }
}
