/* RBS Mechanics - Landing Page */
:root {
  --red: #9a0223;
  --red-dark: #78011b;
  --black: #0f1115;
  --ink: #1f242b;
  --muted: #66707c;
  --line: #dde3ea;
  --soft: #f4f6f8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 17, 21, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

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

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(15, 17, 21, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 353px;
  height: 104px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.btn-login,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn-login,
.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-login {
  min-height: 40px;
  padding: 10px 14px;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.btn-map {
  border-color: var(--black);
  color: var(--white);
  background: var(--black);
}

.btn:hover,
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 17, 21, 0.16);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.96), rgba(15, 17, 21, 0.72) 45%, rgba(15, 17, 21, 0.36)),
    url("images/04_banners/banner-dark-1920x823.png") center / cover no-repeat;
}

.hero-grid {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 360px);
  align-items: center;
  gap: 52px;
  padding: 154px 0 76px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

.hero-subtitle {
  margin: 20px 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
}

.hero-text {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-card {
  display: grid;
  gap: 10px;
  align-self: end;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
}

.hero-card strong {
  font-size: 20px;
}

.hero-card span,
.hero-card a {
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

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

.section-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.split-grid,
.why-grid,
.contact-grid,
.form-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-copy p,
.section-heading p {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 17px;
}

.image-panel {
  aspect-ratio: 1.35;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.image-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(15, 17, 21, 0.16);
}

.image-panel:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.process-grid article,
.contact-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 17, 21, 0.06);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.service-card:hover,
.process-grid article:hover,
.contact-card:hover,
.form-card:hover {
  transform: translateY(-5px);
  border-color: rgba(154, 2, 35, 0.28);
  box-shadow: 0 18px 42px rgba(15, 17, 21, 0.12);
}

.service-card {
  padding: 22px;
}

.service-card span,
.process-grid span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.service-card h3,
.process-grid h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.service-card p,
.process-grid p {
  margin: 0;
  font-size: 15px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-grid div {
  position: relative;
  min-height: 58px;
  padding: 16px 16px 16px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.check-grid div:hover {
  transform: translateX(4px);
  border-color: rgba(154, 2, 35, 0.24);
  box-shadow: 0 12px 28px rgba(15, 17, 21, 0.08);
}

.check-grid div::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.process-grid article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 20px;
}

.contact-section {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.contact-card {
  padding: 30px;
}

address,
.contact-links,
.hours {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  font-style: normal;
}

.contact-links a {
  color: var(--red);
  font-weight: 800;
}

.map-wrap {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--soft);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.map-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(15, 17, 21, 0.14);
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  display: block;
}

.form-section {
  padding-top: 0;
}

.form-card {
  align-items: start;
  padding: 30px;
}

.form-card form {
  display: grid;
  gap: 12px;
}

.form-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.78);
  padding: 24px 0;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.footer-line nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-line a {
  color: var(--white);
  font-weight: 800;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: header-drop 0.5s ease both;
  }

  .hero-bg {
    animation: fade-in 0.9s ease both;
  }

  .hero-content,
  .hero-card {
    animation: fade-up 0.65s ease both;
  }

  .hero-card {
    animation-delay: 0.08s;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-zoom {
  transform: translateY(24px) scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 150px;
  }

  .nav-wrap,
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid,
  .split-grid,
  .why-grid,
  .contact-grid,
  .form-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 178px 0 42px;
  }

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

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

@media (max-width: 640px) {
  html {
    scroll-padding-top: 220px;
  }

  .container {
    width: min(100% - 28px, 1140px);
  }

  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
  }

  .brand img {
    width: 300px;
    height: 90px;
  }

  .main-nav {
    width: 100%;
    gap: 10px;
    font-size: 13px;
  }

  .main-nav a:not(.btn-login) {
    padding: 6px 4px;
  }

  .btn-login {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-grid {
    padding-top: 238px;
  }

  .section {
    padding: 60px 0;
  }

  .services-grid,
  .process-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .form-card {
    padding: 22px;
  }

  .map-wrap iframe {
    min-height: 340px;
  }

  .footer-line {
    display: grid;
    text-align: center;
  }

  .footer-line nav {
    justify-content: center;
  }
}
