:root {
  --ybr-purple: #7a1f55;
  --ybr-dark: #1d1d1d;
  --ybr-gray: #999;
  --ybr-text: #333;
  --ybr-shell: 1040px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ybr-text);
  background-color: #fff;
}

a { color: var(--ybr-purple); }
a:hover { text-decoration: none; }

.site-shell {
  max-width: var(--ybr-shell);
  margin-inline: auto;
  padding-inline: 1rem;
  position: relative;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  min-height: 155px;
  z-index: 20;
}

.site-logo {
  position: absolute;
  top: 0;
  left: -0.5rem;
  width: min(324px, 30%);
  z-index: 15;
  display: block;
}
.site-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.site-login {
  position: absolute;
  top: 0;
  right: 1rem;
  padding: 0.5rem 0.85rem;
  background-color: var(--ybr-dark);
  color: #fff;
  z-index: 16;
  font-size: 0.95rem;
}
.site-login a { color: #fff; text-decoration: none; }
.site-login a:hover { color: var(--ybr-gray); }
.site-login__form { display: inline; margin: 0; }
.site-login__logout {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.site-login__logout:hover { color: var(--ybr-gray); }

.site-menu {
  position: absolute;
  top: 90px;
  right: 1rem;
  display: flex;
  gap: 3.2rem;
  font-size: 1.375rem;
  z-index: 14;
}
.site-menu a {
  color: var(--ybr-dark);
  text-decoration: none;
}
.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--ybr-gray);
}

/* ---------- Hero / carousel ---------- */
.hero {
  position: relative;
  max-width: var(--ybr-shell);
  margin-inline: auto;
  padding-inline: 1rem;
  margin-top: -20px;
}

.hero .carousel img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-claim {
  position: absolute;
  right: 1rem;
  bottom: 0;
  max-width: min(531px, 55%);
  padding: 1.75rem 2rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.82);
  color: #fff;
  text-align: right;
  z-index: 7;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-claim h3 {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}
.hero-claim p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  background: none;
  border: none;
  width: 4rem;
  opacity: 1;
  font-size: 2.5rem;
  color: rgba(0, 0, 0, 0.25);
}
.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  background: none;
  width: auto;
  height: auto;
}
.hero .carousel-control-prev-icon::before { content: "‹"; }
.hero .carousel-control-next-icon::before { content: "›"; }

/* ---------- Homepage grid ---------- */
.homepage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: justify;
}
@media (min-width: 768px) {
  .homepage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}
.homepage-grid h3 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.homepage-grid h4 {
  font-weight: 700;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ---------- Topline band (subpage title) ---------- */
.site-topline {
  position: relative;
  background-color: var(--ybr-dark);
  color: #fff;
  min-height: 69px;
  display: flex;
  align-items: center;
  z-index: 5;
}
.site-topline .site-shell {
  width: 100%;
}
.site-topline__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  text-align: right;
}

/* ---------- Main content ---------- */
main.site-main {
  max-width: var(--ybr-shell);
  margin: 2rem auto 3rem;
  padding-inline: 1rem;
}
/* On pages without any hero region, reserve clearance so the logo
   banner does not collide with the first content block. */
body:not(:has(.hero, .site-topline)) main.site-main {
  padding-top: 180px;
}
/* When the topline is present, reserve enough top space for the logo
   banner that extends down past the header + topline. */
body:has(.site-topline) main.site-main {
  margin-top: 0;
  padding-top: clamp(2.5rem, 13vw, 8rem);
}

/* ---------- Team grid (O nás) ---------- */
.team-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem 1rem;
}
.team-grid figure {
  margin: 0;
  text-align: center;
}
.team-grid img {
  display: block;
  object-fit: cover;
  border-radius: 0;
}
.team-grid figcaption {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--ybr-text);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #eee;
  padding: 1.5rem 0;
  margin-top: 3rem;
  color: var(--ybr-gray);
  font-size: 0.85rem;
}
.site-footer .site-shell {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .site-header { min-height: auto; padding: 0.75rem 1rem; }
  .site-logo { position: static; width: 160px; margin: 0 auto 0.5rem; }
  .site-login { position: static; display: inline-block; margin: 0.25rem auto 0.5rem; }
  .site-menu {
    position: static;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 1.05rem;
    padding-top: 0.5rem;
  }
  .hero { margin-top: 0.5rem; }
  .hero-claim {
    position: static;
    max-width: none;
    clip-path: none;
    margin-top: -4px;
  }
  .site-topline__title { text-align: center; font-size: 1.35rem; }
  body:not(:has(.hero, .site-topline)) main.site-main { padding-top: 1rem; }
}
