/*
Theme Name: CarPlugins
Description: Custom WordPress theme for CarPlugins.com - Expert Car Maintenance & Repair Services in UAE
Version: 1.1
Author: Manus AI
*/

/* CarPlugins Custom Styles */
:root {
  --carplugins-blue: #1A2B4C;
  --carplugins-orange: #FF6600;
  --carplugins-grey: #CCCCCC;
  --carplugins-dark-grey: #333333;
}

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

body {
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.6;
  color: var(--carplugins-dark-grey);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  color: var(--carplugins-blue);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: #666;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

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

/* Header */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--carplugins-blue);
  cursor: pointer;
  padding: 0.5rem;
}

.main-nav {
  position: relative;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--carplugins-blue);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  display: block;
}

.main-nav a:hover {
  color: var(--carplugins-orange);
}

.cta-button {
  background: var(--carplugins-orange);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cta-button:hover {
  background: #e55a00;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--carplugins-blue) 0%, #2A3B5C 100%);
  color: white;
  padding: 120px 0 80px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  color: white;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  color: #e0e0e0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--carplugins-orange);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 1.1rem);
  transition: background 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 15px 30px;
  border: 2px solid white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 1.1rem);
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.btn-secondary:hover {
  background: white;
  color: var(--carplugins-blue);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Section Styles */
.section {
  padding: clamp(40px, 8vw, 80px) 0;
}

.section-alt {
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  max-width: 600px;
  margin: 0 auto;
}

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

.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 ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(26, 43, 76, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.service-features {
  list-style: none;
  text-align: left;
  margin-top: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--carplugins-orange);
  border-radius: 50%;
}

/* Certifications */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.certification-badge {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.certification-badge:hover {
  transform: scale(1.05);
}

.cert-icon {
  width: 60px;
  height: 60px;
  background: var(--carplugins-blue);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--carplugins-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.service-hours {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hours-list {
  list-style: none;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.hours-item:last-child {
  border-bottom: none;
}

.emergency-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.review-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-left: 4px solid var(--carplugins-orange);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reviewer-info h4 {
  color: var(--carplugins-blue);
  margin-bottom: 0.25rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.reviewer-location {
  color: #666;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.rating {
  display: flex;
  gap: 2px;
}

.star {
  color: #ffc107;
  font-size: 1rem;
}

.review-text {
  font-style: italic;
  color: #666;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

/* Contact Section */
.contact-section {
  background: var(--carplugins-blue);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--carplugins-orange);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.contact-item h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.contact-item p {
  color: #e0e0e0;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.footer-section ul li {
  padding: 0.25rem 0;
  color: #ccc;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-content {
    gap: 2rem;
  }
  
  .about-content {
    gap: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  
  .main-nav li {
    border-bottom: 1px solid #eee;
  }
  
  .main-nav li:last-child {
    border-bottom: none;
  }
  
  .main-nav a {
    padding: 1rem 2rem;
    text-align: center;
  }
  
  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero-section {
    padding: 100px 0 60px;
    margin-top: 70px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .btn-primary,
  .btn-secondary {
    min-width: auto;
    width: 100%;
    max-width: 280px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section {
    padding: clamp(30px, 6vw, 60px) 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .certification-badge {
    padding: 1.5rem 1rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .logo img {
    height: 40px;
  }
  
  .hero-section {
    padding: 80px 0 40px;
    margin-top: 60px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: none;
  }
  
  .services-grid {
    gap: 1rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .certifications-grid {
    grid-template-columns: 1fr;
  }
  
  .certification-badge {
    padding: 1rem;
  }
  
  .review-card {
    padding: 1rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .site-footer {
    padding: 2rem 0 1rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover {
    transform: none;
  }
  
  .certification-badge:hover {
    transform: none;
  }
  
  .main-nav a:hover {
    color: var(--carplugins-blue);
  }
  
  .main-nav a:active {
    color: var(--carplugins-orange);
  }
  
  .cta-button:hover {
    background: var(--carplugins-orange);
  }
  
  .cta-button:active {
    background: #e55a00;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  .service-icon img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 60px 0 40px;
  }
  
  .hero-text h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  
  .section {
    padding: clamp(20px, 4vw, 40px) 0;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .hero-buttons,
  .cta-button,
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-section {
    margin-top: 0;
    padding: 20px 0;
    background: white;
    color: black;
  }
  
  .hero-text h1 {
    color: var(--carplugins-blue);
  }
  
  .section {
    padding: 20px 0;
  }
  
  .service-card,
  .review-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

