/**
 * Main CSS.
 *
 * @package roofing
 * @author Masood HQ <hey@masoodhq.com>
 * @version 1.0
 */

/** 
 * ------------------------------
 *  Header 
 * ------------------------------
*/
/* .home .header-wrapper {
  position: absolute;
  width: 100%;
  z-index: 9;
} */

.header {
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}

/* .home .header {
  margin: 32px 0 0 0;
} */

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.header-element-wrapper {
  display: flex;
  gap: 12px;
}

.header .menu-title,
.header .menu-close-icon {
  display: none;
}

.header-element-wrapper .mobile-nav {
  display: none;
  background: var(--color-light-bg);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  position: relative;
}

.mobile-nav > span {
  font-size: clamp(20px, 4vw, 28px);
  cursor: pointer;
}

.header .menu-close-icon {
  position: absolute;
  top: 50px;
  right: 30px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--color-light-bg);
  border-radius: 50px;
  cursor: pointer;
}

.header .menu-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  margin: 0 0 24px 0;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-menu > li {
  margin: 0;
  padding: 0;
  position: relative;
}

.main-menu > li > a {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--color-heading);
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-menu li > a:hover,
.main-menu li.current-menu-item > a {
  color: var(--color-primary);
}

/* Hide submenu by default */
.menu-item-has-children .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  box-shadow: 0 2px 2px 0 #00000010;
  border-radius: 12px;
  padding: 10px 0;
  z-index: 1000;
}

/* Show submenu on hover */
.menu-item-has-children:hover .sub-menu {
  display: block;
}

/* Submenu items styling */
.sub-menu li {
  list-style: none;
}

.sub-menu li a {
  display: block;
  padding: 8px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Optional: Add smooth transition effect */
.menu-item-has-children .sub-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.menu-item-has-children:hover .sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.apply-overlay main:after {
  position: fixed;
  z-index: 1;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  content: '';
  cursor: pointer;
}

/** 
 * ------------------------------
 *  Content Area 
 * ------------------------------
*/

.main-wrapper {
  margin: 60px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
}

thead tr {
  background: var(--color-light-bg);
  text-align: left;
  font-weight: 500;
  border: 1px solid #E2E8F0;
}

thead td {
  padding: 14px;
}

tbody tr {
  border: 1px solid #E2E8F0;
}

td {
  padding: 14px;
  border: 1px solid #E2E8F0;
}


/* === Accordion === */

.accordion-wrapper h3 {
  font-size: var(--fs-xl);
}
.accordion-item {
	padding: 8px 0 0 0;
}

.accordion-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  border-bottom: var(--border-dark);
  padding: 0 0 8px 0;
  margin: 0 0 8px 0;
  cursor: pointer;
}

.accordion-content {
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

/** 
 * ------------------------------
 *  Footer 
 * ------------------------------
*/

.footer-wrapper {
  padding: 60px 0 0 0;
}

.footer-logo-wrapper {
  width: 400px;
}

.footer-widgets-wrapper {
  width: 100%;
  padding: 60px 0;
}

.footer-widgets-wrapper ul li {
  margin: 0 0 8px 0; 
}

.footer-widgets-wrapper .widget {
  width: 20%; 
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.footer-widgets .widget-title {
  font-weight: var(--fw-medium);
  font-size: var(--fs-lg);
}

.footer-widgets .widget a {
  color: var(--color-description);
}


.footer-copyright-inner {
  display: flex;
  justify-content: space-between;
}

.footer-copyright-inner ul {
  display: flex;
  gap: 12px;
}

.footer-copyright {
  padding: 32px 0;
  border-top: 1px solid rgba( 209, 209, 255, 0.27 );
}

.footer-copyright p, 
.footer-copyright ul {
  margin: 0;
}