:root{
  --ink:#173b2a;
  --muted:#5b6c62;
  --brand:#165c34;
  --bg:#f6fbf7;
  --line:#e9f0ea;
  --line-soft:#edf4ef;
  --chip:#eef6ef;
  --white:#fff;
}

/* rámec */
#eph-footer{
  background:var(--bg);
  border-top:1px solid var(--line);
  color:var(--ink);
  font-synthesis-weight:none;
  box-shadow:0 -1px 0 rgba(0,0,0,.03) inset;
}

#eph-footer .wrap{
  max-width:1180px;
  margin:0 auto;
  padding:22px 18px;
}

/* horný grid */
#eph-footer .ft-top{
  display:grid;
  grid-template-columns:1.05fr .8fr .8fr 1.05fr;
  gap:24px;
  align-items:start;
  font-size:13px;
  line-height:1.45;
}

/* značka */
#eph-footer .brandRow{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:6px;
}

#eph-footer .brandRow .logo{
  display:block;
  width:auto;
  height:auto;
  max-width:106px;
}

#eph-footer .claim{
  margin:10px 0 3px;
  font-size:11px;
  line-height:1.6;
  color:#7c8b84;
  font-weight:400;
  max-width:230px;
}

/* Xenyra blok */
#eph-footer .sister-block{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  margin-top:33px;
}

#eph-footer .sister{
  display:inline-flex;
  gap:8px;
  align-items:center;
}

#eph-footer .sister img{
  height:18px;
  width:auto;
}

#eph-footer .sister a{
  font-size:11px;
  font-weight:560;
  color:var(--ink);
  text-decoration:none;
}

#eph-footer .sister a:hover{
  color:var(--brand);
}

/* podpis JK */
#eph-footer .author{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  font-size:10px;
  line-height:1.25;
  color:var(--muted);
  opacity:.65;
  margin-left:26px;
  margin-top:1px;
}

#eph-footer .author span{
  margin-bottom:2px;
  font-size:10px;
  font-weight:400;
  letter-spacing:.015em;
}

#eph-footer .author img{
  height:18px;
  width:auto;
  display:block;
  opacity:.9;
}

/* sekcie */
#eph-footer .ft-top h5{
  margin:0 0 4px;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:.01em;
  color:var(--brand);
}

#eph-footer .ft-top ul{
  list-style:none;
  margin:0;
  padding:0;
}

#eph-footer .ft-top li{
  margin:6px 0;
}

#eph-footer .ft-top a{
  color:var(--ink);
  text-decoration:none;
}

#eph-footer .ft-top a:hover{
  color:var(--brand);
}

/* kontakt tlačidlá */
#eph-footer .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 9px;
  min-height:26px;
  border:1px solid #e2ebe4;
  border-radius:7px;
  background:var(--white);
  text-decoration:none;
  color:var(--muted);
  font-weight:480;
  font-size:11px;
  transition:border-color .15s ease, box-shadow .15s ease;
}

#eph-footer .btn:hover{
  border-color:var(--brand);
  box-shadow:0 3px 10px rgba(0,0,0,.03);
  color:var(--ink);
}

#eph-footer .btn.wa{
  border-color:#d9efe2;
}

#eph-footer .btn.wa .icon{
  stroke:#1faa52;
}

#eph-footer .contact-row{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

#eph-footer .icon{
  width:16px;
  height:16px;
  stroke:currentColor;
  fill:none;
}

#eph-footer .person{
  display:grid;
  gap:3px;
  margin:4px 0 8px;
}

#eph-footer .person .who{
  font-weight:490;
  font-size:13px;
  letter-spacing:.03px;
}

#eph-footer .chip{
  display:inline-block;
  padding:2px 7px;
  border-radius:999px;
  background:var(--chip);
  color:var(--muted);
  font-size:11px;
  margin-left:6px;
}

/* legal & social – spodok footera na celú šírku */
#eph-footer .ft-legal{
  width:100%;
  margin:16px auto 0;
  padding-top:8px;
  border-top:1px solid var(--line-soft);
  text-align:center;
  color:var(--muted);
  font-size:13px;
  line-height:1.3;
}

#eph-footer .ft-right{
  width:100%;
  margin:0 0 8px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

#eph-footer .soc{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:8px;
  background:var(--white);
  border:1px solid var(--line);
}

#eph-footer .soc svg{
  width:18px;
  height:18px;
  stroke:var(--brand);
  fill:none;
}

#eph-footer .soc img{
  height:18px;
  width:auto;
  display:block;
}

/* právne linky */
#eph-footer .ft-links{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 4px;
  text-align:center;
}

#eph-footer .ft-legal a{
  text-decoration:none;
  transition:color .12s ease, text-decoration-color .12s ease;
}

#eph-footer .ft-links a{
  color:var(--muted);
  font-size:13px;
  font-weight:450;
}

#eph-footer .ft-legal a:hover{
  text-decoration:underline;
  color:var(--ink);
}

/* copyright */
#eph-footer .ft-copy{
  width:100%;
  margin:8px auto 0;
  text-align:center;
  font-size:11.5px;
  color:var(--muted);
  font-weight:450;
}

#eph-footer .ft-copy .ft-sep{
  margin:0 6px;
}

#eph-footer .ft-copy .jk-copy{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:11px;
  color:var(--muted);
}

#eph-footer .ft-copy .jk-copy img{
  height:16px;
  width:auto;
  vertical-align:middle;
  opacity:.9;
}

/* responzívne */
@media (max-width:980px){
  #eph-footer .ft-top{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:640px){
  #eph-footer .ft-top{
    grid-template-columns:1fr;
  }

  #eph-footer .ft-links{
    gap:10px 14px;
  }
}

/* =========================================================
   EPHARO AWS FOOTER PRIVACY LINK
   Keep legal actions visually identical to footer links.
   No large CTA. No secondary design system.
   ========================================================= */

#eph-footer .ft-cookie-settings{
  appearance:none;
  -webkit-appearance:none;

  border:0;
  padding:0;
  margin:0;

  background:transparent;
  color:var(--muted);

  font:inherit;
  font-size:13px;
  font-weight:450;
  line-height:inherit;

  cursor:pointer;

  transition:
    color .12s ease,
    text-decoration-color .12s ease,
    transform .12s ease;
}

#eph-footer .ft-cookie-settings:hover{
  color:var(--ink);
  text-decoration:underline;
  transform:translateY(-1px);
}

#eph-footer .ft-cookie-settings:focus-visible{
  outline:2px solid currentColor;
  outline-offset:4px;
  border-radius:3px;
}


/* =========================================================
   EPHARO FOOTER - FINAL PLATFORM UI
   Compact / breathable / consistent.
   ========================================================= */

/* legal/privacy navigation */
#eph-footer .ft-links{
  width:auto;
  max-width:340px;
  margin:6px auto 4px;

  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;

  gap:7px;

  text-align:center;
}

#eph-footer .ft-links a{
  display:inline-flex;
  align-items:center;

  width:auto;

  padding:1px 2px;

  color:var(--muted);
  text-decoration:none;

  font-size:13px;
  font-weight:450;
  line-height:1.35;

  transition:
    color .14s ease,
    transform .14s ease,
    opacity .14s ease;
}

#eph-footer .ft-links a:hover{
  color:var(--ink);
  text-decoration:none;
  transform:translateY(-1px);
}


/* Cookie settings:
   intentionally only slightly stronger than legal links. */
#eph-footer .ft-cookie-settings{
  appearance:none;
  -webkit-appearance:none;

  display:inline-flex;
  align-items:center;

  width:auto;

  margin:3px 0 0;
  padding:4px 10px;

  border:1px solid rgba(7,92,45,.16);
  border-radius:999px;

  background:rgba(7,92,45,.045);
  color:var(--brand);

  font:inherit;
  font-size:13px;
  font-weight:650;
  line-height:1.3;

  cursor:pointer;

  transition:
    background .14s ease,
    border-color .14s ease,
    transform .14s ease,
    box-shadow .14s ease;
}

#eph-footer .ft-cookie-settings:hover{
  background:rgba(7,92,45,.075);
  border-color:rgba(7,92,45,.25);

  transform:translateY(-1px);

  box-shadow:
    0 5px 14px rgba(7,92,45,.07);

  text-decoration:none;
}


/* Xenyra mark */
#eph-footer img[src="/assets/xenyra/xenyra-mark-gradient-transparent.png"]{
  object-fit:contain;
}


/* JK signature:
   deliberately small and subtle. */
#eph-footer .jk-copy img[src="/assets/brand/jk-signature.png"]{
  width:auto;
  height:17px;

  display:inline-block;
  vertical-align:middle;

  opacity:.78;

  transition:
    opacity .14s ease,
    transform .14s ease;
}

#eph-footer .jk-copy:hover img[src="/assets/brand/jk-signature.png"]{
  opacity:.95;
  transform:translateY(-1px);
}


/* Never let footer brand artwork become oversized. */
#eph-footer img[alt="epharo"]{
  max-width:190px;
  height:auto;
}

@media (max-width:760px){

  #eph-footer .ft-links{
    gap:6px;
  }

  #eph-footer .ft-cookie-settings{
    font-size:13px;
    padding:4px 9px;
  }

  #eph-footer img[alt="epharo"]{
    max-width:160px;
  }

}


/* =========================================================
   EPHARO FOOTER
   FINAL LEGAL / PRIVACY NAVIGATION ROW
   ========================================================= */

#eph-footer .ft-links{
  width:100% !important;
  max-width:none !important;

  margin:10px auto 5px !important;

  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;

  justify-content:center !important;
  align-items:center !important;

  column-gap:18px !important;
  row-gap:7px !important;

  text-align:center !important;
}

#eph-footer .ft-links a{
  display:inline-flex !important;
  align-items:center !important;

  width:auto !important;

  margin:0 !important;
  padding:2px 0 !important;

  white-space:nowrap;

  color:var(--muted);
  text-decoration:none;

  font-size:13px;
  font-weight:450;
  line-height:1.35;

  transition:
    color .14s ease,
    transform .14s ease;
}

#eph-footer .ft-links a:hover{
  color:var(--ink);
  transform:translateY(-1px);
}


/* Cookie settings remain part of the same horizontal row,
   only subtly highlighted. */

#eph-footer .ft-cookie-settings{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:auto !important;

  margin:0 !important;
  padding:4px 10px !important;

  border:1px solid rgba(7,92,45,.18);
  border-radius:999px;

  background:rgba(7,92,45,.05);
  color:var(--brand);

  font:inherit;
  font-size:13px;
  font-weight:650;
  line-height:1.25;

  white-space:nowrap;
  cursor:pointer;
}

#eph-footer .ft-cookie-settings:hover{
  background:rgba(7,92,45,.09);
  border-color:rgba(7,92,45,.28);
  transform:translateY(-1px);
}


/* Tablet */
@media (max-width:900px){

  #eph-footer .ft-links{
    column-gap:14px !important;
    row-gap:7px !important;
  }

}


/* Mobile */
@media (max-width:640px){

  #eph-footer .ft-links{
    max-width:520px !important;
    padding:0 12px !important;

    column-gap:12px !important;
    row-gap:8px !important;
  }

  #eph-footer .ft-links a,
  #eph-footer .ft-cookie-settings{
    font-size:12px !important;
  }

}
