/* === Dark Horse Crane === */
:root {
  --bg: #07080c;
  --bg-2: #11141c;
  --bg-3: #1b1f2a;
  --fg: #eef1f7;
  --muted: #8d94a3;
  --accent: #2962ff;
  --accent-2: #6ea0ff;
  --accent-glow: #b8d4ff;
  --line: #252a36;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg) url('diamond-plate.png') repeat;
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,8,12,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 18px;
  line-height: 1;
}
.logo img,
.hero-logo {
  clip-path: polygon(
    3% 0%, 97% 0%,
    100% 6%, 100% 94%,
    97% 100%, 3% 100%,
    0% 94%, 0% 6%
  );
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.logo.small img { height: 64px; }
.hero-logo {
  display: block;
  margin: 0 auto 32px;
  max-width: 640px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(41, 98, 255, 0.28));
}

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--fg); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: 8px;
  width: 44px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(41, 98, 255, 0);
}
.btn-primary:hover {
  background: var(--accent-2);
  color: #07080c;
  box-shadow: 0 0 28px 0 rgba(41, 98, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-ghost:hover {
  background: var(--fg);
  color: #111;
}

/* === Hero === */
.hero {
  background:
    linear-gradient(rgba(7,8,12,0.55), rgba(7,8,12,0.85)),
    url('diamond-plate.png') repeat;
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  text-align: center;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.accent {
  color: var(--accent-2);
  text-shadow: 0 0 24px rgba(41, 98, 255, 0.45);
}

.lead {
  margin-top: 24px;
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Page Hero (interior pages) === */
.page-hero {
  background: var(--bg-2);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.page-hero .lead { margin-left: 0; }

/* === Features (home) === */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 24px;
}
.feature {
  background: var(--bg-2);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.feature-num {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.feature p { color: var(--muted); }

/* === Services Grid === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 24px 40px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  transition: transform 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}
.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent);
}
.service-card p { color: var(--muted); }

/* === Fleet Grid === */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 24px 40px;
}
.fleet-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 4px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.fleet-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.fleet-card h3 { font-size: 22px; }
.fleet-card .spec {
  margin: 8px 0 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.fleet-card p { color: var(--muted); }

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 24px 40px;
}
.gallery-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.gallery-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.gallery-card.wide { grid-column: span 2; }
.gallery-card.wide img { aspect-ratio: auto; }
.gallery-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.gallery-card figcaption {
  padding: 16px 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  padding: 60px 24px;
  align-items: start;
}
.about-text,
.contact-info {
  background: var(--bg-2);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.about-text h2 {
  font-size: 28px;
  margin: 32px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.about-text h2:first-child { margin-top: 0; }
.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
}
.values { list-style: none; }
.values li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.values li:last-child { border-bottom: 0; }
.values strong { color: var(--fg); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 28px;
  text-align: center;
  border-radius: 4px;
}
.stat .num {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat .label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  padding: 60px 24px;
}
.contact-info h2,
.contact-form h2 {
  font-size: 24px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.contact-info p {
  color: var(--muted);
  margin-bottom: 20px;
}
.contact-info strong { color: var(--fg); }
.contact-info a:hover { color: var(--accent-2); }

.contact-form {
  background: var(--bg-2);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  border-radius: 2px;
  text-transform: none;
  letter-spacing: normal;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button { margin-top: 8px; }
.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  text-transform: none;
  letter-spacing: normal;
}

/* === CTA Strip === */
.cta {
  background:
    linear-gradient(rgba(7,8,12,0.55), rgba(7,8,12,0.85)),
    url('diamond-plate.png') repeat;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  text-align: center;
  max-width: 720px;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cta p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 17px;
}

/* === Footer === */
.site-footer {
  background: #050609;
  padding: 60px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-inner h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--accent);
}
.muted { color: var(--muted); font-size: 14px; }
.copyright {
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* === Responsive === */
@media (max-width: 900px) {
  .features,
  .service-grid,
  .fleet-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7,8,12,0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .gallery-card.wide { grid-column: auto; }
  .nav-cta { margin-left: auto; padding: 10px 16px; font-size: 12px; }
  .features,
  .service-grid,
  .fleet-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
}
