:root {
  --navy: #14263d;
  --navy-light: #1e3a5a;
  --navy-dark: #0d1a2a;
  --brass: #c79a3b;
  --brass-light: #e0bb68;
  --ivory: #f6f3ec;
  --ivory-deep: #ece6da;
  --white: #ffffff;
  --charcoal: #202a33;
  --slate: #64707c;
  --border: #d8d3c8;
  --success: #2f684e;
  --success-bg: #edf7f1;
  --danger: #9b3434;
  --danger-bg: #fff2f2;
  --shadow: 0 20px 45px rgba(20, 38, 61, 0.12);
  --radius: 18px;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

input,
select,
textarea {
  max-width: 100%;
}

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

.page-shell {
  width: min(calc(100% - 2.5rem), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 38, 61, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--brass);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2.5rem), var(--page-width));
  min-height: 76px;
  margin-inline: auto;
}

.navbar-brand {
  min-width: 0;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-nav a {
  position: relative;
  display: block;
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
}

.navbar-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: var(--brass-light);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.navbar-nav a:hover::after,
.navbar-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 25%, rgba(199, 154, 59, 0.2), transparent 30%),
    linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: -10rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(224, 187, 104, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(224, 187, 104, 0.035),
    0 0 0 140px rgba(224, 187, 104, 0.02);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding-top: clamp(6.5rem, 13vw, 10rem);
  padding-bottom: clamp(6.5rem, 12vw, 9rem);
}

.hero-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.hero-logo {
  width: clamp(58px, 8vw, 84px);
  max-height: 84px;
  object-fit: contain;
}

.eyebrow,
.section-label,
.form-kicker {
  color: var(--brass-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  margin-bottom: 0.85rem;
}

.hero-branding .eyebrow {
  margin-bottom: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-tagline {
  max-width: 720px;
  margin-top: 1.6rem;
  color: var(--white);
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  font-weight: 650;
  line-height: 1.3;
}

.hero-description {
  max-width: 700px;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

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

.button-primary {
  color: var(--navy-dark);
  background: var(--brass);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brass-light);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.section-muted {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.section h2 {
  max-width: 650px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.section-copy {
  display: grid;
  gap: 1rem;
  color: var(--slate);
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading > p {
  max-width: 420px;
  color: var(--slate);
}

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

.company-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  padding: 1.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  box-shadow: 0 8px 26px rgba(20, 38, 61, 0.06);
}

.company-status {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-status-active {
  color: var(--success);
  background: var(--success-bg);
}

.company-status-coming-soon {
  color: #75561d;
  background: #fff4d9;
}

.company-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.25;
}

.company-card p {
  margin-top: 0.8rem;
  color: var(--slate);
}

.company-card a,
.company-card-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.4rem;
  font-weight: 800;
}

.company-card a {
  color: var(--navy-light);
  text-decoration: none;
}

.company-card a:hover,
.company-card a:focus-visible {
  color: var(--brass);
}

.company-card a::after {
  content: "→";
}

.company-card-note {
  color: var(--slate);
  font-size: 0.88rem;
}

.company-empty {
  grid-column: 1 / -1;
  min-height: auto;
}

.loading-line {
  height: 13px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e4dfd6 25%, #f1ede5 50%, #e4dfd6 75%);
  background-size: 200% 100%;
  animation: loading 1.3s infinite linear;
}

.loading-line-short {
  width: 45%;
  height: 20px;
  margin-top: 0;
}

@keyframes loading {
  to {
    background-position: -200% 0;
  }
}

.section-status {
  min-height: 1.4rem;
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.92rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: clamp(2rem, 7vw, 5.5rem);
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 120px;
}

.contact-copy {
  max-width: 630px;
  margin-top: 1.15rem;
  color: var(--slate);
  font-size: 1.05rem;
}

.contact-details {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

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

.contact-item span {
  color: var(--slate);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item a {
  color: var(--navy);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.contact-placeholder {
  color: var(--slate);
}

.contact-form {
  display: grid;
  gap: 1.3rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-heading h3 {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.5rem;
}

.form-heading > p:last-child {
  margin-top: 0.45rem;
  color: var(--slate);
  font-size: 0.9rem;
}

.form-kicker {
  color: var(--brass);
}

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

.form-field {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.form-field > span {
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.8rem;
  border: 1px solid #c9c2b6;
  border-radius: 9px;
  outline: none;
  color: var(--charcoal);
  background: var(--white);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(199, 154, 59, 0.16);
}

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

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-submit {
  min-width: 145px;
}

.form-status {
  flex: 1;
  min-width: 200px;
  color: var(--slate);
  font-size: 0.88rem;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.site-footer {
  padding-block: 1.5rem;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.72);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-status[data-state="connected"] {
  color: #b9d8c1;
}

.footer-status[data-state="offline"] {
  color: #e7c3a0;
}

@media (max-width: 960px) {
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .navbar-nav {
    position: absolute;
    top: calc(100% + 3px);
    right: -1.25rem;
    left: -1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  }

  .navbar-nav.is-open {
    display: flex;
  }

  .navbar-nav a {
    min-height: 48px;
    padding: 0.85rem 0;
  }

  .navbar-nav a::after {
    display: none;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .page-shell,
  .navbar {
    width: min(calc(100% - 1.5rem), var(--page-width));
  }

  .navbar {
    min-height: 68px;
  }

  .navbar-brand {
    max-width: calc(100% - 60px);
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .company-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-status {
    min-width: 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
