/* Global ------------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font: 16px/1.6 Arial, Helvetica, sans-serif;
  background: #fff;
  color: #333;
}

/* links */
a { color: #005fff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout ------------------------------------------------------------ */
header,
footer {
  background: rgba(0,0,0,1.0);
  text-align: center;
  color: #fff;
}
nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img { height: 48px; }
nav .menu a {
  margin-left: 1rem;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
nav .menu a.active {
  background: #B9DCFF;
  color: #000;
}

/* Hero (home) ------------------------------------------------------- */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  background: url("i/captain-cook-bridge.jpg") center/cover no-repeat fixed;
  color: #fff;
}
.hero .top { margin-top: 2rem; }
.hero .bottom { margin-bottom: 2rem; }
.hero h1, .hero h2 { margin: .5rem 0; line-height: 1.2; }
.hero h3, .hero p { margin: .5rem 0; max-width: 800px; }
.hero a {
  background: #B9DCFF;
  color: #000;
  padding: .25rem .5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}
.hero a:hover { text-decoration: none; }

/* Services/About grid & cards -------------------------------------- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem auto;
  max-width: 1320px; /* 4×320px + 3×2rem gaps */
}
.service-card {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card img {
  width: 320px;
  height: 200px;       /* uniform box */
  object-fit: cover;   /* crops to fill */
  border-radius: 6px;
}
.service-card .text {
  text-align: center;
  margin-top: 1rem;
}
.service-card .text h3 {
  margin-bottom: .5rem;
}
.service-card .text p {
  margin-bottom: .5rem;
}

/* Footer ------------------------------------------------------------ */
footer {
  padding: 1rem;
  font-size: .8rem;
}
