/* Home page specific styles (templates/public/index.html.twig) */

.hero-section {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider-container,
.hero-slider,
.hero-slide {
  width: 100%;
  height: 550px;
}

.hero-slide-img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Default fallback, can be overridden from back-office hero.custom_css */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-section .lead {
  font-size: 1.1rem;
  opacity: 0.95;
}

.about-slider-wrapper {
  width: 100%;
  min-height: 360px;
}

.about-slide-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.alert-message {
  background: #dc3545;
  color: #fff;
  border: none;
}

.card-service {
  border: 1px solid #e9ecef;
  transition: box-shadow 0.2s;
}

.card-service:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card-service {
  border-color: #3a3f4a;
  background: #252830;
}

[data-theme="dark"] .card-service:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-service .card-title {
  color: var(--cl-navy);
  font-weight: 600;
}

[data-theme="dark"] .card-service .card-text {
  color: #b7bdc8 !important;
}

[data-theme="dark"] .card-service .text-muted {
  color: #b7bdc8 !important;
}

.quick-service-icon {
  width: 64px;
  height: 64px;
  display: inline-block;
}

.quick-service-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.quick-service-separator {
  margin: 1rem 0;
  opacity: 0.25;
}

.quick-service-subtext {
  color: #5c6773;
  font-weight: 500;
  margin: 0;
}

[data-theme="dark"] .quick-service-subtext {
  color: #b7bdc8;
}

[data-theme="light"] .quick-service--repair .card-title,
:root .quick-service--repair .card-title {
  color: #0a396a;
}

[data-theme="light"] .quick-service--windshield .card-title,
:root .quick-service--windshield .card-title {
  color: #18416d;
}

[data-theme="light"] .quick-service--maintenance .card-title,
:root .quick-service--maintenance .card-title {
  color: #09365f;
}

[data-theme="dark"] .quick-service--repair .card-title {
  color: #7bbcff;
}

[data-theme="dark"] .quick-service--windshield .card-title {
  color: #84c3ff;
}

[data-theme="dark"] .quick-service--maintenance .card-title {
  color: #75b7ff;
}

[data-theme="dark"] .quick-service-icon {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.55));
}

[data-theme="dark"] .card-service .card-title {
  color: #6eb5ff;
}

/* Services cards: keep transparency of images */
.service-card {
  background: transparent !important;
  border: 0 !important;
}

.service-card > a {
  display: block;
  width: 100%;
}

/* Button width = 200/260 of image (usable center area) */
.btn-service-card {
  display: inline-block;
  width: 76.923%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  border-radius: 0;
  background: var(--btn-action-gradient);
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

/* Home service buttons: rounded only on bottom corners */
span.btn-service-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}


.btn-service-card:hover {
  background: var(--btn-action-gradient-hover);
  color: #fff;
}

[data-theme="dark"] .btn-service-card {
  background: var(--btn-action-gradient);
  color: #fff;  
}

[data-theme="dark"] .btn-service-card:hover {
  background: var(--btn-action-gradient-hover);
  color: #fff;
}

.testimonial-section {
  background: linear-gradient(
    160deg,
    #f0f8ff 0%,
    #e8f4fc 35%,
    #dceef8 70%,
    #c8e4f5 100%
  );
  background-attachment: local;
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Cpath fill='none' stroke='rgba(74,144,226,0.08)' stroke-width='0.5' d='M0,50 Q100,30 200,50 T400,50'/%3E%3Cpath fill='none' stroke='rgba(74,144,226,0.06)' stroke-width='0.5' d='M0,60 Q100,40 200,60 T400,60'/%3E%3Cpath fill='none' stroke='rgba(74,144,226,0.05)' stroke-width='0.5' d='M0,70 Q150,50 300,70'/%3E%3C/svg%3E")
    repeat-x;
  opacity: 0.9;
  pointer-events: none;
}

/* Reuse the same light blue background as testimonials */
.section-soft-blue {
  background: linear-gradient(
    160deg,
    #f0f8ff 0%,
    #e8f4fc 35%,
    #dceef8 70%,
    #c8e4f5 100%
  );
  background-attachment: local;
  position: relative;
  overflow: hidden;
}

.section-soft-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Cpath fill='none' stroke='rgba(74,144,226,0.08)' stroke-width='0.5' d='M0,50 Q100,30 200,50 T400,50'/%3E%3Cpath fill='none' stroke='rgba(74,144,226,0.06)' stroke-width='0.5' d='M0,60 Q100,40 200,60 T400,60'/%3E%3Cpath fill='none' stroke='rgba(74,144,226,0.05)' stroke-width='0.5' d='M0,70 Q150,50 300,70'/%3E%3C/svg%3E") repeat-x;
  opacity: 0.9;
  pointer-events: none;
}

[data-theme="dark"] .section-soft-blue {
  background: linear-gradient(160deg, #1e2530 0%, #252830 35%, #2a3040 70%, #1e2530 100%);
}

[data-theme="dark"] .section-soft-blue::before {
  opacity: 0.3;
}

.avis-quote-icon {
  font-size: 3.5rem;
  color: var(--cl-primary-light);
  line-height: 1;
  font-family: Georgia, serif;
}

.avis-slide .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 2rem;
}

.avis-slide .card-text {
  font-size: 1.15rem;
  color: #2c3e50;
  max-width: 85%;
}

.avis-slide .avis-author {
  color: #34495e;
  font-size: 0.95rem;
}

[data-theme="dark"] .testimonial-section {
  background: linear-gradient(160deg, #1e2530 0%, #252830 35%, #2a3040 70%, #1e2530 100%);
}

[data-theme="dark"] .testimonial-section::before {
  opacity: 0.3;
}

[data-theme="dark"] .avis-slide .card-text {
  color: #d0d5dc;
}

[data-theme="dark"] .avis-slide .avis-author {
  color: #a0a5b0;
}

.section-alt-bg {
  background: #f5f5fa;
}

[data-theme="dark"] .section-alt-bg {
  background: #1a1d23 !important;
}

[data-theme="dark"] .navbar-toggler {
  border-color: #4a4f58;
}

[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

