/*
Theme Name: Apache Arms
Theme URI: https://apachearmstx.com
Description: Custom Storefront child theme for Apache Arms — dark theme matching Next.js frontend
Author: Duckett Tech LLC
Author URI: https://ducketttech.com
Template: storefront
Version: 1.0.0
Text Domain: apache-arms
License: Proprietary
License URI: https://ducketttech.com

Copyright (c) 2026 Duckett Tech LLC. All rights reserved.
Proprietary and confidential. Unauthorized copying or distribution prohibited.
*/

/* ═══════════════════════════════════════
   BASE / GLOBAL STYLES
   ═══════════════════════════════════════ */

:root {
    --aa-bg: #1a1a1a;
    --aa-bg-card: #252525;
    --aa-bg-secondary: #2d2d2d;
    --aa-text: #efefef;
    --aa-text-muted: #999999;
    --aa-primary: #b91c1c;
    --aa-primary-hover: #991b1b;
    --aa-border: #3a3a3a;
    --aa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    font-size: 110%;
    scroll-behavior: smooth;
}

body,
.site-content,
.hentry {
    background-color: var(--aa-bg) !important;
    color: var(--aa-text) !important;
    font-family: var(--aa-font) !important;
}

a {
    color: var(--aa-text-muted);
    transition: color 0.2s;
}

a:hover {
    color: var(--aa-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--aa-text) !important;
}

p {
    color: var(--aa-text-muted);
}

::selection {
    background: var(--aa-primary);
    color: #fff;
}

hr {
    border-color: var(--aa-border);
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */

.aa-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--aa-bg);
    border-bottom: 1px solid var(--aa-border);
}

.aa-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 64px;
}

.aa-logo img {
    height: 40px;
    width: auto;
}

.aa-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.aa-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--aa-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.aa-nav a:hover {
    color: var(--aa-text);
}

.aa-nav a.aa-nav-highlight {
    color: var(--aa-primary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.aa-nav a.aa-nav-highlight:hover {
    opacity: 0.8;
}

.aa-nav-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.aa-header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aa-btn-ghost {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--aa-text-muted);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.aa-btn-ghost:hover {
    color: var(--aa-text);
}

.aa-btn-primary {
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff !important;
    background: var(--aa-primary);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.aa-btn-primary:hover {
    background: var(--aa-primary-hover);
    color: #fff !important;
}

/* Mobile menu toggle */
.aa-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--aa-text);
    cursor: pointer;
    padding: 0.5rem;
}

.aa-mobile-toggle svg {
    width: 24px;
    height: 24px;
}

.aa-mobile-nav {
    display: none;
    background: var(--aa-bg);
    border-bottom: 1px solid var(--aa-border);
    padding: 1rem;
}

.aa-mobile-nav.active {
    display: block;
}

.aa-mobile-nav a {
    display: block;
    padding: 0.625rem 0.75rem;
    color: var(--aa-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.aa-mobile-nav a:hover {
    background: var(--aa-bg-secondary);
    color: var(--aa-text);
}

.aa-mobile-nav a.aa-nav-highlight {
    color: var(--aa-primary);
}

@media (max-width: 768px) {
    .aa-nav,
    .aa-header-cta {
        display: none;
    }
    .aa-mobile-toggle {
        display: block;
    }
}

/* Hide default Storefront header */
.site-header,
.storefront-primary-navigation,
.storefront-secondary-navigation,
.site-branding {
    display: none !important;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.site-footer {
    display: none !important;
}

.aa-footer {
    background: var(--aa-bg);
    border-top: 1px solid var(--aa-border);
    padding: 3rem 1rem;
}

.aa-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.aa-footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--aa-text-muted);
}

.aa-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.aa-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--aa-text-muted);
    transition: background 0.2s, color 0.2s;
}

.aa-footer-social a:hover {
    background: var(--aa-bg-secondary);
    color: var(--aa-text);
}

.aa-footer-social svg {
    width: 20px;
    height: 20px;
}

.aa-footer h3 {
    font-size: 0.75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--aa-text) !important;
    margin-bottom: 1rem;
}

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

.aa-footer ul li {
    margin-bottom: 0.5rem;
}

.aa-footer ul a {
    font-size: 0.875rem;
    color: var(--aa-text-muted);
    text-decoration: none;
}

.aa-footer ul a:hover {
    color: var(--aa-primary);
}

.aa-footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(58, 58, 58, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.aa-footer-bottom p {
    color: var(--aa-text-muted);
    margin: 0;
}

.aa-footer-bottom .aa-credit {
    font-size: 0.75rem;
    color: rgba(153, 153, 153, 0.6);
}

.aa-footer-bottom .aa-credit a {
    text-decoration: underline;
}

.aa-footer-bottom .aa-credit a:hover {
    color: var(--aa-primary);
}

@media (max-width: 768px) {
    .aa-footer-inner {
        grid-template-columns: 1fr;
    }
    .aa-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ═══════════════════════════════════════
   WOOCOMMERCE PRODUCT PAGES
   ═══════════════════════════════════════ */

.woocommerce div.product,
.woocommerce .content-area {
    background: var(--aa-bg) !important;
}

.woocommerce div.product .product_title {
    color: var(--aa-text) !important;
    font-size: 2rem;
    font-weight: 700;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #22c55e !important;
    font-size: 1.5rem !important;
    font-weight: 700;
}

/* Seats left / stock availability — red */
.woocommerce div.product .stock,
.woocommerce div.product .availability,
.woocommerce div.product .apache-seats-remaining,
.woocommerce div.product p.stock {
    color: var(--aa-primary) !important;
    font-weight: 600;
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-Tabs-panel p {
    color: var(--aa-text-muted) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    background: var(--aa-bg-card) !important;
    border-color: var(--aa-border) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: var(--aa-bg-card) !important;
    border-color: var(--aa-border) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--aa-text-muted) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--aa-bg) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--aa-text) !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: var(--aa-bg) !important;
    border-color: var(--aa-border) !important;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
button.single_add_to_cart_button {
    background-color: var(--aa-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    transition: background 0.2s !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
button.single_add_to_cart_button:hover {
    background-color: var(--aa-primary-hover) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════
   CART, CHECKOUT & ORDER RECEIVED
   All WooCommerce content renders on
   white/light backgrounds, so text must
   be dark for readability.
   ═══════════════════════════════════════ */

/* --- Shop tables (cart, order details, order received) --- */
.woocommerce table.shop_table {
    border-color: #e0e0e0 !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td {
    color: #333333 !important;
    border-color: #e0e0e0 !important;
}

.woocommerce table.shop_table a {
    color: #333333 !important;
}

.woocommerce table.shop_table a:hover {
    color: var(--aa-primary) !important;
}

/* Cart totals sidebar */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
    color: #333333 !important;
}

.woocommerce-cart .cart_totals h2 {
    color: #222222 !important;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
    color: #333333 !important;
}

/* --- Coupon area --- */
.woocommerce-cart .coupon label,
.woocommerce-cart .coupon .input-text {
    color: #333333 !important;
}

/* --- Checkout form --- */
/* Headings on dark page bg stay light (inherited from body) */
/* Only darken headings inside white content areas */
.woocommerce-checkout-review-order h3,
.woocommerce-checkout #payment h3 {
    color: #222222 !important;
}

.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label,
.woocommerce-checkout .woocommerce-additional-fields label,
.woocommerce form .form-row label {
    color: #333333 !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
#coupon_code {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--aa-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2) !important;
}

/* Checkout payment section */
.woocommerce-checkout #payment {
    background: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #333333 !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #eaeaea !important;
    color: #333333 !important;
}

.woocommerce-checkout #payment label {
    color: #333333 !important;
}

/* Checkout order review table */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    color: #333333 !important;
}

/* Terms and conditions */
.woocommerce-terms-and-conditions-wrapper {
    color: #333333 !important;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: var(--aa-primary) !important;
}

/* Privacy policy text */
.woocommerce-privacy-policy-text p {
    color: #555555 !important;
}

.woocommerce-privacy-policy-text a {
    color: var(--aa-primary) !important;
}

/* --- Order received / Thank you page --- */
.woocommerce-thankyou-order-received {
    color: var(--aa-text-muted) !important;
}

.woocommerce-order-overview {
    color: var(--aa-text) !important;
}

.woocommerce-order-overview li {
    color: var(--aa-text) !important;
}

.woocommerce-order-overview li strong {
    color: var(--aa-primary) !important;
}

.woocommerce-order-details h2 {
    color: var(--aa-text) !important;
}

.woocommerce-customer-details h2 {
    color: var(--aa-text) !important;
}

.woocommerce-customer-details address {
    color: var(--aa-text-muted) !important;
}

.woocommerce-customer-details address p {
    color: var(--aa-text-muted) !important;
}

.woocommerce-customer-details a {
    color: var(--aa-primary) !important;
}

/* Screen Name / custom checkout fields */
.apache-screen-name-field,
.apache-screen-name-field label,
.apache-screen-name-field p {
    color: #333333 !important;
}

/* ═══════════════════════════════════════
   MY ACCOUNT
   ═══════════════════════════════════════ */

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    background: var(--aa-bg-card);
    border-radius: 0.5rem;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--aa-border);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--aa-text-muted) !important;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--aa-bg-secondary);
    color: var(--aa-primary) !important;
}

/* Dashboard navigation icons — white, subtle bg, 10% bigger */
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a::before,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a::before {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.375rem !important;
    padding: 0.3rem !important;
    font-size: 110% !important;
    width: 1.8em !important;
    height: 1.8em !important;
    line-height: 1.8em !important;
    text-align: center !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: content-box !important;
}

nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a:hover::before,
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.is-active a::before,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a:hover::before,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.is-active a::before {
    background: var(--aa-primary) !important;
    color: #ffffff !important;
}

.woocommerce-MyAccount-content {
    color: var(--aa-text-muted);
}

.woocommerce-MyAccount-content a {
    color: var(--aa-primary);
}

/* ═══════════════════════════════════════
   SEAT MAP (Apache Webinars Plugin)
   ═══════════════════════════════════════ */

.apache-seat-map-container {
    background: var(--aa-bg-card) !important;
    border: 1px solid var(--aa-border) !important;
    border-radius: 0.5rem !important;
    padding: 1.5rem !important;
}

/* ═══════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════ */

.woocommerce-breadcrumb {
    color: var(--aa-text-muted) !important;
    margin-bottom: 1.5rem;
}

.woocommerce-breadcrumb a {
    color: var(--aa-text-muted) !important;
}

.woocommerce-breadcrumb a:hover {
    color: var(--aa-primary) !important;
}

/* ═══════════════════════════════════════
   NOTICES / MESSAGES
   ═══════════════════════════════════════ */

.woocommerce-message,
.woocommerce-info {
    color: #333333 !important;
    border-top-color: var(--aa-primary) !important;
}

.woocommerce-error {
    color: #333333 !important;
    border-top-color: #dc2626 !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--aa-primary) !important;
}

/* ═══════════════════════════════════════
   STOREFRONT OVERRIDES
   ═══════════════════════════════════════ */

.storefront-sorting,
.woocommerce-result-count,
.woocommerce-ordering {
    color: var(--aa-text-muted) !important;
}

.storefront-sorting select {
    background: var(--aa-bg-secondary) !important;
    color: var(--aa-text) !important;
    border-color: var(--aa-border) !important;
}

#page > .site-content {
    background: var(--aa-bg) !important;
}

.site-main {
    background: var(--aa-bg) !important;
}

.col-full {
    background: var(--aa-bg) !important;
}

/* Product image gallery */
.woocommerce div.product div.images {
    background: var(--aa-bg-card);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Related products */
.related.products h2,
.upsells.products h2 {
    color: var(--aa-text) !important;
}

/* Star ratings */
.star-rating span::before {
    color: var(--aa-primary) !important;
}

/* Quantity input */
.woocommerce .quantity .qty {
    background: #ffffff !important;
    color: #333333 !important;
    border-color: #d0d0d0 !important;
}

/* Remove Storefront credit */
.site-info {
    display: none !important;
}

/* Search bar (hidden) */
.site-search,
.woocommerce-product-search,
.widget_product_search,
.storefront-product-search {
    display: none !important;
}

/* ═══════════════════════════════════════
   READABILITY FIXES
   Catch-all rules to ensure text inside
   white/light WooCommerce boxes is dark,
   and page-level headings stay light.
   ═══════════════════════════════════════ */

/* All text inside shop tables must be dark */
.woocommerce table.shop_table *,
.woocommerce table.shop_table td *,
.woocommerce table.shop_table th * {
    color: #333 !important;
}

.woocommerce table.shop_table a:hover {
    color: #b91c1c !important;
}

/* Screen Name heading + all text inside light blue checkout box */
.woocommerce-checkout [class*="screen"] h3,
.woocommerce-checkout [class*="screen"] h4,
.woocommerce-checkout [class*="screen"] label,
.woocommerce-checkout [class*="screen"] p,
.woocommerce-checkout [id*="screen"] h3,
.woocommerce-checkout [id*="screen"] h4,
.woocommerce-checkout [id*="screen"] label,
.woocommerce-checkout [id*="screen"] p {
    color: #333 !important;
}

/* Billing summary box headings */
#aa-billing-summary h4 {
    color: #222 !important;
}

/* Order notes label - light on dark bg */
.woocommerce-additional-fields__field-wrapper label,
.woocommerce-additional-fields__field-wrapper label span,
#order_comments_field label,
#order_comments_field label span {
    color: var(--aa-text) !important;
}

/* Keep page-level headings LIGHT on dark background */
.woocommerce-checkout > h2,
.woocommerce-checkout > h3,
#order_review_heading,
.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3 {
    color: #efefef !important;
}

/* Cart totals heading */
.cart_totals h2 {
    color: #222 !important;
}

/* Apache Webinars plugin Screen Name heading */
.apache-webinar-display-name h3 {
    color: #1565c0 !important;
}
