:root {
  --navy: #081b33;
  --ink: #172033;
  --gold: #c7a24a;
  --gold-dark: #a8832d;
  --paper: #ffffff;
  --mist: #f3f5f7;
  --line: #d9dee7;
  --muted: #667085;
  --green: #1f6f5b;
  --font-title: "Inter Tight", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Eurostile", "Eurostile LT Std", "Eurostile Next", "Microgramma D Extended", "Segoe UI", Arial, sans-serif;
}

* {
  letter-spacing: 0;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
}

a {
  color: var(--gold-dark);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.site-nav {
  background: rgba(8, 27, 51, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(56vw, 420px);
  line-height: 1.12;
  white-space: normal;
}

.brand-logo {
  width: auto;
  max-width: 150px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff;
}

.btn {
  border-radius: 6px;
  font-weight: 700;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #111827;
}

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

.lang-toggle {
  min-height: 40px;
  min-width: 64px;
  padding-inline: 0.7rem;
  overflow: visible;
}

.lang-toggle.dropdown-toggle::after {
  margin-left: 0.25rem;
}

.language-flag {
  display: block;
  width: 30px;
  height: 22px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(8, 27, 51, 0.18);
  object-fit: contain;
  flex: 0 0 auto;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.language-option .language-flag {
  width: 28px;
  height: 21px;
}

.message-stack {
  padding-top: 5.5rem;
  position: relative;
  z-index: 4;
}

.hero-section {
  min-height: 100vh;
  background-image:
    linear-gradient(90deg, rgba(8, 27, 51, 0.92), rgba(8, 27, 51, 0.62), rgba(8, 27, 51, 0.35)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  min-height: 100vh;
  color: #fff;
}

.hero-section h1,
.page-hero h1 {
  font-size: 3.4rem;
  line-height: 1.08;
  font-weight: 760;
  max-width: 920px;
}

.hero-copy,
.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
  line-height: 1.7;
  margin: 1.2rem 0 2rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.credibility-strip {
  background: var(--navy);
  color: #fff;
  padding: 1.6rem 0;
}

.credibility-strip strong {
  display: block;
  color: var(--gold);
  font-size: 1.6rem;
}

.credibility-strip span {
  color: rgba(255, 255, 255, 0.76);
}

.section-pad {
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.section-pad h2 {
  font-size: 2.25rem;
  line-height: 1.18;
  font-weight: 760;
}

.section-pad p {
  color: var(--muted);
  line-height: 1.75;
}

.soft-band {
  background: var(--mist);
}

.practice-card,
.article-card,
.person-card,
.side-panel,
.empty-state,
.notice-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.practice-card,
.article-card,
.person-card {
  padding: 1.6rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.person-card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.person-card-link:hover {
  color: inherit;
}

.person-card-link:focus-visible {
  outline: 3px solid rgba(199, 162, 74, 0.38);
  outline-offset: 4px;
}

.practice-card:hover,
.article-card:hover,
.person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(8, 27, 51, 0.12);
}

.practice-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(199, 162, 74, 0.14);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.practice-card h2,
.practice-card h3,
.article-card h2,
.article-card h3,
.person-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 760;
  margin-bottom: 0.8rem;
}

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

.trust-grid div,
.principles-list div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.trust-grid span,
.principles-list span {
  display: block;
  color: var(--muted);
  margin-top: 0.4rem;
}

.trust-grid strong,
.principles-list strong {
  display: block;
  color: var(--ink);
}

.person-photo {
  height: 510px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(8, 27, 51, 0.9), rgba(31, 111, 91, 0.78)),
    url("https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
  margin-bottom: 1.2rem;
}

.role {
  color: var(--gold-dark) !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-band {
  background: var(--navy);
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(8, 27, 51, 0.94), rgba(8, 27, 51, 0.66)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 11rem 0 5.5rem;
}

.page-hero.compact {
  padding-bottom: 4rem;
}

.side-panel {
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

.side-panel h2,
.side-panel h3 {
  font-size: 1.35rem;
  font-weight: 760;
}

.side-panel ol {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.notice-box {
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fffdf7;
  border-color: rgba(199, 162, 74, 0.45);
}

.notice-box strong {
  min-width: 130px;
  color: var(--gold-dark);
}

.notice-box span {
  color: var(--muted);
}

.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 46px rgba(8, 27, 51, 0.08);
}

.form-control,
.form-select {
  border-radius: 6px;
  border-color: #ccd3df;
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(199, 162, 74, 0.16);
}

.errorlist {
  list-style: none;
  padding-left: 0;
  margin: 0.35rem 0 0;
  color: #b42318;
  font-size: 0.9rem;
}

.consent-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 2.8rem;
  background: var(--mist);
}

.article-body .container,
.legal-copy .container {
  max-width: 860px;
}

.article-body p,
.legal-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.legal-copy h2 {
  margin-top: 2rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

.admin-hero .admin-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-hero h1 {
  margin-bottom: 0;
}

.admin-panel,
.admin-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(8, 27, 51, 0.08);
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.admin-panel-header h2,
.admin-form-section h2 {
  font-size: 1.35rem;
  font-weight: 760;
  margin-bottom: 0.35rem;
}

.admin-panel-header p {
  margin-bottom: 0;
}

.admin-table {
  margin-bottom: 0;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  background: #fff;
  padding: 1rem 1.25rem;
}

.admin-table td {
  padding: 1rem 1.25rem;
}

.admin-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 240px;
}

.admin-person span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(8, 27, 51, 0.9), rgba(31, 111, 91, 0.78)),
    url("https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=240&q=80");
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.uploaded-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  margin-bottom: 0.75rem;
}

.uploaded-logo-preview {
  width: 220px;
  min-height: 84px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.uploaded-logo-preview img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

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

.database-status-grid div {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.database-status-grid strong,
.database-status-grid span {
  display: block;
}

.database-status-grid strong {
  color: var(--ink);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.database-status-grid span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.database-action-card {
  height: 100%;
}

.danger-section {
  border-color: rgba(180, 35, 24, 0.25);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill.active {
  color: #075e45;
  background: rgba(31, 111, 91, 0.14);
}

.status-pill.inactive {
  color: #6b7280;
  background: #eef0f3;
}

.admin-form {
  padding: 1.5rem;
}

.admin-form-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-form-toolbar.bottom {
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.admin-form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.admin-check {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  background: var(--mist);
}

.site-footer {
  background: #061426;
  color: #fff;
  padding: 4.5rem 0 2rem;
}

.site-footer h3 {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.55rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

@media (max-width: 991.98px) {
  .hero-section h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .hero-copy,
  .page-hero p {
    font-size: 1.05rem;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .page-hero {
    padding-top: 8rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 575.98px) {
  .hero-section h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .section-heading h2,
  .section-pad h2 {
    font-size: 1.75rem;
  }

  .notice-box {
    display: block;
  }

  .notice-box strong {
    display: block;
    margin-bottom: 0.35rem;
  }

  .footer-bottom {
    display: block;
  }

  .admin-hero .admin-title-row,
  .admin-form-toolbar {
    display: block;
  }

  .admin-actions {
    display: block;
  }

  .database-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero .admin-title-row .btn,
  .admin-form-toolbar .btn {
    width: 100%;
    margin-top: 0.75rem;
  }
}
