:root {
  --primary: #B32D47;
  --primary-light: rgba(179, 45, 71, 0.1);
  --primary-dark: #8a2338;
  --light: #ffffff;
  --dark: #333333;
  --gray: #f5f5f7;
}

/* Base Styles */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Layout Fixes */
.container, .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

.row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

/* Text Colors */
.text-primary { color: var(--primary) !important; }
.text-dark { color: var(--dark) !important; }
.text-white { color: var(--light) !important; }

/* Background Colors */
.bg-primary { background: var(--primary) !important; }
.bg-light { background: var(--light) !important; }
.bg-gray { background: var(--gray) !important; }
.bg-dark { background: var(--dark) !important; }

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white !important;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-light {
  background: white;
  color: var(--primary) !important;
  font-weight: 600;
}

.btn-light:hover {
  background: #f8f9fa;
  color: var(--primary-dark) !important;
}

/* Header */
header {
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 15px 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  position: relative;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: white !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 15px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: calc(100% - 30px);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
#hero-video-header {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

#hero-video-header video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#hero-video-header video.active {
  opacity: 1;
}

.video-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 0 20px;
}

.video-overlay h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-overlay p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Service Cards */
.service-card {
  background: var(--primary-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
  border: none;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(179, 45, 71, 0.2);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-card h5 {
  margin: 20px 0 10px;
  padding: 0 15px;
}

.service-card p {
  padding: 0 15px 20px;
  margin-bottom: 0;
}

/* Gallery Items */
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 1/1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(179, 45, 71, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.gallery-content {
  padding: 20px;
  text-align: center;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: scale(1);
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(179, 45, 71, 0.1);
}

.testimonial-card:hover img {
  transform: scale(1.1);
}

.rating {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* CTA Section */
#cta {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}

#cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
  height: 50px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(179, 45, 71, 0.25);
}

textarea.form-control {
  height: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item p {
  margin: 0;
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: 15px;
}

.contact-item i.fa-phone-alt {
  transform: scaleX(-1);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 30px 0;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--primary-dark);
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .video-overlay h1 {
    font-size: 2rem;
  }
  
  .video-overlay p {
    font-size: 1.2rem;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .testimonial-card {
    margin-bottom: 30px;
  }
  
  .gallery-item {
    margin-bottom: 15px;
  }
}

@media (max-width: 575px) {
  .video-overlay h1 {
    font-size: 1.8rem;
  }
  
  .video-overlay p {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}