/*
Theme Name: SPEC33 by BigPeso33
Theme URI: https://bigpeso33.com
Author: BigPeso33
Author URI: https://bigpeso33.com
Description: Custom dark theme for SPEC33 by BigPeso33. Built around the SPEC33 brand identity — black, navy, crimson, and white with Japanese motorcycle culture aesthetics.
Version: 4.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: spec33
Tags: dark, custom, motorcycle, portfolio, one-page
*/

/* ================================================
   SPEC33 THEME — Color Variables & Global Reset
   ================================================ */

:root {
  --black:       #08090a;
  --navy:        #0e1a3a;
  --navy-mid:    #162347;
  --navy-light:  #1e3166;
  --red:         #cc1e1e;
  --red-bright:  #e82222;
  --white:       #f0f0f0;
  --white-dim:   #a0a8b8;
  --border:      rgba(255,255,255,0.09);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  line-height: 0.95;
  color: var(--white);
}

.spec33-display {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.92;
  letter-spacing: 2px;
}

.spec33-display span { color: var(--red); }

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 20px;
}

.section-title span { color: var(--red); }

/* ================================================
   BUTTONS
   ================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 18px rgba(204,30,30,0.45), 0 0 40px rgba(204,30,30,0.2);
}

.btn-primary:hover {
  background: var(--red-bright);
  color: var(--white);
  box-shadow: 0 0 24px rgba(204,30,30,0.7), 0 0 56px rgba(204,30,30,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 36px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ================================================
   NAVIGATION
   ================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,9,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 16px;
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo .logo-accent { color: var(--red); }

.site-logo .logo-by {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  font-family: 'Barlow', sans-serif;
  letter-spacing: 1px;
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-dim);
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--white);
}

.nav-cta {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-cta:hover { background: var(--red-bright); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 8px 12px;
  font-size: 18px;
}

/* ================================================
   HERO SECTION
   ================================================ */

/* Hero section — two-column layout */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 60px 60px;
  overflow: hidden;
  background: var(--black);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow-red {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(204,30,30,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-navy {
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,26,58,0.8) 0%, transparent 70%);
  pointer-events: none;
}

/* Two-column inner */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left column */
.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--red);
}

.hero-main-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 8px;
}

.hero-main-title span { color: var(--red); }

.hero-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 3vw, 40px);
  letter-spacing: 6px;
  color: var(--navy-light);
  margin-bottom: 32px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--white-dim);
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-desc strong { color: var(--white); }

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tagline-bar {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-tagline-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.hero-tagline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-tagline-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.hero-tagline-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 3px;
  color: var(--white-dim);
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-tagline-value .red { color: var(--red); }

/* Right column — logo */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(204,30,30,0.2));
  /* Drop in on page load, then float continuously */
  animation: logo-drop-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             logo-float 4s ease-in-out 0.9s infinite;
}

@keyframes logo-drop-in {
  0% {
    opacity: 0;
    transform: translateY(-32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes logo-float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Placeholder shown before logo is uploaded */
.hero-logo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(204,30,30,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,26,58,0.3);
}

.hero-logo-placeholder-inner {
  text-align: center;
  color: var(--white-dim);
}

.placeholder-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.hero-logo-placeholder-inner p {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white-dim);
  margin-bottom: 8px;
}

.placeholder-hint {
  font-size: 12px !important;
  color: rgba(255,255,255,0.3) !important;
  line-height: 1.8;
}

.placeholder-hint strong { color: var(--red); }

/* ================================================
   MARQUEE TICKER
   ================================================ */

.marquee-section {
  background: var(--red);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee-scroll 22s linear infinite;
}

.marquee-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--white);
  padding: 0 40px;
}

.marquee-dot { color: rgba(255,255,255,0.4); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================
   BUILDS / GARAGE SECTION
   ================================================ */

.builds-section {
  background: var(--black);
  padding: 100px 60px;
}

.builds-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
}

.builds-intro p {
  max-width: 400px;
  color: var(--white-dim);
  font-size: 16px;
  line-height: 1.8;
}

/* Carousel wrapper */
.builds-carousel-wrap {
  position: relative;
  overflow: hidden;
}

.builds-carousel {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  gap: 2px;
}

.build-card {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  flex: 0 0 calc(33.333% - 2px);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.build-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.7);
  transition: filter 0.4s, transform 0.5s;
  display: block;
}

.build-card:hover img {
  filter: brightness(0.75) saturate(0.9);
  transform: scale(1.04);
}

.build-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,9,10,0.95) 0%, transparent 55%);
  padding: 28px;
  pointer-events: none;
}

.build-overlay-content {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
}

.build-year {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.build-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1;
}

.build-spec {
  font-size: 13px;
  color: var(--white-dim);
}

.build-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-top: 10px;
}

.build-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Carousel arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8,9,10,0.8);
  border: 1px solid var(--border);
  color: var(--white);
  width: 48px;
  height: 48px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  background: var(--border);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.carousel-dot.active {
  background: var(--red);
  border-color: var(--red);
}

/* ================================================
   SECTION DIVIDER
   ================================================ */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* ================================================
   ABOUT SECTION
   ================================================ */

.about-section {
  background: var(--navy);
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}

.about-bg-text {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 220px;
  color: rgba(255,255,255,0.025);
  letter-spacing: 10px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.about-img-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80%;
  height: 80%;
  border: 2px solid var(--red);
  z-index: -1;
}

.about-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--white-dim);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.about-body {
  font-size: 17px;
  line-height: 1.9;
  color: var(--white-dim);
  margin-bottom: 32px;
}

.about-body strong { color: var(--white); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.about-tag {
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 16px;
}

/* ================================================
   SERVICES SECTION
   ================================================ */

.services-section {
  background: var(--black);
  padding: 100px 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 60px;
}

.service-card {
  background: var(--black);
  padding: 44px 36px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.service-card:hover {
  background: var(--navy);
  border-bottom-color: var(--red);
}

.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 20px;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.service-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--white-dim);
}

/* ================================================
   BUILD TRACKER CTA
   ================================================ */

.tracker-section {
  background: var(--navy);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.tracker-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--navy-light));
}

.tracker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.tracker-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
}

.tracker-text h2 span { color: var(--red); }

.tracker-text p {
  color: var(--white-dim);
  margin-top: 16px;
  max-width: 460px;
  line-height: 1.8;
}

.tracker-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 60px 60px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand { max-width: 300px; }

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-logo span { color: var(--red); }

.footer-tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--white-dim);
  letter-spacing: 1px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.footer-desc {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.8;
}

.footer-col h4 {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--white-dim);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--white-dim);
  letter-spacing: 1px;
}

.footer-copy span { color: var(--red); }

.footer-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 2px;
}

/* ================================================
   RESPONSIVE — MOBILE & TABLET
   ================================================ */

@media (max-width: 1024px) {
  .build-card {
    flex: 0 0 calc(50% - 1px);
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-img-wrap { max-width: 420px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; gap: 0; justify-content: space-between; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--black); border-bottom: 1px solid var(--border); padding: 20px; }
  .main-nav.open ul { flex-direction: column; gap: 16px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-cta-bimmercode { display: none; }
  .btn-bimmercode { padding: 14px 20px; font-size: 12px; letter-spacing: 1px; }

  .hero-section { padding: 80px 24px 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .hero-logo-img { max-width: 320px; }
  .hero-logo-placeholder { aspect-ratio: 16 / 7; }

  .builds-section,
  .about-section,
  .services-section { padding: 64px 24px; }

  .build-card { flex: 0 0 100%; }
  .services-grid { grid-template-columns: 1fr; }

  .builds-intro { flex-direction: column; align-items: flex-start; }

  .tracker-section { padding: 60px 24px; }
  .tracker-inner { flex-direction: column; align-items: flex-start; }
  .tracker-btns { flex-direction: row; flex-wrap: wrap; }

  .site-footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .forum-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* ================================================
   BIMMERCODE BUTTONS
   ================================================ */

.btn-bimmercode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a56a0;
  color: var(--white);
  border: none;
  padding: 14px 36px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 18px rgba(26,86,160,0.5), 0 0 40px rgba(26,86,160,0.25);
}
.btn-bimmercode:hover {
  background: #1e66c4;
  color: var(--white);
  box-shadow: 0 0 24px rgba(30,102,196,0.75), 0 0 56px rgba(30,102,196,0.35);
}

.nav-cta-bimmercode {
  background: #1a56a0;
  color: var(--white);
  border: none;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta-bimmercode:hover { background: #1e66c4; color: var(--white); }
