/*
 Theme Name:   STK Performance
 Theme URI:    https://stk.ormsy.co.za
 Description:  Astra child theme for STK Performance - motorsport parts store
 Author:       OpenRoad Media
 Template:     astra
 Version:      2.3.0
 Text Domain:  stk-performance
*/

/* ==========================================================================
   Custom Footer
   ========================================================================== */

.stk-footer {
    background: #0a0a1a;
    color: #aab;
    font-size: 14px;
    line-height: 1.7;
}

.stk-footer a {
    color: #ccd;
    text-decoration: none;
    transition: color 0.2s;
}

.stk-footer a:hover {
    color: #fff;
}

/* ── Main 3-column area ── */
.stk-footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 50px;
}

/* Column 1: About */
.stk-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.stk-footer-logo img {
    height: 60px;
    width: auto;
}

.stk-footer-about p {
    margin: 0 0 20px;
    color: #889;
}

.stk-footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stk-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
}

.stk-footer-social a:hover {
    background: #3b82f6;
}

.stk-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stk-footer-legal a {
    color: #889;
    font-size: 13px;
}

.stk-footer-legal a:hover {
    color: #fff;
}

/* Column 2: Latest Posts */
.stk-footer-posts h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}

.stk-footer-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stk-footer-posts li {
    margin-bottom: 12px;
}

.stk-footer-posts li a {
    color: #aab;
    font-size: 14px;
    line-height: 1.5;
}

.stk-footer-posts li a:hover {
    color: #fff;
}

/* Column 3: Navigation */
.stk-footer-nav {
    text-align: center;
}

.stk-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stk-footer-menu li {
    border-bottom: 1px solid #1a1a2e;
}

.stk-footer-menu li:first-child {
    border-top: 1px solid #1a1a2e;
}

.stk-footer-menu li a {
    display: block;
    padding: 12px 0;
    color: #ccd;
    font-size: 15px;
    font-weight: 500;
}

.stk-footer-menu li a:hover {
    color: #fff;
}

/* ── Bottom bar ── */
.stk-footer-bottom {
    border-top: 1px solid #1a1a2e;
    padding: 24px 30px;
    text-align: center;
}

.stk-footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 16px;
}

.stk-footer-payments img {
    height: 32px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.stk-footer-payments img:hover {
    opacity: 1;
}

.stk-footer-copy {
    margin: 0;
    color: #556;
    font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .stk-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 40px 24px 30px;
    }

    .stk-footer-nav {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .stk-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px 20px;
    }

    .stk-footer-nav {
        grid-column: auto;
        text-align: left;
    }

    .stk-footer-payments {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stk-footer-payments img {
        height: 26px;
    }
}

/* ==========================================================================
   Contact Us Page
   ========================================================================== */

/* Short blue separator line */
.stk-short-sep {
    width: 50px !important;
    border: none !important;
    height: 3px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Business Hours Table */
.stk-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.stk-hours-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.stk-hours-table tr:first-child td {
    border-top: 1px solid #e8e8e8;
}

.stk-hours-table td:first-child {
    font-weight: 600;
    color: #1d2327;
}

.stk-hours-table td:last-child {
    text-align: right;
    color: #555;
}

.stk-hours-closed {
    background: #1a1a2e;
}

.stk-hours-closed td {
    color: #fff !important;
    border-color: #1a1a2e !important;
    font-weight: 600;
}

/* Contact Items */
.stk-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.stk-contact-item svg {
    flex-shrink: 0;
}

/* Contact Social Icons */
.stk-contact-social {
    display: flex;
    gap: 10px;
}

.stk-contact-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1d2327;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.stk-contact-social a:hover {
    background: #2563eb;
}

/* FAQ Details/Accordion */
.wp-block-details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

.wp-block-details summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    color: #1d2327;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary::after {
    content: "›";
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.2s;
    color: #888;
}

.wp-block-details[open] summary::after {
    transform: rotate(90deg);
}

.wp-block-details p {
    padding: 0 20px 16px;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================================
   Mobile Menu Fix
   ========================================================================== */

.ast-mobile-header-wrap .ast-mobile-header-content {
    background: #0a0a1a !important;
}

.ast-mobile-header-wrap .ast-mobile-header-content .menu-link {
    border-color: #1a1a2e !important;
}

/* ==========================================================================
   Emoji SVG Safety Net
   WordPress emoji images missing the .emoji class render at full SVG size.
   ========================================================================== */

img[src*="s.w.org/images/core/emoji"] {
    display: inline !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
}

/* ==========================================================================
   Valve Failure Analysis Page
   ========================================================================== */

/* Full-width section bands */
.stk-vfa-section {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 60px 30px;
    max-width: 100vw !important;
}

.stk-vfa-section > .wp-block-group__inner-container,
.stk-vfa-section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stk-vfa-section.stk-vfa-dark {
    background: #0a0a1a;
    color: #e0e0e8;
}

.stk-vfa-section.stk-vfa-dark h2,
.stk-vfa-section.stk-vfa-dark h3 {
    color: #fff;
}

.stk-vfa-section.stk-vfa-dark strong {
    color: #fff;
}

.stk-vfa-section.stk-vfa-grey {
    background: #f4f4f6;
}

/* Section header with accent line */
.stk-vfa-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
}

.stk-vfa-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin-top: 12px;
}

.stk-vfa-section.stk-vfa-dark h2::after {
    background: #3b82f6;
}

/* Failure cards */
.stk-vfa-card {
    background: #fff;
    border: 1px solid #e0e0e4;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.stk-vfa-section.stk-vfa-dark .stk-vfa-card {
    background: #12122a;
    border-color: #1e1e3a;
}

.stk-vfa-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #2563eb;
}

.stk-vfa-card .wp-block-image {
    margin-bottom: 0 !important;
}

.stk-vfa-card .wp-block-image img {
    border-radius: 8px;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.stk-vfa-card ul {
    padding-left: 18px;
}

.stk-vfa-card li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.stk-vfa-section.stk-vfa-dark .stk-vfa-card li {
    color: #b0b0c0;
}

/* Section intro text */
.stk-vfa-intro {
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 30px !important;
}

.stk-vfa-section.stk-vfa-dark .stk-vfa-intro {
    color: #9999b0;
}

/* Hero banner */
.stk-vfa-hero {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    background: #0a0a1a;
    padding: 70px 30px;
    text-align: center;
}

.stk-vfa-hero h1 {
    color: #fff !important;
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px !important;
}

.stk-vfa-hero p {
    color: #9999b0;
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto !important;
    line-height: 1.7;
}

.stk-vfa-hero .stk-vfa-accent {
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin: 0 auto 20px;
}

/* CTA section */
.stk-vfa-cta {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    background: #0a0a1a;
    padding: 60px 30px;
    text-align: center;
}

.stk-vfa-cta h2 {
    color: #fff !important;
    font-size: 26px;
    text-align: center;
}

.stk-vfa-cta h2::after {
    margin-left: auto;
    margin-right: auto;
}

.stk-vfa-cta p {
    color: #9999b0;
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.7;
}

.stk-vfa-cta .wp-block-buttons {
    justify-content: center;
    margin-top: 24px;
}

.stk-vfa-cta .wp-block-button__link {
    background: #2563eb !important;
    border-radius: 6px;
    padding: 14px 28px;
    font-weight: 600;
    transition: background 0.2s;
}

.stk-vfa-cta .wp-block-button__link:hover {
    background: #3b82f6 !important;
}

/* Diagram cards — taller images */
.stk-vfa-card.stk-vfa-diagram .wp-block-image img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: #f8f8fa;
    padding: 16px;
    border: 1px solid #e8e8ec;
}

.stk-vfa-section.stk-vfa-dark .stk-vfa-card.stk-vfa-diagram .wp-block-image img {
    background: #1a1a32;
    border-color: #2a2a48;
}

/* Responsive */
@media (max-width: 768px) {
    .stk-vfa-section {
        padding: 40px 20px;
    }

    .stk-vfa-hero {
        padding: 50px 20px;
    }

    .stk-vfa-hero h1 {
        font-size: 28px;
    }

    .stk-vfa-section h2 {
        font-size: 22px;
    }

    .stk-vfa-card {
        padding: 20px;
    }
}


/* ==========================================================================
   Homepage Sections
   ========================================================================== */

/* ── Full-width section bands ── */
.stk-hp-section {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.ast-page-builder-template .stk-hp-section,
.page-builder .stk-hp-section,
.ast-plain-container .stk-hp-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.stk-hp-section > .wp-block-group__inner-container,
.stk-hp-section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

.stk-hp-dark {
    background: #0a0a1a;
}

.stk-hp-grey {
    background: #f4f4f6;
}

.stk-hp-cta {
    background: #0a0a1a;
}

/* ── Hero ── */
.stk-hero {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    width: 100vw !important;
}

.ast-page-builder-template .stk-hero,
.page-builder .stk-hero,
.ast-plain-container .stk-hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.stk-hero h1 {
    max-width: 700px;
}

/* ── Section titles ── */
.stk-hp-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
}

.stk-hp-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin: 14px auto 0;
}

.stk-hp-subtitle {
    color: #666;
    font-size: 16px;
}

.stk-hp-subtitle-dark {
    color: #9999b0 !important;
}

/* ── Stats bar ── */
.stk-hp-stats {
    background: #0a0a1a !important;
    margin-top: -1px !important;
}

.stk-stat-box {
    text-align: center;
    padding: 40px 20px !important;
    border-right: 1px solid #1a1a2e;
}

.stk-stat-box:last-child {
    border-right: none;
}

.stk-stat-num {
    color: #2563eb !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.stk-stat-label {
    color: #9999b0 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 !important;
}

/* ── Category cards ── */
.stk-cat-card {
    min-width: 0;
}

.stk-cat-inner {
    background: #0a0a1a;
    border-radius: 10px;
    padding: 30px 24px !important;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border: 1px solid #1a1a2e;
}

.stk-cat-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.stk-cat-name {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.stk-cat-name a {
    color: #fff !important;
    text-decoration: none !important;
}

.stk-cat-name a:hover {
    color: #2563eb !important;
}

.stk-cat-count {
    color: #2563eb !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ── Vehicle make cards ── */
.stk-make-card {
    min-width: 0;
}

.stk-make-card {
    background: #12122a;
    border: 1px solid #1e1e3a;
    border-radius: 8px;
    padding: 24px 16px !important;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stk-make-card:hover {
    transform: translateY(-3px);
    border-color: #2563eb;
}

.stk-make-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.stk-make-name a {
    color: #fff !important;
    text-decoration: none !important;
}

.stk-make-name a:hover {
    color: #2563eb !important;
}

.stk-make-count {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* ── Why STK cards ── */
.stk-why-card {
    text-align: center;
    padding: 30px 20px !important;
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stk-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stk-why-icon {
    margin-bottom: 12px !important;
    line-height: 1 !important;
}

.stk-why-name {
    margin-bottom: 12px !important;
}

.stk-why-desc {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ── Product grids on dark bg ── */
.stk-hp-dark .woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #fff;
}

.stk-hp-dark .woocommerce ul.products li.product .price {
    color: #2563eb;
}

.stk-hp-dark .woocommerce ul.products li.product .price del {
    color: #666;
}

.stk-hp-dark .woocommerce ul.products li.product .button {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.stk-hp-dark .woocommerce ul.products li.product .button:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* ── Hide "Home" page title on front page ── */
.home .entry-title,
.page-id-6679 .entry-title {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .stk-hero h1 {
        font-size: 2.2rem !important;
    }

    .stk-hp-title {
        font-size: 26px;
    }

    .stk-stat-box {
        padding: 24px 12px !important;
        border-right: none;
        border-bottom: 1px solid #1a1a2e;
    }

    .stk-stat-num {
        font-size: 28px !important;
    }

    .stk-make-grid .wp-block-column {
        flex-basis: 48% !important;
    }
}

@media (max-width: 600px) {
    .stk-hero {
        min-height: 480px !important;
        padding-top: 120px !important;
    }

    .stk-hero h1 {
        font-size: 1.8rem !important;
    }

    .stk-hp-section > .wp-block-group__inner-container,
    .stk-hp-section > * {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .stk-hp-title {
        font-size: 22px;
    }

    .stk-cat-grid,
    .stk-make-grid {
        flex-wrap: wrap;
    }

    .stk-cat-grid .wp-block-column,
    .stk-make-grid .wp-block-column {
        flex-basis: 100% !important;
    }

    .stk-why-grid {
        flex-wrap: wrap;
    }

    .stk-why-grid .wp-block-column {
        flex-basis: 100% !important;
    }
}
