/*
 * 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.
 */

:root {
  --sand: #f4ead9;
  --paper: #fffaf2;
  --ink: #11211f;
  --muted: #51605b;
  --accent: #c65d2f;
  --accent-deep: #8f3f1f;
  --forest: #285248;
  --gold: #efb95f;
  --line: rgba(17, 33, 31, 0.12);
  --shadow: 0 24px 60px rgba(17, 33, 31, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(239, 185, 95, 0.28), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(198, 93, 47, 0.2), transparent 25%),
    linear-gradient(180deg, #f8f1e6 0%, #f4ead9 48%, #efe3cf 100%);
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

input,
textarea,
button {
  font: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.landing-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.landing-shell::before,
.landing-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  z-index: -1;
  animation: drift 16s ease-in-out infinite;
}

.landing-shell::before {
  width: 26rem;
  height: 26rem;
  top: 5rem;
  right: -8rem;
  background: rgba(40, 82, 72, 0.12);
}

.landing-shell::after {
  width: 20rem;
  height: 20rem;
  left: -6rem;
  bottom: 14rem;
  background: rgba(198, 93, 47, 0.14);
  animation-delay: -7s;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 0 0.3rem rgba(198, 93, 47, 0.14);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.landing-page {
  padding: 1rem 0 4rem;
}

.flash-stack {
  position: sticky;
  top: 1rem;
  z-index: 5;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
}

.flash {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.flash-notice {
  background: rgba(255, 250, 242, 0.92);
  color: var(--forest);
}

.flash-alert {
  background: rgba(198, 93, 47, 0.14);
  color: #6e2c13;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 2.5rem 0 2rem;
}

.hero-copy,
.hero-panel,
.service-card,
.workflow-card,
.process-card,
.cta-panel {
  animation: fade-up 0.8s ease both;
}

.hero-panel {
  animation-delay: 0.1s;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.signal-card h2,
.cta-copy h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
}

.hero-text,
.section-heading p,
.service-card p,
.workflow-step p,
.process-card p,
.cta-copy p,
.stat-card p,
.signal-card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 2rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--paper);
  box-shadow: 0 20px 35px rgba(143, 63, 31, 0.24);
}

.button-secondary {
  border-color: rgba(17, 33, 31, 0.14);
  background: rgba(255, 250, 242, 0.72);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.1rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink);
  font-size: 0.96rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--gold));
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.signal-card,
.stat-card,
.service-card,
.workflow-card,
.process-card,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(255, 248, 237, 0.84));
  box-shadow: var(--shadow);
}

.signal-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 185, 95, 0.45), transparent 68%);
}

.signal-label {
  margin: 0 0 0.7rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-card h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

.signal-card p {
  margin: 1rem 0 0;
}

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

.stat-card {
  min-height: 11.5rem;
  padding: 1.4rem;
}

.stat-card:nth-child(3) {
  grid-column: 1 / -1;
  background:
    linear-gradient(140deg, rgba(40, 82, 72, 0.12), rgba(255, 250, 242, 0.98));
}

.stat-number {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--forest);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

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

.section-heading h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
}

.section-heading p {
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

.topic-ribbon {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.4rem 0 3rem;
}

.topic-ribbon span {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(17, 33, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.7);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.services,
.workflow,
.process {
  padding: 2rem 0 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.service-card {
  padding: 1.6rem;
}

.service-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(198, 93, 47, 0.12), rgba(255, 250, 242, 0.98));
}

.service-card h3,
.workflow-step h3,
.process-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.service-card p {
  margin: 0.9rem 0 0;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-tag::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.service-list,
.cta-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.service-list li,
.cta-list li {
  position: relative;
  padding-left: 1.2rem;
}

.service-list li::before,
.cta-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--forest);
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

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

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(17, 33, 31, 0.08);
}

.workflow-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: rgba(40, 82, 72, 0.12);
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 700;
}

.workflow-step p,
.process-card p {
  margin: 0.55rem 0 0;
}

.workflow-aside {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(40, 82, 72, 0.1), rgba(255, 250, 242, 0.95));
}

.workflow-aside h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.workflow-stats {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.workflow-stats span {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 250, 242, 0.78);
  color: var(--ink);
  font-weight: 500;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.process-card {
  padding: 1.5rem;
}

.process-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(198, 93, 47, 0.12);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-card h3 {
  margin-top: 1rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 1rem;
  margin: 4rem 0 0;
  padding: 1.8rem;
  background:
    linear-gradient(135deg, rgba(17, 33, 31, 0.92), rgba(40, 82, 72, 0.88));
  color: var(--paper);
}

.cta-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.cta-copy p,
.cta-panel .eyebrow {
  color: rgba(255, 250, 242, 0.76);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.cta-card,
.contact-card,
.contact-form {
  border: 1px solid rgba(255, 250, 242, 0.15);
  border-radius: 1.5rem;
  background: rgba(255, 250, 242, 0.08);
}

.cta-card {
  padding: 1.4rem;
}

.cta-card p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta-list {
  color: rgba(255, 250, 242, 0.88);
  margin-top: 0;
}

.contact-column {
  display: grid;
  gap: 1rem;
}

.contact-form {
  padding: 1.4rem;
}

.contact-form h3,
.contact-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.contact-form p,
.contact-card p {
  margin: 0.75rem 0 0;
  color: rgba(255, 250, 242, 0.78);
  line-height: 1.6;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: rgba(255, 250, 242, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 0.95rem;
  background: rgba(255, 250, 242, 0.96);
  color: var(--ink);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(81, 96, 91, 0.85);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-submit {
  margin-top: 1rem;
}

.form-note {
  margin: 0.9rem 0 0;
  color: rgba(255, 250, 242, 0.62);
  font-size: 0.88rem;
}

.contact-card {
  padding: 1.25rem;
}

.contact-link-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 1rem;
  background: rgba(255, 250, 242, 0.06);
  color: var(--paper);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 250, 242, 0.12);
}

.contact-link strong,
.contact-link span {
  display: block;
}

.contact-link span {
  margin-top: 0.2rem;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.92rem;
}

.contact-link-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(239, 185, 95, 0.18);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
}

.form-errors {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 1rem;
  background: rgba(198, 93, 47, 0.18);
}

.form-errors p,
.form-errors ul {
  margin: 0;
  color: rgba(255, 250, 242, 0.94);
}

.form-errors ul {
  padding-left: 1.1rem;
  margin-top: 0.55rem;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -22px, 0);
  }
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.footer-company {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-region {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

/* Legal pages */
.legal-shell {
  position: relative;
  isolation: isolate;
}

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

.legal-page {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--ink);
}

.legal-page h1 {
  margin: 1.5rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.legal-updated {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-content {
  margin-top: 2rem;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.legal-content p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 0.3rem;
}

.legal-content a {
  color: var(--accent-deep);
  text-decoration: underline;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--accent);
}

@media (max-width: 960px) {
  .hero,
  .workflow-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

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

  .service-card.featured,
  .stat-card:nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.8rem 1rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-points,
  .stat-grid,
  .service-grid,
  .process-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    grid-template-columns: 1fr;
  }

  .field-grid .form-field-full {
    grid-column: auto;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    justify-content: center;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button,
  .form-submit .button {
    width: 100%;
  }

  .landing-page {
    padding-bottom: 3rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
