@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

/* Towing NearMe Austin - Ultra-Performance CSS */
:root {
  --light: #FEF3C7;
  --dark: #4B5563;
  --cta: #F59E0B;
  --extra: #FBBF24;
}

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

body {
  font-family: 'Rubik', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

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

/* Header */
header {
  background: var(--dark);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--cta);
}

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

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

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

.phone-header {
  background: var(--cta);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(75, 85, 99, 0.7), rgba(75, 85, 99, 0.7)), url('https://images.unsplash.com/photo-1698998882426-39a6609ab10a?q=80&w=1074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-image: linear-gradient(rgba(75, 85, 99, 0.7), rgba(75, 85, 99, 0.7)), url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=4140&q=80');
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: var(--cta);
  color: white;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 2s infinite;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 3rem;
  color: var(--cta);
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 2rem 0;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light);
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cta);
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  position: relative;
  min-height: 300px;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card:nth-child(1) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(2) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1544636331-e26879cd4d9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(3) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(4) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(5) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(6) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1581833971358-2c8b550f87b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(7) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1544636331-e26879cd4d9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(8) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(9) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(10) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(11) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1581833971358-2c8b550f87b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card:nth-child(12) {
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card-content {
  padding: 1.5rem;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-card h3 {
  color: white;
  margin-bottom: 1rem;
}

.blog-card h3 a {
  color: white;
  text-decoration: none;
}

.blog-card p {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card a {
  color: var(--cta);
  font-weight: bold;
  text-decoration: none;
}

/* Blog Article Layout */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 160px 20px 0 20px;
}

.blog-article-header {
  text-align: center;
  background: var(--light);
  padding: 3rem 2rem;
  border-radius: 20px;
  margin: 0 auto 3rem auto;
  position: relative;
  z-index: 1;
}

.blog-article-header h1 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-article-header p {
  color: var(--cta);
  font-size: 1.1rem;
  font-weight: 500;
}

.blog-article-content {
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  line-height: 1.8;
}

.blog-article-content h2 {
  color: var(--dark);
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
}

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

/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Services Hero Section */
.services-hero {
  height: 60vh;
  background: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1581833971358-2c8b550f87b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin: -100px -20px 4rem -20px;
}

.services-hero-content {
  max-width: 800px;
  padding: 2rem;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .services-hero {
    background-image: linear-gradient(rgba(75, 85, 99, 0.8), rgba(75, 85, 99, 0.8)), url('https://images.unsplash.com/photo-1581833971358-2c8b550f87b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=4140&q=80');
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Performance Optimizations */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}