/* ==========================================================================
   AUTOSPRIME SECTION & COMPONENT STYLES
   ========================================================================== */

/* ----------------------- HERO SECTION ----------------------- */
.hero-section {
  position: relative;
  min-height: clamp(650px, 92vh, 920px);
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
}

.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000000 0%, rgba(0,0,0,0.5) 45%, transparent 100%);
  z-index: 3;
}

.floating-icon {
  position: absolute;
  z-index: 4;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
.floating-icon svg {
  width: 32px;
  height: 32px;
}

.hero-content-wrap {
  position: relative;
  z-index: 5;
  padding-top: clamp(6rem, 12vh, 9rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-top: 1.25rem;
}

.hero-lead {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 36rem;
}

.hero-cta-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-trust-badges {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust-item svg {
  color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Stats Cluster */
.stats-cluster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  transition: transform 0.3s ease;
}
.stat-card:nth-child(even) {
  transform: translateY(1.25rem);
}

.stat-icon {
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-number {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.375rem;
}

/* Marquee Ticker */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.875rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
}
.marquee-item svg {
  color: var(--accent);
  width: 14px;
  height: 14px;
}

/* ----------------------- SECTION HEADER ----------------------- */
.section-head {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.125rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background-color: rgba(141, 110, 63, 0.1);
  color: var(--primary);
  margin-bottom: 0.875rem;
}
.section-eyebrow.light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-title {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 1rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--muted-foreground);
  line-height: 1.6;
}
.section-desc.light {
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------- FEATURED CATEGORIES ----------------------- */
.cat-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cat-card-thumb {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.cat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-card:hover .cat-card-thumb img {
  transform: scale(1.1);
}

.cat-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.cat-card-title {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  color: #FFFFFF;
  font-size: 1.375rem;
  font-weight: 800;
}

.cat-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.cat-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.cat-post-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--foreground);
  opacity: 0.85;
}
.cat-post-item:hover {
  color: var(--primary);
  opacity: 1;
}
.cat-post-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.cat-explore-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.cat-explore-link:hover {
  color: var(--gold);
}

/* ----------------------- MAINTENANCE HUB ----------------------- */
.maintenance-section {
  position: relative;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  overflow: hidden;
}

.maintenance-bg-radial {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background: radial-gradient(600px circle at 15% 20%, var(--primary) 0%, transparent 60%),
              radial-gradient(500px circle at 85% 80%, var(--accent) 0%, transparent 50%);
}

.weekly-tip-box {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.weekly-tip-box img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}
.weekly-tip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  color: #FFFFFF;
}

.maint-item-card {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.maint-item-card:hover {
  border-color: rgba(141, 110, 63, 0.5);
  transform: translateY(-2px);
}

.maint-bar-bg {
  margin-top: 1rem;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.maint-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------- AUTOMOTIVE TOOLS ----------------------- */
.tool-grid-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tool-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #221F1B 0%, #13110F 100%);
  border: 1.5px solid rgba(184, 150, 88, 0.42);
  color: #E5C07B;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.dark .tool-icon-wrapper {
  background: linear-gradient(135deg, #2A2520 0%, #161412 100%);
  border-color: rgba(229, 192, 123, 0.5);
  color: #F0D597;
}
.tool-icon-wrapper svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease, color 0.3s ease;
}
.tool-grid-card:hover .tool-icon-wrapper {
  transform: translateY(-2px) scale(1.06);
  border-color: #B89658;
  color: #FFF2D1;
  box-shadow: 0 8px 22px rgba(184, 150, 88, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tool-grid-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.tool-grid-card p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tool-action-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

/* Interactive Calculator Container */
.calculator-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.calc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calc-result-box {
  border-radius: var(--radius-2xl);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.calc-result-value {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-top: 0.375rem;
  font-family: var(--font-mono);
}

/* Tool FAQ Accordion */
.tool-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.tool-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tool-faq-item:hover {
  border-color: rgba(141, 110, 63, 0.4);
}
.tool-faq-item.is-open {
  border-color: var(--primary);
  box-shadow: 0 4px 16px -2px rgba(141, 110, 63, 0.12);
}
.tool-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease;
}
.tool-faq-q:hover {
  color: var(--primary);
}
.faq-chevron {
  flex-shrink: 0;
  stroke: var(--primary);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-faq-q[aria-expanded="true"] .faq-chevron,
.tool-faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}
.tool-faq-a {
  padding: 0 1.375rem 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.tool-faq-a[hidden] {
  display: none;
}

/* Tool Directory & Hub Filters */
.tool-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.tool-filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.tool-filter-btn:hover {
  color: var(--foreground);
  border-color: var(--primary);
}
.tool-filter-btn.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(141, 110, 63, 0.25);
}

/* Tool Hub Card Enhancement */
.tool-hub-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tool-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px -6px rgba(141, 110, 63, 0.16);
}
.tool-hub-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(141, 110, 63, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}
.tool-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.tool-feature-list li {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-feature-list li svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* ----------------------- TIPS SECTION ----------------------- */
.tip-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tip-glow {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(141, 110, 63, 0.1);
  pointer-events: none;
}

.tip-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1rem;
  flex-shrink: 0;
}

.tip-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tip-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ----------------------- COMPARISON SECTION ----------------------- */
.comp-card {
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.comp-card:hover {
  border-color: rgba(141, 110, 63, 0.6);
  transform: translateY(-3px);
}

.comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.comp-name {
  font-size: 1.375rem;
  font-weight: 900;
}

.comp-vs {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.comp-bar {
  margin-top: 1rem;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.comp-verdict {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* ----------------------- KNOWLEDGE CENTER ----------------------- */
.kc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.kc-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.kc-icon-box {
  margin-left: auto;
  margin-right: auto;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  color: #FFFFFF;
  margin-bottom: 0.875rem;
}
.kc-icon-box svg {
  width: 24px;
  height: 24px;
}

.kc-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--foreground);
}

/* ----------------------- NEWSLETTER CTA ----------------------- */
.newsletter-banner {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
  text-align: center;
}

.newsletter-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.newsletter-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17,17,17,0.94) 0%, rgba(141,110,63,0.58) 100%);
  z-index: 2;
}

.newsletter-content {
  position: relative;
  z-index: 3;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}
.newsletter-form input {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
}

/* ----------------------- FAQ ACCORDION ----------------------- */
.faq-item {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
  transition: box-shadow 0.3s ease;
}
.faq-item.is-open {
  box-shadow: var(--shadow-soft);
  border-color: rgba(141, 110, 63, 0.35);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  color: var(--foreground);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, margin-top 0.3s ease;
  overflow: hidden;
}
.faq-item.is-open .faq-content {
  grid-template-rows: 1fr;
  margin-top: 0.875rem;
}
.faq-content-inner {
  min-height: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
