/* Custom CSS for Ephraim Smart Ducts */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Oswald:wght@300;400;500;600;700&display=swap");

/* Root Variables */
:root {
  --primary: #e31c25;
  --secondary: #111111;
  --light: #ffffff;
  --dark: #343a40;
  --gray: #666;
  --font-family-sans-serif: "Montserrat", sans-serif;
  --font-family-heading: "Oswald", sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-family-sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray);
  text-align: left;
  background-color: var(--light);
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark);
}

/* Navbar Styles */
.nav-bar {
  position: relative;
  margin-top: 0;
  padding-top: 0;
  background: var(--secondary) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand h1 {
  color: var(--light) !important;
}

.navbar {
  padding: 0;
}

.navbar-nav {
  margin: 0;
}

.navbar-nav .nav-item .nav-link {
  padding: 8px 15px;
  color: var(--light) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
  color: var(--primary) !important;
}

/* Hero Section */
.carousel-item {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.carousel-caption h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Service Boxes */
.gym-class-box {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gym-class-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gym-class-box i {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  opacity: 0.3;
}

/* Icon Styling - Ensure all icons display properly */
.flaticon-barbell,
.flaticon-medal,
.flaticon-six-pack,
.flaticon-bodybuilding,
.flaticon-training,
.flaticon-trends,
.flaticon-support {
  font-size: 4rem !important;
  color: var(--primary);
}

.flaticon-barbell:before,
.flaticon-medal:before,
.flaticon-six-pack:before,
.flaticon-bodybuilding:before,
.flaticon-training:before,
.flaticon-trends:before,
.flaticon-support:before {
  font-size: inherit !important;
  margin-left: 0 !important;
}

/* Override Flaticon default styles */
[class^="flaticon-"]:before,
[class*=" flaticon-"]:before,
[class^="flaticon-"]:after,
[class*=" flaticon-"]:after {
  font-family: Flaticon !important;
  font-size: inherit !important;
  font-style: normal !important;
  margin-left: 0 !important;
}

/* Font Awesome Icons */
.fa {
  font-size: 2rem;
}

.fa-2x {
  font-size: 2rem !important;
}

.fa-3x {
  font-size: 3rem !important;
}

/* Contact section icons */
.contact-info .fa-2x {
  font-size: 3rem !important;
  margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
  background: var(--light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 2.5rem;
  color: var(--light);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Process Steps */
.process-step {
  padding: 2rem 1rem;
  background: var(--light);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #ff6b6b);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(227, 28, 37, 0.3);
}

.process-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary), #333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.process-icon i {
  font-size: 2rem;
  color: var(--light);
}

.process-step:hover .process-icon {
  transform: scale(1.1);
}

/* Benefits Section */
.benefit-item {
  padding: 1.5rem;
  background: var(--light);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.benefit-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.benefit-icon i {
  font-size: 1.5rem;
  color: var(--light);
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1) rotate(10deg);
}

.benefit-content h5 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.benefit-content p {
  color: var(--gray);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Feature Section */
.feature .row .col-md-6 {
  margin-bottom: 2rem;
}

.feature img {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature i {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: var(--primary);
  background: var(--light);
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Service Area */
.service-area-box {
  transition: all 0.3s ease;
}

.service-area-box:hover {
  transform: scale(1.05);
}

/* FAQ Section */
.accordion .card {
  border: none;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.accordion .card-header {
  background: var(--light);
  border: none;
  padding: 0;
}

.accordion .btn-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus {
  color: var(--primary);
  text-decoration: none;
  box-shadow: none;
}

.accordion .card-body {
  padding: 1.5rem;
  background: #f8f9fa;
}

/* Contact Section */
.contact-info {
  text-align: center;
  padding: 2rem 0;
}

.contact-info i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--dark);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--secondary) !important;
}

.footer h4 {
  color: var(--primary);
  font-weight: 600;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--light);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--light);
  text-align: center;
  line-height: 50px;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: var(--secondary);
  color: var(--light);
  transform: translateY(-3px);
}

/* Service Area List */
.service-area-list ul {
  list-style: none;
  padding: 0;
}

.service-area-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.service-area-list li:last-child {
  border-bottom: none;
}

.service-area-list i {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 2.5rem;
  }
  
  .carousel-caption h3 {
    font-size: 1.2rem;
  }
  
  .carousel-item {
    height: 400px;
  }
  
  .gym-class-box {
    margin-bottom: 1rem;
  }
  
  .feature .row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .process-step {
    margin-bottom: 1rem;
  }
  
  .benefit-item {
    margin-bottom: 1rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon i {
    font-size: 2rem;
  }
  
  .process-icon {
    width: 50px;
    height: 50px;
  }
  
  .process-icon i {
    font-size: 1.5rem;
  }
  
  .benefit-icon {
    width: 50px;
    height: 50px;
  }
  
  .benefit-icon i {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption h3 {
    font-size: 1rem;
  }

  .carousel-item {
    height: 300px;
  }

  .navbar-brand h1 {
    font-size: 1.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section Spacing */
section {
  padding: 4rem 0;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #c1181f;
  border-color: #c1181f;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Text Colors */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--light);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
