:root {
  --blue: #1b3bc0;
  --navy: #0d1b4b;
  --orange: #f5a623;
  --bg: #f8faff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(27, 59, 192, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f9ff 0%, #f2f5fd 100%);
}

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

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

.ticker-bar {
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  min-height: 38px;
}

.ticker-label {
  background: var(--blue);
  padding: 0.7rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-items {
  display: inline-flex;
  gap: 2rem;
  padding-left: 1rem;
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-30%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.nav-links,
.hero-actions,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  padding: 0.9rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: min(255px, 42vw);
  height: auto;
}

.nav-links {
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  position: relative;
}

.nav-links a:not(.cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: transform 0.2s ease;
}

.nav-links a:not(.cta):hover::after {
  transform: scaleX(1);
}

.cta,
.btn {
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
}

.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary,
.cta {
  background: var(--orange);
  color: #111827;
  box-shadow: 0 12px 28px rgba(245, 166, 35, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 166, 35, 0.18), transparent 18%),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.12), transparent 25%),
    linear-gradient(135deg, #08173f 0%, #10308f 58%, #1b3bc0 100%);
  color: var(--white);
  padding: 5rem 0 5.5rem;
}

.hero h1,
.section h2,
.card h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 11ch;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.hero-copy-wrap {
  padding-top: 1rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 22px 60px rgba(5, 16, 49, 0.26);
}

.hero-panel-logo {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(13, 27, 75, 0.08);
}

.hero-logo {
  width: min(240px, 100%);
  height: auto;
  display: block;
}

.hero-panel-label {
  margin: 0 0 0.45rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.hero-panel-stats div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8faff, #eef3ff);
  border: 1px solid rgba(27, 59, 192, 0.08);
}

.hero-panel-stats strong {
  color: var(--blue);
  font-size: 1.25rem;
}

.hero-panel-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.16);
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  background: rgba(27, 59, 192, 0.08);
  color: var(--blue);
}

.section,
.stats {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #eef2ff, #f8faff);
}

.section-heading {
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(13, 27, 75, 0.06);
}

.card h2 {
  color: var(--blue);
  font-size: 2rem;
}

.card h3 {
  margin-top: 0;
}

.feature-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.contact-info p,
.site-footer p,
.section p,
.card p {
  color: var(--muted);
  line-height: 1.7;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(27, 59, 192, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.7));
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--blue), #3154db);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 28px rgba(27, 59, 192, 0.2);
}

.service-card {
  position: relative;
  padding-top: 3.75rem;
}

.service-link-card {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 59, 192, 0.22);
  box-shadow: 0 24px 48px rgba(13, 27, 75, 0.12);
}

.service-index {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  color: rgba(27, 59, 192, 0.16);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.service-link-label {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.about-copy {
  max-width: 40rem;
}

.about-card {
  background: linear-gradient(180deg, #ffffff, #f3f6ff);
}

.contact-copy {
  display: grid;
  align-content: start;
}

.contact-info {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
}

.contact-info-block {
  display: grid;
  gap: 0.2rem;
}

.contact-info-block span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-info-block p {
  margin: 0;
}

.contact-form-card {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.map-section {
  padding-top: 0;
}

.map-card {
  display: grid;
  gap: 1.25rem;
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
}

.map-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.map-copy p {
  margin: 0;
  color: var(--muted);
}

.map-link {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(27, 59, 192, 0.2);
}

.map-embed-wrap {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(27, 59, 192, 0.08);
}

.map-embed {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

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

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.full-width {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  font-weight: 600;
}

.form-status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.hidden {
  display: none;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .four-up,
  .three-up,
  .two-column,
  .contact-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .nav-links,
  .hero-actions,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .brand-logo {
    width: min(220px, 62vw);
  }

  .map-copy {
    align-items: flex-start;
    flex-direction: column;
  }
}

.cms-shell {
  min-height: 100vh;
  padding: 3rem 0 5rem;
  background: linear-gradient(180deg, #eef2ff, #f8faff);
}

.cms-container {
  display: grid;
  gap: 1.5rem;
}

.cms-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.cms-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cms-header h1 {
  margin: 0.25rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cms-kicker {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-header p,
.cms-section-header p {
  color: var(--muted);
}

.cms-link {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--border);
}

.cms-logout-form {
  margin: 0;
}

.cms-form {
  display: grid;
  gap: 1.25rem;
}

.cms-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(13, 27, 75, 0.05);
}

.cms-section-header h2 {
  margin: 0 0 1rem;
}

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

.cms-field {
  display: grid;
  gap: 0.5rem;
}

.cms-field.full-width {
  grid-column: 1 / -1;
}

.cms-field label {
  font-size: 0.92rem;
  font-weight: 700;
}

.cms-field input,
.cms-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: var(--white);
}

.cms-alert {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  font-weight: 700;
}

.cms-alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.cms-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.cms-sticky-actions {
  position: sticky;
  bottom: 1rem;
  display: flex;
  justify-content: flex-end;
}

.cms-empty-state {
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: #f8faff;
  color: var(--muted);
  border: 1px dashed var(--border);
}

.inquiry-list {
  display: grid;
  gap: 1rem;
}

.inquiry-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.inquiry-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.inquiry-meta h3 {
  margin: 0 0 0.2rem;
}

.inquiry-meta p,
.inquiry-meta span {
  margin: 0;
  color: var(--muted);
}

.inquiry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inquiry-tags span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.inquiry-message {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.cms-login-wrap {
  min-height: calc(100vh - 6rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cms-login-card {
  width: min(100%, 32rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(13, 27, 75, 0.08);
}

.cms-login-card h1 {
  margin: 0.25rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
}

.cms-login-copy {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.cms-login-button {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .cms-grid {
    grid-template-columns: 1fr;
  }

  .cms-header {
    flex-direction: column;
  }

  .cms-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .inquiry-meta {
    flex-direction: column;
  }
}
