/**
 * Header and Footer Styles - Exact match with Angular app
 * This file contains all styles from the Angular header.component.css and footer.component.css
 */

/* ===========================
   HEADER STYLES
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar {
  background-color: #f8f9fa;
  padding: 10px 0;
  font-size: 14px;
}

.contact-info span {
  margin-right: 20px;
  color: #333;
}

.contact-info i {
  color: #1FC6C7;
  margin-right: 5px;
}

.contact-info a {
  color: #333;
  text-decoration: none;
}

.contact-info a:hover {
  color: #1FC6C7;
}

.social-links a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background-color: #1FC6C7;
  color: #fff;
  margin-left: 5px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #FF662A;
  transform: translateY(-2px);
}

.main-nav {
  padding: 20px 0;
}

.navbar-brand {
  text-decoration: none;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #FF662A;
  margin: 0;
}

.logo-img {
  max-height: 80px;
  width: auto;
}

.navbar-nav .nav-link {
  color: #1A1E32;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #1FC6C7;
}

.navbar-nav .btn-primary {
  background-color: #FF662A !important;
  border-color: #FF662A !important;
  padding: 8px 20px !important;
  font-weight: 500;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.navbar-nav .btn-primary:hover {
  background-color: #1FC6C7 !important;
  border-color: #1FC6C7 !important;
}

.navbar-nav .btn-primary:focus,
.navbar-nav .btn-primary:active {
  background-color: #FF662A !important;
  border-color: #FF662A !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 102, 42, 0.25) !important;
  outline: none !important;
}

.navbar-nav .nav-link:focus {
  outline: none !important;
  box-shadow: none !important;
  color: #1FC6C7;
}

.navbar-toggler:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.2rem rgba(31, 198, 199, 0.25) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #1FC6C7;
}

.dropdown-header {
  font-weight: 600;
  color: #1FC6C7;
}

/* ===========================
   FOOTER STYLES
   =========================== */

.site-footer {
  background-color: #1A1E32;
  color: #ecf0f1;
  margin-top: 0;
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-logo {
  max-width: 280px;
  height: auto;
}

.widget-title {
  color: #fff;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  /* Remove any border or underline */
  border: none !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.company-desc {
  color: #bdc3c7;
  line-height: 1.8;
  margin-bottom: 20px;
  word-wrap: break-word;
  white-space: normal;
  max-width: 100%;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  white-space: nowrap;
}

/* Add spacing for services columns */
.footer-widget .row .col-6:first-child .footer-links {
  padding-right: 10px;
}

.footer-widget .row .col-6:last-child .footer-links {
  padding-left: 10px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ecf0f1;
  font-size: 15px;
}

.contact-list i {
  color: #1FC6C7;
  margin-right: 10px;
  width: 20px;
}

.contact-list a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-list a:hover {
  color: #1FC6C7;
  text-decoration: none;
}

.social-links .social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: #1FC6C7;
  color: #fff;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links .social-link:hover {
  background-color: #FF662A;
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #000000;
  padding: 20px 0;
  border-top: 1px solid #34495e;
  width: 100%;
}

.footer-bottom .container-fluid {
  padding-left: 30px;
  padding-right: 30px;
}

.copyright-text {
  margin: 0;
  color: #95a5a6;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.footer-bottom-links li {
  margin-left: 20px;
}

.footer-bottom-links a {
  color: #95a5a6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.version-info {
  margin: 0;
}

.version-info small {
  color: #95a5a6;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  font-size: 13px;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */

@media (max-width: 991px) {
  .top-bar {
    display: none;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: 20px;
  }
  
  .navbar-nav .nav-item {
    margin: 5px 0;
  }
}

@media (max-width: 768px) {
  .footer-bottom-links {
    justify-content: center;
    margin-top: 10px;
  }
  
  .footer-bottom .text-end,
  .footer-bottom .text-start {
    text-align: center !important;
  }
  
  .version-info {
    margin-bottom: 10px;
  }
  
  .copyright-text {
    margin-bottom: 10px;
  }
}

/* ===========================
   FIXES FOR WORDPRESS SPECIFICS
   =========================== */

/* Remove any default WordPress heading styles that add underlines */
.footer-widget h4,
.footer-widget h3,
.footer-widget .widget-title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  text-decoration: none !important;
}

/* Ensure Font Awesome icons display properly */
.fa, .fas, .far, .fal, .fad, .fab {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Fix navbar alignment - ensure it's not pushed to the right */
.navbar-collapse {
  justify-content: flex-end;
}

.navbar-nav {
  margin-left: auto;
}

/* Ensure proper spacing between menu items */
.navbar-nav .nav-item {
  margin: 0 5px;
}

/* Fix dropdown menu positioning */
.dropdown-menu {
  margin-top: 0;
}

/* Ensure social icons in footer are properly styled */
.footer-widget .social-links {
  margin-top: 20px;
}

/* Remove any green lines or borders that might appear */
* {
  border-color: initial;
}

.footer-widget *:not(.social-link) {
  border-bottom: none !important;
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #1FC6C7;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background-color: #FF662A;
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 198, 199, 0.4);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}