:root {
  --primary: #1f8a9b; /* teal from logo */
  --light-bg: #dceff4; /* light blue */
  --dark-text: #243746; /* navy */
  --accent-peach: #f2b48a;
  --accent-green: #6fbfa5;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.6;
  font-size: 18px;
}

header {
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

header img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

header h1 {
  margin: 0;
  font-size: 40px;
}
.header-hero-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.header-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-list p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--dark-text);
  padding-top: 10px;
  border-top: 2px solid var(--primary);
  margin-top: 10px;
}
nav {
  background: var(--primary);
  padding: 1rem;
  text-align: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

section:not(.contact) {
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

.hero {
  background: var(--white);
  text-align: center;
  display: flex;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 2px solid var(--bs-gray-200);
  border-radius: 16px;
  margin-top: 40px !important;
  overflow: hidden;
}
.hero div {
  width: 50%;
}
.hero div:not(:first-of-type) {
  padding: 20px;
  margin: auto;
}
.hero img {
  max-width: 100%;
  height: auto;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
}

.button.secondary {
  background: var(--accent-green);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 2px solid var(--bs-gray-200);
  display: flex;
  flex-direction: column;
}
.card-box div {
  display: flex;
  justify-content: center;
  height: 75%;
  margin: auto;
}
.card-box img {
  max-width: 100%;
  height: auto;
}

.card-box h3 {
  margin-top: 0;
  color: var(--primary);
}
.card-box div:first-of-type {
  display: flex;
  margin: unset;
}
.card-box div:last-of-type {
  display: block;
}
.card-box button {
  margin-top: 1rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.card-box button:hover,
.button:hover {
  background-color: var(--light-bg);
  cursor: pointer;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.contact {
  background-color: var(--light-bg);
  margin: auto;
}
.full-width {
  width: 100%;
  max-width: unset;
}
.contact div:not(.social) {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 40px auto 0 auto;
}
.contact section {
  flex: 1;
  padding: 30px 0;
  margin: 0;
}
.max-width-contact {
  max-width: 1000px;
}
.social {
  margin-top: 20px;
  padding: 0;
}

.contact svg {
  width: 40px;
  height: 40px;
  fill: var(--primary);
  margin-right: 10px;
  vertical-align: middle;
}
footer {
  background: var(--dark-text);
  color: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .header-list {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 900px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  section {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
  .hero {
    flex-direction: column;
  }
  .hero div {
    width: 100%;
  }
  .card-box {
    flex-direction: row !important;
    padding: unset;
  }
  .card-box div {
    height: auto;
  }
  .cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .card-box div:last-of-type {
    padding-right: 20px;
  }
  .contact div:not(.social) {
    flex-direction: column;
    align-items: flex-start;
  }
}
