/* ============================================================
   Milestone Plant Hire — Site Stylesheet
   Locked brand: #1A1F24 / #00ADEF / Inter + Inter Tight
   Refined: tighter density, restrained motion, lighter headlines
   ============================================================ */

:root {
  --bg: #1A1F24;
  --surface: #22272D;
  --surface-2: #2A2F35;
  --surface-3: #1E2328;
  --text: #F5F5F2;
  --muted: #9CA3AF;
  --muted-dim: #6B7280;
  --accent: #00ADEF;
  --accent-hover: #33BEF2;
  --accent-dim: rgba(0, 173, 239, 0.12);
  --accent-glow: rgba(0, 173, 239, 0.25);
  --border: #2A2F35;
  --border-light: #373D44;
  --maxw: 1200px;
  --maxw-narrow: 880px;
  --radius: 4px;
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
h1, h2, h3, h4, h5 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 31, 36, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.phone-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.phone-link:hover { color: var(--accent); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}
.mobile-nav {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 24px 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #0a1015;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-secondary:hover { border-color: var(--text); }
.btn-large { padding: 16px 28px; font-size: 15px; }

/* ---------- Test banner ---------- */
.test-banner {
  background: rgba(0, 173, 239, 0.08);
  border-bottom: 1px solid rgba(0, 173, 239, 0.25);
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  background: linear-gradient(135deg, #22272D 0%, #1A1F24 100%);
}
.hero-with-image {
  padding: 140px 0 120px;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.85);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,31,36,0.4) 0%, rgba(26,31,36,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

/* Big centered logo treatment for contact page */
.hero-contact .container { text-align: center; }
.hero-contact h1,
.hero-contact .hero-sub { margin-left: auto; margin-right: auto; }
.hero-logo-big {
  max-width: 540px;
  width: 85%;
  height: auto;
  margin: 16px auto 32px;
  display: block;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  margin-bottom: 22px;
  max-width: 18ch;
  letter-spacing: -0.025em;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-narrow { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}
.section-head p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

/* Section variants */
.section-dark { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-darker { background: var(--surface-3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item .num {
  font-family: 'Inter Tight', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.trust-item .num .accent { color: var(--accent); }
.trust-item .label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col-mixed {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}
.two-col-mixed.reverse { grid-template-columns: 7fr 5fr; }
.two-col h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.two-col p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.7;
}
.two-col p strong { color: var(--text); font-weight: 600; }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.card.card-accent:hover { border-color: var(--accent); }
.card .num {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Image block ---------- */
.image-block {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 10;
}
.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}
.image-block.image-tall { aspect-ratio: 4 / 5; }
.image-block.image-wide { aspect-ratio: 21 / 9; }

/* ---------- Image strip (engineering capability) ---------- */
.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.image-strip .image-block { aspect-ratio: 4 / 3; }
.image-strip-caption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

/* ---------- Lineage block ---------- */
.lineage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}
.lineage .image-block { aspect-ratio: 4 / 3; }
.lineage-caption {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-top: 14px;
}

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  text-align: left;
  transition: border-color var(--transition);
}
.team-card:hover { border-color: var(--border-light); }
.team-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: var(--surface-2);
  overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.team-card .role {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.team-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.team-section-head {
  margin-top: 56px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Callout ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
  border-radius: var(--radius);
  margin: 32px 0;
}
.callout h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}
.callout p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- Image + text block ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 48px 0;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-block .image-block { aspect-ratio: 4 / 3; }
.feature-block h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.feature-block p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 14px;
  line-height: 1.65;
}

/* ---------- Final CTA ---------- */
.cta-block {
  padding: 96px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-block h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.cta-block p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
  margin-top: 28px;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
}
.contact-info a { color: var(--text); }
.contact-info a:hover { color: var(--accent); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: var(--radius);
}
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-honeypot { position: absolute; left: -9999px; }
.form .btn { width: 100%; margin-top: 4px; }
.form-note {
  font-size: 12px;
  color: var(--muted-dim);
  margin-top: 14px;
  text-align: center;
}
.form-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}
.form-error.active { display: block; }

/* ---------- Footer ---------- */
footer {
  background: var(--surface-3);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 40px;
}
footer h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a, footer p { font-size: 14px; color: var(--muted); line-height: 1.6; }
footer a:hover { color: var(--text); }
.footer-brand img { height: 38px; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-dim);
}

/* ---------- Industries small ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: var(--radius);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition);
}
.industry-card:hover { border-color: var(--accent); }
.industry-card .icon {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: auto;
}
.industry-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; margin-top: 24px; }
.industry-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / 4; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .phone-link { display: none; }
  .hero-logo-big { max-width: 380px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .two-col, .two-col-mixed, .two-col-mixed.reverse { grid-template-columns: 1fr; gap: 32px; }
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .image-strip { grid-template-columns: 1fr; gap: 16px; }
  .lineage { grid-template-columns: 1fr; gap: 20px; }
  .feature-block { grid-template-columns: 1fr; gap: 28px; }
  .feature-block.reverse { direction: ltr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / 3; }
  .hero { padding: 80px 0 60px; }
  .hero-with-image { padding: 100px 0 80px; }
  section { padding: 64px 0; }
  .cta-block { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .container, .container-narrow { padding: 0 20px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-cta .btn, .cta-buttons .btn { width: 100%; }
  .form { padding: 24px; }
}
