:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #5f6877;
  --faint: #87909d;
  --rule: #dfe2e5;
  --accent: #2563a9;
  --accent-dark: #1d4f86;
  --accent-soft: #edf4fc;
  --max-width: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page-width {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 var(--pad);
  background: rgba(247, 247, 245, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}

.logo-link {
  flex: 0 0 auto;
}

.logo {
  width: auto;
  height: 42px;
}

.logo-sm {
  height: 38px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
}

.availability {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  font-size: 0.8rem;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9d68;
}

/* General layout and type */

.section {
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
  border-bottom: 1px solid var(--rule);
}

.row {
  display: grid;
  gap: 2rem;
}

.eyebrow,
.footer-heading,
.contact-meta-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-title,
.contact-title,
.cta-title,
.section-heading h2 {
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-title {
  max-width: 850px;
  margin-top: 1.25rem;
  font-size: clamp(2.65rem, 7vw, 5.5rem);
}

.hero-sub {
  max-width: 650px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.3vw, 1.3rem);
}

.body-copy {
  max-width: 650px;
  margin-top: 1.5rem;
  color: var(--muted);
}

/* Buttons */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 650;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.btn-primary {
  color: #fff;
  background: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--ink);
  border-color: #c5cbd1;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.arrow {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 160ms ease;
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

/* About */

.about {
  background: var(--surface);
}

.about-text {
  max-width: 820px;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

/* Services */

.services {
  background: var(--bg);
}

.section-heading {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.section-heading h2 {
  max-width: 600px;
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

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

.service-list {
  border-top: 1px solid var(--rule);
}

.service-row {
  display: grid;
  gap: 1.15rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.service-number {
  color: var(--faint);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.service-row h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.service-desc {
  max-width: 590px;
  margin-top: 0.65rem;
  color: var(--muted);
}

.service-stack {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  list-style: none;
}

.service-stack li::before {
  margin-right: 0.55rem;
  color: var(--accent);
  content: "—";
}

/* CTA */

.cta {
  background: #eaf2fa;
}

.cta-title {
  max-width: 620px;
  margin-top: 0.75rem;
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
}

.col-cta {
  display: flex;
  align-items: flex-end;
}

/* Contact */

.contact {
  min-height: calc(100vh - 76px);
}

.contact-grid {
  display: grid;
  gap: clamp(3rem, 8vw, 6rem);
}

.contact-title {
  max-width: 600px;
  margin-top: 1rem;
  font-size: clamp(2.65rem, 6vw, 4.75rem);
}

.contact-sub {
  max-width: 540px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-meta {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.contact-meta > div {
  display: grid;
  gap: 0.3rem;
}

.contact-meta-label {
  color: var(--faint);
  font-size: 0.7rem;
}

.meta-value {
  color: var(--ink);
}

a.meta-value:hover {
  color: var(--accent);
}

.contact-right {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.opt {
  color: var(--faint);
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  border: 1px solid #cbd1d7;
  border-radius: 5px;
  outline: none;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #929aa5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 169, 0.14);
}

.btn-send {
  width: 100%;
  margin-top: 0.25rem;
}

.success {
  padding: 1rem 0;
}

.success-title {
  margin-top: 0.65rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

/* Footer */

.site-footer {
  padding: 3rem var(--pad) 1.75rem;
  background: #172033;
  color: #f7f7f5;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand .logo {
  filter: brightness(0) invert(1);
}

.footer-tag {
  margin-top: 1rem;
  color: #bbc4cf;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  gap: 2rem;
}

.footer-cols > div {
  display: grid;
  gap: 0.45rem;
}

.footer-heading {
  margin-bottom: 0.3rem;
  color: #8eb4e1;
}

.footer-cols a,
.footer-cols span {
  color: #cbd2db;
  font-size: 0.92rem;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  color: #9eabb9;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
}

/* Accessibility */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8eb4e1;
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .availability {
    display: inline-flex;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 800px) {
  .row {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.7fr);
    gap: clamp(3rem, 8vw, 8rem);
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    align-items: end;
  }

  .service-row {
    grid-template-columns: 70px minmax(0, 1.3fr) minmax(190px, 0.65fr);
    gap: 2.5rem;
    align-items: start;
    padding: 2.5rem 0;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .col-cta {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 68px;
  }

  .logo {
    height: 34px;
  }

  .main-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .availability {
    display: none;
  }
}