
/* TitanDrill Products Hero Primary Button Hover Border */
.td-btn-primary .wp-block-button__link {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.td-btn-primary .wp-block-button__link:hover,
.td-btn-primary .wp-block-button__link:focus {
    border-color: var(--theme-palette-color-2, #FF5C26) !important;
}

/* ==========================================================================
   TITANDRILL PRODUCTS HUB - PRODUCT FAMILY GRID V1.0
   ========================================================================== */

.td-product-family-section .td-family-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    margin-top: 40px;
}

.td-product-family-section .td-family-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 32px;
    background-color: var(--theme-palette-color-8, #ffffff);
    border: 1px solid var(--theme-palette-color-6, #e5e7eb);
    border-radius: 0;
    box-shadow: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.td-product-family-section .td-family-card:hover {
    border-color: var(--theme-palette-color-1, #F14000);
    box-shadow: 0 12px 20px -8px rgba(31, 35, 39, 0.12);
}

.td-product-family-section .td-family-header {
    margin-bottom: 14px;
}

.td-product-family-section .td-family-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.td-product-family-section .td-family-title a {
    color: var(--theme-palette-color-3, #1F2327);
    text-decoration: none;
}

.td-product-family-section .td-family-card:hover .td-family-title a {
    color: var(--theme-palette-color-1, #F14000);
}

.td-product-family-section .td-family-description {
    margin: 0 0 22px 0;
    color: var(--theme-palette-color-5, #4A4F55);
    font-size: 15px;
    line-height: 1.6;
}

.td-product-family-section .td-family-children {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-product-family-section .td-family-children li {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.45;
}

.td-product-family-section .td-family-children a {
    color: var(--theme-palette-color-4, #2B2F33);
    text-decoration: none;
}

.td-product-family-section .td-family-children a:hover {
    color: var(--theme-palette-color-1, #F14000);
}

.td-product-family-section .td-family-more a {
    font-weight: 700;
    color: var(--theme-palette-color-1, #F14000);
}

/* Tablet */
@media (max-width: 1024px) {
    .td-product-family-section .td-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .td-product-family-section .td-family-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 32px;
    }

    .td-product-family-section .td-family-card {
        padding: 24px;
    }

    .td-product-family-section .td-family-title {
        font-size: 20px;
    }

    .td-product-family-section .td-family-button {
        width: 100%;
    }
}

/* ==========================================================================
   TITANDRILL PRODUCTS HUB - FEATURED CATEGORIES V1.0
   ========================================================================== */

.td-featured-categories-section .td-featured-cat-grid {
    margin-top: 40px;
}

.td-featured-categories-section .td-featured-cat-card {
    height: 100%;
    padding: 32px;

    display: flex;
    flex-direction: column;

    background-color: var(--theme-palette-color-8, #ffffff);
    border: 1px solid var(--theme-palette-color-6, #e5e7eb);
    border-radius: 0;
    box-shadow: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.td-featured-categories-section .td-featured-cat-card:hover {
    border-color: var(--theme-palette-color-1, #F14000);
    box-shadow: 0 12px 20px -8px rgba(31, 35, 39, 0.12);
}

.td-featured-categories-section .td-featured-cat-content {
    flex: 1;
}

.td-featured-categories-section .td-featured-cat-card h3 {
    margin: 0 0 14px 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--theme-palette-color-3, #1F2327);
}

.td-featured-categories-section .td-featured-cat-card p {
    margin: 0 0 24px 0;
    color: var(--theme-palette-color-5, #4A4F55);
    font-size: 15px;
    line-height: 1.6;
}

.td-featured-categories-section .td-featured-cat-card p:last-child {
    margin-bottom: 0;
}

.td-featured-categories-section .td-featured-cat-link {
    margin-top: auto;
}

.td-featured-categories-section .td-featured-cat-link a {
    color: var(--theme-palette-color-1, #F14000);
    font-weight: 700;
    text-decoration: none;
}

.td-featured-categories-section .td-featured-cat-link a:hover {
    color: var(--theme-palette-color-2, #FF5C26);
}

/* Mobile */
@media (max-width: 767px) {
    .td-featured-categories-section .td-featured-cat-grid {
        margin-top: 32px;
    }

    .td-featured-categories-section .td-featured-cat-card {
        padding: 24px;
    }

    .td-featured-categories-section .td-featured-cat-card h3 {
        font-size: 20px;
    }
}

/* Featured Products left-side text link */
.td-featured-products-section .td-featured-products-link {
    margin-top: 28px;
    margin-bottom: 0;
}

.td-featured-products-section .td-featured-products-link a {
    color: var(--theme-palette-color-1, #F14000);
    font-weight: 700;
    text-decoration: none;
}

.td-featured-products-section .td-featured-products-link a:hover,
.td-featured-products-section .td-featured-products-link a:focus {
    color: var(--theme-palette-color-2, #FF5C26);
    text-decoration: none;
}


/* ==========================================================================
   TITANDRILL PRODUCTS HUB - FEATURED PRODUCT CATALOG CARDS V1.0
   ========================================================================== */

/* Right-side product grid */
.td-featured-products-section .td-featured-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Product card shell */
.td-featured-products-section .td-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--theme-palette-color-8, #ffffff);
    border: 1px solid var(--theme-palette-color-6, #e5e7eb);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.td-featured-products-section .td-product-card:hover {
    border-color: var(--theme-palette-color-1, #F14000);
    box-shadow: 0 12px 20px -8px rgba(31, 35, 39, 0.12);
}

/* Image area - aligned with Featured Categories card style */
.td-featured-products-section .td-product-card > figure,
.td-featured-products-section .td-product-card > .wp-block-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.td-featured-products-section .td-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

/* Content area */
.td-featured-products-section .td-product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

/* Model */
.td-featured-products-section .td-product-model {
    margin: 0 0 10px 0;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-palette-color-5, #4A4F55);
}

/* Product title */
.td-featured-products-section .td-product-title {
    margin: 0 0 12px 0;
    font-size: 21px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--theme-palette-color-3, #1F2327);
}

/* Description */
.td-featured-products-section .td-product-desc {
    margin: 0 0 22px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--theme-palette-color-5, #4A4F55);
}

/* Link stays at bottom */
.td-featured-products-section .td-product-link {
    margin-top: auto;
    margin-bottom: 0;
}

.td-featured-products-section .td-product-link a {
    color: var(--theme-palette-color-1, #F14000);
    font-weight: 700;
    text-decoration: none;
}

.td-featured-products-section .td-product-link a:hover,
.td-featured-products-section .td-product-link a:focus {
    color: var(--theme-palette-color-2, #FF5C26);
    text-decoration: none;
}

/* Tablet */
@media (max-width: 999px) {
    .td-featured-products-section .td-featured-products-grid {
        gap: 20px;
    }

    .td-featured-products-section .td-product-card-body {
        padding: 22px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .td-featured-products-section .td-featured-products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .td-featured-products-section .td-product-card > figure,
    .td-featured-products-section .td-product-card > .wp-block-image {
        padding: 20px;
    }

    .td-featured-products-section .td-product-title {
        font-size: 20px;
    }
}

/* Featured Products: sticky left column on desktop */
@media (min-width: 1025px) {
    .td-featured-products-section .td-featured-products-layout {
        align-items: flex-start;
    }

    .td-featured-products-section .td-featured-products-aside {
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }
}

/* Disable sticky on tablet/mobile */
@media (max-width: 1024px) {
    .td-featured-products-section .td-featured-products-aside {
        position: static;
    }
}

/* ==========================================================================
   TITANDRILL - DRILLING METHOD SECTION
   ========================================================================== */

.td-method-section .td-method-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.td-method-section .td-method-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.td-method-section .td-method-card:hover{
    border-color:#F14000;
    box-shadow:0 12px 24px rgba(0,0,0,.08);
}

/* 取消所有默认间距 */

.td-method-section h3,
.td-method-section p,
.td-method-section ul,
.td-method-section li{
    margin:0;
}

/* List */

.td-method-section ul{
    padding-left:0;
    list-style:none;
}

.td-method-section li{
    list-style:none;
}

/* CTA */

.td-method-section .td-method-link{
    margin-top:auto;
}

.td-method-section .td-method-link a{
    color:#F14000;
    font-weight:700;
    text-decoration:none;
}

.td-method-section .td-method-link a:hover{
    color:#FF5C26;
}

@media (max-width:1024px){

    .td-method-section .td-method-grid{
        grid-template-columns:1fr;
        gap:24px;
    }

}

@media (max-width:767px){

    .td-method-section .td-method-grid{
        gap:18px;
    }

    .td-method-section .td-method-card{
        padding:20px;
    }

}

/* ==========================================================================
   TITANDRILL PRODUCTS HUB - APPLICATION DISCOVERY
   ========================================================================== */

.td-application-section .td-application-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.td-application-section .td-application-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background-color: var(--theme-palette-color-8, #ffffff);
    border: 1px solid var(--theme-palette-color-6, #e5e7eb);
    border-radius: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.td-application-section .td-application-card:hover {
    border-color: var(--theme-palette-color-1, #F14000);
    box-shadow: 0 12px 20px -8px rgba(31, 35, 39, 0.12);
}

.td-application-section .td-application-card h3,
.td-application-section .td-application-card p {
    margin: 0;
}

.td-application-section .td-application-link {
    margin-top: auto !important;
}

.td-application-section .td-application-link a {
    color: var(--theme-palette-color-1, #F14000);
    font-weight: 700;
    text-decoration: none;
}

.td-application-section .td-application-link a:hover,
.td-application-section .td-application-link a:focus {
    color: var(--theme-palette-color-2, #FF5C26);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .td-application-section .td-application-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .td-application-section .td-application-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 32px;
    }

    .td-application-section .td-application-card {
        padding: 20px;
    }
}

/* ==========================================================================
   TITANDRILL PRODUCTS HUB - WHY TITANDRILL PRODUCTS
   ========================================================================== */

.td-why-section .td-why-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.td-why-section .td-why-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background-color: var(--theme-palette-color-8, #ffffff);
    border: 1px solid var(--theme-palette-color-6, #e5e7eb);
    border-radius: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.td-why-section .td-why-card:hover {
    border-color: var(--theme-palette-color-1, #F14000);
    box-shadow: 0 12px 20px -8px rgba(31, 35, 39, 0.12);
}

.td-why-section .td-why-card h3,
.td-why-section .td-why-card p {
    margin: 0;
}

@media (max-width: 1024px) {
    .td-why-section .td-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .td-why-section .td-why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 32px;
    }

    .td-why-section .td-why-card {
        padding: 20px;
    }
}

/* ==========================================================================
   TITANDRILL DESIGN SYSTEM
   WHY SECTION ICON SIZE
   ========================================================================== */

/* Desktop */
.td-why-section .td-why-icon {
    width: 24px;
    line-height: 0;
}

.td-why-section .td-why-icon img,
.td-why-section .td-why-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* Tablet */
@media (max-width:1024px) {

    .td-why-section .td-why-icon,
    .td-why-section .td-why-icon img,
    .td-why-section .td-why-icon svg {
        width: 22px;
        height: 22px;
    }

}

/* Mobile */
@media (max-width:767px) {

    .td-why-section .td-why-icon,
    .td-why-section .td-why-icon img,
    .td-why-section .td-why-icon svg {
        width: 20px;
        height: 20px;
    }

}



/* ==========================================================================
   TITANDRILL PRODUCTS HUB - CTA RESPONSIVE ADAPTATION
   Gutenberg Layout Ownership:
   Desktop layout controlled by Gutenberg.
   CSS only adapts Tablet/Mobile.
   ========================================================================== */


/*
   Tablet:
   Expand Gutenberg constrained content
*/

@media (max-width:999px){


    .td-products-cta__content.is-layout-constrained
    > :where(
        :not(.alignleft):not(.alignright):not(.alignfull)
    ){

        width:100%;

        max-width:100%;

    }


}


/*
   Mobile:
   Full width buttons
*/

@media (max-width:767px){


    .td-products-cta__content
    .wp-block-buttons{


        width:100%;

        flex-direction:column;

        align-items:stretch;


    }



    .td-products-cta__content
    .wp-block-button{


        width:100%;


    }



    .td-products-cta__content
    .wp-block-button__link{


        width:100%;

        text-align:center;


    }


}

/* ===================================
   TitanDrill Cover Content Alignment
=================================== */

.td-cover-content-align {

    margin-left:
    calc(
        (100vw - var(--theme-container-edge-spacing)) / 2
        - 16px
    )
    !important;

    margin-right:auto !important;

}


@media (max-width:644px){

    .td-cover-content-align {

        margin-left:
        calc(
            (100vw - var(--theme-container-edge-spacing)) / 2
            - 15px
        )
        !important;

    }

}


