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

html {
  scroll-behavior: smooth;
}

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
  margin-left: 10px;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a {
  text-decoration: none;
  color: #374151;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 4px;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: #e5f0ff;
  color: #1d4ed8;
}

.main-nav .nav-cta {
  background-color: #1d4ed8;
  color: #ffffff;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus {
  background-color: #1e40af;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background-color: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  color: #ffffff;
  padding: 80px 0 72px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  max-width: 640px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background-color: #ffffff;
  color: #1d4ed8;
  border-color: #ffffff;
}

.btn.primary:hover,
.btn.primary:focus {
  background-color: #e5f0ff;
}

.btn.secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn.secondary:hover,
.btn.secondary:focus {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background-color: #f9fafb;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.section p {
  margin-bottom: 16px;
}

/* Cards & grids */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  background-color: #ffffff;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* Lists */
.feature-list {
  list-style: disc;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 8px;
}

.resource-list {
  list-style: none;
  padding-left: 0;
}

.resource-list li + li {
  margin-top: 10px;
}

.resource-list a {
  color: #1d4ed8;
  text-decoration: none;
}

.resource-list a:hover,
.resource-list a:focus {
  text-decoration: underline;
}

/* Alerts */
.alert {
  padding: 10px 12px;
  border-radius: 6px;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  margin-top: 16px;
}

.contact-details h3 {
  margin-top: 0;
}

.contact-details a {
  color: #1d4ed8;
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus {
  text-decoration: underline;
}

.contact-form {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  background-color: #ffffff;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.form-row-inline label {
  font-weight: 500;
}

.form-row-inline input[type="checkbox"] {
  margin-right: 6px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  padding: 24px 0 32px;
  background-color: #111827;
  color: #d1d5db;
  font-size: 0.85rem;
}

.footer-inner {
  text-align: center;
}

.footer-disclaimer {
  max-width: 720px;
  margin: 8px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    padding: 8px 0;
  }

  .main-nav {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    flex-direction: column;
    background-color: #ffffff;
    padding: 8px 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

  .main-nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Nav toggle animation */
.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.nav-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Larger screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
