/*
Theme Name: Charleston Fun Machines
Theme URI: https://charlestonfunmachines.com
Author: Charleston Fun Machines
Description: Arcade-themed WordPress theme for Charleston Fun Machines - Claw machine operator placing machines in businesses across Charleston.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: charlestonfunmachines
*/

/* ===== CSS Custom Properties ===== */
:root {
  --neon-pink: #ff3366;
  --neon-magenta: #ff0090;
  --neon-cyan: #00ffff;
  --electric-cyan: #33ffcc;
  --arcade-dark: #0f0f1e;
  --arcade-mid: #1a1a2e;
  --arcade-light: #252540;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #fff;
  color: #1f2937;
  line-height: 1.6;
}

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

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

/* ===== Utility Classes ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }

.neon-text-glow {
  text-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
}

.neon-text-glow-cyan {
  text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
}

.neon-box-glow {
  box-shadow: 0 0 5px var(--neon-magenta), 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta);
}

.neon-border-glow {
  box-shadow: 0 0 5px var(--neon-pink), 0 0 15px var(--neon-pink);
}

@media (prefers-reduced-motion: reduce) {
  .neon-text-glow,
  .neon-text-glow-cyan,
  .neon-box-glow,
  .neon-border-glow {
    text-shadow: none;
    box-shadow: none;
  }
}

/* ===== Particle Background ===== */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
}

.site-header .header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-logo {
  width: 16rem;
}

.site-nav {
  padding: 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.site-nav a {
  color: var(--neon-magenta);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--neon-pink);
}

/* ===== Section Base ===== */
.section {
  position: relative;
  z-index: 10;
  padding: 4rem 1rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title.pink { color: var(--neon-pink); }
.section-title.magenta { color: var(--neon-magenta); }

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, var(--arcade-dark) 0%, var(--arcade-mid) 50%, var(--arcade-light) 100%);
  color: #fff;
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 0, 144, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  position: relative;
}

.hero-title .highlight {
  color: var(--neon-pink);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}

.hero-cta {
  display: inline-block;
  background: var(--neon-magenta);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  transition: background 0.3s, transform 0.2s;
  position: relative;
}

.hero-cta:hover {
  background: var(--neon-pink);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Benefits Section ===== */
.benefits-section {
  background: rgba(249, 250, 251, 0.7);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(255, 0, 144, 0.15);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-magenta);
  margin-bottom: 0.75rem;
}

.benefit-card p {
  color: #6b7280;
  line-height: 1.7;
}

/* ===== How It Works ===== */
.how-it-works-section {
  background: rgba(255, 255, 255, 0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--neon-magenta);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* ===== Machines Section ===== */
.machines-section {
  background: rgba(249, 250, 251, 0.7);
}

.machines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.machines-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.machines-grid-4 img {
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #f9fafb;
}

.features-list {
  list-style: none;
  display: inline-block;
  text-align: left;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.features-list .check {
  color: var(--neon-pink);
  font-weight: 700;
}

/* ===== Revenue Section ===== */
.revenue-section {
  background: linear-gradient(135deg, var(--arcade-dark) 0%, var(--arcade-mid) 100%);
  color: #fff;
}

.revenue-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(4px);
}

.revenue-card .big-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--neon-pink);
  margin-bottom: 0.5rem;
}

.revenue-card .label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.revenue-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--electric-cyan);
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* ===== Contact Section ===== */
.contact-section {
  background: rgba(249, 250, 251, 0.7);
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 51, 102, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.15);
}

.contact-form textarea {
  resize: none;
}

.contact-form .submit-btn {
  width: 100%;
  background: var(--neon-magenta);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form .submit-btn:hover {
  background: var(--neon-pink);
}

.contact-form .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-info a {
  color: var(--neon-magenta);
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--neon-pink);
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 10;
  background: rgba(243, 244, 246, 0.9);
  border-top: 1px solid #e5e7eb;
  padding: 2rem 1rem;
  text-align: center;
  color: #9ca3af;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .site-logo { width: 20rem; }
  .site-nav { gap: 0.5rem 1.5rem; }
  .site-nav a { font-size: 1rem; }
  .section { padding: 6rem 1rem; }
  .section-title { font-size: 3rem; }
  .hero-title { font-size: 3.5rem; }
  .hero-subtitle { font-size: 1.375rem; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .machines-grid { grid-template-columns: repeat(2, 1fr); }
  .machines-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .site-logo { width: 24rem; }
  .hero-title { font-size: 4rem; }
  .section-title { font-size: 3.25rem; }
}
