:root {
  --brand-primary: #c0392b;
  --brand-secondary: #000000;
  --text-light: #ffffff;
  --text-dark:  #222222;
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
}
a { text-decoration: none; }

/* Navbar */
.navbar {
  background: var(--brand-primary);
}
.navbar .logo-img {
  height: 50px;
}
.navbar .nav-link {
  color: var(--text-light) !important;
  margin-left: 1rem;
  font-weight: 600;
}

/* Hero wrapper */
.banner {
  position: relative;
  height: 60vh;    /* fixed frame */
  overflow: hidden; 
}

/* Make the carousel fill that frame */
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  height: 100%;
}

/* Crop each slide to completely cover the 60vh frame */
#heroCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* ← crops to fill */
}

/* Overlay text */
.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 1.5rem;
  border-radius: 8px;
}
.banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: var(--text-light);
}
.banner-subtitle {
  margin-top: 0.5rem;
  color: var(--text-light);
}

/* Sections */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

/* Service Cards & Carousel */
.service-card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

/* Service-section carousel: center-crop each slide */
#carouselPainting .carousel-item {
  position: relative; /* ensure img can fill */
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

#carouselPainting .carousel-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


/* Buttons */
.btn-primary {
  background: var(--brand-primary);
  border: none;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--brand-secondary);
}

/* Footer */
footer {
  background: var(--brand-secondary);
  color: var(--text-light);
}
.footer-badge {
  height: 32px;
  vertical-align: middle;
  background: transparent;
}

/* Responsive */
@media (max-width: 768px) {
  .banner { height: 40vh; }
  .banner-title { font-size: 2rem; }
}
/* Center only in the two painting‐service carousels */
#carouselBefore .carousel-inner,
#carouselAfter .carousel-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
#carouselBefore .carousel-item img,
#carouselAfter .carousel-item img {
  max-width: 100%;
  height: auto;
}
/* Remove any flex‐based centering you added here:
   #carouselBefore .carousel-inner,
   #carouselAfter .carousel-inner {
     display: flex;
     align-items: center;
     justify-content: center;
   }
   #carouselBefore .carousel-item img,
   #carouselAfter .carousel-item img {
     max-width: 100%;
     height: auto;
   }
*/

/* Instead, target the ratio wrapper for both carousels */
#carouselBefore .ratio,
#carouselAfter .ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect */
  overflow: hidden;
}

#carouselBefore .ratio .carousel-item,
#carouselAfter .ratio .carousel-item {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

#carouselBefore .ratio .carousel-item img,
#carouselAfter .ratio .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
