/* Homepage styles reuse the site's design tokens and leave shared templates independent. */
body.home:has(.gc-h-hero) #rvio-header {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  z-index: 15;
}
body.home.admin-bar:has(.gc-h-hero) #rvio-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}
body.home:has(.gc-h-hero) .gc-r-header {
  background: color-mix(in srgb, var(--rubyvio-color-footer) 14%, transparent);
  border-color: rgb(255 255 255 / 23%);
  color: var(--rubyvio-color-background);
}
body.home:has(.gc-h-hero) .gc-r-header .gc-r-nav,
body.home:has(.gc-h-hero) .gc-r-nav [aria-label="Otevřít navigaci"] {
  color: inherit;
}
body.home:has(.gc-h-hero) .gc-r-header .gc-r-wordmark:hover {
  color: var(--rubyvio-button-hover);
}
@media (min-width: 960px) {
  body.home:has(.gc-h-hero) .gc-r-nav .gc-r-nav-item a:hover {
    color: var(--rubyvio-button-hover);
  }
}

.gc-h-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: stretch;
  min-height: clamp(650px, 56vw, 820px);
  padding: clamp(142px, 13vw, 200px) 0 clamp(65px, 7vw, 108px);
  background: var(--rubyvio-color-footer);
  color: var(--rubyvio-color-background);
}
.gc-h-hero > .gc-h-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
  z-index: 0;
}
.gc-h-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(19 16 13 / 58%) 0%, transparent 28%, rgb(20 15 12 / 16%) 78%, rgb(18 15 12 / 45%) 100%),
    linear-gradient(90deg, rgb(23 18 15 / 92%) 0%, rgb(23 18 15 / 79%) 29%, rgb(23 18 15 / 45%) 56%, rgb(23 18 15 / 14%) 100%);
  z-index: 1;
}
.gc-h-hero-inner {
  position: relative;
  pointer-events: none;
  z-index: 2;
}
.gc-h-hero-copy {
  width: min(620px, 100%);
  pointer-events: auto;
}
.gc-h-identity {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
  margin-block-end: clamp(15px, 2.4vw, 28px);
}
.gc-h-hero .gc-h-logo {
  width: clamp(76px, 8.8vw, 116px);
  height: auto;
  flex: 0 0 auto;
}
.gc-h-identity .gc-h-kicker {
  margin: 0;
  color: var(--rubyvio-button-hover);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.gc-h-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(46px, 5.65vw, calc(var(--rubyvio-template-hero-size, 48px) * 1.8));
  font-weight: 720;
  line-height: 1.01;
  letter-spacing: -.062em;
  color: inherit;
  text-wrap: balance;
}
.gc-h-lead {
  max-width: 43ch;
  margin: clamp(18px, 2.7vw, 29px) 0 clamp(21px, 3vw, 32px);
  font-size: clamp(16px, 1.46vw, 21px);
  color: inherit;
  line-height: 1.56;
}
.gc-h-hero .gc-r-button--outline {
  border-color: rgb(255 255 255 / 70%);
  background: rgb(22 18 14 / 36%);
  color: inherit;
}
.gc-h-hero .gc-r-button--outline:hover {
  background: rgb(22 18 14 / 70%);
  color: var(--rubyvio-color-background);
}
.gc-h-hero .gc-h-hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block-start: 7px;
  color: inherit;
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gc-h-section {
  padding: clamp(48px, 7vw, calc(var(--rubyvio-template-section-space) * 1.3)) 0;
  background: var(--rubyvio-color-surface);
  color: var(--rubyvio-color-text);
}
.gc-h-section h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(32px, 4.2vw, calc(var(--rubyvio-template-hero-size) * 1.15));
  line-height: 1.04;
  letter-spacing: -.045em;
  color: inherit;
  text-wrap: balance;
}
.gc-h-section p {
  margin: 13px 0 0;
  color: inherit;
  max-width: 53ch;
}
.gc-h-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 7vw, 110px);
  align-items: center;
}
.gc-h-intro-copy p {
  color: var(--rubyvio-color-muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}
.gc-h-intro-copy .gc-r-text-link {
  margin-top: 15px;
}
.gc-h-intro-photo {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: var(--rubyvio-card-radius);
}
.gc-h-services {
  background: var(--rubyvio-color-background);
}
.gc-h-section-intro {
  text-align: center;
}
.gc-h-section-intro :is(h2,p) {
  margin-inline: auto;
}
.gc-h-section-intro p {
  color: var(--rubyvio-color-muted);
}
.gc-h-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rubyvio-template-grid-gap);
  margin-block: clamp(25px, 4vw, 42px) 18px;
}
.gc-h-service-card {
  overflow: hidden;
  border: 1px solid var(--rubyvio-color-border);
  border-radius: var(--rubyvio-card-radius);
  background: var(--rubyvio-color-surface);
}
.gc-h-service-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}
.gc-h-card-copy {
  padding: var(--rubyvio-card-padding);
}
.gc-h-service-card h3 {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 27px);
  letter-spacing: -.035em;
  line-height: 1.15;
}
.gc-h-service-card p {
  margin-block-start: 8px;
  color: var(--rubyvio-color-muted);
}
.gc-h-service-link {
  display: flex;
  margin-inline: auto;
}
.gc-h-rental {
  background: var(--rubyvio-color-surface-alt);
}
.gc-h-rental-inner,
.gc-h-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rubyvio-template-grid-gap);
}
.gc-h-rental-inner .gc-r-button,
.gc-h-final-inner .gc-r-button {
  flex: 0 0 auto;
}
.gc-h-final {
  background: var(--rubyvio-color-footer);
  color: var(--rubyvio-color-background);
}
.gc-h-hero :is(a, img):focus-visible {
  outline: 2px solid var(--rubyvio-button-hover);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .gc-h-hero {
    min-height: 0;
    padding-block: 116px 56px;
  }
  .gc-h-hero > .gc-h-backdrop {
    object-position: 63% 60%;
  }
  .gc-h-hero::after {
    background:
      linear-gradient(180deg, rgb(19 16 13 / 75%) 0%, rgb(23 18 15 / 46%) 45%, rgb(23 18 15 / 73%) 100%),
      linear-gradient(90deg, rgb(23 18 15 / 53%), rgb(23 18 15 / 16%));
  }
  .gc-h-hero h1 {
    max-width: 14ch;
    font-size: clamp(41px, 10.3vw, 62px);
  }
  .gc-h-split,
  .gc-h-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gc-h-section-intro {
    text-align: start;
  }
  .gc-h-section-intro :is(h2,p),
  .gc-h-service-link {
    margin-inline: 0;
  }
  .gc-h-rental-inner,
  .gc-h-final-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .gc-h-hero .gc-r-actions {
    gap: 8px;
  }
  .gc-h-hero .gc-r-button {
    min-height: 44px;
    padding-inline: 13px;
  }
  .gc-h-final-inner .gc-r-button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}


.gc-h-offer,
.gc-h-answers {
  background: var(--rubyvio-color-surface-alt);
}
.gc-h-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rubyvio-template-grid-gap);
  margin: clamp(26px, 4vw, 46px) 0 0;
  padding: 0;
}
.gc-h-info-card {
  padding: var(--rubyvio-card-padding);
  border: 1px solid var(--rubyvio-color-border);
  border-radius: var(--rubyvio-card-radius);
  background: var(--rubyvio-color-surface);
}
.gc-h-info-card h3 {
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.gc-h-info-card p {
  margin-block-start: 9px;
  color: var(--rubyvio-color-muted);
}
.gc-h-section-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px var(--rubyvio-template-grid-gap);
  margin-block-start: clamp(18px, 3vw, 32px);
}
.gc-h-steps {
  list-style: decimal inside;
}
.gc-h-steps > li {
  display: list-item;
}
.gc-h-step::marker {
  color: var(--rubyvio-link, var(--rubyvio-color-primary));
  font-weight: 750;
}
.gc-h-step h3 {
  display: inline;
}
.gc-h-review-inner {
  text-align: center;
}
.gc-h-review-inner :is(h2, p) {
  margin-inline: auto;
}
.gc-h-review-inner .gc-h-quote {
  margin: 24px 0 6px;
  padding: 0;
  border: 0;
  font-size: clamp(23px, 3.6vw, 44px);
  line-height: 1.24;
  letter-spacing: -.035em;
}
.gc-h-review-inner .gc-h-quote-source {
  margin-block: 0 18px;
  color: var(--rubyvio-color-muted);
}
@media (max-width: 900px) {
  .gc-h-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .gc-h-info-grid { grid-template-columns: minmax(0, 1fr); }
  .gc-h-section-links { justify-content: start; }
  .gc-h-review-inner { text-align: start; }
  .gc-h-review-inner :is(h2, p) { margin-inline: 0; }
}
