/*
 * Heritage Tuner Company service product styles.
 *
 * Typography note:
 * This file avoids setting font-family so Salient global typography remains in control.
 * CSS is responsible for layout, spacing, contrast, cards, buttons, and WooCommerce form polish.
 */

:root {
    --htc-carbon: #1f1f1f;
    --htc-parchment: #f4f1ec;
    --htc-paper: #fbf8f2;
    --htc-soft-paper: #f8f4ed;
    --htc-graphite: #3a3a3a;
    --htc-charcoal-brown: #32322c;
    --htc-line: rgba(31, 31, 31, 0.13);
    --htc-line-strong: rgba(31, 31, 31, 0.22);
    --htc-line-light: rgba(244, 241, 236, 0.18);
    --htc-muted: rgba(31, 31, 31, 0.68);
    --htc-muted-light: rgba(244, 241, 236, 0.72);
    --htc-gold: #a9874d;
    --htc-radius: 16px;
    --htc-radius-lg: 22px;
    --htc-shadow: 0 24px 70px rgba(31, 31, 31, 0.13);
    --htc-shadow-soft: 0 18px 50px rgba(31, 31, 31, 0.08);
}

/* Base */

.htc-service-product-page {
    background: var(--htc-parchment);
    color: var(--htc-carbon);
    overflow: hidden;
}

.htc-service-product-page *,
.htc-service-product-page *::before,
.htc-service-product-page *::after {
    box-sizing: border-box;
}

.htc-container,
.htc-service-notices {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

.htc-section {
    padding-block: clamp(76px, 8vw, 116px);
}

.htc-section:first-of-type {
    padding-top: clamp(46px, 5vw, 76px);
}

.htc-service-notices {
    margin-top: 28px;
}

.htc-service-product-page h1,
.htc-service-product-page h2,
.htc-service-product-page h3,
.htc-service-product-page h4,
.htc-service-product-page h5,
.htc-service-product-page p {
    margin-top: 0;
}

.htc-service-product-page h1,
.htc-service-product-page h2,
.htc-service-product-page h3 {
    max-width: 820px;
}

.htc-service-product-page h1,
.htc-service-product-page h2 {
    text-wrap: balance;
}

.htc-copy,
.htc-copy p,
.htc-section-intro,
.htc-section-intro p {
    max-width: 680px;
}

.htc-copy p:last-child,
.htc-section-intro p:last-child {
    margin-bottom: 0;
}

.htc-copy p,
.htc-section-intro p {
    color: var(--htc-muted);
}

.htc-eyebrow {
    color: var(--htc-graphite);
    margin-bottom: 14px;
}

.htc-lead {
    max-width: 680px;
    color: var(--htc-muted);
    margin-bottom: 0 !important;
}

/* Buttons */

.htc-service-product-page .nectar-button {
    box-shadow: none !important;
}

.htc-service-product-page .nectar-button span {
    white-space: nowrap;
}

.htc-hero-actions .nectar-button,
.htc-final-actions .nectar-button {
    min-width: 138px;
    text-align: center;
}

/* Hero */

.htc-hero-section {
    min-height: auto !important;
    display: block !important;
    padding-top: clamp(46px, 5vw, 76px) !important;
    padding-bottom: clamp(86px, 8vw, 126px) !important;
}

.htc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(410px, 0.76fr);
    gap: clamp(56px, 8vw, 110px);
    align-items: start !important;
}

.htc-hero-copy {
    max-width: 760px;
    padding-top: clamp(34px, 4vw, 64px);
}

.htc-hero-actions,
.htc-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.htc-hero-actions {
    margin-top: 34px !important;
}

.htc-final-actions {
    justify-content: center !important;
    margin-top: 32px;
}

.htc-secondary-button {
    margin-left: 0 !important;
}

.htc-purchase-column {
    min-width: 0;
    max-width: 460px;
    margin-left: auto;
    padding-top: 0;
}

.htc-hero-image,
.htc-image-panel,
.htc-wide-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--htc-radius);
    background: rgba(31, 31, 31, 0.08);
}

.htc-hero-image {
    aspect-ratio: 1.28 / 1;
    box-shadow: var(--htc-shadow);
    margin-bottom: 16px;
}

.htc-image-panel {
    aspect-ratio: 1.1 / 1;
    border: 1px solid var(--htc-line-light);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.htc-wide-image {
    aspect-ratio: 2.18 / 1;
    margin-top: 46px;
    border-radius: 14px;
    box-shadow: var(--htc-shadow);
}

.htc-image,
.htc-hero-image img,
.htc-image-panel img,
.htc-wide-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Hero secondary hollow button */

.htc-hero-actions .htc-secondary-button,
.htc-hero-actions .nectar-button.extra-color-1 {
    background: transparent !important;
    border: 1px solid var(--htc-carbon) !important;
    color: var(--htc-carbon) !important;
    box-shadow: none !important;
}

.htc-hero-actions .htc-secondary-button span,
.htc-hero-actions .nectar-button.extra-color-1 span {
    color: var(--htc-carbon) !important;
}

.htc-hero-actions .htc-secondary-button:hover,
.htc-hero-actions .nectar-button.extra-color-1:hover {
    background: var(--htc-carbon) !important;
    color: var(--htc-paper) !important;
}

.htc-hero-actions .htc-secondary-button:hover span,
.htc-hero-actions .nectar-button.extra-color-1:hover span {
    color: var(--htc-paper) !important;
}

/* Purchase card */

.htc-purchase-card {
    background: var(--htc-paper);
    border: 1px solid var(--htc-line);
    border-radius: var(--htc-radius);
    box-shadow: 0 18px 50px rgba(31, 31, 31, 0.12);
    padding: 28px;
}

.htc-purchase-heading {
    display: block;
    border-bottom: 1px solid var(--htc-line);
    padding-top: 0 !important;
    padding-bottom: 18px;
    margin-top: 0 !important;
    margin-bottom: 18px;
}

.htc-purchase-heading h3 {
    max-width: none;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    line-height: 1.12;
}

.htc-purchase-heading p {
    margin-top: 0 !important;
}

.htc-purchase-heading p,
.htc-purchase-note p,
.htc-after-cart-note p {
    color: var(--htc-muted);
    margin-bottom: 0;
}

.htc-dynamic-price {
    color: var(--htc-carbon);
    text-align: left;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 10px;
    padding-top: 0;
    white-space: normal;
}

.htc-dynamic-price .price,
.htc-dynamic-price .woocommerce-Price-amount {
    color: inherit;
}

.htc-dynamic-price .price {
    display: inline-block;
}

.htc-purchase-note {
    margin-bottom: 18px;
}

.htc-purchase-note p,
.htc-after-cart-note p {
    line-height: 1.55;
}

.htc-after-cart-note {
    margin-top: 16px;
    border-top: 1px solid var(--htc-line);
    padding-top: 15px;
}

/* Native WooCommerce form polish */

.htc-native-cart form.cart {
    margin-bottom: 0;
}

.htc-native-cart table.variations {
    width: 100%;
    margin-bottom: 14px;
    border: 0;
}

.htc-native-cart table.variations tbody,
.htc-native-cart table.variations tr,
.htc-native-cart table.variations th,
.htc-native-cart table.variations td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
}

.htc-native-cart table.variations label {
    display: block;
    margin-bottom: 8px;
    color: var(--htc-carbon);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.htc-native-cart table.variations select {
    width: 100%;
    max-width: 100%;
    height: 46px;
    min-height: 46px;
    padding-left: 12px;
    padding-right: 36px;
    border-radius: 6px;
    border: 1px solid rgba(31, 31, 31, 0.18);
    background-color: #fff;
}

.htc-native-cart table.variations select:focus {
    outline: none;
    border-color: rgba(31, 31, 31, 0.45);
}

.htc-native-cart .single_variation_wrap {
    margin-top: 14px;
}

.htc-js-price-ready .woocommerce-variation-price {
    display: none;
}

.htc-native-cart .woocommerce-variation-description,
.htc-native-cart .woocommerce-variation-availability {
    margin-bottom: 12px;
}

.htc-native-cart .quantity {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-right: 0;
    margin-bottom: 14px;
}

.htc-native-cart .quantity input.qty {
    width: 48px !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(31, 31, 31, 0.18) !important;
}

.htc-native-cart .quantity input.plus,
.htc-native-cart .quantity input.minus,
.htc-native-cart .quantity button.plus,
.htc-native-cart .quantity button.minus {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(31, 31, 31, 0.14) !important;
    background: #fff !important;
    color: var(--htc-carbon) !important;
    box-shadow: none !important;
}

.htc-native-cart .single_add_to_cart_button {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    background-color: var(--htc-carbon) !important;
    color: var(--htc-paper) !important;
    border-radius: 999px !important;
    border: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.08em;
}

.htc-native-cart .single_add_to_cart_button:hover {
    background-color: #000 !important;
}

.htc-native-cart .single_add_to_cart_button.disabled,
.htc-native-cart .single_add_to_cart_button:disabled {
    opacity: 1 !important;
    background-color: rgba(31, 31, 31, 0.36) !important;
    color: rgba(255, 255, 255, 0.82) !important;
    cursor: not-allowed;
}

.htc-native-cart .reset_variations {
    display: inline-block;
    margin-top: 8px;
    color: var(--htc-muted);
}

/* Dark sections */

.htc-dark-section {
    background: var(--htc-carbon);
    color: var(--htc-paper);
}

.htc-process-section {
    background: var(--htc-charcoal-brown);
}

.htc-dark-section h1,
.htc-dark-section h2,
.htc-dark-section h3,
.htc-dark-section h4,
.htc-dark-section h5,
.htc-final-cta h1,
.htc-final-cta h2,
.htc-final-cta h3,
.htc-final-cta h4,
.htc-final-cta h5 {
    color: var(--htc-paper) !important;
}

.htc-dark-section .htc-eyebrow,
.htc-final-cta .htc-eyebrow {
    color: var(--htc-muted-light) !important;
}

.htc-dark-section p,
.htc-dark-section .htc-copy p,
.htc-dark-section .htc-section-intro p {
    color: var(--htc-muted-light);
}

/* Problem section */

.htc-problem-section {
    padding-block: clamp(82px, 8vw, 118px);
}

.htc-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 88px);
    align-items: center;
}

.htc-problem-list {
    display: grid;
    gap: 10px;
    margin-top: 30px;
    max-width: 430px;
}

.htc-problem-item {
    padding: 15px 18px;
    border: 1px solid rgba(244, 241, 236, 0.16);
    border-radius: 7px;
    background: rgba(244, 241, 236, 0.055);
    color: rgba(244, 241, 236, 0.92);
}

/* Repair first */

.htc-repair-first-section {
    padding-bottom: clamp(84px, 9vw, 128px);
}

.htc-centered-copy {
    text-align: center;
}

.htc-centered-copy .htc-copy,
.htc-centered-copy .htc-copy p,
.htc-centered-copy h2,
.htc-centered-copy h5 {
    margin-left: auto;
    margin-right: auto;
}

.htc-centered-copy .htc-copy {
    max-width: 760px;
}

.htc-repair-first-section .htc-copy {
    max-width: 720px;
}

/* Included cards */

.htc-included-section {
    padding-top: clamp(70px, 7vw, 104px);
}

.htc-included-section .htc-section-intro {
    max-width: 620px;
}

.htc-card-grid {
    display: grid;
    gap: 18px;
    margin-top: 40px;
}

.htc-included-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.htc-card {
    background: var(--htc-paper);
    border: 1px solid var(--htc-line);
    border-radius: 14px;
    padding: clamp(22px, 3vw, 28px);
    min-height: 226px;
    box-shadow: 0 10px 30px rgba(31, 31, 31, 0.035);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.htc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(31, 31, 31, 0.08);
    border-color: rgba(31, 31, 31, 0.2);
}

.htc-card h3 {
    margin-bottom: 10px;
}

.htc-card p {
    color: var(--htc-muted);
    margin-bottom: 0;
}

.htc-card-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--htc-line);
    color: var(--htc-gold);
    margin-bottom: 20px;
}

/* Process */

.htc-process-section .htc-section-intro {
    max-width: 620px;
}

.htc-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 46px;
}

.htc-process-step {
    min-height: 150px;
    border-top: 1px solid var(--htc-line-light);
    padding-top: 24px;
}

.htc-process-step h3 {
    margin-bottom: 10px;
}

.htc-process-step p {
    margin-bottom: 0;
}

.htc-step-label {
    color: var(--htc-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Before shipping */

.htc-before-ship-section {
    padding-block: clamp(76px, 8vw, 112px);
}

.htc-before-ship-box {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.08fr);
    gap: clamp(32px, 5vw, 62px);
    align-items: center;
    background: var(--htc-paper);
    border: 1px solid var(--htc-line);
    border-radius: var(--htc-radius-lg);
    box-shadow: var(--htc-shadow-soft);
    padding: clamp(34px, 5vw, 58px);
}

.htc-service-product-page .htc-check-list,
.htc-service-product-page .htc-check-list ul {
    display: grid;
    gap: 15px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.htc-service-product-page .htc-check-list li {
    position: relative;
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 28px !important;
    color: var(--htc-muted);
    line-height: 1.55;
}

.htc-service-product-page .htc-check-list li::marker {
    content: "" !important;
    font-size: 0 !important;
}

.htc-service-product-page .htc-check-list li::before {
    content: "" !important;
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--htc-gold);
}

/* FAQ */

.htc-faq-section {
    padding-top: clamp(70px, 7vw, 104px);
}

.htc-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(40px, 7vw, 78px);
    align-items: start;
}

.htc-faq-list {
    display: grid;
    gap: 10px;
}

.htc-faq-item {
    background: var(--htc-paper);
    border: 1px solid var(--htc-line);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 31, 31, 0.025);
}

.htc-faq-item summary {
    cursor: pointer;
    color: var(--htc-carbon);
    padding: 18px 22px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    line-height: 1.35;
}

.htc-faq-item summary::-webkit-details-marker {
    display: none;
}

.htc-faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--htc-gold);
    font-weight: 700;
}

.htc-faq-item[open] summary::after {
    content: "–";
}

.htc-faq-answer {
    border-top: 1px solid var(--htc-line);
    padding: 18px 22px 20px;
}

.htc-faq-answer p {
    color: var(--htc-muted);
    margin-bottom: 0;
}

/* Final CTA */

.htc-final-cta-section {
    padding-top: clamp(70px, 7vw, 104px);
    padding-bottom: clamp(82px, 8vw, 124px);
}

.htc-final-cta {
    max-width: 1040px;
    margin-inline: auto;
    text-align: center;
    color: var(--htc-paper);
    background:
        radial-gradient(circle at top center, rgba(169, 135, 77, 0.2), transparent 40%),
        var(--htc-carbon);
    border-radius: var(--htc-radius-lg);
    padding: clamp(58px, 7vw, 78px) clamp(24px, 5vw, 64px);
    box-shadow: 0 26px 70px rgba(31, 31, 31, 0.18);
}

.htc-final-cta h2,
.htc-final-cta h5,
.htc-final-cta .htc-copy,
.htc-final-cta .htc-copy p {
    margin-left: auto;
    margin-right: auto;
}

.htc-final-cta .htc-copy {
    max-width: 720px;
}

.htc-final-cta .htc-copy p {
    max-width: 720px;
    margin-bottom: 0;
}

.htc-final-cta p {
    color: var(--htc-muted-light);
}

.htc-final-cta .nectar-button {
    min-width: 190px;
}

.htc-final-cta .nectar-button.accent-color {
    background-color: var(--htc-paper) !important;
    color: var(--htc-carbon) !important;
}

.htc-final-cta .nectar-button.accent-color span {
    color: var(--htc-carbon) !important;
}

.htc-final-cta .nectar-button.extra-color-1,
.htc-final-cta .htc-secondary-button {
    background-color: transparent !important;
    border: 1px solid rgba(244, 241, 236, 0.48) !important;
    color: var(--htc-paper) !important;
}

.htc-final-cta .nectar-button.extra-color-1 span,
.htc-final-cta .htc-secondary-button span {
    color: var(--htc-paper) !important;
}

/* Tablet */

@media (max-width: 1000px) {
    .htc-container,
    .htc-service-notices {
        width: min(100% - 48px, 1180px);
    }

    .htc-hero-grid,
    .htc-split-grid,
    .htc-before-ship-box,
    .htc-faq-grid {
        grid-template-columns: 1fr;
    }

    .htc-hero-copy {
        padding-top: 0;
    }

    .htc-purchase-column {
        max-width: 620px;
        margin-left: 0;
    }

    .htc-included-grid,
    .htc-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .htc-wide-image {
        aspect-ratio: 1.65 / 1;
    }
}

/* Mobile */

@media (max-width: 690px) {
    .htc-container,
    .htc-service-notices {
        width: min(100% - 32px, 1180px);
    }

    .htc-section {
        padding-block: 60px;
    }

    .htc-section:first-of-type {
        padding-top: 36px;
    }

    .htc-hero-section {
        padding-top: 28px !important;
    }

    .htc-included-grid,
    .htc-process-grid {
        grid-template-columns: 1fr;
    }

    .htc-purchase-card {
        padding: 22px;
    }

    .htc-dynamic-price {
        text-align: left;
    }

    .htc-hero-image,
    .htc-image-panel,
    .htc-wide-image {
        aspect-ratio: 1.15 / 1;
    }

    .htc-hero-actions,
    .htc-final-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .htc-hero-actions .nectar-button,
    .htc-final-actions .nectar-button {
        text-align: center;
    }

    .htc-native-cart .single_add_to_cart_button {
        height: 48px;
    }

    .htc-before-ship-box {
        align-items: start;
    }

    .htc-final-actions {
        align-items: center !important;
    }

    .htc-final-cta .nectar-button {
        width: 100%;
        max-width: 280px;
        min-width: 0;
    }
}