/* Pettigrew Racing - Main Stylesheet */
/* Base Styles & Variables */
:root {
  --primary: #9B111E; /* Deep red instead of green */
  --primary-dark: #7A0D18;
  --secondary: #FFD700; /* Gold */
  --secondary-dark: #E6C200;
  --accent: #333333; /* Dark gray accent instead of purple */
  --dark: #111111;
  --light: #FFFFFF;
  --gray: #F5F5F5;
  --gray-dark: #999999;
  --font-main: 'Roboto', sans-serif; /* Different font */
  --font-heading: 'Oswald', sans-serif; /* Different font */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: #f9f9f9; /* Simple background instead of gradient */
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
  text-transform: uppercase; /* Added text transform */
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 0; /* Square buttons instead of rounded */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
}

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

/* Header & Navigation */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: var(--dark); /* Dark header instead of light */
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--light); /* Light text on dark background */
  margin-left: 10px;
}

.logo-text span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--light); /* Light text on dark background */
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary); /* Gold underline */
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 30px;
  height: 3px;
  background: var(--light); /* Light color hamburger */
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(to right, rgba(155, 17, 30, 0.9), rgba(122, 13, 24, 0.85)), url('../images/hero-bg.svg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--light);
  overflow: hidden;
}

/* Different style for hero wave */
.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url('../images/checkered-flag.svg');
  background-size: contain;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem; /* Larger title */
  color: var(--light);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

/* Features Section */
.features {
  position: relative;
  background: var(--light);
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-item:hover {
  transform: translateY(-10px);
  border: 1px solid var(--secondary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Games Section */
.games {
  background-color: var(--dark);
  color: var(--light);
  position: relative;
}

.games .section-title h2 {
  color: var(--light);
}

.games::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern.svg');
  background-size: 200px;
  opacity: 0.05;
  pointer-events: none;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.game-card {
  background: var(--accent);
  border-left: 5px solid var(--secondary);
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.game-image {
  height: 160px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.game-image svg {
  max-width: 100%;
  height: 100%;
}

.game-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.game-text {
  margin-bottom: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.game-link {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  position: relative;
}

.game-link:hover {
  color: var(--light);
}

/* Testimonial Section */
.testimonials {
  background: var(--gray);
  position: relative;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--light);
  border-radius: 0; /* Square cards */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 30px;
  position: relative;
  border-top: 5px solid var(--primary); /* Top border instead of quote */
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.author-info h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* News Section */
.news {
  background: var(--light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.news-excerpt {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.news-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.news-link svg {
  width: 20px;
  height: 20px;
  margin-left: 5px;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: var(--secondary);
}

.news-link:hover svg {
  transform: translateX(5px);
}

/* CTA Section */
.cta {
  background: var(--primary); /* Red background */
  color: var(--light); /* Light text */
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-light.svg');
  background-size: 200px;
  opacity: 0.05;
  pointer-events: none;
}

.cta h2 {
  font-size: 2.5rem;
  color: var(--light); /* Light text */
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Email form */
.email-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
}

.email-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
}

.email-form button {
  background: var(--secondary);
  color: var(--dark);
  border: none;
  padding: 0 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-form button:hover {
  background: var(--secondary-dark);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 60px 0 20px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0; /* Square social icons */
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.footer-title {
  font-size: 1.2rem;
  color: var(--light);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact li svg {
  margin-right: 10px;
  color: var(--secondary);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Footer Legal Links */
.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 15px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero {
    height: auto;
    padding: 120px 0 100px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%; /* Slide from right instead of left */
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: all 0.5s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0; /* Slide from right instead of left */
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .email-form input {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

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

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
