/* Site-specific layout layered on the Enterprise Application theme. */

:root {
  --site-ink: var(--theme-text-primary);
  --site-muted: var(--theme-text-secondary);
  --site-panel: var(--theme-surface-raised-bg);
  --site-line: var(--theme-border-color);
  --site-accent-soft: var(--theme-selected-bg);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-bs-theme="dark"] {
  color-scheme: dark;
}

body {
  background: var(--theme-surface-bg);
  color: var(--site-ink);
  min-height: 100vh;
}

a {
  text-underline-offset: 0.18em;
}

.skip-link {
  background: var(--theme-surface-bg);
  border: 2px solid var(--theme-primary);
  color: var(--site-ink);
  left: 1rem;
  padding: 0.6rem 0.8rem;
  position: fixed;
  top: -5rem;
  z-index: 1100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: var(--theme-surface-bg);
  border-bottom: 1px solid var(--site-line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 4rem;
}

.brand {
  align-items: center;
  color: var(--site-ink);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 0.65rem;
  text-decoration: none;
}

.theme-control {
  align-items: center;
  display: flex;
  margin-left: auto;
}

.site-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-links a {
  color: var(--site-muted);
  font-weight: 600;
  text-decoration: none;
}

.site-links a:hover,
.site-links a:focus,
.site-links a[aria-current="page"] {
  color: var(--theme-primary);
}

.hero-section {
  background:
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.12), transparent 58%),
    var(--theme-surface-bg);
  border-bottom: 1px solid var(--site-line);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
  max-width: 13ch;
}

.hero-copy {
  color: var(--site-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  margin: 1.5rem 0 2rem;
  max-width: 42rem;
}

.eyebrow {
  color: var(--theme-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.privacy-panel {
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--theme-primary);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.pledge-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.pledge-list li {
  align-items: center;
  display: flex;
  font-weight: 600;
  gap: 0.75rem;
}

.pledge-list i {
  color: var(--theme-primary);
  font-size: 1.15rem;
}

.catalog-section,
.principles-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

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

.section-heading p:last-child {
  color: var(--site-muted);
  font-size: 1.05rem;
}

.app-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.app-card {
  border-color: var(--site-line);
  max-width: 46rem;
}

.app-card-heading {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.app-icon {
  border: 1px solid var(--theme-border-subtle);
  border-radius: 22%;
  box-shadow: 0 0.5rem 1.4rem var(--theme-glow-color-hover);
  flex: 0 0 auto;
}

.app-card .card-text {
  color: var(--site-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.app-card .card-footer {
  background: var(--theme-surface-bg);
  border-color: var(--site-line);
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.principles-section {
  background: var(--site-panel);
  border-bottom: 1px solid var(--site-line);
  border-top: 1px solid var(--site-line);
}

.principle-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.principle-grid article {
  background: var(--theme-surface-bg);
  border: 1px solid var(--site-line);
  padding: 1.5rem;
}

.principle-grid i {
  color: var(--theme-primary);
  display: block;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.principle-grid p {
  color: var(--site-muted);
  margin-bottom: 0;
}

.site-footer {
  background: var(--theme-surface-sunken-bg);
  color: var(--theme-text-primary);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(18rem, 1.4fr) minmax(10rem, 0.65fr) minmax(12rem, 0.75fr);
}

.footer-grid p {
  color: var(--theme-text-secondary);
  margin: 0.5rem 0 0;
  max-width: 32rem;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.company-registration > strong {
  display: block;
  font-size: 1.05rem;
}

.registration-status {
  color: var(--theme-text-primary) !important;
  font-weight: 600;
}

.registration-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1rem 0;
}

.registration-details div {
  min-width: 9rem;
}

.registration-details dt {
  color: var(--theme-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.registration-details dd {
  font-family: var(--bs-font-monospace);
  margin: 0.2rem 0 0;
}

.registration-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer a {
  color: var(--theme-primary);
}

.build-info {
  font-family: var(--bs-font-monospace);
  font-size: 0.75rem;
}

.copyright {
  border-top: 1px solid var(--theme-border-color);
  color: var(--theme-text-muted);
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.legal-main {
  max-width: 54rem;
  padding-bottom: 5rem;
  padding-top: clamp(3rem, 7vw, 5rem);
}

.legal-heading {
  border-bottom: 1px solid var(--site-line);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
}

.legal-date {
  color: var(--site-muted);
  font-size: 0.9rem;
}

.legal-main section {
  margin-top: 2.5rem;
}

.legal-main h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.legal-main p,
.legal-main li {
  line-height: 1.7;
}

.policy-callout {
  background: var(--site-accent-soft);
  border-left: 4px solid var(--theme-primary);
  padding: 1.25rem 1.5rem;
}

.policy-callout p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  margin-top: 0;
}

.not-found {
  min-height: calc(100vh - 4rem);
  padding-bottom: 5rem;
  padding-top: clamp(5rem, 12vw, 10rem);
}

.not-found p:not(.eyebrow) {
  color: var(--site-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

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

  .hero-section h1 {
    max-width: 16ch;
  }
}

@media (max-width: 520px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding-bottom: 0.85rem;
    padding-top: 0.85rem;
  }

  .site-header {
    position: static;
  }

  .site-links {
    gap: 1rem;
  }

  .theme-control {
    margin-left: 0;
  }

  .app-card-heading {
    align-items: flex-start;
  }

  .app-icon {
    height: 72px;
    width: 72px;
  }
}

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