:root {
  --blue: #0c3b7a;
  --blue-deep: #082b59;
  --orange: #f58220;
  --orange-deep: #d9680f;
  --light: #f8fbff;
  --white: #ffffff;
  --text: #15304f;
  --muted: #4a6280;
  --border: #d7e3f2;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(8, 43, 89, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 38%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-family: "Montserrat", sans-serif;
  color: var(--blue-deep);
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 1000;
}

.skip-link:focus-visible {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(12, 59, 122, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  object-fit: contain;
}

.brand-fallback {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--blue);
  display: none;
}

.header-cta {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
}

.hero {
  padding: clamp(2.2rem, 4vw, 4.5rem) 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--orange-deep);
  background: #fff2e7;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.hero-copy h1 {
  font-size: clamp(1.7rem, 4.9vw, 3.05rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  animation: fade-up 0.55s ease both;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 55ch;
}

.cta-primary {
  margin-top: 1.35rem;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  border-radius: 0.75rem;
  background: var(--orange);
  box-shadow: 0 12px 20px rgba(245, 130, 32, 0.2);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: var(--orange-deep);
}

.hero-card {
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: #edf3ff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  animation: fade-up 0.7s ease both;
}

.hero-card h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.05rem;
}

.hero-card li + li {
  margin-top: 0.5rem;
}

.services {
  padding: 2rem 0;
}

.services h2,
.lead h2 {
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  margin-bottom: 0.65rem;
}

.section-intro {
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: 65ch;
}

.services-grid {
  display: grid;
  gap: 0.95rem;
}

.service-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  animation: fade-up 0.5s ease both;
}

.service-item h3 {
  font-size: 1.07rem;
  margin-bottom: 0.35rem;
}

.service-item p {
  margin: 0;
  color: var(--muted);
}

.lead {
  padding: 2rem 0 2.8rem;
}

.lead-grid {
  display: grid;
  gap: 1.1rem;
  align-items: start;
}

.lead-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.lead-form {
  display: grid;
  gap: 0.62rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.lead-form label {
  font-weight: 700;
  color: var(--blue);
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  border: 1px solid #bcd0e7;
  border-radius: 0.55rem;
  padding: 0.7rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:focus-visible,
.lead-form textarea:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.18);
}

.lead-form button {
  margin-top: 0.35rem;
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  padding: 0.84rem 1rem;
  border-radius: 0.65rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.lead-form button:hover,
.lead-form button:focus-visible {
  filter: brightness(0.97);
}

.form-message {
  margin: 0.2rem 0 0;
  min-height: 1.4rem;
  color: var(--blue);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(12, 59, 122, 0.12);
  background: #f7faff;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-wrap {
  padding: 1rem 0 1.3rem;
}

.footer-wrap p {
  margin: 0;
  color: #3e5677;
}

@media (min-width: 700px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    gap: 1.5rem;
  }

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

  .lead-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 1.3rem;
  }

  .lead-form {
    padding: 1.25rem;
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
