/*
Theme Name: Chase County Tires Pro
Theme URI: https://chasecountytires.com
Author: Microsoft Copilot
Description: A fast, conversion-focused tire affiliate WordPress theme built for Chase County Tires, The Tire Rack affiliate offers, WooCommerce/Datafeedr products, and the YMM Tire Affiliate selector plugin. Uses a NAPA-inspired blue and yellow palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chase-county-tires-pro
Tags: custom-logo, custom-menu, featured-images, e-commerce, blog, one-column, two-columns
*/

:root {
  --cct-blue: #0A0094;
  --cct-blue-dark: #070064;
  --cct-yellow: #FFC836;
  --cct-yellow-dark: #E7AD00;
  --cct-ink: #111827;
  --cct-muted: #667085;
  --cct-line: #E5E7EB;
  --cct-bg: #F6F8FF;
  --cct-white: #FFFFFF;
  --cct-radius: 20px;
  --cct-shadow: 0 20px 50px rgba(10, 0, 148, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cct-ink);
  background: var(--cct-bg);
  line-height: 1.6;
}
a { color: var(--cct-blue); }
a:hover { color: var(--cct-blue-dark); }
img { max-width: 100%; height: auto; }

.cct-container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.cct-topbar {
  background: var(--cct-yellow);
  color: #111;
  font-weight: 800;
  font-size: .92rem;
  padding: .55rem 0;
}
.cct-topbar .cct-container { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cct-topbar a { color: #111; text-decoration: none; }

.cct-header {
  background: var(--cct-white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--cct-line);
  box-shadow: 0 10px 24px rgba(17,24,39,.05);
}
.cct-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 0; }
.cct-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--cct-ink); }
.cct-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--cct-blue); display: grid; place-items: center; color: var(--cct-yellow); font-weight: 1000; box-shadow: inset 0 -8px 0 rgba(255,200,54,.18); }
.cct-brand-title { display: block; font-size: 1.2rem; font-weight: 1000; line-height: 1.1; color: var(--cct-blue); text-transform: uppercase; letter-spacing: -.02em; }
.cct-brand-subtitle { display: block; color: var(--cct-muted); font-size: .82rem; font-weight: 800; }

.cct-nav ul { margin: 0; padding: 0; display: flex; list-style: none; gap: .4rem; align-items: center; flex-wrap: wrap; }
.cct-nav a { display: block; color: var(--cct-ink); text-decoration: none; font-weight: 800; padding: .65rem .8rem; border-radius: 999px; }
.cct-nav a:hover { background: rgba(10,0,148,.08); color: var(--cct-blue); }
.cct-nav-toggle { display: none; border: 0; border-radius: 999px; background: var(--cct-blue); color: #fff; padding: .65rem .9rem; font-weight: 900; }

.cct-button, .wp-block-button__link, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .85rem 1.15rem;
  background: var(--cct-yellow); color: #111; text-decoration: none; font-weight: 1000;
  box-shadow: 0 10px 20px rgba(255,200,54,.28);
  cursor: pointer;
}
.cct-button:hover, .wp-block-button__link:hover { color: #111; background: #ffd86d; transform: translateY(-1px); }
.cct-button.primary { background: var(--cct-blue); color: #fff; box-shadow: 0 10px 20px rgba(10,0,148,.2); }
.cct-button.primary:hover { color: #fff; background: var(--cct-blue-dark); }

.cct-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cct-blue), #030236 75%); color: #fff; }
.cct-hero:before { content:""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,200,54,.45), transparent 26%), radial-gradient(circle at 10% 85%, rgba(255,255,255,.16), transparent 30%); }
.cct-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(3rem, 7vw, 6rem) 0; }
.cct-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 999px; background: var(--cct-yellow); color: #111; font-weight: 1000; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; }
.cct-hero h1 { margin: 1rem 0; font-size: clamp(2.3rem, 6vw, 5.25rem); line-height: .95; letter-spacing: -.06em; max-width: 800px; }
.cct-hero p { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 660px; }
.cct-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.cct-hero-panel { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 28px; padding: 1.25rem; backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.cct-tire-visual { aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 22px, #1f2937 24px 42px); border: 24px solid #111827; display: grid; place-items: center; box-shadow: inset 0 0 0 14px #374151, inset 0 0 0 38px #111827, 0 26px 80px rgba(0,0,0,.4); }
.cct-tire-visual span { width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--cct-yellow); display: grid; place-items: center; color: var(--cct-blue); font-weight: 1000; font-size: clamp(1.1rem, 3vw, 2rem); text-align: center; line-height: 1; }

.cct-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.cct-section.white { background: #fff; }
.cct-section-title { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.cct-section-title h2 { margin: 0 0 .65rem; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.04em; color: var(--cct-blue); }
.cct-section-title p { margin: 0; color: var(--cct-muted); font-size: 1.05rem; }
.cct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cct-card { background: #fff; border: 1px solid var(--cct-line); border-radius: var(--cct-radius); padding: 1.4rem; box-shadow: 0 8px 24px rgba(17,24,39,.06); }
.cct-card strong { color: var(--cct-blue); font-size: 1.05rem; }
.cct-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--cct-yellow); color: var(--cct-blue); display: grid; place-items: center; font-weight: 1000; margin-bottom: .8rem; }

.cct-finder-wrap { background: linear-gradient(180deg, #fff, #f7f8ff); border-top: 1px solid var(--cct-line); border-bottom: 1px solid var(--cct-line); }
.cct-shortcode-shell { max-width: 1040px; margin: 0 auto; }
.cct-plugin-missing { padding: 1.2rem; border-radius: 18px; background: #fff8de; border: 1px solid rgba(255,200,54,.7); color: #5f4300; }

.cct-affiliate-note { background: var(--cct-blue); color: #fff; border-radius: 22px; padding: 1.3rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.cct-affiliate-note p { margin: 0; color: rgba(255,255,255,.9); }

.cct-content { background: #fff; padding: 2rem; border-radius: var(--cct-radius); box-shadow: 0 8px 24px rgba(17,24,39,.06); margin: 2rem 0; }
.cct-post-list { display: grid; gap: 1rem; margin: 2rem 0; }
.cct-post-card { background: #fff; border: 1px solid var(--cct-line); border-radius: var(--cct-radius); padding: 1.25rem; box-shadow: 0 8px 24px rgba(17,24,39,.05); }
.cct-post-card h2 { margin-top: 0; }
.cct-post-card a { text-decoration: none; }

.cct-footer { background: #08072f; color: rgba(255,255,255,.84); padding: 3rem 0 1.3rem; }
.cct-footer a { color: #fff; }
.cct-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.cct-footer h3, .cct-footer h4 { color: #fff; margin-top: 0; }
.cct-footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: rgba(255,255,255,.7); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .cct-hero-inner { grid-template-columns: 1fr; }
  .cct-hero-panel { max-width: 420px; }
  .cct-grid, .cct-footer-grid { grid-template-columns: 1fr; }
  .cct-affiliate-note { grid-template-columns: 1fr; }
  .cct-nav-toggle { display: inline-flex; }
  .cct-nav { display: none; width: 100%; }
  .cct-nav.is-open { display: block; }
  .cct-header-inner { flex-wrap: wrap; }
  .cct-nav ul { align-items: stretch; flex-direction: column; width: 100%; }
}
