/* Custom CSS for Res-Q On Road */

:root {
  --orange: #ff5722;
  --black: #000000;
  --white: #ffffff;
  --dark-gray: #333333;
  --light-gray: #f8f9fa;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  padding-top: 76px;
}

/* Custom Colors */
.text-orange {
  color: var(--orange) !important;
}

.bg-orange {
  background-color: var(--orange) !important;
}

.btn-orange {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-orange:hover {
  background-color: #e64a19;
  border-color: #e64a19;
  color: var(--white);
}

.btn-outline-orange {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline-orange:hover {
  background-color: #ff5722;
  border-color: #ff5722;
  color: var(--white);
}

/* Logo Styles */
.navbar-logo {
  height: 50px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo {
  height: 40px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}

/* Hero section logo (if needed) */
.hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: 2rem;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .navbar-logo {
    height: 40px;
  }

  .footer-logo {
    height: 35px;
  }

  .hero-logo {
    height: 80px;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 35px;
  }

  .footer-logo {
    height: 30px;
  }

  .hero-logo {
    height: 60px;
  }
}

/* Remove the old logo-circle styles since we're using the actual logo now */
.logo-circle {
  display: none;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-features i {
  margin-bottom: 10px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  padding: 120px 0 80px;
  text-align: center;
}

/* Section Titles */
.section-title {
  color: var(--dark-gray);
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--orange);
  margin: 10px auto;
}

/* Service Cards */
.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.service-icon {
  margin-bottom: 1rem;
}

/* Service Detail Cards */
.service-detail-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  border-left: 4px solid var(--orange);
}

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

.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.service-features li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: "✓";
  color: var(--orange);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Online Service Cards */
.online-service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

/* Area Cards */
.area-card,
.area-detail-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.area-card:hover,
.area-detail-card:hover {
  transform: translateY(-3px);
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease;
}

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

/* Team Cards */
.team-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.team-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--orange);
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  border-top: 4px solid var(--orange);
}

.stars {
  color: var(--orange);
}

.customer-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

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

.contact-info-section {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 10px;
  height: fit-content;
}

.contact-info-item {
  padding: 1rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 60px;
  display: flex;
  justify-content: center;
}

/* Emergency Contact Cards */
.emergency-contact-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

/* Quick Link Cards */
.quick-link-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.quick-link-card:hover {
  transform: translateY(-3px);
}

/* Map Container */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Floating Buttons */
.floating-call-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.floating-call-btn .btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-btn .btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* Form Styles */
.form-control:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
}

.form-check-input:checked {
  background-color: #ff5722;
  border-color: #ff5722;
}

/* Footer */
footer {
  margin-top: auto;
}

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

footer a:hover {
  color: var(--orange) !important;
}

.social-links a {
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .service-card,
  .feature-card,
  .testimonial-card {
    margin-bottom: 2rem;
  }

  .floating-call-btn,
  .whatsapp-btn {
    right: 15px;
  }

  .floating-call-btn {
    bottom: 15px;
  }

  .whatsapp-btn {
    bottom: 85px;
  }

  .floating-call-btn .btn,
  .whatsapp-btn .btn {
    width: 50px;
    height: 50px;
  }

  .page-header {
    padding: 100px 0 60px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-features .col-4 {
    margin-bottom: 1rem;
  }

  .emergency-numbers .btn {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .service-detail-card,
  .feature-card {
    padding: 1.5rem;
  }

  .contact-form-section,
  .contact-info-section {
    padding: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-gradient-orange {
  background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
}

.border-orange {
  border-color: var(--orange) !important;
}

.shadow-orange {
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ff5722;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e64a19;
}

/* Custom Service Icons */
.service-icon-flat-tyre {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.service-icon-flat-tyre::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 8px solid var(--orange);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
    linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}

.service-icon-flat-tyre::after {
  content: "⚡";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: var(--orange);
  z-index: 2;
}

/* Animated flat tyre icon */
.service-icon-flat-tyre-animated {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.tyre-outer {
  width: 60px;
  height: 60px;
  border: 6px solid var(--orange);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
}

.tyre-inner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #666;
}

.tyre-damage {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.tyre-tools {
  position: absolute;
  bottom: -5px;
  right: -5px;
  font-size: 16px;
  color: var(--orange);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* Flat tyre with wrench icon */
.flat-tyre-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.flat-tyre-svg {
  width: 60px;
  height: 60px;
}
