:root {
  --primary: #001b86;
  --primary-dark: #00125a;
  --primary-soft: #dfe8ff;
  --surface: #ffffff;
  --surface-alt: #f4f7ff;
  --text: #0f172a;
  --muted: #52607a;
  --line: rgba(0, 27, 134, 0.12);
  --shadow: 0 24px 60px rgba(0, 27, 134, 0.12);
  --radius: 24px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(0, 27, 134, 0.08),
      transparent 32%
    ),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 27, 134, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 176px;
  height: auto;
}

.brand img,
.footer-brand img {
  filter: brightness(0) saturate(100%) invert(10%) sepia(98%) saturate(3827%)
    hue-rotate(227deg) brightness(86%) contrast(120%);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(0, 27, 134, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav a,
.text-link,
.back-link {
  color: var(--primary);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1d4fff);
  box-shadow: 0 12px 30px rgba(0, 27, 134, 0.22);
}

.button-secondary {
  color: var(--primary);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.button-large {
  min-height: 54px;
  padding-inline: 1.6rem;
}

.eyebrow,
.section-intro,
.post-date {
  margin-bottom: 0.9rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-section {
  padding: 4.5rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.page-hero-inner h1,
.post-container h1 {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-text,
.page-hero-inner p,
.post-intro {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-card,
.service-card,
.testimonial-card,
.post-card,
.final-cta-card,
.page-hero-inner,
.post-container,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 170px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card-main {
  grid-column: span 2;
  min-height: 220px;
  background: linear-gradient(145deg, #f4f8ff, #dfe8ff);
}

.hero-card span {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card strong {
  font-size: 1.15rem;
  line-height: 1.25;
}

.logo-strip {
  padding: 1rem 0 1.5rem;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.logo-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(0, 27, 134, 0.78);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: 3.25rem 0;
}

.section-heading {
  max-width: 62ch;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.section-heading p:last-child {
  color: var(--muted);
}

.service-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card,
.post-card {
  padding: 1.5rem;
}

.service-card h3,
.post-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p,
.post-card p,
.testimonial-role,
.site-footer p,
.faq-item p {
  color: var(--muted);
}

.testimonial-carousel {
  position: relative;
}

.testimonial-track {
  min-height: 260px;
}

.testimonial-card {
  display: none;
  padding: 2rem;
}

.testimonial-card.is-active {
  display: block;
}

.testimonial-quote {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  margin-bottom: 0.2rem;
  font-weight: 800;
}

.carousel-controls {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.carousel-button,
.carousel-dot,
summary {
  cursor: pointer;
}

.carousel-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 27, 134, 0.2);
}

.carousel-dot.is-active {
  background: var(--primary);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  padding: 1.2rem 1.35rem;
}

.faq-item summary {
  list-style: none;
  font-weight: 800;
  color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.9rem 0 0;
}

.final-cta-card {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--primary), #2454ff);
  color: #fff;
}

.final-cta-card .eyebrow,
.final-cta-card p {
  color: rgba(255, 255, 255, 0.84);
}

.final-cta-card h2 {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  margin-bottom: 0.7rem;
}

.page-hero,
.post-layout {
  padding: 3.5rem 0 1rem;
}

.page-hero-inner,
.post-container {
  padding: 2rem;
}

.blog-grid {
  align-items: stretch;
}

.post-card a:hover,
.main-nav a:hover,
.back-link:hover {
  opacity: 0.8;
}

.post-content {
  color: var(--text);
}

.post-content p,
.post-content li {
  color: var(--muted);
}

.post-content ol {
  padding-left: 1.2rem;
}

.site-footer {
  padding: 3rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(223, 232, 255, 0.7),
    rgba(255, 255, 255, 0.94)
  );
}

.footer-brand img {
  width: min(240px, 100%);
  margin-bottom: 1rem;
}

.footer-grid h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}

.newsletter-form {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 27, 134, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.footer-bottom {
  padding-top: 1rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .service-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-card,
  .carousel-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    min-height: 76px;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .main-nav {
    gap: 0.5rem;
  }

  .main-nav a {
    padding: 0.4rem 0.7rem;
  }

  .brand img {
    width: 164px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: auto;
    padding: 0.9rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(0, 27, 134, 0.12);
  }

  .header-actions.is-open {
    display: flex;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1rem;
    background: var(--surface-alt);
  }

  .hero-section,
  .page-hero,
  .post-layout {
    padding-top: 2.5rem;
  }

  .hero-panel,
  .logo-row {
    grid-template-columns: 1fr;
  }

  .hero-card-main {
    grid-column: auto;
  }

  .button,
  .newsletter-form button,
  .newsletter-form input,
  .button-large {
    width: 100%;
  }

  .testimonial-card,
  .page-hero-inner,
  .post-container,
  .footer-grid,
  .service-card,
  .post-card,
  .final-cta-card {
    padding: 1.4rem;
  }

  .brand img {
    width: 150px;
  }

  .header-cta {
    width: 100%;
  }
}
