/* CSS Reset */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.nav-links.active {
  display: flex !important;
}

.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--dark);
    padding: .75rem .75rem;
    border-radius: 1rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s;
}

/* Feedback widget */
#feedback-widget {
  position: fixed;
  top: 50%;
  right: -280px; /* hidden by default */
  transform: translateY(-50%);
  width: 280px;
  transition: right 0.4s ease;
  z-index: 9999;
  font-family: "Kantumruy Pro", sans-serif;
}

/* Slide in when active */
#feedback-widget.active {
  right: 0;
}

/* The handle (arrow button) */
#feedback-handle {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px 0 0 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panel */
#feedback-panel {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#feedback-panel h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

#feedback-panel textarea,
#feedback-panel input[type="email"] {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
}

#feedback-panel button {
  width: 100%;
  padding: 0.6rem;
  background: var(--accent);
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
  font-weight: 600;
}
#feedback-panel button:hover {
  background: var(--darker-accent);
  color: var(--light);
}


  footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

footer a {
  color: var(--accent, #f0c14b);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-social {
  margin: 1rem 0;
}

.footer-social a {
  color: #eee;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--accent, #f0c14b);
}



/* Dropdown menu */
.dropdown {
  position: relative;
}

/* Dropdown link alignment */
.dropdown > a {
  display: flex;
  align-items: center;
  justify-content: center;   /* centers Services text + arrow */
  gap: 0.1rem;
}

/* Arrow rotation */
.dropdown > a i {
  transition: transform 0.3s ease;
}

/* Rotate arrow when open (all viewports) */
.dropdown.open > a i {
  transform: rotate(180deg);
}


.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--light);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0 0 .5rem .5rem;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-menu li {
  width: 100%;
  list-style-type: none;
}

.dropdown-menu a {
  padding: 0.75rem .5rem;
  margin: 0;
  font-size: 0.95rem;
  text-transform: none;
  color: var(--dark);
  text-decoration: none;
  list-style-type: none;
}

.dropdown-menu a:hover {
  color: var(--primary);
  font-weight: 500;
}

/* Show on hover only on desktop */
@media (min-width: 1200px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
  .dropdown:hover > a i {
    transform: rotate(180deg);
  }
}

.dropdown.open .dropdown-menu {
  display: flex;
}

.active-dropdown {
  font-weight: 500;
}



/* Mobile dropdown menu */
@media (max-width: 1200px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
  }

  .dropdown > a {
    justify-content: center; /* keep Services centered */
    width: 100%;
  }

  .dropdown-menu a {
    display: block;
    text-align: center;
    padding: 1rem;
  }
}