/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header .logo { font-size: 1.5rem; font-weight: bold; color: #2c3e50; }
header nav ul { display: flex; list-style: none; }
header nav ul li { margin-left: 1.5rem; }
header nav ul li a { text-decoration: none; color: #333; font-weight: bold; }

/* Hero */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 1.5rem; }
.btn {
  display: inline-block;
  background: #2c3e50;
  color: white;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
}

/* Sections */
.section { padding: 4rem 2rem; text-align: center; }
.section h2 { font-size: 2rem; margin-bottom: 1rem; }
.section.light { background: #f9f9f9; }

/* Team */
.team {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.team-member {
  margin: 1rem;
  max-width: 250px;
}
.team-member img {
  width: 100%;
  border-radius: 50%;
}
.team-member h3 { margin: 0.5rem 0; }

/* Contact */
form {
  max-width: 500px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
}
form input, form textarea {
  margin: 0.5rem 0;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 5px;
  cursor: pointer;
}
form button:hover { background: #1a252f; }

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #2c3e50;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  header nav ul { flex-direction: column; }
  .hero h1 { font-size: 2rem; }
}
/* Logo size optimization */
header img {
    max-width: 180px;  /* desktop size */
    height: auto;
}

@media (max-width: 768px) {
    header img {
        max-width: 140px;  /* mobile size */
    }
}
header img.logo {
  max-width: 180px;
  height: auto;
  display: inline-block;
}

@media (max-width: 768px) {
  header img.logo {
    max-width: 140px;
  }
}
/* Ensure the logo displays and scales */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo {
  max-width: 180px;   /* desktop width */
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .brand .logo { max-width: 140px; } /* mobile width */
}

/* Safety: make sure nothing is covering the header area */
header { position: sticky; top: 0; z-index: 9999; }
/* Header layout: logo left, menu right */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}

/* Logo sizing */
.logo { max-width: 180px; height: auto; display: inline-block; }

/* Menu horizontal on desktop */
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 24px; align-items: center;
}
.main-nav a {
  text-decoration: none; color: #333; font-weight: 600;
}
.main-nav a:hover { color: #0077b6; }

/* Stack on mobile */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .logo { max-width: 140px; }
  .main-nav { width: 100%; }
  .main-nav ul { justify-content: center; flex-wrap: wrap; gap: 14px; }
}
