* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f8fafb;
  color: #000;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5em;
  padding: 0.5em 2em;
  background: rgba(0,128,128,0.85);
  color: #000;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 1px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}
nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover, .btn {
  color: #000;
}
.btn, .btn-primary {
  background: #23c98d;
  color: #000;
  border-radius: 28px;
  padding: 0.5em 1.3em;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  font-size: 1em;
  text-decoration: none;
}
.btn-primary:hover {
  background: #18a172;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 0;
}
.hero-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

main {
  max-width: 1000px;
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: clamp(1.5em, 4vw, 3em) clamp(1.25em, 6vw, 3em);
}
#services {
  margin-bottom: 3em;
}
.cards {
  display: flex;
  gap: 2em;
  justify-content: center;
  flex-wrap: wrap;
}
.card {
  min-width: 260px;
  flex: 1 1 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(30,140,100,0.09);
  padding: 1.7em 1.2em;
  margin-top: 1em;
  transition: transform .15s;
}
.card:hover {
  transform: scale(1.03);
  background: #e9ffff;
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.1em;
  color: #000;
  margin-bottom: 0.7em;
}

#about {
  text-align: center;
  margin-bottom: 2em;
}

#contact form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
#contact label {
  font-size: .98em;
  font-weight: 600;
}
#contact input, #contact textarea {
  padding: 0.7em;
  border-radius: 8px;
  border: 1px solid #46d19e;
  font-size: 1em;
}
#contact textarea {
  min-height: 88px;
}

footer {
  text-align: center;
  padding: 1.4em 0;
  background: #17766b;
  color: #000;
  font-size: 1.1em;
  margin-top: 3em;
}

@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em 1.5em;
  }

  .logo {
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75em;
    width: 100%;
  }

  nav ul li,
  nav a,
  .btn,
  .btn-primary {
    width: 100%;
    max-width: 320px;
    text-align: center;
    display: block;
    margin: 0 auto;
  }

  .hero {
    height: auto;
    min-height: 420px;
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .hero-content {
    padding-top: 0;
  }


  main {
    padding: 2em clamp(1rem, 6vw, 2.25em);
  }

  .cards {
    flex-direction: column;
    gap: 1.2em;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.7em;
  }

  .hero {
    min-height: 380px;
    padding: 2.75rem 1.25rem 2rem;
  }


  section h2 {
    font-size: 1.75em;
  }

  .card {
    padding: 1.5em 1.1em;
  }

  #contact input,
  #contact textarea {
    font-size: 0.95em;
  }

  .btn,
  .btn-primary {
    max-width: 100%;
  }
}
