/* team.css */

body, h1, h2, p, ul, li, input, textarea, button {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background: #222;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 100px;
    vertical-align: middle;
    margin-right: 15px;
}

h1 {
    font-size: 24px;
}

/* Base navigation layout (for desktop and general use) */
nav {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* right align on desktop */
  padding: 0 20px;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px; /* gives space between menu items */
  justify-content: flex-end; /* aligns menu to the right */
}

nav ul li a {
  color: white;
  text-decoration: none;
}

/* Mobile-friendly navigation */

@media screen and (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px; /* controls vertical spacing between items */
  }

  nav ul li {
    margin-bottom: 0; /* rely on gap instead */
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 0px 0; /* tightens vertical space inside links */
  }
}

/* Desktop styles (wide screens) */
@media screen and (min-width: 601px) {
  nav ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px; /* ← spacing restored */
  }
}

/* Updated .background section — no 100vh or flex layout */
.background {
    padding: 180px 20px 40px; /* top padding accounts for fixed header */
    background-size: cover;
    background-position: center;
    color: white;
}

/* Optional but recommended: contain grid layout within a centered block */
.content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.team-section {
    padding: 60px 0;
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background-color: #fff;
    color: #333; /* this is to ensure the text is visible */
    padding: 20px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%; /* Moves image content down slightly */
    margin-bottom: 20px;
}

.team-member h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.team-member .role {
    font-weight: bold;
    color: #666;
    margin-bottom: 15px;
}

.team-member p {
    font-size: 15px;
    line-height: 1.6;
}

.connect-confidence {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
}

.connect-confidence .content {
    max-width: 1200px;
    margin: 0 auto;
}

.connect-confidence h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #222;
}

.connect-confidence .intro {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    text-align: left;
}

@media (max-width: 1100px) {
    .confidence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.confidence-point {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.confidence-point:hover {
    transform: translateY(-5px);
}

.confidence-point h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.confidence-point p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

@media (max-width: 600px) {
  .confidence-grid {
    grid-template-columns: 1fr; /* Force single column layout */
    gap: 20px; /* Optional: slightly tighter spacing for mobile */
    padding: 0 10px; /* Optional: slight horizontal padding */
  }

  .confidence-point {
    text-align: center; /* Optional: center-align text for mobile */
  }

  .confidence-point h3 {
    text-align: center;
  }
}

.site-footer {
    background-color: #222;
    color: white;
    padding: 40px 20px;
    font-size: 16px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* keep aligned with site container */
    margin: 0 auto;
}

.web-design a {
    color: white;
    text-decoration: none;
}

.web-design a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 850px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start; /* or center if you prefer */
    gap: 10px;
  }

  .site-footer {
    font-size: 14px;
  }
}