:root {
  --allic-blue: #32398a;
  --allic-blue-dark: #1f2460;
  --allic-green: #87bc51;
  --allic-sky: #0693e3;
  --allic-ink: #1a1d2e;
  --allic-muted: #5c6478;
  --allic-surface: #f3f6fb;
  --allic-cream: #eef3ea;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--allic-ink);
  background: var(--allic-surface);
  line-height: 1.6;
}

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

a {
  color: var(--allic-blue);
}

a:hover {
  color: var(--allic-sky);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(50, 57, 138, 0.12);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar-brand img {
  height: 42px;
  width: auto;
}

.site-header .nav-link {
  color: var(--allic-ink) !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .dropdown-item:hover {
  color: var(--allic-blue) !important;
}

.btn-allic {
  background: var(--allic-blue);
  border-color: var(--allic-blue);
  color: #fff;
  font-weight: 600;
}

.btn-allic:hover,
.btn-allic:focus {
  background: var(--allic-blue-dark);
  border-color: var(--allic-blue-dark);
  color: #fff;
}

.btn-allic-outline {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  background: transparent;
}

.btn-allic-outline:hover {
  background: #fff;
  color: var(--allic-blue);
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(31, 36, 96, 0.92) 0%, rgba(50, 57, 138, 0.72) 45%, rgba(6, 147, 227, 0.45) 100%),
    url("/assets/img/hero-banner.png") center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to top, var(--allic-surface), transparent);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  max-width: 28ch;
  margin-bottom: 1rem;
}

.hero .lead {
  max-width: 42ch;
  font-size: 1.05rem;
  opacity: 0.95;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-display);
  color: var(--allic-blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--allic-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.page-hero {
  background:
    linear-gradient(120deg, var(--allic-blue-dark), var(--allic-blue) 60%, #3d6fa8);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

.page-hero .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.page-hero .breadcrumb-item.active {
  color: #fff;
}

.content-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(32, 40, 90, 0.08);
}

.content-card h2,
.content-card h3 {
  font-family: var(--font-display);
  color: var(--allic-blue);
  margin-top: 1.75rem;
}

.content-card h2:first-child,
.content-card h3:first-child {
  margin-top: 0;
}

.service-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(32, 40, 90, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(32, 40, 90, 0.12);
  color: inherit;
}

.service-tile img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-tile h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--allic-blue);
  margin-bottom: 0.5rem;
}

.service-tile p {
  color: var(--allic-muted);
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}

.news-item {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  height: 100%;
  box-shadow: 0 8px 24px rgba(32, 40, 90, 0.06);
}

.news-item .meta {
  color: var(--allic-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.news-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--allic-blue);
  margin: 0 0 0.5rem;
}

.site-footer {
  background: var(--allic-blue-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--allic-green);
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.site-footer .footer-logo {
  height: 36px;
  margin-bottom: 1rem;
}

.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.access-box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(32, 40, 90, 0.1);
}

.access-box h2 {
  font-family: var(--font-display);
  color: var(--allic-blue);
  font-size: 1.25rem;
}

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

  .service-tile {
    transition: none;
  }
}
