/* Miklos Industrial Solutions LLC — premium one-page site, mobile-first */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/oswald-500.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/oswald-700.woff2") format("woff2");
}

:root {
  --navy-950: #071427;
  --navy-900: #0b1e3a;
  --navy-800: #102a54;
  --navy-700: #163566;
  --blue-700: #1556be;
  --blue-600: #1b64d8;
  --blue-500: #2b7de9;
  --blue-400: #4c94f0;
  --logo-blue: #0066d3;
  --white: #ffffff;
  --off-white: #f3f5f9;
  --text: #0b1e3a;
  --muted: #3d4d66;
  --line: #d5deeb;
  --header-h: 4.4rem;
  --sticky-h: 0px;
  --radius: 1rem;
  --radius-sm: 0.7rem;
  --shadow: 0 18px 40px rgba(7, 20, 39, 0.12);
  --shadow-lg: 0 24px 50px rgba(7, 20, 39, 0.18);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.85rem);
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  padding-bottom: var(--sticky-h);
}

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

a {
  color: var(--blue-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--navy-800); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.2rem;
  z-index: 100;
  background: var(--white);
  color: var(--navy-950);
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  border-radius: 0.35rem;
}

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

.wrap {
  width: min(100% - 1.6rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 20, 39, 0.88);
  color: var(--white);
  border-bottom: 3px solid var(--blue-500);
  min-height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 20, 39, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-inner {
  width: min(100% - 1.15rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover { color: inherit; }

.brand-logo {
  display: block;
  height: clamp(2.15rem, 7vw, 2.85rem);
  width: auto;
  max-width: min(15.5rem, 58vw);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

.header-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.header-nav a:hover { color: var(--blue-400); }

.header-call.btn { display: none; }

.nav-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  margin: 0;
  border-radius: 0.45rem;
  cursor: pointer;
  position: relative;
  flex: none;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  left: 0;
  transform: none;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.82rem 1.3rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(27, 100, 216, 0.38);
}

.btn-primary:hover {
  background: var(--blue-700);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-lg { padding: 0.98rem 1.55rem; font-size: 1.08rem; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  padding: 2.4rem 0 2.8rem;
  overflow: hidden;
  background: var(--navy-950);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 28%;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 20, 39, 0.42) 0%, rgba(7, 20, 39, 0.62) 38%, rgba(7, 20, 39, 0.92) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(7, 20, 39, 0.08), rgba(7, 20, 39, 0.55) 72%);
}

.hero-content {
  width: min(100% - 1.4rem, 75rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-400);
}

.hero-logo {
  margin: 0 auto 1rem;
  width: min(92vw, 52rem);
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45));
}

.hero-title {
  margin: 0 0 0.7rem;
  font-family: "Oswald", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-weight: 700;
  font-size: clamp(2.05rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  max-width: 18ch;
}

.tagline {
  margin: 0 auto 1.45rem;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: #e8eef7;
  max-width: 36rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Fact strip */
.fact-strip {
  background: var(--navy-900);
  color: #dbe6f5;
  border-top: 1px solid rgba(43, 125, 233, 0.35);
  border-bottom: 1px solid rgba(43, 125, 233, 0.2);
}

.fact-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  padding: 0.85rem 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-strip a {
  color: var(--white);
  text-decoration: none;
}

.fact-strip a:hover { color: var(--blue-400); }

/* Sections */
.section { padding: 3.4rem 0; }

.section-head { max-width: 40rem; margin-bottom: 1.8rem; }

.section-kicker {
  margin: 0 0 0.4rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.section h2,
.step h3,
.service-card h3,
.why-card h3 {
  font-family: "Oswald", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 2.7rem);
  line-height: 1.05;
  margin: 0 0 0.3rem;
}

.title-rule {
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--blue-500);
  margin: 0.8rem 0 1.15rem;
  border: 0;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.section-head.on-dark .section-kicker { color: var(--blue-400); }
.section-head.on-dark h2,
.section-head.on-dark { color: var(--white); }
.section-head.on-dark .lead { color: #c5d4ea; }

/* Services */
.services { background: var(--off-white); }

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.service-card,
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.3rem 1.55rem;
  box-shadow: 0 8px 20px rgba(16, 42, 84, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
  height: 100%;
}

.service-card:hover,
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(43, 125, 233, 0.45);
}

.service-card h3,
.why-card h3 {
  margin: 0 0 0.4rem;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
}

.service-card p,
.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.95rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #e8f1fd, #d6e6fb);
  color: var(--blue-600);
}

.icon-wrap svg { width: 1.7rem; height: 1.7rem; }

/* How it works */
.how {
  position: relative;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
  padding: 3.8rem 0;
}

.how-media,
.how-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.how-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.how-overlay {
  background:
    linear-gradient(180deg, rgba(7, 20, 39, 0.70) 0%, rgba(7, 20, 39, 0.80) 100%),
    linear-gradient(90deg, rgba(7, 20, 39, 0.35), transparent 70%);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  backdrop-filter: blur(8px);
}

.step-num {
  display: block;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--blue-400);
  margin-bottom: 0.65rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.step p { margin: 0; color: #d5e0f0; }

/* Why us */
.why { background: var(--white); }

.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

/* Service area */
.area {
  background:
    radial-gradient(900px 280px at 10% 0%, rgba(43, 125, 233, 0.18), transparent 60%),
    var(--navy-950);
  color: var(--white);
}

.city-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.city-chips li {
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.city-chips li:hover {
  background: rgba(43, 125, 233, 0.25);
  border-color: var(--blue-400);
  transform: translateY(-2px);
}

/* Request */
.request { background: var(--off-white); }

.request-grid {
  display: grid;
  gap: 2rem;
}

.request-phone {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.4rem 0 0.55rem;
  text-decoration: none;
  color: inherit;
}

.request-phone:hover { color: inherit; }

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.request-phone-num {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--navy-950);
}

.request-email {
  display: inline-block;
  font-weight: 600;
  word-break: break-word;
}

.zelle-note {
  margin: 0.9rem 0 0;
  font-weight: 700;
  color: var(--navy-900);
}

.request-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.15rem 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.field { display: grid; gap: 0.32rem; }

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(43, 125, 233, 0.18);
}

.field textarea { resize: vertical; min-height: 6.5rem; }

.field-row {
  display: grid;
  grid-template-columns: 4.6rem 1fr 1fr;
  gap: 0.65rem;
}

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

.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #c5d4ea;
  padding: 2.4rem 0 calc(1.6rem + var(--sticky-h));
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand img {
  width: min(16rem, 80%);
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-brand p { margin: 0 0 0.45rem; }

.footer-brand .zelle-note { color: var(--white); }

.footer-nav,
.footer-contact {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blue-400); }

/* Sticky mobile call */
.sticky-call {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--blue-600);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  min-height: 3.4rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(7, 20, 39, 0.25);
}

.sticky-call:hover,
.sticky-call:focus-visible {
  color: var(--white);
  background: var(--blue-700);
}

.sticky-call svg { width: 1.2rem; height: 1.2rem; }

@media (max-width: 719px) {
  :root { --sticky-h: calc(3.4rem + env(safe-area-inset-bottom)); }

  .header-nav {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 20, 39, 0.98);
    padding: 0.5rem 1rem 1.2rem;
    border-bottom: 3px solid var(--blue-500);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  }

  .header-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .header-nav a {
    padding: 0.85rem 0.2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-footer { padding-bottom: 1.6rem; }
}

@media (min-width: 720px) {
  .nav-toggle { display: none; }

  .header-nav { display: flex; }

  .header-call.btn {
    display: inline-flex;
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: min(92vh, 58rem);
    padding: 3.6rem 0 4rem;
  }

  .hero-logo { margin-bottom: 1.15rem; }

  .section { padding: 4.6rem 0; }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }


  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .step { padding: 1.6rem 1.35rem 1.7rem; }

  .why-grid { grid-template-columns: 1fr 1fr; }

  .request-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 3rem;
    align-items: start;
  }

  .request-form { padding: 1.7rem 1.55rem 1.6rem; }

  .sticky-call { display: none; }

  .site-footer { padding: 3rem 0 2.4rem; }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Motion */
.js .hero-animate {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.85s var(--ease) forwards;
}

.js .hero-delay-0 { animation-delay: 0.05s; }
.js .hero-delay-1 { animation-delay: 0.16s; }
.js .hero-delay-2 { animation-delay: 0.3s; }
.js .hero-delay-3 { animation-delay: 0.42s; }
.js .hero-delay-4 { animation-delay: 0.54s; }

.js .hero-media img {
  transform: scale(1.08);
  animation: zoom-out 1.4s var(--ease) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes zoom-out {
  to { transform: scale(1); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }
.js .reveal-d4 { transition-delay: 0.32s; }

.js .reveal.in,
.no-js .reveal,
.no-js .hero-animate {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .hero-animate,
  .js .hero-media img,
  .js .reveal,
  .service-card,
  .why-card,
  .city-chips li,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
