/* ===== Core Styles ===== */
:root {
  --primary-red: #E31937;  /* Vibrant brand red */
  --dark-black: #1A1A1A;   /* Soft black */
  --pure-white: #FFFFFF;
  --light-gray: #F5F5F5;
  --light-red: #FFF5F6;    /* Subtle red background */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-black);
  background-color: var(--light-red);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--dark-black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

.lead {
  font-size: 1.25rem;
  color: #555;
}

/* ===== Navigation ===== */
.navbar {
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

.navbar-dark {
  background-color: var(--dark-black) !important;
  border-bottom: 1px dotted var(--primary-red);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}

.nav-link.active {
  color:  #28a745  !important;
}

/* ===== Buttons ===== */
.btn {
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-primary:hover {
  background-color: #C0102C;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(227, 25, 55, 0.3);
}

.btn-outline-primary {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-outline-primary:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

/* ===== Hero Section ===== */
.hero-section {
  padding: 5rem 0;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9));
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/bg-pattern.png') repeat;
  opacity: 0.03;
  z-index: -1;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--pure-white);
  border-radius: 10px;
  border-left: 4px solid green;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

/* ===== Cards ===== */
.card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(227, 25, 55, 0.1);
}

.card-body {
  padding: 2rem;
}

/* ===== Footer ===== */
footer {
  background-color: var(--dark-black);
  padding: 3rem 0 1.5rem;
}

footer a {
  color: var(--pure-white);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--primary-red);
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* ===== Utility Classes ===== */
.bg-light-red {
  background-color: var(--light-red);
}

.text-primary-red {
  color: var(--primary-red);
}

.rounded-lg {
  border-radius: 15px;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
}
.thank-you-box {
  position: relative;
  top: -20px;
}

.circle-check {
  width: 80px;
  height: 80px;
  background-color: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.confirmation-details {
  border-left: 4px solid var(--primary-red);
}

.circle-check {
  width: 80px;
  height: 80px;
  background-color: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.circle-check i {
  font-size: 2.5rem;
}

/* ===== GALLERY FIXES - REPLACE ALL PREVIOUS GALLERY CSS ===== */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
}

.gallery-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.gallery-item .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Image container */
.gallery-item .card-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.gallery-item .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item .card:hover .card-img-top {
  transform: scale(1.03);
}

/* Overlay caption */
.gallery-item .card-img-overlay {
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.gallery-item .gallery-caption {
  width: 100%;
  padding: 1rem;
  color: white;
}

/* Card body fixes */
.gallery-item .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.gallery-item .card-body p {
  flex-grow: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Client info at bottom */
.gallery-item .client-info {
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-item .card-body {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .gallery-item .card-img-container {
    height: 180px;
  }
  
  .gallery-item .card-body p {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 576px) {
  .gallery-item .card-img-container {
    height: 160px;
  }
}