/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

* {
  box-sizing: border-box;
}

:root {
  --color-text: #151515;
  --color-muted: #6d6a63;
  --color-border: #dfd9cf;
  --color-panel: #ffffff;
  --color-soft: #f7f1e8;
  --color-accent: #e43d30;
  --color-accent-dark: #b92e25;
  --color-ink: #25322f;
  --content-width: 1120px;
}

body.public-body {
  margin: 0;
  background: #fbfaf7;
  color: var(--color-text);
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner,
.section,
.hero__inner,
.container {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

.site-brand__logo {
  display: block;
  max-width: 180px;
  max-height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
}

.site-nav__link {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-accent);
}

.site-flash {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 18px auto 0;
}

.site-flash__message,
.alert {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.site-flash__message p {
  margin: 0 0 8px;
}

.site-flash__message p:last-child {
  margin-bottom: 0;
}

.site-flash__message--notice,
.alert-success {
  border-color: #8bbf9f;
  background: #f1fbf5;
}

.alert-danger {
  border-color: var(--color-accent);
  background: #fff5f3;
}

.hero {
  display: grid;
  min-height: 520px;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, rgba(37, 50, 47, 0.94), rgba(37, 50, 47, 0.7)),
    linear-gradient(90deg, #25322f, #e43d30);
  color: #ffffff;
}

.hero__inner {
  padding: 76px 0 88px;
}

.hero__eyebrow {
  margin: 0 0 16px;
  color: #ffe2cf;
  font-weight: 700;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 9vw, 96px);
  line-height: 1;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #f6f1eb;
  font-size: 20px;
}

.hero__lead p {
  margin: 0 0 10px;
}

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

.hero__actions,
.link-actions,
.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__actions {
  margin-top: 34px;
}

.section {
  padding: 64px 0;
}

.section--muted {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - var(--content-width)) / 2));
  padding-left: max(16px, calc((100% - var(--content-width)) / 2));
  background: var(--color-soft);
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section__header h2,
h1,
.h1 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 42px;
}

h2,
.h2 {
  font-size: 30px;
}

h3,
.h3,
.h5 {
  line-height: 1.3;
}

.lead {
  color: var(--color-muted);
  font-size: 19px;
}

.text-muted,
.content-card__meta,
time {
  color: var(--color-muted);
}

.button,
.btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button--primary,
.btn-primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
}

.button:hover,
.btn:hover,
input[type="submit"]:hover {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}

.button--primary:hover,
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #ffffff;
}

.text-link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-hero {
  margin-bottom: 40px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.content-section {
  margin-bottom: 52px;
}

.content-section h2 {
  margin: 0 0 18px;
}

.text-block {
  max-width: 760px;
}

.text-block p {
  margin: 0 0 16px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.card-grid,
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.content-card,
.card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
}

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

.content-card__image,
.card-img-top {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-soft);
}

.content-card__body,
.card-body {
  padding: 20px;
}

.content-card h3,
.content-card h2,
.card-title {
  margin: 0 0 10px;
}

.content-card h3 a,
.card-title a,
.content-card h2 a {
  text-decoration: none;
}

.content-card__meta {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.content-card__body p:last-child {
  margin-bottom: 0;
}

.content-card,
.col-lg-4 {
  grid-column: span 4;
}

.col-md-6,
.col-lg-8 {
  grid-column: span 6;
}

.col-12 {
  grid-column: 1 / -1;
}

.justify-content-center {
  justify-content: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.service-item {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

.service-item h3,
.service-item p {
  margin: 0 0 10px;
}

.service-item__number,
.workflow-list__label,
.section-note,
.empty-state {
  color: var(--color-muted);
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0;
  list-style: none;
}

.example-list li {
  padding: 4px 8px;
  border: 1px solid var(--color-border);
}

.workflow-list {
  display: grid;
  gap: 18px;
  padding-left: 24px;
}

.workflow-list h3,
.workflow-list p {
  margin: 0 0 6px;
}

.cta-section {
  max-width: var(--content-width);
}

.founder-name {
  font-weight: 700;
}

.profile-list {
  max-width: 760px;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid var(--color-border);
}

.profile-list dt,
.profile-list dd {
  border-top: 0;
}

.contact-form {
  max-width: 760px;
}

.contact-form__notice {
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 14px;
}

.contact-form__notice p {
  margin: 0 0 6px;
}

.contact-form__notice p:last-of-type {
  margin-bottom: 10px;
}

.field-error {
  margin: 6px 0 0;
  color: var(--color-accent);
  font-size: 14px;
}

.form-control[aria-invalid="true"] {
  border-color: var(--color-accent);
}

.privacy-policy {
  max-width: 820px;
}

.privacy-policy h2 {
  margin: 36px 0 12px;
  font-size: 24px;
}

.privacy-policy p {
  margin: 0 0 16px;
}

.privacy-policy ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-ink);
  color: #ffffff;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.site-footer p {
  margin: 6px 0 0;
  color: #d8e0dc;
}

.site-footer__brand {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer__nav,
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer__links a {
  color: #ffffff;
}

.py-4,
.py-5 {
  padding-top: 48px;
  padding-bottom: 64px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 24px;
}

.mb-5 {
  margin-bottom: 40px;
}

.my-2 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
}

.img-fluid {
  display: block;
  width: 100%;
}

.card-text p:first-child,
.article p:first-child {
  margin-top: 0;
}

.link-actions {
  margin-top: 28px;
}

dl.row {
  gap: 0;
}

dt,
dd {
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-footer__links,
  .site-footer__nav,
  .site-footer__meta {
    justify-content: flex-start;
  }

  .content-card,
  .col-lg-4,
  .col-md-6,
  .col-lg-8,
  .service-item {
    grid-column: 1 / -1;
  }

  .service-grid,
  .profile-list > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 460px;
  }

  .hero__inner,
  .section {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 34px;
  }

  .section__header {
    display: block;
  }
}
