
/* fonts family */
:root {
  font-family: "roboto", sans-serif;
  --body-font: "roboto", sans-serif;
}

/* fonts color */
:root {
  --bs-red: #F0756C;
  --bs-orange: #F9A01F;
  --bs-yellow: #FFCB39;
  --bs-green: #F5F8F1;
  --bs-teal: #EFE8EF;
  --bs-cyan: #F5F5F5;
  --bs-black: #111111;
  --bs-white: #F0FAFC;
  --bs-gray: #666666;
  --bs-link-color: #FFFFFF;
  --bs-success: #FFCB39;
  --bs-secondary: #F9A11E;
  --bs-danger: #1A213D;
  --bs-light: #198F9F;
  --bs-primary: #1A2C6A;
  --bs-info: #F0FAFC;
  --bs-info-rgb: 240, 250, 252;
  --bs-primary-rgb: 28, 44, 108;
  --bs-light-rgb: 25, 143, 159;
  --bs-danger-rgb: 26, 33, 61;
  --bs-secondary-rgb: 249, 161, 30;
  --bs-success-rgb: 255, 203, 57;
  --bs-link-color-rgb: 255, 255, 255;
  --bs-link-hover-color: #F5E9E9;
  --bs-link-hover-color-rgb: 245, 233, 233;
  --bs-body-color: #111111;
  --bs-border-color: #F0FAFC;

  /* Modern gradients */
  --gradient-primary: linear-gradient(135deg, #1A2C6A 0%, #F9A01F 100%);
  --gradient-secondary: linear-gradient(135deg, #F9A01F 0%, #FFCB39 100%);
  --gradient-light: linear-gradient(135deg, #F0FAFC 0%, #E8F4F8 100%);
  --gradient-dark: linear-gradient(135deg, #1A2C6A 0%, #1A213D 100%);
  
  /* Modern shadows */
  --shadow-sm: 0 2px 4px rgba(26, 44, 106, 0.1);
  --shadow-md: 0 4px 12px rgba(26, 44, 106, 0.15);
  --shadow-lg: 0 8px 25px rgba(26, 44, 106, 0.2);
  --shadow-xl: 0 15px 35px rgba(26, 44, 106, 0.25);
  
  /* Modern border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body,
body [data-bs-theme=light] {
  --bs-blue: #1A2C6A;
  --bs-red: #F0756C;
  --bs-orange: #F9A01F;
  --bs-yellow: #EFEAEA;
  --bs-green: #F5F8F1;
  --bs-teal: #EFE8EF;
  --bs-cyan: #F5F5F5;
  --bs-black: #111111;
  --bs-white: #F0FAFC;
  --bs-gray: #555865;
  --bs-info: #C3C3C3;
}

body {
  font-family: var(--body-font);
  font-size: calc(1rem);
  color: var(--bs-gray);
  font-weight: 400;
  line-height: 1.6;
  background: var(--gradient-light);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--bs-blue);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

h5 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
}

h6 {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 600;
}

/* Modern text utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* general styles */
.text-primary {
  color: var(--bs-primary);
}

.text-secondary {
  color: var(--bs-secondary);
}

.text-light {
  color: var(--bs-light)
}

.text-info {
  color: var(--bs-info);
}

.text-bg-success {
  color: var(--bs-blue) !important;
}

/*--------------------------------------------------------------
/** 2.3 Section
--------------------------------------------------------------*/
/* - Section Padding
--------------------------------------------------------------*/
.padding-small {
  padding-top: 5em;
  padding-bottom: 5em;
}

.padding-medium {
  padding-top: 6em;
  padding-bottom: 6em;
}

.padding-large {
  padding-top: 12em;
  padding-bottom: 12em;
}

/* - Section Margin
  --------------------------------------------------------------*/
.margin-small {
  margin-top: 8.125em;
  margin-bottom: 8.125em;
}

.margin-medium {
  margin-top: 10em;
  margin-bottom: 10em;
}

.margin-large {
  margin-top: 12em;
  margin-bottom: 12em;
}

/*--------------------------------------------------------------
/** Modern Buttons
--------------------------------------------------------------*/
.btn {
  --bs-btn-padding-x: 2.5rem;
  --bs-btn-padding-y: 1rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bs-blue);
  --bs-btn-border-color: var(--bs-blue);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--bs-orange);
  --bs-btn-hover-border-color: var(--bs-orange);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: 0;
  --bs-btn-active-border-color: 0;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: 0;
  --bs-btn-disabled-border-color: 0;
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  --bs-btn-color: var(--bs-blue);
  --bs-btn-bg: var(--bs-orange);
  --bs-btn-border-color: var(--bs-orange);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--bs-blue);
  --bs-btn-hover-border-color: var(--bs-blue);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: 0;
  --bs-btn-active-border-color: 0;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: 0;
  --bs-btn-disabled-border-color: 0;
  background: var(--gradient-secondary);
  border: none;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--bs-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Pagination
------------------------------------------------------------- */
.pagination {
  --bs-pagination-color: var(--bs-black);
  --bs-pagination-hover-color: #fff;
  --bs-pagination-hover-bg: var(--bs-blue);
  --bs-pagination-hover-border-color: var(--bs-blue);
  --bs-pagination-focus-color: #fff;
  --bs-pagination-focus-bg: var(--bs-blue);
  --bs-pagination-focus-box-shadow: none;
  --bs-pagination-active-bg: var(--bs-blue);
  --bs-pagination-active-border-color: var(--bs-blue);
}


/* Accordion
------------------------------------------------------------- */
.accordion {
  --bs-accordion-btn-icon: url('https://api.iconify.design/ion/caret-down.svg?color=%23F2B821&width=30');
  --bs-accordion-btn-active-icon: url('https://api.iconify.design/ion/caret-down.svg?color=%23F2B821&width=30');
  --bs-accordion-border-radius: var(--radius-md);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: none;
}

.accordion-item {
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 44, 106, 0.1);
}

.accordion-button {
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--bs-primary);
}

/* Form
------------------------------------------------------------- */
.form-control {
  border: 2px solid #e4e4e4;
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}


/*----------------------------------------------*/
/* SITE STRUCTURE */
/*----------------------------------------------*/

/* Header Section
/*----------------------------------------------*/
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(240, 250, 252, 0.95);
  border-bottom: 1px solid rgba(26, 44, 106, 0.1);
}

.navbar-nav .nav-link {
  color: var(--bs-primary);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.focus {
  color: var(--bs-orange);
  background: rgba(249, 160, 31, 0.1);
}

.navbar-nav .nav-link:hover {
  color: var(--bs-orange);
  background: rgba(249, 160, 31, 0.1);
  transform: translateY(-1px);
}

#primary-header .dropdown .search::after {
  content: none;
}

#primary-header .search-dropdown .dropdown-menu {
  width: 260px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26, 44, 106, 0.1);
}

#primary-header .search-dropdown .dropdown-menu input {
  min-width: 100%;
  border-radius: var(--radius-sm);
}

#primary-header .search-dropdown .dropdown-menu button {
  padding: 0 12px;
  min-height: -webkit-fill-available;
  border-radius: var(--radius-sm);
}

/* Logo Text Styling */
.logo-text {
  font-family: var(--body-font);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.5vw, 2px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-secondary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text:hover::after {
  width: 100%;
}

.logo-text:hover {
  transform: scale(1.05);
}

/* Responsive Logo Adjustments */
@media (max-width: 1200px) {
  .logo-text {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    letter-spacing: 1.5px;
  }
}

@media (max-width: 992px) {
  .logo-text {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    letter-spacing: 1.2px;
  }
}

@media (max-width: 768px) {
  .logo-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 1px;
  }
  
  .navbar-brand {
    padding: 0.5rem 0;
  }
}

@media (max-width: 576px) {
  .logo-text {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    letter-spacing: 0.8px;
  }
  
  .navbar-brand {
    padding: 0.25rem 0;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: clamp(0.9rem, 1.6vw, 1.2rem);
    letter-spacing: 0.6px;
  }
}

@media (max-width: 360px) {
  .logo-text {
    font-size: clamp(0.8rem, 1.4vw, 1.1rem);
    letter-spacing: 0.5px;
  }
}

/* Ensure logo doesn't break navbar layout */
.navbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}

.navbar-brand .logo-text {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Enhanced Service Cards */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(26, 44, 106, 0.1) !important;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl) !important;
  border-color: var(--bs-primary) !important;
  background: rgba(255, 255, 255, 1);
}

.service-card .btn-outline-primary {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.service-card .btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--bs-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Emergency Services Styling */
#emergency-services .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

#emergency-services .btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Seasonal Maintenance Cards */
#seasonal-maintenance .bg-white {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

#seasonal-maintenance .bg-white:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl) !important;
  background: rgba(255, 255, 255, 1);
}

/* Safety & Compliance Icons */
#safety-compliance .fas {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#safety-compliance .d-flex:hover .fas {
  transform: scale(1.2) rotate(5deg);
  color: var(--bs-orange) !important;
}

/* Enhanced Section Backgrounds */
.bg-light {
  background: var(--gradient-light) !important;
}

.bg-info {
  background: var(--gradient-light) !important;
}

/* Services Section */
.sectiontitle {
  font-family: var(--body-font);
  font-size: calc(8rem);
  font-weight: 100;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Work Section */
.sectiontext {
  font-family: var(--body-font);
  font-size: calc(17rem);
  font-weight: 900;
  line-height: 50%;
  color: var(--bs-cyan);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.1;
}

@media screen and (max-width: 1100px) {
  .sectiontext {
    display: none;
  }
}

/* Testimonial Section */
.swiper-pagination-bullet {
  background-color: rgba(26, 44, 106, 0.3);
  opacity: 1;
  width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 12px));
  height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 12px));
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--gradient-primary);
  transform: scale(1.2);
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 6px);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .service-card {
    margin-bottom: 2rem;
  }
  
  #emergency-services .btn-danger {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  
  #seasonal-maintenance .bg-white {
    margin-bottom: 2rem;
  }
  
  .sectiontitle {
    font-size: calc(4rem);
  }
}

/*----------------------------------------------*/
/* PAGES STYLE */
/*----------------------------------------------*/

/* Projects Page */
button.filter-button {
  border: 0;
  background: transparent;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

button.filter-button.active,
button.filter-button:hover {
  color: var(--bs-white);
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-content .portfolio-img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
}

.project-content:hover .portfolio-img {
  opacity: 0.3;
  transform: scale(1.05);
}

.portfolio-description {
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-content:hover .portfolio-description {
  opacity: 1;
  transform: translateY(-10px);
}

/* Enhanced Hero Section */
.hero-background {
  background-image: url('../images/chimney-hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 930px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(240, 250, 252, 0.9) 0%, rgba(232, 244, 248, 0.8) 100%);
  z-index: 1;
}

.hero-background .container {
  position: relative;
  z-index: 2;
}

.hero-illustration {
  position: relative;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.hero-illustration img {
  filter: drop-shadow(0 10px 30px rgba(26, 44, 106, 0.2));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-illustration:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 40px rgba(26, 44, 106, 0.3));
}

/* Floating animation for hero illustration */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}



/* Enhanced Hero Text */
.herotext {
  text-shadow: 0 2px 10px rgba(26, 44, 106, 0.1);
  animation: fadeInUp 1s ease-out;
  position: relative;
}

.herotext::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-secondary);
  transition: width 0.8s ease-out;
  animation: expandLine 1.5s ease-out 0.5s forwards;
}

@keyframes expandLine {
  to {
    width: 100%;
  }
}

/* Hero section buttons enhancement */
.hero-background .btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-background .btn:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-background .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
  z-index: -1;
}

.hero-background .btn:hover::before {
  left: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero section responsive adjustments */
@media (max-width: 768px) {
  .hero-background {
    min-height: 700px;
    background-position: center center;
  }
  
  .hero-illustration {
    animation: float 4s ease-in-out infinite;
  }
}

@media (max-width: 576px) {
  .hero-background {
    min-height: 600px;
  }
}