/*
Theme Name: FineTuned
Theme URI: https://finetunedhp.com
Author: FineTuned
Author URI: https://finetunedhp.com
Description: A high-performance automotive tuning WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finetuned
Tags: automotive, performance, tuning, business, one-column, custom-logo, featured-images
*/

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-background: hsl(0, 0%, 7%);
  --color-foreground: hsl(0, 0%, 95%);
  --color-card: hsl(0, 0%, 10%);
  --color-card-foreground: hsl(0, 0%, 95%);
  --color-primary: hsl(0, 92%, 48%);
  --color-primary-foreground: hsl(0, 0%, 100%);
  --color-secondary: hsl(0, 0%, 15%);
  --color-secondary-foreground: hsl(0, 0%, 95%);
  --color-muted: hsl(0, 0%, 20%);
  --color-muted-foreground: hsl(0, 0%, 60%);
  --color-border: hsl(0, 0%, 20%);
  --gradient-dark: linear-gradient(135deg, hsl(0, 0%, 7%) 0%, hsl(0, 0%, 10%) 100%);
  --gradient-red: linear-gradient(135deg, hsl(0, 92%, 48%) 0%, hsl(0, 85%, 40%) 100%);
  --shadow-glow: 0 0 40px hsla(0, 92%, 48%, 0.4);
  --shadow-card: 0 10px 30px -10px hsla(0, 0%, 0%, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gradient-dark);
  color: var(--color-foreground);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
}

a {
  color: var(--color-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-primary);
}

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

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(12px);
}

.site-header nav {
  padding: 1rem;
}

.site-header .header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 3rem;
  width: auto;
}

.main-navigation {
  display: none;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  color: var(--color-foreground);
  transition: var(--transition-smooth);
}

.main-navigation a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--color-foreground);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.cta-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 0.375rem;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.cta-button:hover {
  background: hsl(0, 85%, 40%);
  color: var(--color-primary-foreground);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .main-navigation {
    display: block;
  }
  
  .menu-toggle {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  padding: 8rem 1rem 4rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fade-in 0.8s ease-in;
}

.hero-content .text-gradient {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

/* About Section */
.about-section {
  padding: 5rem 1rem;
}

.about-content {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
}

@media (min-width: 768px) {
  .about-content h2 {
    font-size: 3rem;
  }
}

/* Services Section */
.services-section {
  padding: 5rem 1rem;
  background: var(--color-card);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--color-secondary);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-muted-foreground);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Form Section */
.tuning-form-section {
  padding: 5rem 1rem;
}

.form-wrapper {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--color-card);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card);
}

.form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tuning-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tuning-form input,
.tuning-form select,
.tuning-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  color: var(--color-foreground);
  font-family: inherit;
}

.tuning-form textarea {
  min-height: 120px;
  resize: vertical;
}

.tuning-form button {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tuning-form button:hover {
  background: hsl(0, 85%, 40%);
  transform: translateY(-2px);
}

/* Footer Styles */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--color-muted-foreground);
  transition: var(--transition-smooth);
}

.social-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-muted-foreground);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog/Archive Styles */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  background: var(--color-card);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.post-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Single Post Styles */
.single-post {
  max-width: 48rem;
  margin: 8rem auto 4rem;
  padding: 0 1rem;
}

.single-post h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content {
  margin-top: 2rem;
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content img {
  border-radius: 0.5rem;
  margin: 2rem 0;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-in;
}

/* Utility Classes */
.text-primary {
  color: var(--color-primary);
}

.glow-red {
  box-shadow: var(--shadow-glow);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

/* Page Spacing */
.page-content {
  padding: 8rem 1rem 4rem;
  min-height: calc(100vh - 200px);
}
