/*
Theme Name: THSC Bold
Theme URI: https://thscllc.com/
Author: Texas Hot Sauce Company
Author URI: https://thscllc.com/
Description: A bold, customer-experience-first classic PHP theme for Texas Hot Sauce Company. Same content, URLs, and brand as the current site, with a much stronger visual direction: big type, high-contrast hero, and a mobile-first shop flow. No block/FSE templates, no theme-store dependency. WooCommerce-ready; presentation only.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thsc-bold
Tags: custom-menu, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* =Reset & base ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fffaf3;
  color: #1c100a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: #b91c1c; }
a:hover, a:focus { color: #7f1d1d; }
h1, h2, h3, h4 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #1c100a;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: static; width: auto; height: auto; clip: auto;
  display: inline-block; padding: 0.5rem 1rem; background: #1c100a; color: #fff;
}
:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }

/* =Buttons ========================================================== */
.button, .btn, button.button, a.button, input[type="submit"] {
  display: inline-block;
  background: #dc2626; color: #fff !important;
  border: 0; border-radius: 8px;
  padding: 0.85rem 1.6rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
}
.button:hover, .btn:hover, button.button:hover, a.button:hover { background: #991b1b; }
.button.secondary { background: #1c100a; }
.button.secondary:hover { background: #000; }
.button.flame { background: #f97316; }
.button.flame:hover { background: #ea580c; }

/* =Header ========================================================== */
.site-header { background: #1c100a; border-bottom: 4px solid #dc2626; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; flex-wrap: wrap;
}
.site-branding a { text-decoration: none; color: #fff; }
.site-branding .custom-logo { max-height: 64px; width: auto; }
.site-title { font-family: Impact, Arial, sans-serif; text-transform: uppercase; font-size: 1.5rem; margin: 0; }
.site-description { font-size: 0.85rem; color: #fca5a5; margin: 0; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions a { text-decoration: none; font-weight: 800; color: #fff; }
.menu-toggle {
  background: #dc2626; color: #fff; border: 0; border-radius: 6px;
  padding: 0.5rem 0.9rem; font-weight: 900; cursor: pointer;
}
.main-navigation { width: 100%; display: none; }
.main-navigation.toggled { display: block; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation li { border-top: 1px solid #3d2417; }
.main-navigation a {
  display: block; padding: 0.6rem 0.25rem;
  text-decoration: none; color: #fff; font-weight: 800; text-transform: uppercase;
}
.main-navigation a:hover { color: #f97316; }

/* =Sections ======================================================== */
.section { padding: 2.5rem 0; }
.section.dark { background: #1c100a; color: #fffaf3; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.fire { background: #dc2626; color: #fff; }
.section.fire h2 { color: #fff; }
.section-label {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.85rem; font-weight: 900; color: #dc2626; margin: 0 0 0.4rem;
}
.section.dark .section-label { color: #f97316; }
.hero {
  background: #1c100a; color: #fffaf3; text-align: center;
  padding: 4rem 0 3.5rem; border-bottom: 6px solid #dc2626;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 0.15em; }
.hero .tagline-burn {
  font-family: Impact, Arial, sans-serif; text-transform: uppercase;
  font-size: 2rem; color: #f97316; margin: 0 0 0.5em;
}
.hero .tagline { font-size: 1.1rem; color: #fecaca; }
.hero .hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* =Slideshow ======================================================= */
.thsc-slideshow { position: relative; max-width: 760px; margin: 0 auto; }
.thsc-slide { display: none; text-align: center; }
.thsc-slide.active { display: block; }
.thsc-slide img { border-radius: 10px; }
.thsc-slide .slide-price { font-weight: 900; color: #dc2626; font-size: 1.2rem; }
.slideshow-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-top: 1rem;
}
.slideshow-controls button {
  background: #1c100a; color: #fff; border: 0; border-radius: 50%;
  width: 2.5rem; height: 2.5rem; font-size: 1.1rem; cursor: pointer;
}
.slide-dots { display: flex; gap: 0.4rem; }
.slide-dots button { width: 0.8rem; height: 0.8rem; padding: 0; background: #e7c9a8; }
.slide-dots button.active { background: #dc2626; }
.slide-counter { font-size: 0.9rem; color: #6b4a35; }

/* =News & posts ===================================================== */
.post-card { background: #fff; border: 2px solid #1c100a; border-radius: 10px; padding: 1.25rem; box-shadow: 4px 4px 0 #dc2626; }
.post-card h3 { margin-bottom: 0.3em; }
.post-card h3 a { text-decoration: none; color: #1c100a; }
.post-meta { font-size: 0.85rem; color: #6b4a35; margin-bottom: 0.75em; }
.news-grid { display: grid; gap: 1.25rem; }
.entry-meta { font-size: 0.85rem; color: #6b4a35; margin-bottom: 1em; }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; }
.post-navigation a { font-weight: 800; }

/* =WooCommerce ====================================================== */
.woocommerce ul.products {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; text-align: center;
  border: 2px solid #1c100a; border-radius: 10px; padding: 1rem !important;
  background: #fff; box-shadow: 4px 4px 0 #f97316;
}
.woocommerce ul.products li.product .price { color: #dc2626; font-weight: 900; font-size: 1.1rem; }
.woocommerce ul.products li.product .button { margin-top: 0.5rem; }

/* =Forms: labels ALWAYS visible (mobile checkout fix) =============== */
form label, .woocommerce form label, .woocommerce form .form-row label {
  display: block !important; font-weight: 800; margin-bottom: 0.25rem;
  position: static !important; transform: none !important;
  opacity: 1 !important; pointer-events: auto !important;
}
form input[type="text"], form input[type="email"], form input[type="tel"],
form input[type="password"], form input[type="search"], form input[type="number"],
form input[type="url"], form select, form textarea,
.woocommerce form input[type="text"], .woocommerce form input[type="email"],
.woocommerce form input[type="tel"], .woocommerce form input[type="password"],
.woocommerce form select, .woocommerce form textarea {
  width: 100%; padding: 0.8rem; font-size: 16px;
  border: 2px solid #1c100a; border-radius: 8px; background: #fff; color: #1c100a;
}
form input:focus, form select:focus, form textarea:focus { border-color: #dc2626; outline: none; }
.wc-block-components-text-input label,
.wc-block-components-select label {
  position: static !important; transform: none !important;
  opacity: 1 !important; font-weight: 800 !important; margin-bottom: 0.25rem !important;
}
.wc-block-components-text-input input { padding: 0.8rem !important; }

/* =Footer ========================================================== */
.site-footer { background: #1c100a; color: #fffaf3; padding: 2.5rem 0 1.5rem; }
.site-footer a { color: #fdba74; }
.site-footer h3, .site-footer h4 { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.site-info { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #4a3226; font-size: 0.9rem; text-align: center; }
.refer-earn {
  position: fixed; left: 1rem; bottom: 4.5rem; z-index: 50;
  background: #dc2626; color: #fff !important; text-decoration: none;
  font-weight: 900; padding: 0.7rem 1.1rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.refer-earn:hover { background: #991b1b; }
.mobile-shop-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: block; text-align: center; text-decoration: none;
  background: #f97316; color: #1c100a !important; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 1rem;
}

/* =Content & sidebar ================================================ */
.content-area { padding: 2rem 0; }
.site-main { min-width: 0; }
.widget { margin-bottom: 1.5rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.35rem; }
.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; }

/* =Desktop ========================================================= */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  .hero h1 { font-size: 4.5rem; }
  .hero .tagline-burn { font-size: 2.6rem; }
  .menu-toggle { display: none; }
  .main-navigation { display: block; width: auto; }
  .main-navigation ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
  .main-navigation li { border: 0; }
  .main-navigation a { padding: 0.25rem 0; }
  .main-navigation ul ul {
    display: none; position: absolute; background: #1c100a;
    border: 1px solid #4a3226; padding: 0.5rem 1rem; z-index: 20;
  }
  .main-navigation li:hover > ul { display: block; }
  .main-navigation li { position: relative; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .content-area .wrap { display: flex; gap: 2rem; align-items: flex-start; }
  .content-area .site-main { flex: 1; }
  .widget-area { width: 280px; flex-shrink: 0; }
  .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); }
  .mobile-shop-bar { display: none; }
  .refer-earn { bottom: 1rem; }
}
