/* AutoCare - Styles */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700&display=swap');

/* CSS Variables */
:root {
  --primary-color: #151a47;
  --secondary-color: #091855;
  --accent-color: #707db1;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Zen Maru Gothic", serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
}

/* Header Styles */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

.navbar-toggler {
  border-color: var(--white);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

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

.hero-content .lead {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Header for secondary pages */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 8rem 0 6rem;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

/* Section Styles */
.section {
  padding: 4rem 0;
  background-color: var(--white);
}

.section:nth-child(even) {
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Card Styles */
.custom-card {
  background: var(--white);
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.custom-card .icon {
  width: 60px;
  height: 60px;
  background-color: var(--light-bg);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.custom-card .icon i {
  font-size: 24px;
  color: var(--primary-color);
}

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

.custom-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Stats Cards */
.stats-card {
  background: var(--white);
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.stats-card .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.stats-card .label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.stats-card .description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* News Cards */
.news-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  height: 100%;
}

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

.news-card .card-body {
  padding: 1.5rem;
}

.news-card .news-date {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.news-card .news-likes {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.testimonial-card .rating {
  color: #ffd700;
  font-size: 1.2rem;
}

/* Form Styles */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.contact-form .form-control {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  font-family: "Zen Maru Gothic", serif;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(112, 125, 177, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

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

.footer .contact-info i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  z-index: 1050;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--accent-color);
}

.cookie-banner .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content .lead {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .custom-card,
  .contact-form {
    margin-bottom: 2rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .custom-card,
  .contact-form {
    padding: 1.5rem;
  }
}

/* Additional utility classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

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

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