/* ========== Base Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #1f2933;
  background-color: #f5f7fa;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========== Header & Navigation ========== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #d9e2ec;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Nav */
.site-nav {
  display: none; /* mobile default */
}

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

.site-nav a {
  text-decoration: none;
  color: #1f2933;
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  color: #1c64f2;
}

.site-nav a.active {
  border-bottom-color: #1c64f2;
  color: #1c64f2;
}

/* Mobile nav toggle button */
.nav-toggle {
  background: none;
  border: 1px solid #cbd2d9;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* When nav is open on mobile */
.site-nav.nav-open {
  display: block;
}

/* ========== Main Content & Sections ========== */
main {
  padding: 1.5rem 0 2.5rem;
}

/* Hero on home page */
.hero {
  background: #ffffff;
  padding: 1.75rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.hero p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.hero-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Generic content cards/sections */
.section {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.25rem;
}

.section h2 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: #e3f2fd;
  color: #1c64f2;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Lists */
.list-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== Buttons & Links ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background-color: #1c64f2;
  color: #ffffff;
  transition: background-color 0.18s, box-shadow 0.18s;
}

.btn:hover {
  background-color: #1554c0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  background-color: #e4e7eb;
  color: #1f2933;
}

.btn-secondary:hover {
  background-color: #cbd2d9;
}

/* ========== Forms ========== */
form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .form-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #cbd2d9;
  font: inherit;
  background-color: #ffffff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========== Footer ========== */
.site-footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 1rem 0;
  margin-top: auto;
}

.footer-inner {
  text-align: center;
  font-size: 0.9rem;
}

/* ========== Responsive Breakpoints ========== */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
  }

  main {
    padding-top: 2rem;
  }
}

@media (max-width: 767px) {
  .site-nav {
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 64px;
    left: 0;
    border-bottom: 1px solid #d9e2ec;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.75rem;
  }
}
