:root {
  --ink: #111820;
  --muted: #60707d;
  --line: rgba(17, 24, 32, 0.12);
  --paper: #f8faf9;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #d89a25;
  --steel: #d9e1e4;
  --shadow: 0 24px 70px rgba(17, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 18px 0;
  transition: padding 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(248, 250, 249, 0.92);
  box-shadow: 0 12px 40px rgba(17, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(17, 24, 32, 0.48);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.site-header.scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.72;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 14px;
  color: currentColor;
  opacity: 0.82;
  font-weight: 600;
  font-size: 0.94rem;
  transition: opacity 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--amber);
}

.nav-links .track-link {
  margin-left: 6px;
  background: var(--teal);
  color: var(--white);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 16, 22, 0.88) 0%, rgba(9, 16, 22, 0.68) 42%, rgba(9, 16, 22, 0.16) 100%),
    linear-gradient(0deg, rgba(9, 16, 22, 0.72), rgba(9, 16, 22, 0.02) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 170px 0 160px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.3vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--amber);
  color: #15100a;
  box-shadow: 0 18px 40px rgba(216, 154, 37, 0.22);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(1160px, calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.8rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

.page-section:not(.hero) {
  padding: 110px 0;
}

.about {
  padding-top: 160px;
  background: var(--white);
}

.two-column,
.track-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.section-intro p,
.section-heading p,
.about-copy p {
  color: var(--muted);
  font-size: 1.03rem;
}

.about-copy {
  padding-top: 8px;
}

.services {
  background:
    linear-gradient(180deg, #eef4f3 0%, #f8faf9 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(17, 24, 32, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.track {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.96), rgba(15, 79, 74, 0.94)),
    radial-gradient(circle at 85% 20%, rgba(216, 154, 37, 0.2), transparent 36%);
}

.track .section-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.track-panel,
.contact-form {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfc;
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.track-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.tracking-result {
  min-height: 82px;
  margin-top: 18px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: #f4f8f7;
}

.tracking-result p {
  margin: 4px 0 0;
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 7px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(216, 154, 37, 0.16);
}

.contact {
  background: var(--white);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-details a,
.contact-details span {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  border-color: var(--line);
}

.contact-form .btn {
  width: 100%;
}

.form-status {
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.form-status.success {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
}

.form-status.error,
.field-error {
  color: #9f241f;
}

.form-status.error {
  border-color: rgba(159, 36, 31, 0.24);
  background: rgba(159, 36, 31, 0.08);
}

.field-error {
  display: block;
  margin-top: 7px;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-footer {
  padding: 28px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--amber);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-stats.reveal {
  transform: translateX(-50%) translateY(26px);
}

.hero-stats.reveal.visible {
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 88px 20px auto;
    display: grid;
    gap: 6px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .nav-links .track-link {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    padding: 150px 0 270px;
  }

  .hero-stats,
  .service-grid,
  .two-column,
  .track-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    bottom: 28px;
  }

  .hero-stats div {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .about {
    padding-top: 110px;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .container,
  .nav-shell,
  .hero-stats {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding: 12px 0;
  }

  .nav-shell {
    min-height: 58px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .hero {
    min-height: 880px;
  }

  .hero-content {
    padding-top: 132px;
  }

  .page-section:not(.hero) {
    padding: 78px 0;
  }

  .track-input-row {
    grid-template-columns: 1fr;
  }

  .track-input-row .btn {
    width: 100%;
  }

  .track-panel,
  .contact-form,
  .service-card {
    padding: 22px;
  }

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