:root{
  --bg:#ffffff;
  --accent:#0b66d1; /* blue */
  --muted:#6b7280;
  --surface:#f7fafc;
  --radius:10px;
  --max-width:1100px;
  font-family: Inter, system-ui, -apple-system, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--bg);
  color:#042028;
  line-height:1.5;
  font-size:16px;
}

/* HERO IMAGE */
.hero-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

@media (max-width: 768px) {
  .hero-image {
    height: 180px;
  }
}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:1rem;
}

header{
  border-bottom:1px solid #eef2f7;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  text-decoration:none;
  color:var(--accent);
  font-weight:700;
  font-size:1.4rem;
}

.brand img{
  height:50px;
  width:auto;
  object-fit:contain;
}

nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:1rem;
}

nav a{
  color:inherit;
  text-decoration:none;
  padding:.4rem .6rem;
  border-radius:8px;
}

nav a:hover{
  background:#f1f7ff;
}

/* UPDATED HERO SPACING (GAP FIXED) */
.hero{
  padding:2rem 0 1rem 0; /* adds space below header */
  display:grid;
  align-items:center;
  gap:.5rem;
}

.hero h1{
  margin:0;
  font-size:clamp(1.6rem,3.6vw,2.4rem);
  letter-spacing:-0.01em;
}

.lead{
  color:var(--muted);
  margin-top:.5rem;
}

.hero .lead{
  margin-bottom:.25rem;
}

.btn{
  display:inline-block;
  padding:.6rem 1rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
}

.btn-primary{
  background:var(--accent);
  color:white;
}

.btn-outline{
  border:1px solid #dceefa;
  color:var(--accent);
  background:transparent;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}

.card{
  background:var(--surface);
  padding:1rem;
  border-radius:8px;
}

.section{
  padding:2.25rem 0;
  border-top:1px solid #f1f5f9;
}

footer{
  padding:1rem 0;
  color:var(--muted);
  border-top:1px solid #eef2f7;
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:1rem;
  align-items:start;
}

form input,
form textarea{
  width:100%;
  padding:.6rem;
  border:1px solid #e6eef8;
  border-radius:8px;
}

.team-list{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  justify-content:center;
}

.team-card{
  padding:.75rem;
  background:var(--surface);
  border-radius:8px;
  min-width:200px;
  text-align:center;
  flex:1 1 220px;
}

.team-card img.team-headshot{
  width:150px;
  height:150px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:.5rem;
  border:none;
  display:block;
  margin-left:auto;
  margin-right:auto;
}

.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.5rem;
}

@media (max-width:900px){

  .grid-3{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:repeat(2,1fr)}

  .nav{
    flex-direction:column;
    align-items:flex-start;
  }

  nav ul{
    display:flex;
    flex-direction:column;
    gap:.5rem;
    margin-top:.5rem;
  }
}