/* ==========================================================================
   MOTO AREÁL – dark motocross homepage
   podle návrhu, bez ikon
   ========================================================================== */

:root {
  --project: #e4312b;
  --project-hover: #ff3d36;

  --bg-body: #050608;
  --bg-soft: #090b0f;
  --bg-card: rgba(12,14,18,.92);

  --text-body: #f5f5f5;
  --text-muted: #a7adb6;
  --text-soft: #747b86;

  --border-base: rgba(255,255,255,.12);

  --shadow-card: 0 24px 70px rgba(0,0,0,.48);

  --header-height: 92px;
}

html,
body {
  background: var(--bg-body);
  color: var(--text-body);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--project);
}

img {
  max-width: 100%;
}

.text-muted {
  color: var(--text-muted) !important;
}

h1,
h2,
h3,
h4 {
  color: var(--text-body);
  letter-spacing: -.045em;
}

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--bs-gutter-x, .75rem);
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* Header */

#site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: transparent;
  border: 0;
}

.site-nav,
#site-header .navbar {
  min-height: var(--header-height);
  background: transparent !important;
}

.navbar-brand img {
  max-height: 62px;
}

.nav-link {
  color: rgba(255,255,255,.86) !important;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.nav-link.active::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: .35rem;
  background: var(--project);
}

/* Buttons */

.btn {
  border-radius: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.btn-project,
.hero-btn-main {
  background: var(--project) !important;
  border: 1px solid var(--project) !important;
  color: #fff !important;
}

.btn-project:hover,
.hero-btn-main:hover {
  background: var(--project-hover) !important;
  border-color: var(--project-hover) !important;
  color: #fff !important;
}

.hero-btn-light {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fff !important;
}

.hero-btn-light:hover {
  background: rgba(255,255,255,.10) !important;
  color: #fff !important;
}

/* Hero */

.hero-stage {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  background: #050608;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.12) saturate(1.08) brightness(.68);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 32%, rgba(0,0,0,.28) 68%, rgba(0,0,0,.12) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(5,6,8,.98) 94%),
    radial-gradient(650px 380px at 62% 40%, rgba(228,49,43,.10), transparent 70%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-content .container {
  max-width: 1320px;
}

.hero-copy {
  max-width: 640px;
}

.section-kicker,
.kicker {
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-kicker::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 3px;
  margin-left: .8rem;
  vertical-align: middle;
  background: var(--project);
}

.hero-copy::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 1.45rem;
  background: linear-gradient(90deg, var(--project), rgba(255,255,255,.35));
}

.hero-title {
  max-width: 9ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 6vw, 6.3rem);
  line-height: .99;
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow: 0 16px 38px rgba(0,0,0,.65);
}

.hero-title span {
  color: var(--project);
}

.hero-text {
  max-width: 35rem;
  color: #e7e7e7;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-side-card {
  position: absolute;
  right: clamp(1.25rem, 6vw, 7rem);
  top: 42%;
  z-index: 4;
  width: min(260px, 32vw);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5,6,8,.22);
  backdrop-filter: blur(4px);
}

.hero-side-card h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  line-height: .95;
  font-weight: 1000;
  text-transform: uppercase;
}

.hero-side-card a {
  color: var(--project);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-side-card::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 1.4rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* Sections */

.home-section,
.home-services {
  position: relative;
  padding: 5rem 0;
  background:
    radial-gradient(760px 360px at 50% -10%, rgba(228,49,43,.08), transparent 62%),
    var(--bg-body);
}

.home-services {
  margin-top: 0;
  padding-top: 3.5rem;
  z-index: 5;
  padding-top: 0;
}

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

/* Cards */

.services-heading {
  margin-bottom: 2.2rem;
  text-align: center;
}

.services-heading h2,
.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.services-heading h2::after,
.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: .75rem auto 0;
  background: var(--project);
}

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

.service-card {
  position: relative;
  min-height: 305px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, border-color .18s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(228,49,43,.65);
}

.service-card::before {
  content: "";
  display: block;
  height: 170px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(5,6,8,.88)),
    var(--card-image, rgba(255,255,255,.06));
  background-size: cover;
  background-position: center;
}

.service-card h3 {
  margin: 1.2rem 1.35rem .6rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 1000;
  text-transform: uppercase;
}

.service-card p {
  margin: 0 1.35rem 2.4rem;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.05rem;
  width: 38px;
  height: 4px;
  background: var(--project);
  transform: translateX(-50%);
}

.service-card a {
  display: none;
}

/* CTA */

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.55)),
    url("../images/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.cta-band.pivnice {
  background:
  linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.55)),
  url("../images/pivnice-bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.form-control {
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.42);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255,255,255,.55);
}

/* Gallery */

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--bg-card);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: contrast(1.12) saturate(1.05) brightness(.82);
  transition: transform .25s ease, filter .25s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
  filter: contrast(1.18) saturate(1.08) brightness(.9);
}

/* Footer */

.site-footer-motoareal,
#site-footer {
  background: linear-gradient(180deg, #080a0d 0%, #030405 100%);
  color: var(--text-body);
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Responsive */

@media (max-width: 1199.98px) {
  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-side-card {
    right: 2rem;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 82px;
  }

  #site-header {
    position: fixed;
    background: rgba(5,6,8,.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .hero-stage {
    min-height: auto;
    padding-top: var(--header-height);
  }

  .hero-media {
    position: relative;
    height: clamp(380px, 72vw, 560px);
  }

  .hero-content {
    position: relative;
    padding: 2.5rem 0 3.5rem;
    background: var(--bg-body);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,.08), rgba(5,6,8,.95));
  }

  .hero-title {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .hero-side-card {
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    margin-top: 2rem;
  }

  .home-services {
    margin-top: 0;
    padding-top: 3.5rem;
  }
}

@media (max-width: 767.98px) {
  .services-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 285px;
  }
}

.home-services,
.home-section,
.home-section--soft {
  background: #050608 !important;
  color: #f5f5f5;
}

.home-services h2,
.home-section h2,
.section-title,
.services-heading h2 {
  color: #f5f5f5 !important;
}