/* =====================================================================
   AQUACHEMIE – vzhled převzatý z původní šablony theme3459 (barva 1)
   Podšablona (child) Cassiopeia pro Joomla 6
   ===================================================================== */

:root {
  --aq-blue: #0095e5;
  --aq-blue-dark: #0074b2;
  --aq-navy: #1b4f8c;
  --aq-dark: #2a2f33;
  --aq-grey: #6a7278;
  --aq-light: #f4f7f9;
  --aq-line: #e3e8ec;
  --aq-max: 1170px;
  --aq-font: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --cassiopeia-color-primary: #0095e5;
  --cassiopeia-color-link: #0095e5;
  --cassiopeia-color-hover: #0074b2;
  --link-color: #0095e5;
}

html { scroll-behavior: smooth; }
body.site {
  font-family: var(--aq-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--aq-grey);
  background: #fff;
}
body.site a { color: var(--aq-blue); text-decoration: none; }
body.site a:hover { color: var(--aq-blue-dark); text-decoration: underline; }
body.site h1, body.site h2, body.site h3, body.site h4, body.site h5 { font-family: var(--aq-font); color: var(--aq-dark); font-weight: 600; }

/* ---------------------------------------------------------------------
   HLAVIČKA – horní lišta, logo, menu
   --------------------------------------------------------------------- */
body.site .container-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(15px, calc((100% - var(--aq-max)) / 2));
  background: #fff;
  background-image: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  z-index: 1000;
}
body.site .container-header > .grid-child {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
}
body.site .container-header .container-topbar {
  flex: 0 0 100%;
  order: -1;
  margin: 0 calc(-1 * max(15px, calc((100vw - var(--aq-max)) / 2)));
  padding: 6px max(15px, calc((100vw - var(--aq-max)) / 2));
  background: var(--aq-dark);
}
.aq-topbar { margin: 0; text-align: right; font-size: 13px; }
body.site .aq-topbar a { color: #cfd6db; margin-left: 22px; text-decoration: none; }
body.site .aq-topbar a:hover { color: #fff; }
.aq-topbar a::before { margin-right: 6px; color: var(--aq-blue); }
.aq-top-mail::before { content: "✉"; }
.aq-top-phone::before { content: "☎"; }

body.site .container-header .navbar-brand { margin: 0; padding: 18px 0; }
body.site .container-header .brand-logo img { display: block; width: 300px; max-width: 60vw; height: auto; }
body.site .container-header .site-description { display: none; }

body.site .container-header .container-nav { display: flex; align-items: center; }
body.site .container-header .container-nav nav.navbar { padding: 0; }
body.site .container-header .container-search { display: none; }

body.site .container-header .mod-menu,
body.site .container-header .metismenu {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}
body.site .container-header .metismenu > li { position: relative; display: flex; align-items: center; margin: 0; padding: 0; }
body.site .container-header .metismenu > li > a,
body.site .container-header .metismenu > li > span,
body.site .container-header .metismenu > li > button.mm-toggler {
  display: block;
  padding: 30px 14px;
  color: var(--aq-dark);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  background: none;
  border: 0;
  line-height: 1.2;
  cursor: pointer;
}
body.site .container-header .metismenu > li > span + button.mm-toggler,
body.site .container-header .metismenu > li > a + button.mm-toggler { padding-left: 0; margin-left: -8px; }
body.site .container-header .metismenu > li > a:hover,
body.site .container-header .metismenu > li > span:hover,
body.site .container-header .metismenu > li.active > a,
body.site .container-header .metismenu > li.active > span,
body.site .container-header .metismenu > li:hover > a,
body.site .container-header .metismenu > li:hover > span { color: var(--aq-blue); text-decoration: none; }
body.site .container-header .metismenu > li > a::after { display: none; }
body.site .container-header .metismenu > li > button.mm-toggler::after { border-top-color: currentColor; }

body.site .container-header .metismenu .mm-collapse,
body.site .container-header .metismenu > li > ul {
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--aq-blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
@media (min-width: 768px) {
  body.site .container-header .metismenu .mm-collapse,
  body.site .container-header .metismenu > li > ul { position: absolute; top: 100%; left: 0; z-index: 1000; }
  body.site .container-header .metismenu > li:hover > ul,
  body.site .container-header .metismenu > li:focus-within > ul { display: block; height: auto !important; }
}
body.site .container-header .metismenu ul li { display: block; margin: 0; }
body.site .container-header .metismenu ul li a {
  display: block;
  padding: 9px 20px;
  color: var(--aq-dark);
  font-size: 14px;
  text-decoration: none;
}
body.site .container-header .metismenu ul li a:hover,
body.site .container-header .metismenu ul li.active > a { color: #fff; background: var(--aq-blue); }

body.site .container-header .navbar-toggler {
  color: var(--aq-dark);
  border: 1px solid var(--aq-line);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 20px;
  background: none;
}

@media (max-width: 991.98px) {
  body.site .container-header .metismenu > li > a,
  body.site .container-header .metismenu > li > span,
  body.site .container-header .metismenu > li > button.mm-toggler { padding: 26px 9px; font-size: 13px; }
}
@media (max-width: 767.98px) {
  body.site .container-header .container-nav { flex: 0 0 auto; }
  body.site .container-header nav.navbar { position: static; }
  body.site .container-header .navbar-collapse {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
  }
  body.site .container-header .metismenu { display: block; padding: 6px 0 10px; }
  body.site .container-header .metismenu > li { flex-wrap: wrap; }
  body.site .container-header .metismenu > li > a,
  body.site .container-header .metismenu > li > span { flex: 1; padding: 13px 20px; }
  body.site .container-header .metismenu > li > button.mm-toggler { padding: 13px 20px; }
  body.site .container-header .metismenu > li > ul { width: 100%; box-shadow: none; border-top: 0; background: var(--aq-light); }
  body.site .container-header .container-topbar .aq-topbar { text-align: center; }
  body.site .aq-topbar a { margin: 0 8px; }
}

/* ---------------------------------------------------------------------
   ROZVRŽENÍ
   --------------------------------------------------------------------- */
body.site .site-grid {
  grid-template-columns: [full-start] minmax(15px, 1fr) [main-start] repeat(4, minmax(0, calc((var(--aq-max) - 90px) / 4))) [main-end] minmax(15px, 1fr) [full-end];
  column-gap: 30px;
  padding-bottom: 50px;
}
@media (max-width: 767.98px) { body.site .site-grid { column-gap: 0; } }
body.site .site-grid > .container-banner,
body.site .site-grid > .container-bottom-a,
body.site .site-grid > .full-width { grid-column: full-start / full-end; }
body.aq-home .site-grid { padding-bottom: 0; }
body.site .container-component > * + * { margin-top: 0; }

/* drobečková navigace */
body.site .container-breadcrumbs,
body.site .site-grid > .grid-child.container-breadcrumbs { margin: 22px 0 6px; }
body.site .mod-breadcrumbs { margin: 0; padding: 0; background: none; font-size: 13px; }
body.site .mod-breadcrumbs a { color: var(--aq-grey); }

/* nadpis stránky */
body.site .com-content-article .page-header h1,
body.site .com-content-article .page-header h2,
body.site .com-contact .page-header h1 {
  margin: 10px 0 24px;
  padding-bottom: 14px;
  color: var(--aq-dark);
  font-size: 30px;
  font-weight: 600;
  border-bottom: 2px solid var(--aq-line);
  position: relative;
}
body.site .com-content-article .page-header h1::after,
body.site .com-content-article .page-header h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 70px;
  border-bottom: 2px solid var(--aq-blue);
}
body.site .com-content-article__body { overflow: hidden; }
body.site .com-content-article__body img { max-width: 100%; height: auto; }
body.site .com-content-article__body h2, body.site .com-content-article__body h3 { margin-top: 1.4em; }

.aq-figure-right {
  float: right;
  width: 44%;
  max-width: 520px;
  margin: 4px 0 20px 30px;
}
.aq-figure-right img { display: block; width: 100%; height: auto; border-radius: 4px; }
.aq-company-logo { margin: 0 0 16px; }
.aq-company-logo img { width: 220px; height: auto; border: 1px solid var(--aq-line); border-radius: 4px; }

/* odrážkové seznamy (původní ul.list) */
body.site ul.list { list-style: none; margin: 14px 0 20px; padding: 0; }
body.site ul.list li { position: relative; padding: 4px 0 4px 26px; }
body.site ul.list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--aq-blue);
  border-right: 2px solid var(--aq-blue);
  transform: rotate(45deg);
}
body.site ul.list li a { color: var(--aq-dark); font-weight: 600; }
body.site ul.list li a:hover { color: var(--aq-blue); }
.aq-list-col { margin-top: 10px; }

/* obrázky vložené s float v textu – na mobilu pod sebe */
@media (max-width: 767.98px) {
  .aq-figure-right { float: none; width: auto; margin: 0 0 18px; }
  body.site .com-content-article__body img[style*="float"] { float: none !important; display: block; margin: 12px auto !important; }
  body.site .com-content-article__body p[style*="justify"] { text-align: left !important; }
}

/* video */
.aq-video {
  position: relative;
  max-width: 760px;
  margin: 24px 0;
  aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aq-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aq-video button.aq-play {
  width: 74px; height: 52px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: background .2s;
}
.aq-video:hover button.aq-play { background: #e00; }
body.site .aq-video > a { color: #fff; }

/* ---------------------------------------------------------------------
   ÚVOD – slider a sekce
   --------------------------------------------------------------------- */
.aq-slider {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 30vw, 520px);
  background: var(--aq-light);
}
.aq-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.aq-slide:first-child, .aq-slide.is-active { opacity: 1; z-index: 1; }
.aq-slider.is-ready .aq-slide:first-child:not(.is-active) { opacity: 0; z-index: 0; }
.aq-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aq-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.aq-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.25); cursor: pointer; }
.aq-dots button.is-active { background: var(--aq-blue); border-color: var(--aq-blue); }

body.aq-home .com-content-article .page-header { display: none; }
.aq-section { padding: 60px 0 10px; }
body.site .aq-section-title {
  margin: 0 0 36px;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--aq-dark);
  position: relative;
  padding-bottom: 16px;
}
body.site .aq-section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 60px; margin-left: -30px;
  border-bottom: 3px solid var(--aq-blue);
}
section[id] { scroll-margin-top: 120px; }

.aq-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
body.site a.aq-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
body.site a.aq-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.14); text-decoration: none; }
.aq-card img { display: block; width: 100%; height: auto; aspect-ratio: 686 / 500; object-fit: cover; }
body.site .aq-card h3 { margin: 0; padding: 18px 16px 20px; text-align: center; font-size: 18px; color: var(--aq-dark); }
body.site a.aq-card:hover h3 { color: var(--aq-blue); }

.aq-about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.aq-about-photo img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 6px 22px rgba(0,0,0,.12); }

.aq-contact-band {
  margin: 50px calc(50% - 50vw) 0;
  padding: 60px calc(50vw - 50%) 50px;
  background: var(--aq-light);
}
.aq-contact-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.aq-contact-col { position: relative; padding: 4px 0 0 62px; }
.aq-contact-col::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--aq-blue) center / 22px no-repeat;
}
.aq-ico-home::before { background-image: url("../images/icons/home.svg"); }
.aq-ico-phone::before { background-image: url("../images/icons/phone.svg"); }
.aq-ico-bank::before { background-image: url("../images/icons/bank.svg"); }
.aq-contact-col p { margin: 0; color: var(--aq-dark); }

.aq-map {
  position: relative;
  height: 420px;
  margin: 0 calc(50% - 50vw);
  background: #e5e3df;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aq-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 991.98px) {
  .aq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aq-about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .aq-cards, .aq-contact-cols { grid-template-columns: 1fr; }
  .aq-section { padding-top: 40px; }
  body.site .aq-section-title { font-size: 26px; }
  .aq-map { height: 320px; }
}

/* ---------------------------------------------------------------------
   ZASTUPOVANÉ SPOLEČNOSTI – mřížka log
   --------------------------------------------------------------------- */
.aq-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
body.site a.aq-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 12px;
  background: #fff;
  border: 1px solid var(--aq-line);
  border-radius: 4px;
  text-decoration: none;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
body.site a.aq-logo-card:hover { border-color: var(--aq-blue); box-shadow: 0 8px 20px rgba(0,0,0,.1); transform: translateY(-3px); text-decoration: none; }
.aq-logo-card img { width: 100%; max-width: 220px; height: auto; }
body.site .aq-logo-card span { margin-top: 8px; color: var(--aq-dark); font-weight: 600; font-size: 14px; }
@media (max-width: 991.98px) { .aq-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .aq-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------------------------------------------------------------------
   RYCHLÝ KONTAKT (pozice bottom-a, mimo úvod)
   --------------------------------------------------------------------- */
body.site .container-bottom-a { margin-top: 50px; }
.aq-quick {
  padding: 50px 20px 44px;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, var(--aq-navy) 0%, var(--aq-blue) 100%);
}
body.site .aq-quick h4 { margin: 0 0 6px; color: #fff; font-size: 22px; font-weight: 400; }
body.site .aq-quick h4:first-child { font-weight: 600; }
.aq-quick p { margin: 18px 0 0; color: #fff; }
body.site .aq-quick a { color: #fff; text-decoration: underline; }
body.site .aq-quick + * { margin-top: 0; }

/* ---------------------------------------------------------------------
   KONTAKTNÍ FORMULÁŘ (com_contact)
   --------------------------------------------------------------------- */
body.site .com-contact { max-width: 760px; }
body.site .com-contact .contact-form legend,
body.site .com-contact h3 { font-size: 20px; color: var(--aq-dark); }
body.site .com-contact .btn-primary,
body.site .aq-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--aq-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
body.site .com-contact .btn-primary:hover,
body.site .aq-btn:hover { background: var(--aq-blue-dark); color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------------
   PATIČKA
   --------------------------------------------------------------------- */
body.site .container-footer {
  background: var(--aq-dark);
  background-image: none;
  color: #aab3b9;
}
body.site .container-footer .grid-child {
  display: block;
  max-width: var(--aq-max);
  margin: 0 auto;
  padding: 50px 15px 24px;
}
.aq-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
body.site .container-footer h3 { margin: 0 0 16px; color: #fff; font-size: 18px; font-weight: 600; }
body.site .container-footer p { margin: 0 0 12px; font-size: 14px; color: #aab3b9; }
body.site .container-footer strong { color: #e4e9ec; }
body.site .container-footer a { color: #fff; }
body.site .container-footer .aq-btn { color: #fff; }
body.site .container-footer .aq-copyright {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid #3c4349;
  font-size: 13px;
  text-align: center;
  color: #808a91;
}
@media (max-width: 767.98px) { .aq-footer-cols { grid-template-columns: 1fr; gap: 24px; } }

body.site .back-to-top-link { background: var(--aq-blue); border-color: var(--aq-blue); color: #fff; }

/* úvod: pásy přes celou šířku nesmí ořezat kontejner článku */
body.site { overflow-x: hidden; }
body.aq-home .com-content-article__body { overflow: visible; }

/* drobečková navigace – vodorovně */
body.site .mod-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0 !important; }
body.site .mod-breadcrumbs li { display: inline-flex; align-items: center; }
body.site .mod-breadcrumbs .mod-breadcrumbs__divider { display: none; }
body.site .mod-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: "›"; padding: 0 8px; color: #b5bec4; float: none; }

/* slider na mobilu v původním poměru stran (neořezávat fotky) */
@media (max-width: 767.98px) {
  .aq-slider { height: auto; aspect-ratio: 1600 / 480; }
}
