@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --color-navy: #10384b;
  --color-blue: #1f6984;
  --color-green: #7a2d43;
  --color-sage: #eef1f3;
  --color-mist: #ffffff;
  --color-sand: #f5efde;
  --color-text: #173041;
  --color-muted: #5b7280;
  --color-line: #d7e3df;
  --shadow-soft: 0 30px 80px -42px rgba(16, 56, 75, 0.38);
  --shadow-card: 0 22px 50px -34px rgba(16, 56, 75, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--color-text);
  background: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

h1.text-brand-navy,
h2.text-brand-navy,
h3.text-brand-navy,
h4.text-brand-navy,
h5.text-brand-navy,
h6.text-brand-navy {
  color: var(--color-green) !important;
}

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

::selection {
  background: rgba(122, 45, 67, 0.22);
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.soft-card {
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 56, 75, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-blue);
}

.tab-button,
.filter-button,
.faq-button {
  border: 1px solid var(--color-line);
  background: #ffffff;
  color: var(--color-text);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.tab-button:hover,
.filter-button:hover,
.faq-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 105, 132, 0.28);
  box-shadow: 0 16px 28px -24px rgba(16, 56, 75, 0.4);
}

.tab-button[data-active="true"],
.filter-button[data-active="true"],
.faq-button[data-active="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
  color: #ffffff;
  box-shadow: 0 18px 36px -26px rgba(16, 56, 75, 0.75);
}

.dot-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 105, 132, 0.14) 1px, transparent 0),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  background-size: 24px 24px, auto;
}

.outline-grid {
  background-image:
    linear-gradient(rgba(16, 56, 75, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 56, 75, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.lift-in {
  animation: lift-in 700ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.lift-delay-1 {
  animation-delay: 120ms;
}

.lift-delay-2 {
  animation-delay: 220ms;
}

.lift-delay-3 {
  animation-delay: 320ms;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 160ms ease;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.2rem;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease;
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

[data-menu-panel].is-open {
  display: block;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 56, 75, 0.12), transparent);
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
