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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

:root[data-theme="dark"] {
  --color-bg: #020617;
  --color-surface: #020617;
  --color-surface-elevated: #0f172a;
  --color-border: #1f2937;
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --color-accent: #f97316;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.5);
}


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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: rgba(15, 23, 42, 0.9);
}

.section-alt .card {
  background-color: rgba(15, 23, 42, 0.9);
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
}

h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  line-height: 1.6;
  margin: 0.4rem 0 0.8rem;
}

.muted {
  color: var(--color-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #f9fafb;
  z-index: 200;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.5rem;
}

.logo-wrapper {
  height: 56px;
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  height: 150px;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

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

.main-nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--color-muted);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-text);
}

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

.theme-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.menu-toggle-bar {
  width: 18px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 999px;
}

.hero {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(circle at top left, #1f2937 0%, #020617 55%, #020617 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

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

.hero-subtext {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero-image {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.55);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-accent);
  background-color: rgba(15, 23, 42, 0.9);
}

.link-inline {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.link-inline:hover,
.link-inline:focus {
  text-decoration: underline;
}

.card {
  background-color: var(--color-surface-elevated);
  border-radius: 1.3rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.card-compact {
  padding: 1.25rem 1.4rem;
}

.card-image {
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.services-grid,
.projects-grid,
.three-column,
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card p,
.project-card p {
  font-size: 0.95rem;
}

.project-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.key-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.equipment-grid .card-compact h3 {
  margin-bottom: 0.25rem;
}

.simple-list,
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

.simple-list li {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.breadcrumb {
  background-color: #020617;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--color-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-border);
}

.partners-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.partners-carousel {
  margin-top: 1.5rem;
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  animation: partners-scroll 28s linear infinite;
}

.partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2);
  opacity: 0.9;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-link {
  margin-top: 1.5rem;
}

.cta-section {
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 50%), #020617;
}

.cta-card {
  border-radius: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #111827, #020617);
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  background-color: #020617;
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-heading {
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 0.75rem 1.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.contact-layout {
  align-items: flex-start;
}

.contact-form {
  background-color: var(--color-surface-elevated);
  border-radius: 1.3rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.form-field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 900px) {
  .hero-content,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset: 60px 1rem auto 1rem;
    background-color: #020617;
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
  }

  .main-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

  .theme-toggle {
    margin-left: 0;
    padding-top: 0.25rem;
  }

  .hero-content {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
