/*
 * HOBBIS používá pevné červené barevné schéma.
 */
:root,
html[data-hobbis-color="red"] {
  --hobbis-accent: #c62828;
  --hobbis-accent-rgb: 198, 40, 40;
  --hobbis-on-accent: #ffffff;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body,
.public-site,
.site-main,
.section-padding,
.welcome-section,
.services-section,
.portfolio-section,
.latest-news-section,
.why-choose-section {
  background-color: #fff;
}

.public-site { color: #222; }

.page-banner {
  background-position: center;
  background-size: cover;
}
.page-banner::before { background-color: rgba(0, 0, 0, 0.72); }

.page-banner h1 {
  color: #fff;
  font-family: 'RalewayHeavy';
  font-size: 50px;
  letter-spacing: 2px;
  line-height: 62px;
  margin: 0;
  padding: 148px 20px;
  position: relative;
  text-transform: uppercase;
  word-wrap: break-word;
}

.slider-section .item .carousel-caption .hero-heading {
  font-family: 'RalewayHeavy';
  font-size: 38px;
  text-transform: uppercase;
  letter-spacing: 1.52px;
  line-height: 47px;
  padding-bottom: 25px;
  margin-top: 10px;
  margin-bottom: 25px;
  position: relative;
}
.slider-section .item .carousel-caption .hero-heading::before {
  background-color: var(--hobbis-accent);
  bottom: 0;
  content: '';
  height: 2px;
  width: 69px;
  position: absolute;
  left: 0;
}

@media (max-width: 991px) {
  .page-banner h1 { font-size: 42px; }
  .slider-section .item .carousel-caption .hero-heading {
    margin-bottom: 15px;
    padding-bottom: 15px;
    font-size: 25px;
    line-height: 25px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .slider-section .item .carousel-caption .hero-heading {
    margin-bottom: 15px;
    padding-bottom: 15px;
    font-size: 30px;
    line-height: 40px;
  }
}
@media (max-width: 767px) {
  .slider-section .item .carousel-caption .hero-heading {
    font-size: 20px;
    line-height: 25px;
  }
}

.call-out-section2 { background-image: url('/images/hobbis/4-1.jpg'); }
.call-out-section2::before { background-color: rgba(0, 0, 0, .72); }

.slider-section .item::before { background-color: rgba(0, 0, 0, 0.5); }

.testimonial-section {
  background-image: url("/images/hobbis/client-011.jpg");
  background-position: center;
  background-size: cover;
}
.testimonial-section::before {
  background-color: rgba(var(--hobbis-accent-rgb), 0.86);
}

/* Vysouvací volba barevného schématu. */
.section-header h3 {
  background-image: none;
}
.section-header h2 {
  color: #222;
  font-family: 'RalewayHeavy';
  font-size: 36px;
  margin-top: 0;
  padding-top: 25px;
  text-transform: uppercase;
}
.why-choose-section .section-header h2 {
  padding-top: 0;
  font-size: 48px;
  margin-bottom: 20px;
  text-align: left;
  overflow-wrap: break-word;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 99999;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { color: #fff; transform: translateY(0); }

.desktop-site-logo {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  margin-top: 0px;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}
.desktop-site-logo:hover,
.desktop-site-logo:focus { color: #222; text-decoration: none; }
.desktop-site-logo__name { color: #222; white-space: nowrap; }
.desktop-site-logo__company { color: #222; font-size: 0.8em; letter-spacing: 0; }
.desktop-site-logo__separator { color: #222; font-size: 0.8em; }
.desktop-site-logo__accent { color: var(--hobbis-accent); font-family: "Arial Black", Arial, Helvetica, sans-serif; font-size: 1.45em; font-weight: 900; }
.desktop-site-logo__tagline { display: block; width: 100%; margin-top: 7px; color: #222; font-size: 0.8em; font-weight: 400; letter-spacing: 1.3px; text-align: center; }

.navbar-brand__company { color: #222; font-size: 0.72em; letter-spacing: 0; }
.navbar-brand__separator { color: #222; font-size: 0.72em; }
.navbar-brand__accent { color: var(--hobbis-accent); font-weight: 900; }

.middle-header,
.navbar-default,
.navbar-default .navbar-collapse { background-color: #fff; }
.middle-header { border-bottom: 0; }
.ow-navigation { background-color: var(--hobbis-accent) !important; border-left: 0; border-right: 0; box-shadow: none; }
.ow-navigation .navbar-collapse { background-color: var(--hobbis-accent) !important; }
.footer-bottom .ow-navigation,
.footer-bottom .ow-navigation .navbar-collapse { background-color: transparent !important; }
.ow-navigation .navbar-brand__company,
.ow-navigation .navbar-brand__separator,
.ow-navigation .navbar-brand__accent { color: #fff; }
.middle-header .header-content .header-cnt-box { vertical-align: top; }
.top-header .protected-contact-link__icon { margin-right: 8px; color: var(--hobbis-accent); font-size: 14px; }
.footer-section .protected-contact-link__icon { margin-right: 9px; color: var(--hobbis-accent); }
.contact-overview .contact-info .protected-contact-link__icon {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 8px 0 0;
  padding: 0;
  background: transparent;
  color: var(--hobbis-accent);
  font-size: 16px;
  line-height: 1;
  position: static;
}
.contact-overview .contact-info .protected-contact-link__icon::after {
  content: none;
  display: none;
}

@media (max-width: 479px) {
  #header .ow-navigation .navbar-brand {
    margin-left: 10px;
    font-size: 18px;
    letter-spacing: 0;
  }
  #header .ow-navigation .navbar-brand small { font-size: 11px; }
}

/* Text na plochách v hlavní barvě musí zůstat čitelný i u tmavších variant. */
.ow-navigation .nav.navbar-nav > li > a,
.slider-section .item .carousel-caption a,
.srv-box .srv-box-hover a,
.call-out-section a,
.call-out-section2 a,
.footer-callout > a,
.contact-form input[type="submit"] {
  color: var(--hobbis-on-accent);
}

.contact-overview .contact-detail {
  display: flex;
  flex-wrap: wrap;
}
.contact-overview .contact-detail > [class*="col-"] { display: flex; }
.contact-overview .contact-info {
  width: 100%;
  height: 100%;
  min-height: 205px;
}
.contact-overview .contact-info p,
.contact-overview .contact-info a {
  line-height: 1.75;
}
.contact-overview .contact-info strong {
  color: #fff;
  font-weight: 700;
}
.alert-msg--warning {
  border-color: #d6a64a;
  background: #fff7e5;
  color: #7a4b00;
}
.company-registration {
  margin: 25px 15px 0;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  color: #777;
  text-align: center;
}
.google-map {
  position: relative;
  width: 100%;
  height: clamp(360px, 42vw, 620px);
  overflow: hidden;
  background: #eee;
}
.google-map__link {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 12px 18px;
  background: var(--hobbis-accent);
  color: var(--hobbis-on-accent);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}
.google-map__link:hover,
.google-map__link:focus { color: var(--hobbis-on-accent); text-decoration: none; }
.google-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.google-map__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  padding: 30px;
  text-align: center;
  background: #f1f1f1;
}
.google-map__preview p { margin: 0; color: #222; }
.google-map__preview button {
  padding: 12px 18px;
  border: 0;
  background: var(--hobbis-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.contact-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #222;
  font-size: 13px;
  font-weight: 700;
}

/* Keep the hero compact regardless of the source photo's proportions. */
#photo_slider .item > img {
  width: 100%;
  height: clamp(360px, 42vw, 620px);
  object-fit: cover;
}

@media (max-width: 767px) {
  #photo_slider .item > img {
    height: 360px;
  }
}

/* Template image blocks have fixed visual proportions, independent of the upload. */
.welcome-section .welcome-img > img {
  display: block;
  width: 100%;
  height: 497px;
  object-fit: cover;
}

.services-section .srv-box { overflow: hidden; }
.services-section .srv-box > img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; transform: scale(1); }
.services-section .srv-box::before { transform: scale(1); background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .78)); }
.services-section .srv-box:hover::before { background: rgba(var(--hobbis-accent-rgb), .9); }
.services-section .srv-box .srv-box-hover h3,
.services-section .srv-box .srv-box-hover p { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

.portfolio-box > .portfolio-box__link { display: block; position: relative; }
.portfolio-box > .portfolio-box__link > img {
  display: block;
  width: 100%;
  aspect-ratio: 480 / 310;
  object-fit: cover;
}
.portfolio-box::before { z-index: 1; pointer-events: none; }
.portfolio-box .hover-detail { z-index: 2; }
.portfolio-box:focus-within::before { transform: scale(1); }
.portfolio-box:focus-within .hover-detail .project-title h3,
.portfolio-box:focus-within .hover-detail .project-title .categories-link { opacity: 1; }
.portfolio-box__link:focus-visible { outline: 3px solid var(--hobbis-accent); outline-offset: -3px; }
.portfolio-box .hover-detail .project-title .categories-link span { color: #fff; font-style: italic; }

.portfolio-4-column .portfolio-categories li a::before {
  border-top-color: var(--hobbis-accent);
  border-left-color: var(--hobbis-accent);
}

.portfolio-4-column .portfolio-categories li a::after {
  border-right-color: var(--hobbis-accent);
  border-bottom-color: var(--hobbis-accent);
}

.latest-news-section .entry-cover img {
  display: block;
  width: 100%;
  height: 436px;
  object-fit: cover;
}
.latest-news-section .entry-cover { display: block; width: 100%; }
.latest-news-section .type-post .entry-content { background-color: rgba(255, 255, 255, 0.8); }
.latest-news-section .type-post .entry-content p { color: #222222; }

.reference-placeholder { position: relative; overflow: hidden; background: #292929; color: #fff; }
.reference-placeholder > img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; margin: 0 !important; object-fit: cover; filter: blur(2px) grayscale(.25); transform: scale(1.06); }
.reference-placeholder::after { position: absolute; inset: 0; content: ''; background: rgba(0, 0, 0, .64); }
.reference-placeholder__content { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.reference-placeholder__content strong { color: var(--hobbis-accent); font-family: 'Raleway', sans-serif; font-size: clamp(25px, 5vw, 52px); font-weight: 900; letter-spacing: .08em; line-height: 1; }
.reference-placeholder__content span { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.reference-placeholder__content small { margin-top: 30px; color: #fff; font-size: 12px; }
.latest-news-section .entry-cover .reference-placeholder { width: 100%; height: 436px; }
.portfolio-box__link > .reference-placeholder { width: 100%; aspect-ratio: 480 / 310; }
.portfolio-box .reference-placeholder__content { transition: opacity .2s ease; }
.portfolio-box:hover .reference-placeholder__content,
.portfolio-box:focus-within .reference-placeholder__content { opacity: 0; }
.project-detail-page .project-detail-img-box .reference-placeholder { width: 100%; height: 449px; margin-bottom: 30px; }
@media (min-width: 768px) {
  .latest-news-section .entry-cover .reference-placeholder__content { right: auto; width: 48%; }
  .latest-news-section .entry-cover .reference-placeholder__content strong { font-size: 23px; }
  .latest-news-section .entry-cover .reference-placeholder__content span { font-size: 8px; }
}

.reference-cards-section .type-post { height: 436px; }
.reference-cards-section .entry-cover a { display: block; }
.reference-cards-section .entry-content p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (max-width: 767px) {
  .reference-cards-section .type-post { height: auto; }
}

.project-detail-page__back { display: inline-block; margin: 0 15px 30px; color: var(--hobbis-accent); font-weight: 700; }
.project-detail-page__back:hover,
.project-detail-page__back:focus { color: #222; text-decoration: underline; }
.project-detail-banner { background-color: #333; }
.project-detail-page .project-detail-img-box img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.project-detail-page__photo-button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-detail-page__photo-button:focus-visible { outline: 3px solid var(--hobbis-accent); outline-offset: 4px; }
.project-detail-page .project-detail-box { margin-bottom: 30px; }
.project-detail-page .project-detail-box p { line-height: 1.6; text-transform: none; }
.project-detail-page .project-detail-box p b { font-weight: 700; }
.project-detail-page__body { padding: 10px 15px 0; }
.project-detail-page__gallery { clear: both; padding-top: 20px; }
.project-detail-page__gallery .row > div { margin-bottom: 30px; }
.project-detail-page__gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-detail-modal { width: min(1000px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 44px 56px 20px; border: 0; background: #161616; color: #fff; text-align: center; }
.project-detail-modal::backdrop { background: rgba(0, 0, 0, .86); }
.project-detail-modal img { display: block; max-width: 100%; max-height: calc(100vh - 145px); width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.project-detail-modal p { margin: 12px 0 0; color: #fff; }
.project-detail-modal button { position: absolute; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.project-detail-modal button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.project-detail-modal__close { top: 5px; right: 16px; font-size: 36px; line-height: 1; }
.project-detail-modal__previous,
.project-detail-modal__next { top: 50%; transform: translateY(-50%); font-size: 56px; line-height: 1; }
.project-detail-modal__previous { left: 12px; }
.project-detail-modal__next { right: 12px; }
@media (max-width: 767px) {
  .project-detail-page .project-detail-img-box img { max-height: 420px; }
  .project-detail-modal { padding: 44px 36px 16px; }
  .project-detail-modal__previous { left: 3px; }
  .project-detail-modal__next { right: 3px; }
}

.testimonial-section .testimonial-box .author-box img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.why-choose-section .why-choose-box img {
  top: 0;
  left: 0;
  width: 111px;
  height: 111px;
  object-fit: cover;
}

.why-choose-section .why-choose-box {
  box-sizing: border-box;
  min-height: 111px;
  padding-left: 140px;
}

.why-choose-section .why-choose-bg-img img {
  display: block;
  width: 100%;
  height: 940px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .portfolio-categories li {
    margin: 0 2px 8px;
  }
  .portfolio-categories li a {
    padding: 14px 16px;
    line-height: 14px;
  }
  .welcome-section .welcome-img > img {
    height: 330px;
  }
}

/* Nav collapse — Bootstrap JS not used, Vue controls mobile toggle via inline style.
   Desktop (992px+): always visible.
   Mobile (<992px): hidden by default, Vue sets display:block on mobileMenuOpen. */
.ow-navigation .navbar-collapse {
  display: block;
  height: auto !important;
  overflow: visible !important;
}
@media (max-width: 991px) {
  #header .ow-navigation .navbar-header {
    position: relative;
    min-height: 78px;
  }
  #header .ow-navigation .navbar-toggle {
    position: absolute;
    top: 20px;
    right: 15px;
    display: block !important;
    margin: 0;
    z-index: 20;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #header .mobile-menu-toggle {
    width: 44px;
    height: 38px;
    padding: 10px;
    border: 0;
    background: #fff !important;
  }
  #header .mobile-menu-toggle .icon-bar {
    display: block !important;
    width: 22px;
    height: 2px;
    margin: 0 auto 4px;
    background: #222 !important;
  }
  #header .ow-navigation .navbar-collapse {
    display: none !important;
    width: 100%;
  }
  #header .ow-navigation .navbar-collapse.is-open {
    display: block !important;
  }
  .ow-navigation .navbar-nav > li {
    display: block !important;
    float: none !important;
    width: 100%;
  }
  .ow-navigation .navbar-nav > li > a {
    color: #ffffff !important;
    padding: 12px 15px !important;
    display: block;
  }
}
/* Desktop nav layout */
.ow-navigation .navbar-nav { float: none !important; margin: 0; text-align: center; }
.ow-navigation .nav.navbar-nav > li { float: none !important; display: inline-block; width: auto; }
.ow-navigation .navbar-toggle { display: none; }
@media (max-width: 991px) {
  .ow-navigation .navbar-toggle { display: block; }
}

/* Footer gallery — match template's float layout */
.footer-section .ftr-gallery { float: left; width: 100%; }
.footer-section .ftr-gallery > a { float: left; margin-right: 10px; margin-bottom: 10px; }
.footer-section .ftr-gallery > a:nth-child(3n+3) { margin-right: 0; }
.footer-section .ftr-gallery img { width: 83px; height: 83px; object-fit: cover; display: block; }

/* Homepage: keep the Alcazar welcome panel compact and layered over the image. */
@media (min-width: 1200px) {
  #slider-section ~ .welcome-section .welcome-img {
    position: relative;
    z-index: 0;
  }

  #slider-section ~ .welcome-section .welcome-img img {
    transform: translateX(110px);
  }

  #slider-section ~ .welcome-section .welcome-content {
    position: relative;
    z-index: 1;
    margin-left: -45px;
    width: 520px;
  }
}

/* Service box icons — vertical centering */
.srv-box i img {
  vertical-align: middle;
  display: inline-block;
}

/* Welcome section — semi-transparent white fill inside the yellow border (::before) */
.welcome-section .welcome-content {
  position: relative;
}
.welcome-section .welcome-content::before {
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 991px) {
  .desktop-site-logo { display: none; }
  .why-choose-section .why-choose-bg-img img { height: 620px; }
}

@media (max-width: 767px) {
  .section-padding { padding: 32px 0; }
  .section-header {
    display: block;
    box-sizing: border-box;
    width: auto;
    margin-bottom: 35px;
    padding-right: 0;
    padding-left: 0;
  }
  .section-header h3,
  .section-header h2 {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .section-header p {
    padding-right: 0;
    padding-left: 0;
    line-height: 1.55;
  }
  .why-choose-section .section-header h3,
  .why-choose-section .section-header h2 { font-size: 30px; }
  .welcome-section .welcome-content {
    box-sizing: border-box;
    width: 100%;
  }
  .srv-box {
    width: 100%;
    max-width: 370px;
  }
  .srv-box > img { width: 100%; height: auto; }
  .why-choose-section .why-choose-bg-img img { height: 430px; }
  .footer-section .row > [class*="col-"] { width: 100%; }
  .footer-callout h4 { font-size: 20px; line-height: 1.4; }
  .contact-detail > [class*="col-"] { width: 100%; }
  .contact-overview .contact-detail,
  .contact-overview .contact-detail > [class*="col-"] { display: block; }
  .contact-overview .contact-info { min-height: 0; }
  .company-registration { line-height: 1.6; }
  .google-map { height: 420px; }
  .google-map__link { right: 15px; bottom: 15px; }
}

@media (max-width: 479px) {
  #photo_slider .item > img { height: 330px; }
  .section-header h3,
  .section-header h2 { font-size: 25px; }
  .why-choose-section .section-header h3,
  .why-choose-section .section-header h2 { font-size: 27px; }
  .why-choose-section .why-choose-box {
    min-height: 0;
    padding-left: 0;
    text-align: center;
  }
  .why-choose-section .why-choose-box img {
    position: relative;
    display: block;
    margin: 0 auto 18px;
  }
  .portfolio-box { width: 100%; }
  .services-section .row > [class*="col-"] {
    width: 100%;
    text-align: center;
  }
  .latest-news-section .entry-cover img { height: 360px; }
  .latest-news-section .entry-cover .reference-placeholder { height: 360px; }
}
.php-content { min-height: 100vh; color: #222; background: #fff; font-size: 16px; line-height: 1.7; }
.php-content__header { padding: 24px 0; background: #222; color: #fff; }
.php-content__header .container, .php-content__footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.php-content__brand { color: #fff; font-size: 23px; font-weight: 700; }
.php-content__brand strong { color: #d32f2f; }
.php-content__brand:hover, .php-content__header nav a:hover { color: #fff; }
.php-content__header nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.php-content__header nav a, .php-content__footer a { color: #fff; }
.php-content__main { padding-top: 55px; padding-bottom: 65px; }
.php-content__main h1 { font-size: clamp(30px, 4vw, 48px); margin: 0 0 25px; }
.php-content__main h2 { font-size: 27px; margin: 40px 0 18px; }
.php-content__main h3 { font-size: 21px; margin: 0 0 8px; }
.php-content__main p { margin-bottom: 16px; }
.php-content__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.php-content__grid article { padding: 22px; border: 1px solid #e5e5e5; }
.php-content__footer { padding: 26px 0; color: #fff; background: #222; }
.php-content__footer p { margin: 0; }
.legal-content { max-width: 900px; }
.legal-content a, .php-content__main a { color: #b52222; text-decoration: underline; }
.contact-form__privacy { clear: both; margin: 12px 0 20px; font-size: 14px; }
.related-content { padding-top: 15px; padding-bottom: 55px; }
.related-content h2 { margin: 0 0 24px; }
.related-content__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.related-content__grid article { padding: 24px; border: 1px solid #e6e6e6; }
.related-content__grid h3 { margin: 0 0 12px; font-size: 20px; }
.related-content__grid h3 a { color: #222; }
.related-content__grid h3 a:hover { color: #b52222; }
.public-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 24px; color: #555; font-size: 14px; }
.public-breadcrumbs a { color: #9f2323; }
