/* ------------------------------
   Base & Reset
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: #020617;
  color: #e5e7eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("Precision.png");
  background-repeat: no-repeat;
  background-position: center top 90px;
  background-size: min(88vw, 520px);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

.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;
}

/* ------------------------------
   Layout Helpers
------------------------------ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #111827 0, #020617 50%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.align-left {
  text-align: left;
}

.section-intro {
  max-width: 40rem;
  margin: 0.75rem auto 0;
  color: #9ca3af;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

h1,
h2,
h3 {
  color: #f9fafb;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.75rem;
  color: #d1d5db;
}

/* ------------------------------
   Header & Nav
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #9ca3af;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.85rem;
  color: #e5e7eb;
  padding: 0.25rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.18rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.7);
  background: radial-gradient(circle at top left, #111827, #020617);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background-color: #e5e7eb;
}

/* ------------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, #0ea5e9, #0369a1);
  color: #f9fafb;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.9);
}

.btn-primary:hover {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.btn-outline:hover {
  border-color: #f97316;
  color: #f97316;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

.btn-ghost:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-block {
  width: 100%;
}

/* ------------------------------
   Hero
------------------------------ */
.hero {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(15, 23, 42, 0.8), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.28), transparent 60%),
    transparent;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 1.6rem;
}

.hero-highlights {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.hero-highlights dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f9fafb;
}

.hero-highlights dd {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-card {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.8);
  padding: 1.5rem 1.5rem 1.4rem;
}

.hero-card-header h2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.hero-card-header p {
  font-size: 0.9rem;
  color: #9ca3af;
}

.hero-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

input,
textarea {
  border-radius: 0.6rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus-visible,
textarea:focus-visible {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
  background-color: #020617;
}

.form-note {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

/* ------------------------------
   Cards & Grids
------------------------------ */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  border-radius: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
  padding: 1.4rem 1.3rem;
}

.card-accent {
  border-color: rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top left, #0b1120 0, #020617 55%);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.card ul li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0ea5e9;
}

.highlight-callout {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.highlight-callout a {
  color: #0ea5e9;
  font-weight: 500;
}

/* ------------------------------
   About
------------------------------ */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.checklist li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-size: 0.8rem;
}

.about-card {
  border-radius: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top right, #1e293b 0, #020617 60%);
  padding: 1.5rem 1.4rem;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9fafb;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
}

.small {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ------------------------------
   Service Area
------------------------------ */
.service-area-grid {
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.map-placeholder {
  border-radius: 1rem;
  border: 1px dashed rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, #020617, #0b1120);
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.map-placeholder p:first-child {
  font-weight: 500;
  color: #e5e7eb;
}

/* ------------------------------
   Testimonials
------------------------------ */
.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonials-grid blockquote {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin: 0 0 0.75rem;
}

.testimonials-grid figcaption {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ------------------------------
   Contact
------------------------------ */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  display: grid;
  gap: 0.4rem;
}

.contact-label {
  display: inline-block;
  width: 5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.contact-list a {
  color: #e5e7eb;
}

.contact-list a:hover {
  color: #38bdf8;
}

.contact-form {
  border-radius: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top right, #020617, #020617);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-row {
  display: grid;
  gap: 0.6rem;
}

/* ------------------------------
   Footer
------------------------------ */
.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, #020617, #020617 60%);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-brand {
  font-weight: 500;
  color: #9ca3af;
}

.back-to-top {
  color: #9ca3af;
}

.back-to-top:hover {
  color: #38bdf8;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }

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

  .about-grid,
  .service-area-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  }

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

  .header-cta {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .header-inner {
    padding-inline: 1rem;
  }

  .logo-img {
    height: 32px;
  }

  .nav-links {
    position: absolute;
    inset: 3.15rem 0 auto;
    padding: 0.9rem 1.5rem 1rem;
    background: radial-gradient(circle at top left, #020617, #020617 55%);
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    gap: 3.5rem;
  }

  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-grid {
    gap: 3rem;
  }
}

