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

html {
  line-height: 1.5;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f9;
  color: #222;
  min-height: 100vh;
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #1b70ff;
  outline-offset: 2px;
}

header {
  background: #283E4A;
  color: #fff;
  padding: 2rem 1rem;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-inner .brand {
  flex: 1 1 320px;
  min-width: 0;
}

.header-inner .brand h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.5rem);
}

.header-inner .brand p {
  margin: 0.5rem 0 0;
  max-width: 42rem;
}

nav {
  flex: 0 0 auto;
  min-width: 220px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}
.menu li {
  margin: 0;
}
.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.menu a:hover,
.menu a:focus,
.menu a.active {
  color: #a8ddff;
}
.menu-select {
  display: none;
  font: 600 0.95rem Arial, sans-serif;
  color: #fff;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  min-width: 180px;
}
@media (max-width: 767px) {
  .menu {
    display: none;
  }
  .menu-select {
    display: block;
    width: 100%;
    max-width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%), linear-gradient(to right, rgb(255 255 255 / 10%), rgb(255 255 255 / 10%));
    background-position: calc(100% - 20px) center, calc(100% - 15px) center, 0 0;
    background-size: 5px 5px, 5px 5px, 100% 100%;
    background-repeat: no-repeat;
  }
  .header-inner {
    align-items: stretch;
  }
  nav {
    width: 100%;
  }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .header-inner .brand {
    width: 100%;
  }
  .header-inner .brand p {
    margin-top: 0.75rem;
  }
}

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.intro {
  margin-bottom: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
}
.lead {
  margin-top: 0.5rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}
.container.content-section {
  padding: 0;
}
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 0.125rem 0.375rem rgb(0 0 0 / 6%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* background image placement for category SVGs */
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 18%;
}
.card h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.25rem;
}
.card-meta {
  margin-bottom: 1rem;
  color: inherit;
  font-size: 0.95rem;
}
.card p {
  margin: 0 0 1.25rem;
  line-height: 1.75;
  color: inherit;
}
.card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgb(27 112 255 / 12%);
  color: #1b70ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: inherit;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 18%);
  transition: transform 0.15s ease, background 0.15s ease;
}
.icon-btn:hover,
.icon-btn:focus {
  transform: translateY(-2px);
  background: rgb(255 255 255 / 18%);
}
.btn .icon {
  display: inline-block;
  vertical-align: middle;
}
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.75rem 1.2rem;
  border-radius: 0.55rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  color: #fff;
  background: #1b70ff;
  border: 1px solid #1b70ff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #155fd6;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .intro,
  .card,
  .contact-card {
    padding: 1rem;
  }
  .header-inner {
    padding-bottom: 0.5rem;
  }
  .site-nav {
    gap: 0.75rem;
  }
  .menu-select {
    padding: 0.8rem 1rem;
  }
  .contact-form {
    gap: 0.75rem;
  }
  .contact-form button {
    width: 100%;
  }
}

footer {
  text-align: center;
  margin: 3rem 0 1rem;
  color: #666;
}
.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}
.contact-form button {
  width: fit-content;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: #1b70ff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.contact-form button:hover {
  background: #155fd6;
}
