/* Global Styles */
:root {
  --primary-color: #0a3b6c;
  --secondary-color: #e63946;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #0a3b6c;
  --white: #ffffff;
  --container-width: 1600px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin: 0 0 2rem 0;
  color: var(--primary-color);
}

section {
  padding: 3rem 0;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url("../assets/2025-02-24_12-41-05-0004.jpg") no-repeat top
    left/cover;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: self-start;
  flex-direction: column;
  justify-content: space-between;
}

.logo {
  width: 300px;
  z-index: 3;
  margin-left: 70px;
}

.logo img {
  width: 100%;
  height: auto;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 50px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #c1272d;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
  background: url("../assets/inside.jpg") no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 249, 250, 0.9);
  z-index: 1;
}

.about .container {
  position: relative;
  z-index: 2;
}

.about h2 {
  text-align: right;
}

.about-row {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
}

.about-row.reverse {
  flex-direction: row-reverse;
}

.about-text {
  flex: 1;
  display: flex;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-row:first-of-type .about-text {
  text-align: right;
}

.about-row.reverse .about-text {
  text-align: left;
}

.about-image {
  flex: 1;
  overflow: hidden;
  height: 360px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Prices Section */
.prices {
  background-color: var(--dark-bg);
  padding-bottom: 0;
  color: var(--white);
  position: relative;
}

.prices::after {
  width: 50%;
  height: 100%;
  position: absolute;
  content: '';
  clip-path: polygon(75% 25%, 100% 0%, 100% 100%, 0% 100%);
  background: #fff;
  bottom: 0;
  right: 0;
  z-index: 0;
}

.prices h2 {
  color: var(--white);
  text-align: left;
  margin-bottom: 0;
  max-width: 90%;
}

.prices-section {
  width: 50%;
  font-size: 1.5rem;
}

.prices-section div {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 15px;
}

.prices-section .vehicle {
  text-align: right;
  width: calc(100% - 220px);
}

.prices-section .price {
  width: 205px;
  color: #c28d8d;
  font-weight: bold;
}

.prices-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.car-wrapper {
  width: 50%;
  text-align: right;
}

.car-wrapper img{
  max-width: 650px;
  width: 100%;
}

/* Services Section */
.services {
  background-color: var(--white);
  padding: 3rem 0;
  width: 100%;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
}

.services .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.services-slider {
  position: relative;
  margin: 3rem 0;
}

.services-items {
  margin: 0 auto;
}

/* Slick slider custom styling for services */
.services .slick-slide {
  margin: 0 10px;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.services .slick-slide.slick-active {
  opacity: 1;
}

.services .slick-prev,
.services .slick-next {
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 0;
  cursor: pointer;
}

.services .slick-arrow:before {
  color: var(--primary-color);
  font-size: 40px;
}

.services .slick-arrow:hover:before {
  color: var(--secondary-color);
}

.services .slick-prev {
  left: 25px;
}

.services .slick-next {
  right: 25px;
}

.services .slick-prev:hover,
.services .slick-next:hover {
  background-color: transparent;
}

.service-item {
  flex: 0 0 calc(25% - 15px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-item.blurred {
  filter: blur(3px);
  opacity: 0.7;
  transform: scale(0.9);
}

.service-image {
  height: 350px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

.service-title {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 0px 10px 10px 100px;
  max-width: 250px;
  text-align: right;
  clip-path: polygon(75% 25%, 100% 0%, 100% 100%, 0% 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 130px;
  width: 100%;
}

.service-title h3 {
  margin: 0;
  font-size: 0.8rem;
}

.slider-arrow {
  background-color: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background-color: var(--secondary-color);
}

/* Why Us Section */
.why-us {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0;
}

.why-us h2 {
  color: var(--white);
  text-align: right;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 auto;
}

.why-us-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.why-us-item.right {
  flex-direction: row-reverse;
  text-align: right;
}

.number {
  font-size: 8rem;
  font-weight: 700;
  color: rgba(10, 59, 108, 0.7);
  line-height: 1;
}

.why-us-item p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Gallery Section */
.gallery {
  background-color: var(--light-bg);
  padding: 3rem 0;
  width: 100%;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
}

.gallery .container {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

.gallery-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.gallery-slider .slick-track {
  padding: 100px 0;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Slick slider custom styling for gallery */
.gallery .slick-center {
  transform: scale(1.4);
  z-index: 10;
  opacity: 1;
  position: relative;
  z-index: 99;
}

.gallery .slick-center .gallery-item {
  width: 60vw;
  margin: 0 auto;
}

.gallery .slick-slide:not(.slick-center) {
  opacity: 0.5;
  transform: scale(1);
  position: relative;
  z-index: 10;
}

.gallery .slick-prev,
.gallery .slick-next {
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery .slick-dots {
  bottom: -30px;
}

.gallery .slick-dots li button:before {
  font-size: 12px;
  color: #ccc;
  opacity: 1;
}

.gallery .slick-dots li.slick-active button:before {
  color: var(--primary-color);
  transform: scale(1.2);
}

/* Contact Section */
.contact {
  background-color: var(--primary-color);
  padding: 3rem 0;
  color: var(--white);
}

.contact h2 {
  color: var(--white);
  text-align: left;
}

.contact-details p,
.contact-details i,
.contact-form h3 {
  color: var(--white);
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin: 0 auto;
}

.contact-info {
  width: 50%;
}
.contact-form {
  width: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  outline: 5px solid rgba(255, 255, 255, 0.1);
  border: 10px solid var(--primary-color);
}

.map {
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-details p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-details i {
  font-size: 1.2rem;
  width: 25px;
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.submit-button {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 5px;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  background-color: #c1272d;
}

/* Modal */
.modal,
.image-viewer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active,
.image-viewer-modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 80vw;
  position: relative;
  overflow: hidden;
}

.close-modal,
.close-image-viewer {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover,
.close-image-viewer:hover {
  color: var(--text-color);
}

.full-image {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 5px;
}

.close-image-viewer {
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 3rem;
}

.modal .appointment {
  border: none;
  width: 100%;
  height: 100%;
}

.modal {
  overflow: hidden;
}

.modal h2 {
  margin: 0;
}

.modal-content {
  height: 90vh;
}

.phone-number {
  text-decoration: inherit;
  color: inherit;
}

@media screen and (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
    text-align: center;
    margin: 2rem 0;
    color: var(--primary-color);
  }

  section {
    padding: 0;
  }

  /* Hero Section */
  .hero {
    height: auto;
    background: url("../assets/2025-02-24_12-43-05-000.jpg") no-repeat center
      center/cover;
    padding: 0 0 10px;
  }

  .logo {
    width: 100%;
    z-index: 3;
    margin-bottom: 8rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-left: 0;
  }

  .logo img {
    max-width: 150px;
  }

  .hero-content {
    width: auto;
    max-width: 100%;
    margin-bottom: 0;
    padding: 10px;
    text-align: center;
    margin: 0 15px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px var(--primary-color);
  }

  .hero .container {
    padding: 0;
    display: block;
  }

  .about h2,
  .why-us h2,
  .prices h2 {
    text-align: center;
  }

  .prices h2 {
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .about-row {
    display: block;
  }

  .about-row:first-of-type .about-text,
  .about-row.reverse .about-text {
    text-align: center;
    margin-bottom: 16px;
  }

  .services,
  .why-us,
  .prices,
  .gallery,
  .contact {
    padding: 1rem 0;
  }

  .prices .car-wrapper,
  .prices::after {
    display: none;
  }

  .prices-wrapper {
    justify-content: center;
  }

  .prices-section {
    width: fit-content;
  }
  
  .prices-section div{
    justify-content: center;
    flex-direction: column;
    gap: 0;
    margin-bottom: 15px;
  }

  .prices-section .vehicle,
  .prices-section .price {
    text-align: center;
    width: 100%;
  }

  .why-us-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .why-us-item.right {
    flex-direction: row;
    text-align: left;
  }

  .why-us-item:nth-child(1) {
    order: 0;
  }
  .why-us-item:nth-child(2) {
    order: 2;
  }
  .why-us-item:nth-child(3) {
    order: 1;
  }
  .why-us-item:nth-child(4) {
    order: 3;
  }

  .contact-container {
    display: block;
  }
  .contact h2 {
    text-align: center;
  }

  .contact-details {
    padding: 0 20px 30px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .modal-content {
    height: 100vh;
    width: 100vw;
    max-width: 100%;
    max-height: 100%;
    margin-bottom: 10px;
    padding: 15px 0 30px;
  }
}
@media screen and (max-width: 462px) {
  .hero-content h1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
}
