/*===========================================
  GLOBAL STYLES - Base setup for the website
===========================================*/
:root {
  --primary-color: #332c78;
  --secondary-color: #f5f5f5;
  --dark: #222;
  --light: #fff;
  --accent: #e91e63;
  --button-bg: #362b77;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: var(--secondary-color);
  color: var(--dark);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Accessibility */
a:focus,
button:focus {
  outline: none;
  outline-offset: 3px;
}

/*===========================================
  TOP CONTACT BAR
===========================================*/
.top-contact-bar {
  background-color: var(--secondary-color);
  padding: 0.5rem 2rem;
}

.top-contact-bar ul {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  list-style: none;
}

.top-contact-bar a {
  color: var(--primary-color);
  font-weight: 500;
}

/*----Make it responsive on phones----------*/
@media screen and (max-width: 768px) {
  .top-contact-bar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem; /* tighter spacing for small screens */
  }

  .top-contact-bar {
    padding: 0.75rem 1rem;
    text-align: center;
  }

  .top-contact-bar a {
    font-size: 0.9rem; /* optional: reduce text size for better fit */
  }
}

.top-contact-bar i {
  font-size: 1rem;
}


/*===========================================
  NAVBAR
===========================================*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--secondary-color);
  flex-wrap: wrap;
}

#navbar-logo {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

#navbar-logo img {
  object-fit: contain;
}

#navbar-pages {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  font-family: 'Arial', sans-serif;
  color: var(--primary-color);
  flex-wrap: wrap;
  margin: 0 auto; /* Center horizontally */
  justify-content: center;
  flex: 1;
}

#navbar-pages .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

#navbar-pages .nav-links a {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: bold;
}

#navbar-pages .nav-links a:hover {
  color: #5a4da8;
}

.connect-btn {
  background-color: var(--button-bg);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

/* Default styles for the button (desktop view) */
.connect-btn {
  background-color: var(--button-bg);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-left: auto;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .connect-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    align-self: flex-start;
  }
}

/* Toggle button */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  #navbar-pages {
    display: none; /* Hide nav by default */
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px; /* Adjust depending on header height */
    left: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .menu-toggle {
    display: block;
    background: none;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
  }

  #navbar-pages {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  #navbar-pages.show {
    display: flex;
  }

  #navbar-pages .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .connect-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    align-self: start;
  }
}

#navbar-logo,
.menu-toggle,
.connect-btn {
  flex-shrink: 0;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background-color: #fff;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 10;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #1e174f;
  text-decoration: none;
  font-weight: normal;
}

.dropdown-menu li a:hover {
  background-color: #f4f4f4;
  color: #392a76;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/*===========================================
  FOOTER SECTION
===========================================*/
footer {
  background-color: #f7f7f7;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
}

.main-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

#social-media-links p {
  margin: 0.5rem 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons a {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #000;
}

.footer-links ul,
#footer-what-we-do-footer ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
#footer-what-we-do-footer li {
  margin: 0.3rem 0;
}

.footer-links a,
#footer-what-we-do-footer a {
  color: #333;
  transition: color 0.3s ease;
}

.footer-links a:hover,
#footer-what-we-do-footer a:hover {
  color: var(--primary-color);
}

/* Bottom Footer */
.bottom-line-footer {
  padding: 1rem 2rem;
}

#bottom-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

#logo img {
  height: 40px;
}

#bottom-line ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

#bottom-line ul li a {
  color: var(--primary-color);
  font-size: 0.9rem;
}

#bottom-line ul li a:hover {
  text-decoration: underline;
}
