/*
Theme Name: Good ATF Dominance Pro
Theme URI: https://thegoodatf.com/
Author: OpenAI for Devin Yarbrough
Author URI: https://thegoodatf.com/
Description: Premium WooCommerce theme for The Good ATF built for firearm e-commerce and FFL Cockpit compatibility.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goodatf
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, full-width-template
*/

:root {
  --bg: #0b1220;
  --panel: #121b2d;
  --panel-2: #182338;
  --surface: #ffffff;
  --text: #e8edf6;
  --text-dark: #111827;
  --muted: #97a4ba;
  --line: rgba(255,255,255,.08);
  --gold: #c59d43;
  --gold-2: #e0bc67;
  --red: #a61e22;
  --green: #1f7a4d;
  --shadow: 0 18px 40px rgba(0,0,0,.28);
  --radius: 18px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: var(--text-dark);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position:absolute; left:-9999px; }
.skip-link { position:absolute; top:-40px; left:8px; background:#000; color:#fff; padding:8px 12px; z-index:1000; }
.skip-link:focus { top:8px; }

.container { width:min(var(--container), calc(100% - 32px)); margin:0 auto; }
.narrow { width:min(920px, calc(100% - 32px)); margin:0 auto; }
.section { padding: 64px 0; }
.section-dark { background: var(--bg); color: var(--text); }
.section-title { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; margin: 0 0 12px; }
.section-copy { color: #5f6c84; font-size: 18px; margin: 0 auto 28px; max-width: 780px; }
.section-dark .section-copy { color: var(--muted); }
.eyebrow { display:inline-flex; align-items:center; gap:10px; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); font-weight:800; }
.eyebrow:before { content:""; width:36px; height:2px; background:var(--gold); display:inline-block; }

.btn, .button, button.single_add_to_cart_button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; border:none; cursor:pointer; border-radius:999px; padding:14px 22px; font-weight:800;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color:#151515; box-shadow: var(--shadow); transition: transform .18s ease, opacity .18s ease;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { transform: translateY(-2px); opacity:.96; }
.btn-outline { background: transparent; color: #fff; border:1px solid rgba(255,255,255,.18); box-shadow:none; }
.btn-dark { background: #101827; color:#fff; box-shadow:none; }

.site-topbar {
  background:#0f1727; color:#cbd6e7; font-size:13px; border-bottom:1px solid rgba(255,255,255,.06);
}
.site-topbar .container { display:flex; justify-content:space-between; gap:16px; padding:10px 0; flex-wrap:wrap; }
.topbar-left, .topbar-right { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }

.site-header {
  position: sticky; top:0; z-index:200; backdrop-filter: blur(16px); background: rgba(11,18,32,.9); border-bottom:1px solid rgba(255,255,255,.06);
}
.header-row { display:grid; grid-template-columns: 240px 1fr auto; align-items:center; gap:20px; min-height:84px; }
.branding { display:flex; align-items:center; gap:14px; color:#fff; }
.brand-mark {
  width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg, #1d2b47, #0d1423); border:1px solid rgba(255,255,255,.08); color:var(--gold); font-weight:900;
}
.branding .site-title { font-size:22px; margin:0; font-weight:900; letter-spacing:.02em; }
.branding .site-tagline { font-size:11px; text-transform:uppercase; letter-spacing:.16em; color:var(--muted); margin-top:3px; }

.main-navigation { display:flex; justify-content:center; }
.main-navigation ul { list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:22px; }
.main-navigation li { position:relative; }
.main-navigation a { color:#eef3fb; font-weight:700; font-size:15px; padding:12px 0; display:block; }
.main-navigation a:hover { color:var(--gold-2); }

.header-actions { display:flex; align-items:center; gap:10px; color:#fff; }
.header-icon { width:44px; height:44px; border-radius:999px; display:grid; place-items:center; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.06); }
.mobile-toggle { display:none; }
.mobile-panel { display:none; background:#0d1423; border-top:1px solid rgba(255,255,255,.06); }
.mobile-panel .menu { list-style:none; margin:0; padding:12px 0; }
.mobile-panel a { display:block; color:#fff; padding:12px 0; font-weight:700; }

.hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(197,157,67,.22), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(166,30,34,.20), transparent 28%),
    linear-gradient(180deg, #0b1220 0%, #0d1527 100%);
  color:#fff; padding: 72px 0 44px;
}
.hero-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:stretch; }
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08); border-radius: 28px; padding: 34px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(38px, 5vw, 72px); line-height: .98; margin: 12px 0 18px; letter-spacing:-.03em; }
.hero p { color:#cad5e8; font-size:18px; max-width:780px; }
.hero-cta { display:flex; flex-wrap:wrap; gap:14px; margin-top:24px; }
.hero-points { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:28px; }
.hero-point { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.07); border-radius:18px; padding:16px; }
.hero-point strong { display:block; font-size:15px; }
.hero-point span { color:#9fb0ca; font-size:13px; }

.trust-strip { margin-top:-24px; position:relative; z-index:3; }
.trust-strip .container { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.trust-box { background:#fff; border-radius:18px; padding:18px; box-shadow: var(--shadow); border:1px solid #e7edf6; }
.trust-box strong { display:block; font-size:16px; margin-bottom:4px; }
.trust-box span { color:#5f6c84; font-size:14px; }

.category-grid, .feature-grid, .content-grid, .value-grid { display:grid; gap:20px; }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.value-grid { grid-template-columns: repeat(3, 1fr); }
.content-grid { grid-template-columns: 1.05fr .95fr; align-items:start; }
.card {
  background:#fff; border:1px solid #e7edf6; border-radius:24px; padding:24px; box-shadow: 0 12px 30px rgba(17,24,39,.06);
}
.card-dark { background:var(--panel); color:var(--text); border-color:var(--line); }
.category-card {
  position:relative; overflow:hidden; min-height:260px; display:flex; flex-direction:column; justify-content:flex-end;
  background: linear-gradient(180deg, rgba(11,18,32,.08), rgba(11,18,32,.86)), linear-gradient(120deg, #2a374f, #111827 65%);
  color:#fff; border-radius:26px; padding:22px; border:1px solid rgba(255,255,255,.06);
}
.category-card:after {
  content:""; position:absolute; inset:auto -40px -40px auto; width:140px; height:140px; border-radius:999px; background: radial-gradient(circle, rgba(197,157,67,.30), transparent 70%);
}
.category-card h3 { margin: 0 0 10px; font-size: 24px; }
.category-card p { margin:0 0 16px; color:#d0d8e6; }
.chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.chip { display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.08); color:#fff; font-size:12px; font-weight:700; }

.feature-card h3, .value-card h3 { margin:8px 0 8px; font-size:22px; }
.feature-card p, .value-card p { margin:0; color:#5f6c84; }
.feature-card .icon, .value-card .icon {
  width:52px; height:52px; border-radius:16px; display:grid; place-items:center; background:#f5efe1; color:#8a6725; font-weight:900;
}

.info-list { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.info-list li { display:flex; gap:12px; align-items:flex-start; }
.tick { width:24px; height:24px; border-radius:999px; display:grid; place-items:center; background:#173926; color:#8df0b5; flex:0 0 auto; font-size:14px; margin-top:2px; }

.gun-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.gun-tile {
  border-radius:22px; overflow:hidden; background:#fff; border:1px solid #e5ebf5; box-shadow: 0 14px 30px rgba(17,24,39,.06);
}
.gun-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #22304a, #0f1727); position:relative; }
.gun-thumb:before { content:""; position:absolute; inset:18px; border:1px dashed rgba(255,255,255,.15); border-radius:18px; }
.gun-body { padding:22px; }
.gun-body h3 { margin:0 0 8px; font-size:22px; }
.gun-body p { margin:0 0 14px; color:#5f6c84; }
.meta { display:flex; flex-wrap:wrap; gap:8px; }
.meta span { background:#f3f6fb; color:#334155; border-radius:999px; padding:8px 10px; font-size:12px; font-weight:700; }

.faq-wrap details { background:#fff; border:1px solid #e7edf6; border-radius:18px; padding:18px 20px; margin-bottom:14px; }
.faq-wrap summary { cursor:pointer; list-style:none; font-weight:800; }
.faq-wrap p { color:#5f6c84; margin:12px 0 0; }

.site-footer { background:#0b1220; color:#d4deee; padding:64px 0 26px; }
.footer-grid { display:grid; grid-template-columns: 1.15fr .85fr .85fr .85fr; gap:24px; }
.site-footer h4 { color:#fff; margin:0 0 14px; font-size:16px; }
.site-footer ul { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.site-footer a { color:#d4deee; }
.site-footer a:hover { color:#fff; }
.footer-brand p { color:#91a1bc; max-width:420px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); margin-top:34px; padding-top:18px; color:#91a1bc; font-size:14px; }

.page-hero { background:linear-gradient(180deg, #0b1220, #111b30); color:#fff; padding:58px 0; }
.page-hero h1 { margin:0; font-size: clamp(34px, 5vw, 58px); line-height:1.02; }
.page-hero p { margin:14px 0 0; color:#c7d4e8; max-width:760px; }
.page-content { padding: 44px 0 72px; }
.article-card { background:#fff; border:1px solid #e7edf6; border-radius:24px; padding:28px; }

.woocommerce .woocommerce-breadcrumb,
.woocommerce .products .product,
.woocommerce-page .products .product { list-style:none; }
.woocommerce div.product div.images img { border-radius:24px; }
.woocommerce .products ul, .woocommerce ul.products { margin:0 0 16px; padding:0; display:grid; gap:22px; }
.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4,1fr); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3,1fr); }
.woocommerce ul.products li.product {
  margin:0 !important; width:auto !important; float:none !important; background:#fff; border:1px solid #e7edf6; border-radius:24px; overflow:hidden; box-shadow: 0 14px 30px rgba(17,24,39,.06);
}
.woocommerce ul.products li.product a img { margin:0; aspect-ratio:1/1; object-fit:cover; background:#f7f9fc; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:18px; padding:0 18px; margin:12px 0 8px; }
.woocommerce ul.products li.product .price { padding:0 18px; color:#0f1727; font-weight:800; }
.woocommerce ul.products li.product .button { margin:14px 18px 18px; width:calc(100% - 36px); }
.woocommerce span.onsale { background:var(--red); min-height:auto; line-height:1; padding:10px 12px; border-radius:999px; margin:14px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom:18px; }
.woocommerce .woocommerce-ordering select,
.woocommerce .quantity .qty,
.woocommerce input.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
select, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea {
  width:100%; border:1px solid #d8e0ee; border-radius:14px; padding:14px 16px; background:#fff;
}
.woocommerce div.product {
  background:#fff; border:1px solid #e7edf6; border-radius:28px; padding:28px; box-shadow: 0 14px 30px rgba(17,24,39,.06);
}
.woocommerce div.product .product_title { font-size: clamp(32px, 4vw, 46px); line-height:1.02; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color:#0f1727; font-weight:900; }
.woocommerce-tabs, .woocommerce div.product .woocommerce-product-details__short-description { color:#475569; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius:16px; border-top:none; }
.woocommerce-cart-form, .cart-collaterals, .woocommerce-checkout, .woocommerce-account .woocommerce { background:#fff; border:1px solid #e7edf6; border-radius:24px; padding:24px; }
.woocommerce table.shop_table { border-radius:18px; overflow:hidden; }

.goodatf-compliance {
  margin-top: 18px; padding:18px; background:#fff7e8; color:#5b4a1f; border:1px solid #f1e0b8; border-radius:18px; font-size:14px;
}
.goodatf-product-badges { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.goodatf-product-badges span { display:inline-flex; padding:8px 12px; border-radius:999px; font-size:12px; font-weight:800; background:#f3f6fb; color:#334155; }

.aligncenter { margin-left:auto; margin-right:auto; }
.wp-block-image, .wp-block-gallery { margin-bottom:20px; }

@media (max-width: 1100px) {
  .hero-grid, .content-grid { grid-template-columns:1fr; }
  .trust-strip .container, .category-grid, .feature-grid, .value-grid, .gun-grid, .footer-grid, .woocommerce ul.products.columns-4, .woocommerce ul.products.columns-3 { grid-template-columns:repeat(2,1fr); }
  .header-row { grid-template-columns: 1fr auto auto; }
  .main-navigation { display:none; }
  .mobile-toggle { display:grid; }
  .mobile-panel.open { display:block; }
}
@media (max-width: 760px) {
  .section { padding:52px 0; }
  .trust-strip .container, .category-grid, .feature-grid, .value-grid, .gun-grid, .footer-grid, .woocommerce ul.products.columns-4, .woocommerce ul.products.columns-3, .hero-points { grid-template-columns:1fr; }
  .hero { padding-top:48px; }
  .hero-card { padding:24px; border-radius:24px; }
  .page-hero { padding:44px 0; }
  .header-row { min-height:72px; }
  .branding .site-title { font-size:18px; }
  .site-topbar .container { padding:8px 0; }
}
