/* === General === */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
}

/* === Header === */
header {
  background-color: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

header img {
  height: 60px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #001f3f;
  border-bottom: 2px solid #001f3f;
}

/* === Hero Section === */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 120px 20px;
  min-height: 400px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3em;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* === Services Section === */
.services-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

.services-section h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* === Accordion === */
.accordion {
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.accordion summary {
  cursor: pointer;
  padding: 16px 20px;
  background-color: #f4f4f4;
  font-weight: 600;
  font-size: 1.1em;
  border-bottom: 1px solid #ddd;
}

.accordion summary:hover {
  background-color: #e0e0e0;
}

.accordion[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion div {
  padding: 16px 20px;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

/* === Home Services Cards === */
.home-services div[style*="flex: 1 1 250px"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-services div[style*="flex: 1 1 250px"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* === Team Member Cards === */
.team-member {
  text-align: center;
  width: 200px;
}

.team-member img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-member h3 {
  margin-top: 10px;
}

.team-member p {
  color: #555;
}

/* === Onboarding Button === */
.onboarding-button {
  display: inline-block;
  margin-top: 30px;
  background-color: #0074cc;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.onboarding-button:hover {
  background-color: #005fa3;
}

/* === Footer === */
footer {
  background-color: #001f3f;
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-top: 80px;
  font-size: 0.9em;
}

footer a {
  color: white;
  text-decoration: underline;
  font-size: 0.9em;
}

/* === Accordion === */
.accordion {
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
  margin: 0;
}

.accordion summary {
  cursor: pointer;
  padding: 20px;
  background-color: #f4f4f4;
  font-weight: 600;
  font-size: 1.2em;
  border-bottom: 1px solid #ddd;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary:after {
  content: '▸';
  float: right;
  transition: transform 0.3s;
}

.accordion[open] summary:after {
  transform: rotate(90deg);
}

.accordion summary:hover {
  background-color: #e0e0e0;
}

.accordion[open] {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.accordion div {
  padding: 20px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  line-height: 1.5;
}

/* === Mobile Burger Menu Fix === */

.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }

  header {
    position: relative !important;
    padding: 18px 20px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  header img {
    height: auto !important;
    max-height: 58px !important;
    max-width: calc(100% - 66px) !important;
    width: auto !important;
    display: block !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #f1f3f5 !important;
    color: #001f3f !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }

  nav.main-nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 10000 !important;
    background: #ffffff !important;
    border: 1px solid #e8edf5 !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18) !important;
    padding: 12px !important;
    margin: 0 !important;
  }

  nav.main-nav.is-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  nav.main-nav a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #001f3f !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    white-space: normal !important;
  }

  nav.main-nav a:hover,
  nav.main-nav a.active {
    background: #001f3f !important;
    color: #ffffff !important;
    border-bottom: none !important;
  }
}

/* === Mobile Burger Menu Fix === */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  header {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  header img {
    height: auto !important;
    max-height: 56px !important;
    max-width: calc(100vw - 92px) !important;
    display: block !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #f1f3f5 !important;
    color: #001f3f !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }

  header nav,
  header nav.main-nav,
  nav.main-nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-width: calc(100vw - 28px) !important;
    background: #ffffff !important;
    border: 1px solid #e8edf5 !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18) !important;
    padding: 12px !important;
    margin: 0 !important;
    z-index: 10000 !important;
  }

  header nav.is-open,
  header nav.main-nav.is-open,
  nav.main-nav.is-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  header nav a,
  header nav.main-nav a,
  nav.main-nav a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #001f3f !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    white-space: normal !important;
  }

  header nav a:hover,
  header nav a.active,
  nav.main-nav a:hover,
  nav.main-nav a.active {
    background: #001f3f !important;
    color: #ffffff !important;
    border-bottom: none !important;
  }
}