
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

html, body {
	scroll-behavior: smooth;
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', sans-serif;
}
h1, h2, h3 {
	font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #202e31;
}

.bg-fixed-opacity {
  position: relative;
  z-index: 1;
  background: none;
}

.bg-fixed-opacity::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../img/caplib_hero.png');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: auto 70%;
  opacity: 0.03;
  z-index: -1;
}
@media (max-width: 768px) {
  .bg-fixed-opacity::before {
    display: none;
  }
}

h2{
	font-size: 60px;
}

h3{
	font-size: 35px;
    text-transform: uppercase;
    margin-bottom:10px;
    margin-top:10px;
    letter-spacing: 1px;
}
h4{
	font-family: 'Lato', sans-serif;
	font-size: 18px;
	font-weight:bold;
    color: #202e31;
    text-decoration: underline;
}
h5{
	font-family: 'Lato', sans-serif;
	font-size: 24px;
	font-weight:bold;
    color: #202e31;
    text-decoration: none;
}
ul {
    margin: 0;
    padding-left: 20px; /* adds space for bullets */
    list-style-type: disc; /* or circle, square, none */
}

li {
    font-size: 14px;
    margin-bottom: 6px; /* spacing between items */
}

  
/* Hero Section */
#hero {
	background: url('../img/caplib_hero.png') no-repeat center center;
	background-size: contain;
	background-color: #ffffff; /* Optional: fallback color */
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Sticky Navbar */
#mainNavbar {
	transition: top 0.4s ease-in-out, opacity 0.3s;
	opacity: 0;
	top: -80px;
	position: fixed;
	width: 100%;
	z-index: 1030;
}

#mainNavbar.show {
	opacity: 1;
	top: 0;
}
#mainNavbar.navbar {
    background-color: #0889c2 !important;
	font-weight:bold;
}


.nav-link {
	transition: color 0.3s ease;
}

.nav-link:hover {
	color: #ffffff;
    border-bottom: 2px solid #ffffff;
	transition: color 0.5s ease;
}

@media (max-width: 991.98px) {
	.nav-link:hover {
    	color: #ffffff;
        border-bottom: none;
    	transition: color 0.5s ease;
    }
}
.nav-link-wrapper {
	position: relative;
	padding-bottom: 10px;
}
/* Toggler Styling */
.customer-toggler {
  display: none; /* Hide by default on larger screens */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1050;
  margin-right: 10px;
  transition: transform 0.4s ease-in-out; 
}

/* Line Styling */
.line {
  height: 4px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.top {
  width: 100%; /* Top line full width */
}

.middle {
  width: 70%; /* Middle line width smaller than top and bottom */
}

.bottom {
  width: 100%; /* Bottom line full width */
}

/* Active State when toggler is clicked */
.customer-toggler.active .top {
  width: 70%; /* Decrease width of top line */
}

.customer-toggler.active .middle {
  width: 100%; /* Increase width of middle line */
}

.customer-toggler.active .bottom {
  width: 70%; /* Decrease width of bottom line */
}

/* Show the customer-toggler only on smaller screens */
@media (max-width: 991.98px) {
  .customer-toggler {
    display: block; /* Or inline-block */
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    padding: 0;
  }
}

/* PILL SETTING */

.nav-pills .nav-link {
  padding: 8px 20px;
  margin: 0 5px;
  border-radius:0;
	background-color: #0889c2;
	color: white;
  transition: 0.3s;
}

.nav-pills .nav-link.active2 {
  background-color: #085bc2;
  color: white;
}

.nav-pills .nav-link:hover {
  background-color: #085bc2;
  color: white;
}

/* For the active tab content */
.tab-pane.active2 {
    display: block;  /* Make sure the content is visible */
}
.logo-box {
    flex: 0 0 30%;
    text-align: center;
}

@media (max-width: 768px) {
    .logo-box {
        flex: 0 0 90%; /* show 1 per slide on small screens */
    }
}

/* PILL SETTING */


/* Social Icons */
.social-icons {
	position: fixed;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	z-index: 1050;
}

.social-icons a {
	display: block;
	margin-bottom: 10px;
	width: 40px;
	height: 40px;
	color: white;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
	transform: scale(1.1);
	background-color: rgba(0, 0, 0, 0.7);
}

.bg-facebook { background-color: #3b5998; }
.bg-instagram { background-color: #e4405f; }
.bg-twitter   { background-color: #1da1f2; }
.bg-linkedin  { background-color: #0077b5; }

/* Get Quote Button */
.get-quote-btn {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%) rotate(-90deg);
	transform-origin: right center;
	background-color: #736059;
	color: white;
	padding: 5px 10px;
	font-weight: bold;
	z-index: 1050;
	cursor: pointer;
	white-space: nowrap;
	height: 70px;
	transition: transform 0.3s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}

.get-quote-btn:hover {
	transform: translateY(-50%) rotate(-90deg) scale(1.1);
	background-color: #000000;
	color: white;
}

/* Footer Styling */
.footer {
	background-color: #736059;
	color: white;
	padding: 20px 0;
	position: relative;
	bottom: 0;
	width: 100%;
	text-align: center;
	font-size: 14px;
}


/* Section */
section {
	padding: 100px 20px;
	min-height: 100vh;
}
.section-heading .main-line {
	height: 5px;
	background-color: #28a745; /* green or choose your preferred color */
	width: 100%;
	max-width: 300px;
	position: relative;
}

.section-heading .center-line {
	height: 5px;
	background-color: #fff; /* background color to "cut" the main line */
	width: 100%;
	max-width: 300px;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

.section-heading .center-line::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 10px;
	height: 5px;
	background-color: #28a745;
	transform: translateX(-50%);
	z-index: 1;
}
#services {
	padding: 60px 0;
}

.service-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	border-radius: 8px;
}

.service-image img {
	max-width: 100%;
	border-radius: 8px;
}

.service-text {
	max-width: 50%;
}

.service-text h3 {
	font-size: 1.8rem;
	margin-bottom: 10px;
}

.service-text p {
	font-size: 1rem;
	color: #6c757d;
}

.d-flex {
	display: flex;
}

.my-4 {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.text-center {
	text-align: center;
}

@media (max-width: 768px) {
	.service-box {
		flex-direction: column;
		text-align: center;
	}
	.service-image {
	  margin-bottom: 20px;
	}
	.service-text {
	  max-width: 100%;
	}
}
  
/* Scroll to Top Button */
.scroll-to-top-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;            /* Equal width */
	height: 40px;           /* Equal height */
	background-color: #0889c2;
	color: white;
	border: none;
	border-radius: 50%;
	padding: 10px;
	font-size: 14px;
	display: none; /* Initially hidden */
	z-index: 1050;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: opacity 0.3s, transform 0.3s;
}

.scroll-to-top-btn:hover {
	background-color: #085bc2;
	transform: scale(1.1);
}

ul.list-group > li {
    margin:0;
    border-radius: 0 !important;
}

/* Smooth Modal Transition */
.modal-content.animate-bottom {
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes modalEnter {
  from {
	opacity: 0;
	transform: scale(0.8);
  }
  to {
	opacity: 1;
	transform: scale(1);
  }
}

.modal.fade .modal-dialog {
	animation: modalEnter 0.5s ease-out;
}

/* Gallery Circle */
.circle-image-wrapper {
	position: relative;
	cursor: pointer;
	border-radius: 50%;
	overflow: hidden;
	width: 250px;
	height: 250px;
	margin: 0 auto;
	transition: transform 0.3s;
}

.circle-image-wrapper:hover {
	transform: scale(1.05);
}

.circle-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	transition: opacity 0.3s;
}

.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
	font-weight: bold;
	border-radius: 50%;
}

.circle-image-wrapper:hover .image-overlay {
	opacity: 1;
}



#map {
	background-color: transparent !important;
	height: 500px; /* Set an appropriate height for your map */
	width: 100%; /* Make it take up full width */
}
.leaflet-control-attribution,
.leaflet-control-zoom {
	display: none !important;
}
.leaflet-popup-content {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Area Heading Styles */
.area-heading .line {
  position: relative;
  width: 100%;
  height: 0;
}

.area-heading .line:after {
  content: '';
  position: absolute;
  width: 75px;
  height: 6px;
  background: #736059; /* Red color */
  left: 50%;
  transform: translateX(-50%);
  top: -10px;
}

.area-heading .line:before {
  content: '';
  position: absolute;
  width: 150px;
  height: 3px;
  background: #0889c2; /* Red color */
  left: 50%;
  transform: translateX(-50%);
  top: -8px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}